Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / userdb / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libuserdb 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='libuserdb'
425PACKAGE_TARNAME='libuserdb'
426PACKAGE_VERSION='0.10'
427PACKAGE_STRING='libuserdb 0.10'
428PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430ac_unique_file="userdb.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 PERL userdb USERDB userdbtmpdir tmpdir makedat MD5LIB SHA1LIB HMACLIB CRYPTLIBS HAVE_SGML_TRUE HAVE_SGML_FALSE 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 libuserdb 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 libuserdb 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
1049 --with-random=/dev/urandom - location of the system random file generator
1050--without-random - there is no system random file generator
1051
1052Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1059 CPP C preprocessor
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1065
1066Use these variables to override the choices made by `configure' or to help
1067it to find libraries and programs with nonstandard names/locations.
1068
1069Report bugs to <courier-users@lists.sourceforge.net>.
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085 ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103
1104# Do not use `cd foo && pwd` to compute absolute paths, because
1105# the directories may not exist.
1106case `pwd` in
1107.) ac_abs_builddir="$ac_dir";;
1108*)
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117*)
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_srcdir=$ac_srcdir;;
1126*)
1127 case $ac_srcdir in
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135*)
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141esac
1142
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 fi
1158 cd $ac_popdir
1159 done
1160fi
1161
1162test -n "$ac_init_help" && exit 0
1163if $ac_init_version; then
1164 cat <<\_ACEOF
1165libuserdb configure 0.10
1166generated by GNU Autoconf 2.59
1167
1168Copyright (C) 2003 Free Software Foundation, Inc.
1169This configure script is free software; the Free Software Foundation
1170gives unlimited permission to copy, distribute and modify it.
1171_ACEOF
1172 exit 0
1173fi
1174exec 5>config.log
1175cat >&5 <<_ACEOF
1176This file contains any messages produced by compilers while
1177running configure, to aid debugging if configure makes a mistake.
1178
1179It was created by libuserdb $as_me 0.10, which was
1180generated by GNU Autoconf 2.59. Invocation command line was
1181
1182 $ $0 $@
1183
1184_ACEOF
1185{
1186cat <<_ASUNAME
1187## --------- ##
1188## Platform. ##
1189## --------- ##
1190
1191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199
1200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207
1208_ASUNAME
1209
1210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211for as_dir in $PATH
1212do
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216done
1217
1218} >&5
1219
1220cat >&5 <<_ACEOF
1221
1222
1223## ----------- ##
1224## Core tests. ##
1225## ----------- ##
1226
1227_ACEOF
1228
1229
1230# Keep a trace of the command line.
1231# Strip out --no-create and --no-recursion so they do not pile up.
1232# Strip out --silent because we don't want to record it for future runs.
1233# Also quote any args containing shell meta-characters.
1234# Make two passes to allow for proper duplicate-argument suppression.
1235ac_configure_args=
1236ac_configure_args0=
1237ac_configure_args1=
1238ac_sep=
1239ac_must_keep_next=false
1240for ac_pass in 1 2
1241do
1242 for ac_arg
1243 do
1244 case $ac_arg in
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac
1252 case $ac_pass in
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 2)
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1258 else
1259 case $ac_arg in
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 esac
1267 ;;
1268 -* ) ac_must_keep_next=true ;;
1269 esac
1270 fi
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1274 ;;
1275 esac
1276 done
1277done
1278$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281# When interrupted or exit'd, cleanup temporary files, and complete
1282# config.log. We remove comments because anyway the quotes in there
1283# would cause problems or look ugly.
1284# WARNING: Be sure not to use single quotes in there, as some shells,
1285# such as our DU 5.0 friend, will then `close' the trap.
1286trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1288 {
1289 echo
1290
1291 cat <<\_ASBOX
1292## ---------------- ##
1293## Cache variables. ##
1294## ---------------- ##
1295_ASBOX
1296 echo
1297 # The following way of writing the cache mishandles newlines in values,
1298{
1299 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 *ac_space=\ *)
1302 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 ;;
1306 *)
1307 sed -n \
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ;;
1310 esac;
1311}
1312 echo
1313
1314 cat <<\_ASBOX
1315## ----------------- ##
1316## Output variables. ##
1317## ----------------- ##
1318_ASBOX
1319 echo
1320 for ac_var in $ac_subst_vars
1321 do
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1324 done | sort
1325 echo
1326
1327 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX
1329## ------------- ##
1330## Output files. ##
1331## ------------- ##
1332_ASBOX
1333 echo
1334 for ac_var in $ac_subst_files
1335 do
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1340 fi
1341
1342 if test -s confdefs.h; then
1343 cat <<\_ASBOX
1344## ----------- ##
1345## confdefs.h. ##
1346## ----------- ##
1347_ASBOX
1348 echo
1349 sed "/^$/d" confdefs.h | sort
1350 echo
1351 fi
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1355 } >&5
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status
1359 ' 0
1360for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362done
1363ac_signal=0
1364
1365# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366rm -rf conftest* confdefs.h
1367# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368echo >confdefs.h
1369
1370# Predefined preprocessor variables.
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_NAME "$PACKAGE_NAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_VERSION "$PACKAGE_VERSION"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_STRING "$PACKAGE_STRING"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394_ACEOF
1395
1396
1397# Let the site file select an alternate cache file if it wants to.
1398# Prefer explicitly selected file to automatically selected ones.
1399if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 else
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 fi
1405fi
1406for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1412 fi
1413done
1414
1415if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1425 fi
1426else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1430fi
1431
1432# Check that the precious variables saved in the cache have kept the same
1433# value.
1434ac_cache_corrupted=false
1435for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1442 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,set)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,);;
1451 *)
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474done
1475if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1481fi
1482
1483ac_ext=c
1484ac_cpp='$CPP $CPPFLAGS'
1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1514
1515
1516>confdefs.h # Kill PACKAGE_ macros.
1517
1518LPATH="$PATH:/usr/local/bin"
1519
1520
1521am__api_version="1.9"
1522ac_aux_dir=
1523for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524 if test -f $ac_dir/install-sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break
1528 elif test -f $ac_dir/install.sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break
1532 elif test -f $ac_dir/shtool; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 break
1536 fi
1537done
1538if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541 { (exit 1); exit 1; }; }
1542fi
1543ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547# Find a good install program. We prefer a C program (faster),
1548# so one script is as good as another. But avoid the broken or
1549# incompatible versions:
1550# SysV /etc/install, /usr/sbin/install
1551# SunOS /usr/etc/install
1552# IRIX /sbin/install
1553# AIX /bin/install
1554# AmigaOS /C/install, which installs bootblocks on floppy discs
1555# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558# OS/2's system install, which has a completely different semantic
1559# ./install, which can be erroneously created by make from ./install.sh.
1560echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562if test -z "$INSTALL"; then
1563if test "${ac_cv_path_install+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 # Account for people who put trailing slashes in PATH elements.
1572case $as_dir/ in
1573 ./ | .// | /cC/* | \
1574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1576 /usr/ucb/* ) ;;
1577 *)
1578 # OSF1 and SCO ODT 3.0 have their own names for install.
1579 # Don't use installbsd from OSF since it installs stuff as root
1580 # by default.
1581 for ac_prog in ginstall scoinst install; do
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584 if test $ac_prog = install &&
1585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586 # AIX install. It has an incompatible calling convention.
1587 :
1588 elif test $ac_prog = install &&
1589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590 # program-specific install script used by HP pwplus--don't use.
1591 :
1592 else
1593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594 break 3
1595 fi
1596 fi
1597 done
1598 done
1599 ;;
1600esac
1601done
1602
1603
1604fi
1605 if test "${ac_cv_path_install+set}" = set; then
1606 INSTALL=$ac_cv_path_install
1607 else
1608 # As a last resort, use the slow shell script. We don't cache a
1609 # path for INSTALL within a source directory, because that will
1610 # break other packages using the cache if that directory is
1611 # removed, or if the path is relative.
1612 INSTALL=$ac_install_sh
1613 fi
1614fi
1615echo "$as_me:$LINENO: result: $INSTALL" >&5
1616echo "${ECHO_T}$INSTALL" >&6
1617
1618# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619# It thinks the first close brace ends the variable substitution.
1620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1621
1622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1623
1624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1625
1626echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1628# Just in case
1629sleep 1
1630echo timestamp > conftest.file
1631# Do `set' in a subshell so we don't clobber the current shell's
1632# arguments. Must try -L first in case configure is actually a
1633# symlink; some systems play weird games with the mod time of symlinks
1634# (eg FreeBSD returns the mod time of the symlink's containing
1635# directory).
1636if (
1637 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1638 if test "$*" = "X"; then
1639 # -L didn't work.
1640 set X `ls -t $srcdir/configure conftest.file`
1641 fi
1642 rm -f conftest.file
1643 if test "$*" != "X $srcdir/configure conftest.file" \
1644 && test "$*" != "X conftest.file $srcdir/configure"; then
1645
1646 # If neither matched, then we have a broken ls. This can happen
1647 # if, for instance, CONFIG_SHELL is bash and it inherits a
1648 # broken ls alias from the environment. This has actually
1649 # happened. Such a system could not be considered "sane".
1650 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1651alias in your environment" >&5
1652echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1653alias in your environment" >&2;}
1654 { (exit 1); exit 1; }; }
1655 fi
1656
1657 test "$2" = conftest.file
1658 )
1659then
1660 # Ok.
1661 :
1662else
1663 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664Check your system clock" >&5
1665echo "$as_me: error: newly created file is older than distributed files!
1666Check your system clock" >&2;}
1667 { (exit 1); exit 1; }; }
1668fi
1669echo "$as_me:$LINENO: result: yes" >&5
1670echo "${ECHO_T}yes" >&6
1671test "$program_prefix" != NONE &&
1672 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673# Use a double $ so make ignores it.
1674test "$program_suffix" != NONE &&
1675 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676# Double any \ or $. echo might interpret backslashes.
1677# By default was `s,x,x', remove it if useless.
1678cat <<\_ACEOF >conftest.sed
1679s/[\\$]/&&/g;s/;s,x,x,$//
1680_ACEOF
1681program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1682rm conftest.sed
1683
1684# expand $ac_aux_dir to an absolute path
1685am_aux_dir=`cd $ac_aux_dir && pwd`
1686
1687test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1688# Use eval to expand $SHELL
1689if eval "$MISSING --run true"; then
1690 am_missing_run="$MISSING --run "
1691else
1692 am_missing_run=
1693 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1694echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1695fi
1696
1697if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1698 # We used to keeping the `.' as first argument, in order to
1699 # allow $(mkdir_p) to be used without argument. As in
1700 # $(mkdir_p) $(somedir)
1701 # where $(somedir) is conditionally defined. However this is wrong
1702 # for two reasons:
1703 # 1. if the package is installed by a user who cannot write `.'
1704 # make install will fail,
1705 # 2. the above comment should most certainly read
1706 # $(mkdir_p) $(DESTDIR)$(somedir)
1707 # so it does not work when $(somedir) is undefined and
1708 # $(DESTDIR) is not.
1709 # To support the latter case, we have to write
1710 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1711 # so the `.' trick is pointless.
1712 mkdir_p='mkdir -p --'
1713else
1714 # On NextStep and OpenStep, the `mkdir' command does not
1715 # recognize any option. It will interpret all options as
1716 # directories to create, and then abort because `.' already
1717 # exists.
1718 for d in ./-p ./--version;
1719 do
1720 test -d $d && rmdir $d
1721 done
1722 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1723 if test -f "$ac_aux_dir/mkinstalldirs"; then
1724 mkdir_p='$(mkinstalldirs)'
1725 else
1726 mkdir_p='$(install_sh) -d'
1727 fi
1728fi
1729
1730for ac_prog in gawk mawk nawk awk
1731do
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733set dummy $ac_prog; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_AWK+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 if test -n "$AWK"; then
1740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_AWK="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753done
1754done
1755
1756fi
1757fi
1758AWK=$ac_cv_prog_AWK
1759if test -n "$AWK"; then
1760 echo "$as_me:$LINENO: result: $AWK" >&5
1761echo "${ECHO_T}$AWK" >&6
1762else
1763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767 test -n "$AWK" && break
1768done
1769
1770echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1771echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1772set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1773if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 cat >conftest.make <<\_ACEOF
1777all:
1778 @echo 'ac_maketemp="$(MAKE)"'
1779_ACEOF
1780# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1781eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1782if test -n "$ac_maketemp"; then
1783 eval ac_cv_prog_make_${ac_make}_set=yes
1784else
1785 eval ac_cv_prog_make_${ac_make}_set=no
1786fi
1787rm -f conftest.make
1788fi
1789if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1790 echo "$as_me:$LINENO: result: yes" >&5
1791echo "${ECHO_T}yes" >&6
1792 SET_MAKE=
1793else
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796 SET_MAKE="MAKE=${MAKE-make}"
1797fi
1798
1799rm -rf .tst 2>/dev/null
1800mkdir .tst 2>/dev/null
1801if test -d .tst; then
1802 am__leading_dot=.
1803else
1804 am__leading_dot=_
1805fi
1806rmdir .tst 2>/dev/null
1807
1808# test to see if srcdir already configured
1809if test "`cd $srcdir && pwd`" != "`pwd`" &&
1810 test -f $srcdir/config.status; then
1811 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1812echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1813 { (exit 1); exit 1; }; }
1814fi
1815
1816# test whether we have cygpath
1817if test -z "$CYGPATH_W"; then
1818 if (cygpath --version) >/dev/null 2>/dev/null; then
1819 CYGPATH_W='cygpath -w'
1820 else
1821 CYGPATH_W=echo
1822 fi
1823fi
1824
1825
1826# Define the identity of the package.
1827 PACKAGE='libuserdb'
1828 VERSION='0.10'
1829
1830
1831# Some tools Automake needs.
1832
1833ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1834
1835
1836AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1837
1838
1839AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1840
1841
1842AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1843
1844
1845MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1846
1847install_sh=${install_sh-"$am_aux_dir/install-sh"}
1848
1849# Installed binaries are usually stripped using `strip' when the user
1850# run `make install-strip'. However `strip' might not be the right
1851# tool to use in cross-compilation environments, therefore Automake
1852# will honor the `STRIP' environment variable to overrule this program.
1853if test "$cross_compiling" != no; then
1854 if test -n "$ac_tool_prefix"; then
1855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1856set dummy ${ac_tool_prefix}strip; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_STRIP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862 if test -n "$STRIP"; then
1863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876done
1877done
1878
1879fi
1880fi
1881STRIP=$ac_cv_prog_STRIP
1882if test -n "$STRIP"; then
1883 echo "$as_me:$LINENO: result: $STRIP" >&5
1884echo "${ECHO_T}$STRIP" >&6
1885else
1886 echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890fi
1891if test -z "$ac_cv_prog_STRIP"; then
1892 ac_ct_STRIP=$STRIP
1893 # Extract the first word of "strip", so it can be a program name with args.
1894set dummy strip; ac_word=$2
1895echo "$as_me:$LINENO: checking for $ac_word" >&5
1896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899else
1900 if test -n "$ac_ct_STRIP"; then
1901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1902else
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_ac_ct_STRIP="strip"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914done
1915done
1916
1917 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1918fi
1919fi
1920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1921if test -n "$ac_ct_STRIP"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1923echo "${ECHO_T}$ac_ct_STRIP" >&6
1924else
1925 echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929 STRIP=$ac_ct_STRIP
1930else
1931 STRIP="$ac_cv_prog_STRIP"
1932fi
1933
1934fi
1935INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1936
1937# We need awk for the "check" target. The system "awk" is bad on
1938# some platforms.
1939# Always define AMTAR for backward compatibility.
1940
1941AMTAR=${AMTAR-"${am_missing_run}tar"}
1942
1943am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1944
1945
1946
1947
1948
1949
1950for ac_prog in gawk mawk nawk awk
1951do
1952 # Extract the first word of "$ac_prog", so it can be a program name with args.
1953set dummy $ac_prog; ac_word=$2
1954echo "$as_me:$LINENO: checking for $ac_word" >&5
1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956if test "${ac_cv_prog_AWK+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 if test -n "$AWK"; then
1960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1961else
1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963for as_dir in $PATH
1964do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_AWK="$ac_prog"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973done
1974done
1975
1976fi
1977fi
1978AWK=$ac_cv_prog_AWK
1979if test -n "$AWK"; then
1980 echo "$as_me:$LINENO: result: $AWK" >&5
1981echo "${ECHO_T}$AWK" >&6
1982else
1983 echo "$as_me:$LINENO: result: no" >&5
1984echo "${ECHO_T}no" >&6
1985fi
1986
1987 test -n "$AWK" && break
1988done
1989
1990ac_ext=c
1991ac_cpp='$CPP $CPPFLAGS'
1992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2016 fi
2017done
2018done
2019
2020fi
2021fi
2022CC=$ac_cv_prog_CC
2023if test -n "$CC"; then
2024 echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6
2026else
2027 echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031fi
2032if test -z "$ac_cv_prog_CC"; then
2033 ac_ct_CC=$CC
2034 # Extract the first word of "gcc", so it can be a program name with args.
2035set dummy gcc; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041 if test -n "$ac_ct_CC"; then
2042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_CC="gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055done
2056done
2057
2058fi
2059fi
2060ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061if test -n "$ac_ct_CC"; then
2062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063echo "${ECHO_T}$ac_ct_CC" >&6
2064else
2065 echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069 CC=$ac_ct_CC
2070else
2071 CC="$ac_cv_prog_CC"
2072fi
2073
2074if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2077set dummy ${ac_tool_prefix}cc; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_CC="${ac_tool_prefix}cc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
2099
2100fi
2101fi
2102CC=$ac_cv_prog_CC
2103if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5
2105echo "${ECHO_T}$CC" >&6
2106else
2107 echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
2109fi
2110
2111fi
2112if test -z "$ac_cv_prog_CC"; then
2113 ac_ct_CC=$CC
2114 # Extract the first word of "cc", so it can be a program name with args.
2115set dummy cc; ac_word=$2
2116echo "$as_me:$LINENO: checking for $ac_word" >&5
2117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123else
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135done
2136done
2137
2138fi
2139fi
2140ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143echo "${ECHO_T}$ac_ct_CC" >&6
2144else
2145 echo "$as_me:$LINENO: result: no" >&5
2146echo "${ECHO_T}no" >&6
2147fi
2148
2149 CC=$ac_ct_CC
2150else
2151 CC="$ac_cv_prog_CC"
2152fi
2153
2154fi
2155if test -z "$CC"; then
2156 # Extract the first word of "cc", so it can be a program name with args.
2157set dummy cc; ac_word=$2
2158echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2165else
2166 ac_prog_rejected=no
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2175 ac_prog_rejected=yes
2176 continue
2177 fi
2178 ac_cv_prog_CC="cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2181 fi
2182done
2183done
2184
2185if test $ac_prog_rejected = yes; then
2186 # We found a bogon in the path, so make sure we never use it.
2187 set dummy $ac_cv_prog_CC
2188 shift
2189 if test $# != 0; then
2190 # We chose a different compiler from the bogus one.
2191 # However, it has the same basename, so the bogon will be chosen
2192 # first if we set CC to just the basename; use the full file name.
2193 shift
2194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2195 fi
2196fi
2197fi
2198fi
2199CC=$ac_cv_prog_CC
2200if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202echo "${ECHO_T}$CC" >&6
2203else
2204 echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6
2206fi
2207
2208fi
2209if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2211 for ac_prog in cl
2212 do
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2233 fi
2234done
2235done
2236
2237fi
2238fi
2239CC=$ac_cv_prog_CC
2240if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242echo "${ECHO_T}$CC" >&6
2243else
2244 echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6
2246fi
2247
2248 test -n "$CC" && break
2249 done
2250fi
2251if test -z "$CC"; then
2252 ac_ct_CC=$CC
2253 for ac_prog in cl
2254do
2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256set dummy $ac_prog; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264else
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276done
2277done
2278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284echo "${ECHO_T}$ac_ct_CC" >&6
2285else
2286 echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
2288fi
2289
2290 test -n "$ac_ct_CC" && break
2291done
2292
2293 CC=$ac_ct_CC
2294fi
2295
2296fi
2297
2298
2299test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2300See \`config.log' for more details." >&5
2301echo "$as_me: error: no acceptable C compiler found in \$PATH
2302See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2304
2305# Provide some information about the compiler.
2306echo "$as_me:$LINENO:" \
2307 "checking for C compiler version" >&5
2308ac_compiler=`set X $ac_compile; echo $2`
2309{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2310 (eval $ac_compiler --version </dev/null >&5) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
2314{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2315 (eval $ac_compiler -v </dev/null >&5) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2320 (eval $ac_compiler -V </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324
2325cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h. */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
2330/* end confdefs.h. */
2331
2332int
2333main ()
2334{
2335
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340ac_clean_files_save=$ac_clean_files
2341ac_clean_files="$ac_clean_files a.out a.exe b.out"
2342# Try to create an executable without -o first, disregard a.out.
2343# It will help us diagnose broken compilers, and finding out an intuition
2344# of exeext.
2345echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2346echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2347ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2348if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2349 (eval $ac_link_default) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 # Find the output, starting from the most likely. This scheme is
2354# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2355# resort.
2356
2357# Be careful to initialize this variable, since it used to be cached.
2358# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2359ac_cv_exeext=
2360# b.out is created by i960 compilers.
2361for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2362do
2363 test -f "$ac_file" || continue
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2366 ;;
2367 conftest.$ac_ext )
2368 # This is the source file.
2369 ;;
2370 [ab].out )
2371 # We found the default executable, but exeext='' is most
2372 # certainly right.
2373 break;;
2374 *.* )
2375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 # FIXME: I believe we export ac_cv_exeext for Libtool,
2377 # but it would be cool to find out if it's true. Does anybody
2378 # maintain Libtool? --akim.
2379 export ac_cv_exeext
2380 break;;
2381 * )
2382 break;;
2383 esac
2384done
2385else
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: C compiler cannot create executables
2392See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2394fi
2395
2396ac_exeext=$ac_cv_exeext
2397echo "$as_me:$LINENO: result: $ac_file" >&5
2398echo "${ECHO_T}$ac_file" >&6
2399
2400# Check the compiler produces executables we can run. If not, either
2401# the compiler is broken, or we cross compile.
2402echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2404# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405# If not cross compiling, check that we can run a simple program.
2406if test "$cross_compiling" != yes; then
2407 if { ac_try='./$ac_file'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 cross_compiling=no
2414 else
2415 if test "$cross_compiling" = maybe; then
2416 cross_compiling=yes
2417 else
2418 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2419If you meant to cross compile, use \`--host'.
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: cannot run C compiled programs.
2422If you meant to cross compile, use \`--host'.
2423See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2425 fi
2426 fi
2427fi
2428echo "$as_me:$LINENO: result: yes" >&5
2429echo "${ECHO_T}yes" >&6
2430
2431rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432ac_clean_files=$ac_clean_files_save
2433# Check the compiler produces executables we can run. If not, either
2434# the compiler is broken, or we cross compile.
2435echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2437echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438echo "${ECHO_T}$cross_compiling" >&6
2439
2440echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2449# work properly (i.e., refer to `conftest.exe'), while it won't with
2450# `rm'.
2451for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 export ac_cv_exeext
2457 break;;
2458 * ) break;;
2459 esac
2460done
2461else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2463See \`config.log' for more details." >&5
2464echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2467fi
2468
2469rm -f conftest$ac_cv_exeext
2470echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6
2472
2473rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT
2476echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2478if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */
2487
2488int
2489main ()
2490{
2491
2492 ;
2493 return 0;
2494}
2495_ACEOF
2496rm -f conftest.o conftest.obj
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2503 case $ac_file in
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2506 break;;
2507 esac
2508done
2509else
2510 echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2514See \`config.log' for more details." >&5
2515echo "$as_me: error: cannot compute suffix of object files: cannot compile
2516See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
2518fi
2519
2520rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521fi
2522echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2523echo "${ECHO_T}$ac_cv_objext" >&6
2524OBJEXT=$ac_cv_objext
2525ac_objext=$OBJEXT
2526echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2527echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2528if test "${ac_cv_c_compiler_gnu+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531 cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h. */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h. */
2537
2538int
2539main ()
2540{
2541#ifndef __GNUC__
2542 choke me
2543#endif
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_compiler_gnu=yes
2572else
2573 echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576ac_compiler_gnu=no
2577fi
2578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580
2581fi
2582echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2583echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2584GCC=`test $ac_compiler_gnu = yes && echo yes`
2585ac_test_CFLAGS=${CFLAGS+set}
2586ac_save_CFLAGS=$CFLAGS
2587CFLAGS="-g"
2588echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2589echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2590if test "${ac_cv_prog_cc_g+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
2599
2600int
2601main ()
2602{
2603
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_prog_cc_g=yes
2631else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635ac_cv_prog_cc_g=no
2636fi
2637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2641if test "$ac_test_CFLAGS" = set; then
2642 CFLAGS=$ac_save_CFLAGS
2643elif test $ac_cv_prog_cc_g = yes; then
2644 if test "$GCC" = yes; then
2645 CFLAGS="-g -O2"
2646 else
2647 CFLAGS="-g"
2648 fi
2649else
2650 if test "$GCC" = yes; then
2651 CFLAGS="-O2"
2652 else
2653 CFLAGS=
2654 fi
2655fi
2656echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2657echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2658if test "${ac_cv_prog_cc_stdc+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 ac_cv_prog_cc_stdc=no
2662ac_save_CC=$CC
2663cat >conftest.$ac_ext <<_ACEOF
2664/* confdefs.h. */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
2668/* end confdefs.h. */
2669#include <stdarg.h>
2670#include <stdio.h>
2671#include <sys/types.h>
2672#include <sys/stat.h>
2673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2674struct buf { int x; };
2675FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676static char *e (p, i)
2677 char **p;
2678 int i;
2679{
2680 return p[i];
2681}
2682static char *f (char * (*g) (char **, int), char **p, ...)
2683{
2684 char *s;
2685 va_list v;
2686 va_start (v,p);
2687 s = g (p, va_arg (v,int));
2688 va_end (v);
2689 return s;
2690}
2691
2692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2693 function prototypes and stuff, but not '\xHH' hex character constants.
2694 These don't provoke an error unfortunately, instead are silently treated
2695 as 'x'. The following induces an error, until -std1 is added to get
2696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2697 array size at least. It's necessary to write '\x00'==0 to get something
2698 that's true only with -std1. */
2699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700
2701int test (int i, double x);
2702struct s1 {int (*f) (int a);};
2703struct s2 {int (*f) (double a);};
2704int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2705int argc;
2706char **argv;
2707int
2708main ()
2709{
2710return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715# Don't try gcc -ansi; that turns off useful extensions and
2716# breaks some systems' header files.
2717# AIX -qlanglvl=ansi
2718# Ultrix and OSF/1 -std1
2719# HP-UX 10.20 and later -Ae
2720# HP-UX older versions -Aa -D_HPUX_SOURCE
2721# SVR4 -Xc -D__EXTENSIONS__
2722for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723do
2724 CC="$ac_save_CC $ac_arg"
2725 rm -f conftest.$ac_objext
2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_prog_cc_stdc=$ac_arg
2748break
2749else
2750 echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753fi
2754rm -f conftest.err conftest.$ac_objext
2755done
2756rm -f conftest.$ac_ext conftest.$ac_objext
2757CC=$ac_save_CC
2758
2759fi
2760
2761case "x$ac_cv_prog_cc_stdc" in
2762 x|xno)
2763 echo "$as_me:$LINENO: result: none needed" >&5
2764echo "${ECHO_T}none needed" >&6 ;;
2765 *)
2766 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2767echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2768 CC="$CC $ac_cv_prog_cc_stdc" ;;
2769esac
2770
2771# Some people use a C++ compiler to compile C. Since we use `exit',
2772# in C++ we need to declare it. In case someone uses the same compiler
2773# for both compiling C and C++ we need to have the C++ compiler decide
2774# the declaration of exit, since it's the most demanding environment.
2775cat >conftest.$ac_ext <<_ACEOF
2776#ifndef __cplusplus
2777 choke me
2778#endif
2779_ACEOF
2780rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2809do
2810 cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816$ac_declaration
2817#include <stdlib.h>
2818int
2819main ()
2820{
2821exit (42);
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext
2827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 :
2849else
2850 echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853continue
2854fi
2855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h. */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h. */
2862$ac_declaration
2863int
2864main ()
2865{
2866exit (42);
2867 ;
2868 return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext
2872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 break
2894else
2895 echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900done
2901rm -f conftest*
2902if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2906fi
2907
2908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912fi
2913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919DEPDIR="${am__leading_dot}deps"
2920
2921 ac_config_commands="$ac_config_commands depfiles"
2922
2923
2924am_make=${MAKE-make}
2925cat > confinc << 'END'
2926am__doit:
2927 @echo done
2928.PHONY: am__doit
2929END
2930# If we don't find an include directive, just comment out the code.
2931echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2932echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2933am__include="#"
2934am__quote=
2935_am_result=none
2936# First try GNU make style include.
2937echo "include confinc" > confmf
2938# We grep out `Entering directory' and `Leaving directory'
2939# messages which can occur if `w' ends up in MAKEFLAGS.
2940# In particular we don't look at `^make:' because GNU make might
2941# be invoked under some other name (usually "gmake"), in which
2942# case it prints its new name instead of `make'.
2943if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2944 am__include=include
2945 am__quote=
2946 _am_result=GNU
2947fi
2948# Now try BSD make style include.
2949if test "$am__include" = "#"; then
2950 echo '.include "confinc"' > confmf
2951 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2952 am__include=.include
2953 am__quote="\""
2954 _am_result=BSD
2955 fi
2956fi
2957
2958
2959echo "$as_me:$LINENO: result: $_am_result" >&5
2960echo "${ECHO_T}$_am_result" >&6
2961rm -f confinc confmf
2962
2963# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2964if test "${enable_dependency_tracking+set}" = set; then
2965 enableval="$enable_dependency_tracking"
2966
2967fi;
2968if test "x$enable_dependency_tracking" != xno; then
2969 am_depcomp="$ac_aux_dir/depcomp"
2970 AMDEPBACKSLASH='\'
2971fi
2972
2973
2974if test "x$enable_dependency_tracking" != xno; then
2975 AMDEP_TRUE=
2976 AMDEP_FALSE='#'
2977else
2978 AMDEP_TRUE='#'
2979 AMDEP_FALSE=
2980fi
2981
2982
2983
2984
2985depcc="$CC" am_compiler_list=
2986
2987echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2988echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2989if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2993 # We make a subdir and do the tests there. Otherwise we can end up
2994 # making bogus files that we don't know about and never remove. For
2995 # instance it was reported that on HP-UX the gcc test will end up
2996 # making a dummy file named `D' -- because `-MD' means `put the output
2997 # in D'.
2998 mkdir conftest.dir
2999 # Copy depcomp to subdir because otherwise we won't find it if we're
3000 # using a relative directory.
3001 cp "$am_depcomp" conftest.dir
3002 cd conftest.dir
3003 # We will build objects and dependencies in a subdirectory because
3004 # it helps to detect inapplicable dependency modes. For instance
3005 # both Tru64's cc and ICC support -MD to output dependencies as a
3006 # side effect of compilation, but ICC will put the dependencies in
3007 # the current directory while Tru64 will put them in the object
3008 # directory.
3009 mkdir sub
3010
3011 am_cv_CC_dependencies_compiler_type=none
3012 if test "$am_compiler_list" = ""; then
3013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3014 fi
3015 for depmode in $am_compiler_list; do
3016 # Setup a source with many dependencies, because some compilers
3017 # like to wrap large dependency lists on column 80 (with \), and
3018 # we should not choose a depcomp mode which is confused by this.
3019 #
3020 # We need to recreate these files for each test, as the compiler may
3021 # overwrite some of them when testing with obscure command lines.
3022 # This happens at least with the AIX C compiler.
3023 : > sub/conftest.c
3024 for i in 1 2 3 4 5 6; do
3025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3026 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3027 # Solaris 8's {/usr,}/bin/sh.
3028 touch sub/conftst$i.h
3029 done
3030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3031
3032 case $depmode in
3033 nosideeffect)
3034 # after this tag, mechanisms are not by side-effect, so they'll
3035 # only be used when explicitly requested
3036 if test "x$enable_dependency_tracking" = xyes; then
3037 continue
3038 else
3039 break
3040 fi
3041 ;;
3042 none) break ;;
3043 esac
3044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3045 # mode. It turns out that the SunPro C++ compiler does not properly
3046 # handle `-M -o', and we need to detect this.
3047 if depmode=$depmode \
3048 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3050 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3051 >/dev/null 2>conftest.err &&
3052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3053 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3055 # icc doesn't choke on unknown options, it will just issue warnings
3056 # or remarks (even with -Werror). So we grep stderr for any message
3057 # that says an option was ignored or not supported.
3058 # When given -MP, icc 7.0 and 7.1 complain thusly:
3059 # icc: Command line warning: ignoring option '-M'; no argument required
3060 # The diagnosis changed in icc 8.0:
3061 # icc: Command line remark: option '-MP' not supported
3062 if (grep 'ignoring option' conftest.err ||
3063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3064 am_cv_CC_dependencies_compiler_type=$depmode
3065 break
3066 fi
3067 fi
3068 done
3069
3070 cd ..
3071 rm -rf conftest.dir
3072else
3073 am_cv_CC_dependencies_compiler_type=none
3074fi
3075
3076fi
3077echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3078echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3079CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3080
3081
3082
3083if
3084 test "x$enable_dependency_tracking" != xno \
3085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3086 am__fastdepCC_TRUE=
3087 am__fastdepCC_FALSE='#'
3088else
3089 am__fastdepCC_TRUE='#'
3090 am__fastdepCC_FALSE=
3091fi
3092
3093
3094# Find a good install program. We prefer a C program (faster),
3095# so one script is as good as another. But avoid the broken or
3096# incompatible versions:
3097# SysV /etc/install, /usr/sbin/install
3098# SunOS /usr/etc/install
3099# IRIX /sbin/install
3100# AIX /bin/install
3101# AmigaOS /C/install, which installs bootblocks on floppy discs
3102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105# OS/2's system install, which has a completely different semantic
3106# ./install, which can be erroneously created by make from ./install.sh.
3107echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3109if test -z "$INSTALL"; then
3110if test "${ac_cv_path_install+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 # Account for people who put trailing slashes in PATH elements.
3119case $as_dir/ in
3120 ./ | .// | /cC/* | \
3121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3123 /usr/ucb/* ) ;;
3124 *)
3125 # OSF1 and SCO ODT 3.0 have their own names for install.
3126 # Don't use installbsd from OSF since it installs stuff as root
3127 # by default.
3128 for ac_prog in ginstall scoinst install; do
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3131 if test $ac_prog = install &&
3132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3133 # AIX install. It has an incompatible calling convention.
3134 :
3135 elif test $ac_prog = install &&
3136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3137 # program-specific install script used by HP pwplus--don't use.
3138 :
3139 else
3140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3141 break 3
3142 fi
3143 fi
3144 done
3145 done
3146 ;;
3147esac
3148done
3149
3150
3151fi
3152 if test "${ac_cv_path_install+set}" = set; then
3153 INSTALL=$ac_cv_path_install
3154 else
3155 # As a last resort, use the slow shell script. We don't cache a
3156 # path for INSTALL within a source directory, because that will
3157 # break other packages using the cache if that directory is
3158 # removed, or if the path is relative.
3159 INSTALL=$ac_install_sh
3160 fi
3161fi
3162echo "$as_me:$LINENO: result: $INSTALL" >&5
3163echo "${ECHO_T}$INSTALL" >&6
3164
3165# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3166# It thinks the first close brace ends the variable substitution.
3167test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3168
3169test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3170
3171test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3172
3173echo "$as_me:$LINENO: checking whether ln -s works" >&5
3174echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3175LN_S=$as_ln_s
3176if test "$LN_S" = "ln -s"; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179else
3180 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3181echo "${ECHO_T}no, using $LN_S" >&6
3182fi
3183
3184# Check whether --enable-shared or --disable-shared was given.
3185if test "${enable_shared+set}" = set; then
3186 enableval="$enable_shared"
3187 p=${PACKAGE-default}
3188 case $enableval in
3189 yes) enable_shared=yes ;;
3190 no) enable_shared=no ;;
3191 *)
3192 enable_shared=no
3193 # Look at the argument we got. We use all the common list separators.
3194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3195 for pkg in $enableval; do
3196 IFS="$lt_save_ifs"
3197 if test "X$pkg" = "X$p"; then
3198 enable_shared=yes
3199 fi
3200 done
3201 IFS="$lt_save_ifs"
3202 ;;
3203 esac
3204else
3205 enable_shared=yes
3206fi;
3207
3208# Check whether --enable-static or --disable-static was given.
3209if test "${enable_static+set}" = set; then
3210 enableval="$enable_static"
3211 p=${PACKAGE-default}
3212 case $enableval in
3213 yes) enable_static=yes ;;
3214 no) enable_static=no ;;
3215 *)
3216 enable_static=no
3217 # Look at the argument we got. We use all the common list separators.
3218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3219 for pkg in $enableval; do
3220 IFS="$lt_save_ifs"
3221 if test "X$pkg" = "X$p"; then
3222 enable_static=yes
3223 fi
3224 done
3225 IFS="$lt_save_ifs"
3226 ;;
3227 esac
3228else
3229 enable_static=yes
3230fi;
3231
3232# Check whether --enable-fast-install or --disable-fast-install was given.
3233if test "${enable_fast_install+set}" = set; then
3234 enableval="$enable_fast_install"
3235 p=${PACKAGE-default}
3236 case $enableval in
3237 yes) enable_fast_install=yes ;;
3238 no) enable_fast_install=no ;;
3239 *)
3240 enable_fast_install=no
3241 # Look at the argument we got. We use all the common list separators.
3242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3243 for pkg in $enableval; do
3244 IFS="$lt_save_ifs"
3245 if test "X$pkg" = "X$p"; then
3246 enable_fast_install=yes
3247 fi
3248 done
3249 IFS="$lt_save_ifs"
3250 ;;
3251 esac
3252else
3253 enable_fast_install=yes
3254fi;
3255
3256# Make sure we can run config.sub.
3257$ac_config_sub sun4 >/dev/null 2>&1 ||
3258 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3259echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3260 { (exit 1); exit 1; }; }
3261
3262echo "$as_me:$LINENO: checking build system type" >&5
3263echo $ECHO_N "checking build system type... $ECHO_C" >&6
3264if test "${ac_cv_build+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267 ac_cv_build_alias=$build_alias
3268test -z "$ac_cv_build_alias" &&
3269 ac_cv_build_alias=`$ac_config_guess`
3270test -z "$ac_cv_build_alias" &&
3271 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3272echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3273 { (exit 1); exit 1; }; }
3274ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3275 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3276echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3277 { (exit 1); exit 1; }; }
3278
3279fi
3280echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3281echo "${ECHO_T}$ac_cv_build" >&6
3282build=$ac_cv_build
3283build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3284build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3285build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3286
3287
3288echo "$as_me:$LINENO: checking host system type" >&5
3289echo $ECHO_N "checking host system type... $ECHO_C" >&6
3290if test "${ac_cv_host+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 ac_cv_host_alias=$host_alias
3294test -z "$ac_cv_host_alias" &&
3295 ac_cv_host_alias=$ac_cv_build_alias
3296ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3297 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3298echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3299 { (exit 1); exit 1; }; }
3300
3301fi
3302echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3303echo "${ECHO_T}$ac_cv_host" >&6
3304host=$ac_cv_host
3305host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3306host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3307host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3308
3309
3310echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3311echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3312if test "${lt_cv_path_SED+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315 # Loop through the user's path and test for sed and gsed.
3316# Then use that list of sed's as ones to test for truncation.
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for lt_ac_prog in sed gsed; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3325 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3326 fi
3327 done
3328 done
3329done
3330IFS=$as_save_IFS
3331lt_ac_max=0
3332lt_ac_count=0
3333# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3334# along with /bin/sed that truncates output.
3335for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3336 test ! -f $lt_ac_sed && continue
3337 cat /dev/null > conftest.in
3338 lt_ac_count=0
3339 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3340 # Check for GNU sed and select it if it is found.
3341 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3342 lt_cv_path_SED=$lt_ac_sed
3343 break
3344 fi
3345 while true; do
3346 cat conftest.in conftest.in >conftest.tmp
3347 mv conftest.tmp conftest.in
3348 cp conftest.in conftest.nl
3349 echo >>conftest.nl
3350 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3351 cmp -s conftest.out conftest.nl || break
3352 # 10000 chars as input seems more than enough
3353 test $lt_ac_count -gt 10 && break
3354 lt_ac_count=`expr $lt_ac_count + 1`
3355 if test $lt_ac_count -gt $lt_ac_max; then
3356 lt_ac_max=$lt_ac_count
3357 lt_cv_path_SED=$lt_ac_sed
3358 fi
3359 done
3360done
3361
3362fi
3363
3364SED=$lt_cv_path_SED
3365
3366echo "$as_me:$LINENO: result: $SED" >&5
3367echo "${ECHO_T}$SED" >&6
3368
3369echo "$as_me:$LINENO: checking for egrep" >&5
3370echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3371if test "${ac_cv_prog_egrep+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3375 then ac_cv_prog_egrep='grep -E'
3376 else ac_cv_prog_egrep='egrep'
3377 fi
3378fi
3379echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3380echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3381 EGREP=$ac_cv_prog_egrep
3382
3383
3384
3385# Check whether --with-gnu-ld or --without-gnu-ld was given.
3386if test "${with_gnu_ld+set}" = set; then
3387 withval="$with_gnu_ld"
3388 test "$withval" = no || with_gnu_ld=yes
3389else
3390 with_gnu_ld=no
3391fi;
3392ac_prog=ld
3393if test "$GCC" = yes; then
3394 # Check if gcc -print-prog-name=ld gives a path.
3395 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3396echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3397 case $host in
3398 *-*-mingw*)
3399 # gcc leaves a trailing carriage return which upsets mingw
3400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3401 *)
3402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3403 esac
3404 case $ac_prog in
3405 # Accept absolute paths.
3406 [\\/]* | ?:[\\/]*)
3407 re_direlt='/[^/][^/]*/\.\./'
3408 # Canonicalize the pathname of ld
3409 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3410 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3411 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3412 done
3413 test -z "$LD" && LD="$ac_prog"
3414 ;;
3415 "")
3416 # If it fails, then pretend we aren't using GCC.
3417 ac_prog=ld
3418 ;;
3419 *)
3420 # If it is relative, then search for the first ld in PATH.
3421 with_gnu_ld=unknown
3422 ;;
3423 esac
3424elif test "$with_gnu_ld" = yes; then
3425 echo "$as_me:$LINENO: checking for GNU ld" >&5
3426echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3427else
3428 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3429echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3430fi
3431if test "${lt_cv_path_LD+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 if test -z "$LD"; then
3435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3436 for ac_dir in $PATH; do
3437 IFS="$lt_save_ifs"
3438 test -z "$ac_dir" && ac_dir=.
3439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3440 lt_cv_path_LD="$ac_dir/$ac_prog"
3441 # Check to see if the program is GNU ld. I'd rather use --version,
3442 # but apparently some variants of GNU ld only accept -v.
3443 # Break only if it was the GNU/non-GNU ld that we prefer.
3444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3445 *GNU* | *'with BFD'*)
3446 test "$with_gnu_ld" != no && break
3447 ;;
3448 *)
3449 test "$with_gnu_ld" != yes && break
3450 ;;
3451 esac
3452 fi
3453 done
3454 IFS="$lt_save_ifs"
3455else
3456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3457fi
3458fi
3459
3460LD="$lt_cv_path_LD"
3461if test -n "$LD"; then
3462 echo "$as_me:$LINENO: result: $LD" >&5
3463echo "${ECHO_T}$LD" >&6
3464else
3465 echo "$as_me:$LINENO: result: no" >&5
3466echo "${ECHO_T}no" >&6
3467fi
3468test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3469echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3470 { (exit 1); exit 1; }; }
3471echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3472echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3473if test "${lt_cv_prog_gnu_ld+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3477case `$LD -v 2>&1 </dev/null` in
3478*GNU* | *'with BFD'*)
3479 lt_cv_prog_gnu_ld=yes
3480 ;;
3481*)
3482 lt_cv_prog_gnu_ld=no
3483 ;;
3484esac
3485fi
3486echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3487echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3488with_gnu_ld=$lt_cv_prog_gnu_ld
3489
3490
3491echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3492echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3493if test "${lt_cv_ld_reload_flag+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 lt_cv_ld_reload_flag='-r'
3497fi
3498echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3499echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3500reload_flag=$lt_cv_ld_reload_flag
3501case $reload_flag in
3502"" | " "*) ;;
3503*) reload_flag=" $reload_flag" ;;
3504esac
3505reload_cmds='$LD$reload_flag -o $output$reload_objs'
3506case $host_os in
3507 darwin*)
3508 if test "$GCC" = yes; then
3509 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3510 else
3511 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3512 fi
3513 ;;
3514esac
3515
3516echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3517echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3518if test "${lt_cv_path_NM+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521 if test -n "$NM"; then
3522 # Let the user override the test.
3523 lt_cv_path_NM="$NM"
3524else
3525 lt_nm_to_check="${ac_tool_prefix}nm"
3526 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3527 lt_nm_to_check="$lt_nm_to_check nm"
3528 fi
3529 for lt_tmp_nm in $lt_nm_to_check; do
3530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3531 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3532 IFS="$lt_save_ifs"
3533 test -z "$ac_dir" && ac_dir=.
3534 tmp_nm="$ac_dir/$lt_tmp_nm"
3535 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3536 # Check to see if the nm accepts a BSD-compat flag.
3537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3538 # nm: unknown option "B" ignored
3539 # Tru64's nm complains that /dev/null is an invalid object file
3540 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3541 */dev/null* | *'Invalid file or object type'*)
3542 lt_cv_path_NM="$tmp_nm -B"
3543 break
3544 ;;
3545 *)
3546 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3547 */dev/null*)
3548 lt_cv_path_NM="$tmp_nm -p"
3549 break
3550 ;;
3551 *)
3552 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3553 continue # so that we can try to find one that supports BSD flags
3554 ;;
3555 esac
3556 ;;
3557 esac
3558 fi
3559 done
3560 IFS="$lt_save_ifs"
3561 done
3562 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3563fi
3564fi
3565echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3566echo "${ECHO_T}$lt_cv_path_NM" >&6
3567NM="$lt_cv_path_NM"
3568
3569echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3570echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3571if test "${lt_cv_deplibs_check_method+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574 lt_cv_file_magic_cmd='$MAGIC_CMD'
3575lt_cv_file_magic_test_file=
3576lt_cv_deplibs_check_method='unknown'
3577# Need to set the preceding variable on all platforms that support
3578# interlibrary dependencies.
3579# 'none' -- dependencies not supported.
3580# `unknown' -- same as none, but documents that we really don't know.
3581# 'pass_all' -- all dependencies passed with no checks.
3582# 'test_compile' -- check by making test program.
3583# 'file_magic [[regex]]' -- check by looking for files in library path
3584# which responds to the $file_magic_cmd with a given extended regex.
3585# If you have `file' or equivalent on your system and you're not sure
3586# whether `pass_all' will *always* work, you probably want this one.
3587
3588case $host_os in
3589aix4* | aix5*)
3590 lt_cv_deplibs_check_method=pass_all
3591 ;;
3592
3593beos*)
3594 lt_cv_deplibs_check_method=pass_all
3595 ;;
3596
3597bsdi[45]*)
3598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3599 lt_cv_file_magic_cmd='/usr/bin/file -L'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 ;;
3602
3603cygwin*)
3604 # func_win32_libid is a shell function defined in ltmain.sh
3605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3606 lt_cv_file_magic_cmd='func_win32_libid'
3607 ;;
3608
3609mingw* | pw32*)
3610 # Base MSYS/MinGW do not provide the 'file' command needed by
3611 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3613 lt_cv_file_magic_cmd='$OBJDUMP -f'
3614 ;;
3615
3616darwin* | rhapsody*)
3617 lt_cv_deplibs_check_method=pass_all
3618 ;;
3619
3620freebsd* | kfreebsd*-gnu | dragonfly*)
3621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3622 case $host_cpu in
3623 i*86 )
3624 # Not sure whether the presence of OpenBSD here was a mistake.
3625 # Let's accept both of them until this is cleared up.
3626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3627 lt_cv_file_magic_cmd=/usr/bin/file
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3629 ;;
3630 esac
3631 else
3632 lt_cv_deplibs_check_method=pass_all
3633 fi
3634 ;;
3635
3636gnu*)
3637 lt_cv_deplibs_check_method=pass_all
3638 ;;
3639
3640hpux10.20* | hpux11*)
3641 lt_cv_file_magic_cmd=/usr/bin/file
3642 case $host_cpu in
3643 ia64*)
3644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3646 ;;
3647 hppa*64*)
3648 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]'
3649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3650 ;;
3651 *)
3652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3654 ;;
3655 esac
3656 ;;
3657
3658interix3*)
3659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3661 ;;
3662
3663irix5* | irix6* | nonstopux*)
3664 case $LD in
3665 *-32|*"-32 ") libmagic=32-bit;;
3666 *-n32|*"-n32 ") libmagic=N32;;
3667 *-64|*"-64 ") libmagic=64-bit;;
3668 *) libmagic=never-match;;
3669 esac
3670 lt_cv_deplibs_check_method=pass_all
3671 ;;
3672
3673# This must be Linux ELF.
3674linux*)
3675 lt_cv_deplibs_check_method=pass_all
3676 ;;
3677
3678netbsd*)
3679 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3681 else
3682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3683 fi
3684 ;;
3685
3686newos6*)
3687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3688 lt_cv_file_magic_cmd=/usr/bin/file
3689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3690 ;;
3691
3692nto-qnx*)
3693 lt_cv_deplibs_check_method=unknown
3694 ;;
3695
3696openbsd*)
3697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3699 else
3700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3701 fi
3702 ;;
3703
3704osf3* | osf4* | osf5*)
3705 lt_cv_deplibs_check_method=pass_all
3706 ;;
3707
3708solaris*)
3709 lt_cv_deplibs_check_method=pass_all
3710 ;;
3711
3712sysv4 | sysv4.3*)
3713 case $host_vendor in
3714 motorola)
3715 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]'
3716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3717 ;;
3718 ncr)
3719 lt_cv_deplibs_check_method=pass_all
3720 ;;
3721 sequent)
3722 lt_cv_file_magic_cmd='/bin/file'
3723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3724 ;;
3725 sni)
3726 lt_cv_file_magic_cmd='/bin/file'
3727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3728 lt_cv_file_magic_test_file=/lib/libc.so
3729 ;;
3730 siemens)
3731 lt_cv_deplibs_check_method=pass_all
3732 ;;
3733 pc)
3734 lt_cv_deplibs_check_method=pass_all
3735 ;;
3736 esac
3737 ;;
3738
3739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3740 lt_cv_deplibs_check_method=pass_all
3741 ;;
3742esac
3743
3744fi
3745echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3746echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3747file_magic_cmd=$lt_cv_file_magic_cmd
3748deplibs_check_method=$lt_cv_deplibs_check_method
3749test -z "$deplibs_check_method" && deplibs_check_method=unknown
3750
3751
3752
3753
3754# If no C compiler was specified, use CC.
3755LTCC=${LTCC-"$CC"}
3756
3757# If no C compiler flags were specified, use CFLAGS.
3758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3759
3760# Allow CC to be a program name with arguments.
3761compiler=$CC
3762
3763
3764# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3765if test "${enable_libtool_lock+set}" = set; then
3766 enableval="$enable_libtool_lock"
3767
3768fi;
3769test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3770
3771# Some flags need to be propagated to the compiler or linker for good
3772# libtool support.
3773case $host in
3774ia64-*-hpux*)
3775 # Find out which ABI we are using.
3776 echo 'int i;' > conftest.$ac_ext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; then
3782 case `/usr/bin/file conftest.$ac_objext` in
3783 *ELF-32*)
3784 HPUX_IA64_MODE="32"
3785 ;;
3786 *ELF-64*)
3787 HPUX_IA64_MODE="64"
3788 ;;
3789 esac
3790 fi
3791 rm -rf conftest*
3792 ;;
3793*-*-irix6*)
3794 # Find out which ABI we are using.
3795 echo '#line 3795 "configure"' > conftest.$ac_ext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3797 (eval $ac_compile) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; then
3801 if test "$lt_cv_prog_gnu_ld" = yes; then
3802 case `/usr/bin/file conftest.$ac_objext` in
3803 *32-bit*)
3804 LD="${LD-ld} -melf32bsmip"
3805 ;;
3806 *N32*)
3807 LD="${LD-ld} -melf32bmipn32"
3808 ;;
3809 *64-bit*)
3810 LD="${LD-ld} -melf64bmip"
3811 ;;
3812 esac
3813 else
3814 case `/usr/bin/file conftest.$ac_objext` in
3815 *32-bit*)
3816 LD="${LD-ld} -32"
3817 ;;
3818 *N32*)
3819 LD="${LD-ld} -n32"
3820 ;;
3821 *64-bit*)
3822 LD="${LD-ld} -64"
3823 ;;
3824 esac
3825 fi
3826 fi
3827 rm -rf conftest*
3828 ;;
3829
3830x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3831 # Find out which ABI we are using.
3832 echo 'int i;' > conftest.$ac_ext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; then
3838 case `/usr/bin/file conftest.o` in
3839 *32-bit*)
3840 case $host in
3841 x86_64-*linux*)
3842 LD="${LD-ld} -m elf_i386"
3843 ;;
3844 ppc64-*linux*|powerpc64-*linux*)
3845 LD="${LD-ld} -m elf32ppclinux"
3846 ;;
3847 s390x-*linux*)
3848 LD="${LD-ld} -m elf_s390"
3849 ;;
3850 sparc64-*linux*)
3851 LD="${LD-ld} -m elf32_sparc"
3852 ;;
3853 esac
3854 ;;
3855 *64-bit*)
3856 case $host in
3857 x86_64-*linux*)
3858 LD="${LD-ld} -m elf_x86_64"
3859 ;;
3860 ppc*-*linux*|powerpc*-*linux*)
3861 LD="${LD-ld} -m elf64ppc"
3862 ;;
3863 s390*-*linux*)
3864 LD="${LD-ld} -m elf64_s390"
3865 ;;
3866 sparc*-*linux*)
3867 LD="${LD-ld} -m elf64_sparc"
3868 ;;
3869 esac
3870 ;;
3871 esac
3872 fi
3873 rm -rf conftest*
3874 ;;
3875
3876*-*-sco3.2v5*)
3877 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3878 SAVE_CFLAGS="$CFLAGS"
3879 CFLAGS="$CFLAGS -belf"
3880 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3881echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3882if test "${lt_cv_cc_needs_belf+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885 ac_ext=c
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891 cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897
3898int
3899main ()
3900{
3901
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext conftest$ac_exeext
3907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908 (eval $ac_link) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest$ac_exeext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 lt_cv_cc_needs_belf=yes
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933lt_cv_cc_needs_belf=no
3934fi
3935rm -f conftest.err conftest.$ac_objext \
3936 conftest$ac_exeext conftest.$ac_ext
3937 ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943fi
3944echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3945echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3946 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3948 CFLAGS="$SAVE_CFLAGS"
3949 fi
3950 ;;
3951sparc*-*solaris*)
3952 # Find out which ABI we are using.
3953 echo 'int i;' > conftest.$ac_ext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; then
3959 case `/usr/bin/file conftest.o` in
3960 *64-bit*)
3961 case $lt_cv_prog_gnu_ld in
3962 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3963 *) LD="${LD-ld} -64" ;;
3964 esac
3965 ;;
3966 esac
3967 fi
3968 rm -rf conftest*
3969 ;;
3970
3971
3972esac
3973
3974need_locks="$enable_libtool_lock"
3975
3976
3977ac_ext=c
3978ac_cpp='$CPP $CPPFLAGS'
3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3983echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3984# On Suns, sometimes $CPP names a directory.
3985if test -n "$CPP" && test -d "$CPP"; then
3986 CPP=
3987fi
3988if test -z "$CPP"; then
3989 if test "${ac_cv_prog_CPP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992 # Double quotes because CPP needs to be expanded
3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3994 do
3995 ac_preproc_ok=false
3996for ac_c_preproc_warn_flag in '' yes
3997do
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error" is here to catch this case.
4004 cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
4010#ifdef __STDC__
4011# include <limits.h>
4012#else
4013# include <assert.h>
4014#endif
4015 Syntax error
4016_ACEOF
4017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null; then
4025 if test -s conftest.err; then
4026 ac_cpp_err=$ac_c_preproc_warn_flag
4027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4028 else
4029 ac_cpp_err=
4030 fi
4031else
4032 ac_cpp_err=yes
4033fi
4034if test -z "$ac_cpp_err"; then
4035 :
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 # Broken: fails on valid input.
4041continue
4042fi
4043rm -f conftest.err conftest.$ac_ext
4044
4045 # OK, works on sane cases. Now check whether non-existent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4048/* confdefs.h. */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h. */
4053#include <ac_nonexistent.h>
4054_ACEOF
4055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } >/dev/null; then
4063 if test -s conftest.err; then
4064 ac_cpp_err=$ac_c_preproc_warn_flag
4065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4066 else
4067 ac_cpp_err=
4068 fi
4069else
4070 ac_cpp_err=yes
4071fi
4072if test -z "$ac_cpp_err"; then
4073 # Broken: success on invalid input.
4074continue
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 # Passes both tests.
4080ac_preproc_ok=:
4081break
4082fi
4083rm -f conftest.err conftest.$ac_ext
4084
4085done
4086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087rm -f conftest.err conftest.$ac_ext
4088if $ac_preproc_ok; then
4089 break
4090fi
4091
4092 done
4093 ac_cv_prog_CPP=$CPP
4094
4095fi
4096 CPP=$ac_cv_prog_CPP
4097else
4098 ac_cv_prog_CPP=$CPP
4099fi
4100echo "$as_me:$LINENO: result: $CPP" >&5
4101echo "${ECHO_T}$CPP" >&6
4102ac_preproc_ok=false
4103for ac_c_preproc_warn_flag in '' yes
4104do
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error" is here to catch this case.
4111 cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h. */
4117#ifdef __STDC__
4118# include <limits.h>
4119#else
4120# include <assert.h>
4121#endif
4122 Syntax error
4123_ACEOF
4124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev/null; then
4132 if test -s conftest.err; then
4133 ac_cpp_err=$ac_c_preproc_warn_flag
4134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4135 else
4136 ac_cpp_err=
4137 fi
4138else
4139 ac_cpp_err=yes
4140fi
4141if test -z "$ac_cpp_err"; then
4142 :
4143else
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 # Broken: fails on valid input.
4148continue
4149fi
4150rm -f conftest.err conftest.$ac_ext
4151
4152 # OK, works on sane cases. Now check whether non-existent headers
4153 # can be detected and how.
4154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160#include <ac_nonexistent.h>
4161_ACEOF
4162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } >/dev/null; then
4170 if test -s conftest.err; then
4171 ac_cpp_err=$ac_c_preproc_warn_flag
4172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4173 else
4174 ac_cpp_err=
4175 fi
4176else
4177 ac_cpp_err=yes
4178fi
4179if test -z "$ac_cpp_err"; then
4180 # Broken: success on invalid input.
4181continue
4182else
4183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 # Passes both tests.
4187ac_preproc_ok=:
4188break
4189fi
4190rm -f conftest.err conftest.$ac_ext
4191
4192done
4193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194rm -f conftest.err conftest.$ac_ext
4195if $ac_preproc_ok; then
4196 :
4197else
4198 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4199See \`config.log' for more details." >&5
4200echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201See \`config.log' for more details." >&2;}
4202 { (exit 1); exit 1; }; }
4203fi
4204
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4213echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4214if test "${ac_cv_header_stdc+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223#include <stdlib.h>
4224#include <stdarg.h>
4225#include <string.h>
4226#include <float.h>
4227
4228int
4229main ()
4230{
4231
4232 ;
4233 return 0;
4234}
4235_ACEOF
4236rm -f conftest.$ac_objext
4237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_c_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 ac_cv_header_stdc=yes
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263ac_cv_header_stdc=no
4264fi
4265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4266
4267if test $ac_cv_header_stdc = yes; then
4268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4269 cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
4275#include <string.h>
4276
4277_ACEOF
4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "memchr" >/dev/null 2>&1; then
4280 :
4281else
4282 ac_cv_header_stdc=no
4283fi
4284rm -f conftest*
4285
4286fi
4287
4288if test $ac_cv_header_stdc = yes; then
4289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h. */
4296#include <stdlib.h>
4297
4298_ACEOF
4299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 $EGREP "free" >/dev/null 2>&1; then
4301 :
4302else
4303 ac_cv_header_stdc=no
4304fi
4305rm -f conftest*
4306
4307fi
4308
4309if test $ac_cv_header_stdc = yes; then
4310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311 if test "$cross_compiling" = yes; then
4312 :
4313else
4314 cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
4320#include <ctype.h>
4321#if ((' ' & 0x0FF) == 0x020)
4322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4324#else
4325# define ISLOWER(c) \
4326 (('a' <= (c) && (c) <= 'i') \
4327 || ('j' <= (c) && (c) <= 'r') \
4328 || ('s' <= (c) && (c) <= 'z'))
4329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4330#endif
4331
4332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4333int
4334main ()
4335{
4336 int i;
4337 for (i = 0; i < 256; i++)
4338 if (XOR (islower (i), ISLOWER (i))
4339 || toupper (i) != TOUPPER (i))
4340 exit(2);
4341 exit (0);
4342}
4343_ACEOF
4344rm -f conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 :
4356else
4357 echo "$as_me: program exited with status $ac_status" >&5
4358echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361( exit $ac_status )
4362ac_cv_header_stdc=no
4363fi
4364rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4365fi
4366fi
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4369echo "${ECHO_T}$ac_cv_header_stdc" >&6
4370if test $ac_cv_header_stdc = yes; then
4371
4372cat >>confdefs.h <<\_ACEOF
4373#define STDC_HEADERS 1
4374_ACEOF
4375
4376fi
4377
4378# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4389 inttypes.h stdint.h unistd.h
4390do
4391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392echo "$as_me:$LINENO: checking for $ac_header" >&5
4393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4394if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h. */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h. */
4403$ac_includes_default
4404
4405#include <$ac_header>
4406_ACEOF
4407rm -f conftest.$ac_objext
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 eval "$as_ac_Header=yes"
4430else
4431 echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434eval "$as_ac_Header=no"
4435fi
4436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437fi
4438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440if test `eval echo '${'$as_ac_Header'}'` = yes; then
4441 cat >>confdefs.h <<_ACEOF
4442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443_ACEOF
4444
4445fi
4446
4447done
4448
4449
4450
4451for ac_header in dlfcn.h
4452do
4453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455 echo "$as_me:$LINENO: checking for $ac_header" >&5
4456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4457if eval "test \"\${$as_ac_Header+set}\" = set"; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459fi
4460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462else
4463 # Is the header compilable?
4464echo "$as_me:$LINENO: checking $ac_header usability" >&5
4465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4466cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
4472$ac_includes_default
4473#include <$ac_header>
4474_ACEOF
4475rm -f conftest.$ac_objext
4476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag"
4485 || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest.$ac_objext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_header_compiler=yes
4498else
4499 echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502ac_header_compiler=no
4503fi
4504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4506echo "${ECHO_T}$ac_header_compiler" >&6
4507
4508# Is the header present?
4509echo "$as_me:$LINENO: checking $ac_header presence" >&5
4510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4511cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4517#include <$ac_header>
4518_ACEOF
4519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } >/dev/null; then
4527 if test -s conftest.err; then
4528 ac_cpp_err=$ac_c_preproc_warn_flag
4529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4530 else
4531 ac_cpp_err=
4532 fi
4533else
4534 ac_cpp_err=yes
4535fi
4536if test -z "$ac_cpp_err"; then
4537 ac_header_preproc=yes
4538else
4539 echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_header_preproc=no
4543fi
4544rm -f conftest.err conftest.$ac_ext
4545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4546echo "${ECHO_T}$ac_header_preproc" >&6
4547
4548# So? What about this header?
4549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4550 yes:no: )
4551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4555 ac_header_preproc=yes
4556 ;;
4557 no:yes:* )
4558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4570 (
4571 cat <<\_ASBOX
4572## -------------------------------------------------- ##
4573## Report this to courier-users@lists.sourceforge.net ##
4574## -------------------------------------------------- ##
4575_ASBOX
4576 ) |
4577 sed "s/^/$as_me: WARNING: /" >&2
4578 ;;
4579esac
4580echo "$as_me:$LINENO: checking for $ac_header" >&5
4581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4582if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 eval "$as_ac_Header=\$ac_header_preproc"
4586fi
4587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589
4590fi
4591if test `eval echo '${'$as_ac_Header'}'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594_ACEOF
4595
4596fi
4597
4598done
4599
4600ac_ext=cc
4601ac_cpp='$CXXCPP $CPPFLAGS'
4602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4605if test -n "$ac_tool_prefix"; then
4606 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4607 do
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4610echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612if test "${ac_cv_prog_CXX+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 if test -n "$CXX"; then
4616 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629done
4630done
4631
4632fi
4633fi
4634CXX=$ac_cv_prog_CXX
4635if test -n "$CXX"; then
4636 echo "$as_me:$LINENO: result: $CXX" >&5
4637echo "${ECHO_T}$CXX" >&6
4638else
4639 echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641fi
4642
4643 test -n "$CXX" && break
4644 done
4645fi
4646if test -z "$CXX"; then
4647 ac_ct_CXX=$CXX
4648 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4649do
4650 # Extract the first word of "$ac_prog", so it can be a program name with args.
4651set dummy $ac_prog; ac_word=$2
4652echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if test -n "$ac_ct_CXX"; then
4658 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_ac_ct_CXX="$ac_prog"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673
4674fi
4675fi
4676ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4677if test -n "$ac_ct_CXX"; then
4678 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4679echo "${ECHO_T}$ac_ct_CXX" >&6
4680else
4681 echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6
4683fi
4684
4685 test -n "$ac_ct_CXX" && break
4686done
4687test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4688
4689 CXX=$ac_ct_CXX
4690fi
4691
4692
4693# Provide some information about the compiler.
4694echo "$as_me:$LINENO:" \
4695 "checking for C++ compiler version" >&5
4696ac_compiler=`set X $ac_compile; echo $2`
4697{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4698 (eval $ac_compiler --version </dev/null >&5) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }
4702{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4703 (eval $ac_compiler -v </dev/null >&5) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }
4707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4708 (eval $ac_compiler -V </dev/null >&5) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }
4712
4713echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4714echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4715if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718 cat >conftest.$ac_ext <<_ACEOF
4719/* confdefs.h. */
4720_ACEOF
4721cat confdefs.h >>conftest.$ac_ext
4722cat >>conftest.$ac_ext <<_ACEOF
4723/* end confdefs.h. */
4724
4725int
4726main ()
4727{
4728#ifndef __GNUC__
4729 choke me
4730#endif
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736rm -f conftest.$ac_objext
4737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -z "$ac_cxx_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_compiler_gnu=yes
4759else
4760 echo "$as_me: failed program was:" >&5
4761sed 's/^/| /' conftest.$ac_ext >&5
4762
4763ac_compiler_gnu=no
4764fi
4765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4767
4768fi
4769echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4770echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4771GXX=`test $ac_compiler_gnu = yes && echo yes`
4772ac_test_CXXFLAGS=${CXXFLAGS+set}
4773ac_save_CXXFLAGS=$CXXFLAGS
4774CXXFLAGS="-g"
4775echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4776echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4777if test "${ac_cv_prog_cxx_g+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h. */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h. */
4786
4787int
4788main ()
4789{
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795rm -f conftest.$ac_objext
4796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_cxx_werror_flag"
4805 || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_cv_prog_cxx_g=yes
4818else
4819 echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
4822ac_cv_prog_cxx_g=no
4823fi
4824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825fi
4826echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4827echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4828if test "$ac_test_CXXFLAGS" = set; then
4829 CXXFLAGS=$ac_save_CXXFLAGS
4830elif test $ac_cv_prog_cxx_g = yes; then
4831 if test "$GXX" = yes; then
4832 CXXFLAGS="-g -O2"
4833 else
4834 CXXFLAGS="-g"
4835 fi
4836else
4837 if test "$GXX" = yes; then
4838 CXXFLAGS="-O2"
4839 else
4840 CXXFLAGS=
4841 fi
4842fi
4843for ac_declaration in \
4844 '' \
4845 'extern "C" void std::exit (int) throw (); using std::exit;' \
4846 'extern "C" void std::exit (int); using std::exit;' \
4847 'extern "C" void exit (int) throw ();' \
4848 'extern "C" void exit (int);' \
4849 'void exit (int);'
4850do
4851 cat >conftest.$ac_ext <<_ACEOF
4852/* confdefs.h. */
4853_ACEOF
4854cat confdefs.h >>conftest.$ac_ext
4855cat >>conftest.$ac_ext <<_ACEOF
4856/* end confdefs.h. */
4857$ac_declaration
4858#include <stdlib.h>
4859int
4860main ()
4861{
4862exit (42);
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_cxx_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 :
4890else
4891 echo "$as_me: failed program was:" >&5
4892sed 's/^/| /' conftest.$ac_ext >&5
4893
4894continue
4895fi
4896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4897 cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h. */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h. */
4903$ac_declaration
4904int
4905main ()
4906{
4907exit (42);
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912rm -f conftest.$ac_objext
4913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_cxx_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 break
4935else
4936 echo "$as_me: failed program was:" >&5
4937sed 's/^/| /' conftest.$ac_ext >&5
4938
4939fi
4940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941done
4942rm -f conftest*
4943if test -n "$ac_declaration"; then
4944 echo '#ifdef __cplusplus' >>confdefs.h
4945 echo $ac_declaration >>confdefs.h
4946 echo '#endif' >>confdefs.h
4947fi
4948
4949ac_ext=cc
4950ac_cpp='$CXXCPP $CPPFLAGS'
4951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4954
4955depcc="$CXX" am_compiler_list=
4956
4957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4959if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4963 # We make a subdir and do the tests there. Otherwise we can end up
4964 # making bogus files that we don't know about and never remove. For
4965 # instance it was reported that on HP-UX the gcc test will end up
4966 # making a dummy file named `D' -- because `-MD' means `put the output
4967 # in D'.
4968 mkdir conftest.dir
4969 # Copy depcomp to subdir because otherwise we won't find it if we're
4970 # using a relative directory.
4971 cp "$am_depcomp" conftest.dir
4972 cd conftest.dir
4973 # We will build objects and dependencies in a subdirectory because
4974 # it helps to detect inapplicable dependency modes. For instance
4975 # both Tru64's cc and ICC support -MD to output dependencies as a
4976 # side effect of compilation, but ICC will put the dependencies in
4977 # the current directory while Tru64 will put them in the object
4978 # directory.
4979 mkdir sub
4980
4981 am_cv_CXX_dependencies_compiler_type=none
4982 if test "$am_compiler_list" = ""; then
4983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4984 fi
4985 for depmode in $am_compiler_list; do
4986 # Setup a source with many dependencies, because some compilers
4987 # like to wrap large dependency lists on column 80 (with \), and
4988 # we should not choose a depcomp mode which is confused by this.
4989 #
4990 # We need to recreate these files for each test, as the compiler may
4991 # overwrite some of them when testing with obscure command lines.
4992 # This happens at least with the AIX C compiler.
4993 : > sub/conftest.c
4994 for i in 1 2 3 4 5 6; do
4995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4997 # Solaris 8's {/usr,}/bin/sh.
4998 touch sub/conftst$i.h
4999 done
5000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001
5002 case $depmode in
5003 nosideeffect)
5004 # after this tag, mechanisms are not by side-effect, so they'll
5005 # only be used when explicitly requested
5006 if test "x$enable_dependency_tracking" = xyes; then
5007 continue
5008 else
5009 break
5010 fi
5011 ;;
5012 none) break ;;
5013 esac
5014 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5015 # mode. It turns out that the SunPro C++ compiler does not properly
5016 # handle `-M -o', and we need to detect this.
5017 if depmode=$depmode \
5018 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5021 >/dev/null 2>conftest.err &&
5022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5025 # icc doesn't choke on unknown options, it will just issue warnings
5026 # or remarks (even with -Werror). So we grep stderr for any message
5027 # that says an option was ignored or not supported.
5028 # When given -MP, icc 7.0 and 7.1 complain thusly:
5029 # icc: Command line warning: ignoring option '-M'; no argument required
5030 # The diagnosis changed in icc 8.0:
5031 # icc: Command line remark: option '-MP' not supported
5032 if (grep 'ignoring option' conftest.err ||
5033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5034 am_cv_CXX_dependencies_compiler_type=$depmode
5035 break
5036 fi
5037 fi
5038 done
5039
5040 cd ..
5041 rm -rf conftest.dir
5042else
5043 am_cv_CXX_dependencies_compiler_type=none
5044fi
5045
5046fi
5047echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5048echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5049CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5050
5051
5052
5053if
5054 test "x$enable_dependency_tracking" != xno \
5055 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5056 am__fastdepCXX_TRUE=
5057 am__fastdepCXX_FALSE='#'
5058else
5059 am__fastdepCXX_TRUE='#'
5060 am__fastdepCXX_FALSE=
5061fi
5062
5063
5064
5065
5066if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5067 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5068 (test "X$CXX" != "Xg++"))) ; then
5069 ac_ext=cc
5070ac_cpp='$CXXCPP $CPPFLAGS'
5071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5074echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5075echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5076if test -z "$CXXCPP"; then
5077 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080 # Double quotes because CXXCPP needs to be expanded
5081 for CXXCPP in "$CXX -E" "/lib/cpp"
5082 do
5083 ac_preproc_ok=false
5084for ac_cxx_preproc_warn_flag in '' yes
5085do
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5093/* confdefs.h. */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h. */
5098#ifdef __STDC__
5099# include <limits.h>
5100#else
5101# include <assert.h>
5102#endif
5103 Syntax error
5104_ACEOF
5105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119else
5120 ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
5123 :
5124else
5125 echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 # Broken: fails on valid input.
5129continue
5130fi
5131rm -f conftest.err conftest.$ac_ext
5132
5133 # OK, works on sane cases. Now check whether non-existent headers
5134 # can be detected and how.
5135 cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h. */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h. */
5141#include <ac_nonexistent.h>
5142_ACEOF
5143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_cxx_preproc_warn_flag
5153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154 else
5155 ac_cpp_err=
5156 fi
5157else
5158 ac_cpp_err=yes
5159fi
5160if test -z "$ac_cpp_err"; then
5161 # Broken: success on invalid input.
5162continue
5163else
5164 echo "$as_me: failed program was:" >&5
5165sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 # Passes both tests.
5168ac_preproc_ok=:
5169break
5170fi
5171rm -f conftest.err conftest.$ac_ext
5172
5173done
5174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175rm -f conftest.err conftest.$ac_ext
5176if $ac_preproc_ok; then
5177 break
5178fi
5179
5180 done
5181 ac_cv_prog_CXXCPP=$CXXCPP
5182
5183fi
5184 CXXCPP=$ac_cv_prog_CXXCPP
5185else
5186 ac_cv_prog_CXXCPP=$CXXCPP
5187fi
5188echo "$as_me:$LINENO: result: $CXXCPP" >&5
5189echo "${ECHO_T}$CXXCPP" >&6
5190ac_preproc_ok=false
5191for ac_cxx_preproc_warn_flag in '' yes
5192do
5193 # Use a header file that comes with gcc, so configuring glibc
5194 # with a fresh cross-compiler works.
5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 # <limits.h> exists even on freestanding compilers.
5197 # On the NeXT, cc -E runs the code through the compiler's parser,
5198 # not just through cpp. "Syntax error" is here to catch this case.
5199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205#ifdef __STDC__
5206# include <limits.h>
5207#else
5208# include <assert.h>
5209#endif
5210 Syntax error
5211_ACEOF
5212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_cxx_preproc_warn_flag
5222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5223 else
5224 ac_cpp_err=
5225 fi
5226else
5227 ac_cpp_err=yes
5228fi
5229if test -z "$ac_cpp_err"; then
5230 :
5231else
5232 echo "$as_me: failed program was:" >&5
5233sed 's/^/| /' conftest.$ac_ext >&5
5234
5235 # Broken: fails on valid input.
5236continue
5237fi
5238rm -f conftest.err conftest.$ac_ext
5239
5240 # OK, works on sane cases. Now check whether non-existent headers
5241 # can be detected and how.
5242 cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h. */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
5248#include <ac_nonexistent.h>
5249_ACEOF
5250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } >/dev/null; then
5258 if test -s conftest.err; then
5259 ac_cpp_err=$ac_cxx_preproc_warn_flag
5260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5261 else
5262 ac_cpp_err=
5263 fi
5264else
5265 ac_cpp_err=yes
5266fi
5267if test -z "$ac_cpp_err"; then
5268 # Broken: success on invalid input.
5269continue
5270else
5271 echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 # Passes both tests.
5275ac_preproc_ok=:
5276break
5277fi
5278rm -f conftest.err conftest.$ac_ext
5279
5280done
5281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282rm -f conftest.err conftest.$ac_ext
5283if $ac_preproc_ok; then
5284 :
5285else
5286 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5287See \`config.log' for more details." >&5
5288echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5289See \`config.log' for more details." >&2;}
5290 { (exit 1); exit 1; }; }
5291fi
5292
5293ac_ext=cc
5294ac_cpp='$CXXCPP $CPPFLAGS'
5295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5298
5299fi
5300
5301
5302ac_ext=f
5303ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5304ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5306if test -n "$ac_tool_prefix"; then
5307 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5308 do
5309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5311echo "$as_me:$LINENO: checking for $ac_word" >&5
5312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313if test "${ac_cv_prog_F77+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316 if test -n "$F77"; then
5317 ac_cv_prog_F77="$F77" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330done
5331done
5332
5333fi
5334fi
5335F77=$ac_cv_prog_F77
5336if test -n "$F77"; then
5337 echo "$as_me:$LINENO: result: $F77" >&5
5338echo "${ECHO_T}$F77" >&6
5339else
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
5343
5344 test -n "$F77" && break
5345 done
5346fi
5347if test -z "$F77"; then
5348 ac_ct_F77=$F77
5349 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5350do
5351 # Extract the first word of "$ac_prog", so it can be a program name with args.
5352set dummy $ac_prog; ac_word=$2
5353echo "$as_me:$LINENO: checking for $ac_word" >&5
5354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 if test -n "$ac_ct_F77"; then
5359 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_ac_ct_F77="$ac_prog"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372done
5373done
5374
5375fi
5376fi
5377ac_ct_F77=$ac_cv_prog_ac_ct_F77
5378if test -n "$ac_ct_F77"; then
5379 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5380echo "${ECHO_T}$ac_ct_F77" >&6
5381else
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
5384fi
5385
5386 test -n "$ac_ct_F77" && break
5387done
5388
5389 F77=$ac_ct_F77
5390fi
5391
5392
5393# Provide some information about the compiler.
5394echo "$as_me:5394:" \
5395 "checking for Fortran 77 compiler version" >&5
5396ac_compiler=`set X $ac_compile; echo $2`
5397{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5398 (eval $ac_compiler --version </dev/null >&5) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5403 (eval $ac_compiler -v </dev/null >&5) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }
5407{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5408 (eval $ac_compiler -V </dev/null >&5) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }
5412rm -f a.out
5413
5414# If we don't use `.F' as extension, the preprocessor is not run on the
5415# input file. (Note that this only needs to work for GNU compilers.)
5416ac_save_ext=$ac_ext
5417ac_ext=F
5418echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5419echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5420if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 cat >conftest.$ac_ext <<_ACEOF
5424 program main
5425#ifndef __GNUC__
5426 choke me
5427#endif
5428
5429 end
5430_ACEOF
5431rm -f conftest.$ac_objext
5432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_f77_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_compiler_gnu=yes
5454else
5455 echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458ac_compiler_gnu=no
5459fi
5460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5462
5463fi
5464echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5465echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5466ac_ext=$ac_save_ext
5467ac_test_FFLAGS=${FFLAGS+set}
5468ac_save_FFLAGS=$FFLAGS
5469FFLAGS=
5470echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5471echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5472if test "${ac_cv_prog_f77_g+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 FFLAGS=-g
5476cat >conftest.$ac_ext <<_ACEOF
5477 program main
5478
5479 end
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_f77_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_prog_f77_g=yes
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508ac_cv_prog_f77_g=no
5509fi
5510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511
5512fi
5513echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5514echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5515if test "$ac_test_FFLAGS" = set; then
5516 FFLAGS=$ac_save_FFLAGS
5517elif test $ac_cv_prog_f77_g = yes; then
5518 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5519 FFLAGS="-g -O2"
5520 else
5521 FFLAGS="-g"
5522 fi
5523else
5524 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5525 FFLAGS="-O2"
5526 else
5527 FFLAGS=
5528 fi
5529fi
5530
5531G77=`test $ac_compiler_gnu = yes && echo yes`
5532ac_ext=c
5533ac_cpp='$CPP $CPPFLAGS'
5534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
5538
5539
5540# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5541
5542# find the maximum length of command line arguments
5543echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5544echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5545if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548 i=0
5549 teststring="ABCD"
5550
5551 case $build_os in
5552 msdosdjgpp*)
5553 # On DJGPP, this test can blow up pretty badly due to problems in libc
5554 # (any single argument exceeding 2000 bytes causes a buffer overrun
5555 # during glob expansion). Even if it were fixed, the result of this
5556 # check would be larger than it should be.
5557 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5558 ;;
5559
5560 gnu*)
5561 # Under GNU Hurd, this test is not required because there is
5562 # no limit to the length of command line arguments.
5563 # Libtool will interpret -1 as no limit whatsoever
5564 lt_cv_sys_max_cmd_len=-1;
5565 ;;
5566
5567 cygwin* | mingw*)
5568 # On Win9x/ME, this test blows up -- it succeeds, but takes
5569 # about 5 minutes as the teststring grows exponentially.
5570 # Worse, since 9x/ME are not pre-emptively multitasking,
5571 # you end up with a "frozen" computer, even though with patience
5572 # the test eventually succeeds (with a max line length of 256k).
5573 # Instead, let's just punt: use the minimum linelength reported by
5574 # all of the supported platforms: 8192 (on NT/2K/XP).
5575 lt_cv_sys_max_cmd_len=8192;
5576 ;;
5577
5578 amigaos*)
5579 # On AmigaOS with pdksh, this test takes hours, literally.
5580 # So we just punt and use a minimum line length of 8192.
5581 lt_cv_sys_max_cmd_len=8192;
5582 ;;
5583
5584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5585 # This has been around since 386BSD, at least. Likely further.
5586 if test -x /sbin/sysctl; then
5587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5588 elif test -x /usr/sbin/sysctl; then
5589 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5590 else
5591 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5592 fi
5593 # And add a safety zone
5594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5596 ;;
5597
5598 interix*)
5599 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5600 lt_cv_sys_max_cmd_len=196608
5601 ;;
5602
5603 osf*)
5604 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5605 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5606 # nice to cause kernel panics so lets avoid the loop below.
5607 # First set a reasonable default.
5608 lt_cv_sys_max_cmd_len=16384
5609 #
5610 if test -x /sbin/sysconfig; then
5611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5613 esac
5614 fi
5615 ;;
5616 sco3.2v5*)
5617 lt_cv_sys_max_cmd_len=102400
5618 ;;
5619 sysv5* | sco5v6* | sysv4.2uw2*)
5620 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5621 if test -n "$kargmax"; then
5622 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5623 else
5624 lt_cv_sys_max_cmd_len=32768
5625 fi
5626 ;;
5627 *)
5628 # If test is not a shell built-in, we'll probably end up computing a
5629 # maximum length that is only half of the actual maximum length, but
5630 # we can't tell.
5631 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5632 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5633 = "XX$teststring") >/dev/null 2>&1 &&
5634 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5635 lt_cv_sys_max_cmd_len=$new_result &&
5636 test $i != 17 # 1/2 MB should be enough
5637 do
5638 i=`expr $i + 1`
5639 teststring=$teststring$teststring
5640 done
5641 teststring=
5642 # Add a significant safety factor because C++ compilers can tack on massive
5643 # amounts of additional arguments before passing them to the linker.
5644 # It appears as though 1/2 is a usable value.
5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5646 ;;
5647 esac
5648
5649fi
5650
5651if test -n $lt_cv_sys_max_cmd_len ; then
5652 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5653echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5654else
5655 echo "$as_me:$LINENO: result: none" >&5
5656echo "${ECHO_T}none" >&6
5657fi
5658
5659
5660
5661
5662# Check for command to grab the raw symbol name followed by C symbol from nm.
5663echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5664echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5665if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667else
5668
5669# These are sane defaults that work on at least a few old systems.
5670# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5671
5672# Character class describing NM global symbol codes.
5673symcode='[BCDEGRST]'
5674
5675# Regexp to match symbols that can be accessed directly from C.
5676sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5677
5678# Transform an extracted symbol line into a proper C declaration
5679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5680
5681# Transform an extracted symbol line into symbol name and symbol address
5682lt_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'"
5683
5684# Define system-specific variables.
5685case $host_os in
5686aix*)
5687 symcode='[BCDT]'
5688 ;;
5689cygwin* | mingw* | pw32*)
5690 symcode='[ABCDGISTW]'
5691 ;;
5692hpux*) # Its linker distinguishes data from code symbols
5693 if test "$host_cpu" = ia64; then
5694 symcode='[ABCDEGRST]'
5695 fi
5696 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5697 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'"
5698 ;;
5699linux*)
5700 if test "$host_cpu" = ia64; then
5701 symcode='[ABCDGIRSTW]'
5702 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5703 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'"
5704 fi
5705 ;;
5706irix* | nonstopux*)
5707 symcode='[BCDEGRST]'
5708 ;;
5709osf*)
5710 symcode='[BCDEGQRST]'
5711 ;;
5712solaris*)
5713 symcode='[BDRT]'
5714 ;;
5715sco3.2v5*)
5716 symcode='[DT]'
5717 ;;
5718sysv4.2uw2*)
5719 symcode='[DT]'
5720 ;;
5721sysv5* | sco5v6* | unixware* | OpenUNIX*)
5722 symcode='[ABDT]'
5723 ;;
5724sysv4)
5725 symcode='[DFNSTU]'
5726 ;;
5727esac
5728
5729# Handle CRLF in mingw tool chain
5730opt_cr=
5731case $build_os in
5732mingw*)
5733 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5734 ;;
5735esac
5736
5737# If we're using GNU nm, then use its standard symbol codes.
5738case `$NM -V 2>&1` in
5739*GNU* | *'with BFD'*)
5740 symcode='[ABCDGIRSTW]' ;;
5741esac
5742
5743# Try without a prefix undercore, then with it.
5744for ac_symprfx in "" "_"; do
5745
5746 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5747 symxfrm="\\1 $ac_symprfx\\2 \\2"
5748
5749 # Write the raw and C identifiers.
5750 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5751
5752 # Check to see that the pipe works correctly.
5753 pipe_works=no
5754
5755 rm -f conftest*
5756 cat > conftest.$ac_ext <<EOF
5757#ifdef __cplusplus
5758extern "C" {
5759#endif
5760char nm_test_var;
5761void nm_test_func(){}
5762#ifdef __cplusplus
5763}
5764#endif
5765int main(){nm_test_var='a';nm_test_func();return(0);}
5766EOF
5767
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5773 # Now try to grab the symbols.
5774 nlist=conftest.nm
5775 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5776 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && test -s "$nlist"; then
5780 # Try sorting and uniquifying the output.
5781 if sort "$nlist" | uniq > "$nlist"T; then
5782 mv -f "$nlist"T "$nlist"
5783 else
5784 rm -f "$nlist"T
5785 fi
5786
5787 # Make sure that we snagged all the symbols we need.
5788 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5789 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5790 cat <<EOF > conftest.$ac_ext
5791#ifdef __cplusplus
5792extern "C" {
5793#endif
5794
5795EOF
5796 # Now generate the symbol file.
5797 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5798
5799 cat <<EOF >> conftest.$ac_ext
5800#if defined (__STDC__) && __STDC__
5801# define lt_ptr_t void *
5802#else
5803# define lt_ptr_t char *
5804# define const
5805#endif
5806
5807/* The mapping between symbol names and symbols. */
5808const struct {
5809 const char *name;
5810 lt_ptr_t address;
5811}
5812lt_preloaded_symbols[] =
5813{
5814EOF
5815 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5816 cat <<\EOF >> conftest.$ac_ext
5817 {0, (lt_ptr_t) 0}
5818};
5819
5820#ifdef __cplusplus
5821}
5822#endif
5823EOF
5824 # Now try linking the two files.
5825 mv conftest.$ac_objext conftstm.$ac_objext
5826 lt_save_LIBS="$LIBS"
5827 lt_save_CFLAGS="$CFLAGS"
5828 LIBS="conftstm.$ac_objext"
5829 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5835 pipe_works=yes
5836 fi
5837 LIBS="$lt_save_LIBS"
5838 CFLAGS="$lt_save_CFLAGS"
5839 else
5840 echo "cannot find nm_test_func in $nlist" >&5
5841 fi
5842 else
5843 echo "cannot find nm_test_var in $nlist" >&5
5844 fi
5845 else
5846 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5847 fi
5848 else
5849 echo "$progname: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5851 fi
5852 rm -f conftest* conftst*
5853
5854 # Do not use the global_symbol_pipe unless it works.
5855 if test "$pipe_works" = yes; then
5856 break
5857 else
5858 lt_cv_sys_global_symbol_pipe=
5859 fi
5860done
5861
5862fi
5863
5864if test -z "$lt_cv_sys_global_symbol_pipe"; then
5865 lt_cv_sys_global_symbol_to_cdecl=
5866fi
5867if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5868 echo "$as_me:$LINENO: result: failed" >&5
5869echo "${ECHO_T}failed" >&6
5870else
5871 echo "$as_me:$LINENO: result: ok" >&5
5872echo "${ECHO_T}ok" >&6
5873fi
5874
5875echo "$as_me:$LINENO: checking for objdir" >&5
5876echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5877if test "${lt_cv_objdir+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880 rm -f .libs 2>/dev/null
5881mkdir .libs 2>/dev/null
5882if test -d .libs; then
5883 lt_cv_objdir=.libs
5884else
5885 # MS-DOS does not allow filenames that begin with a dot.
5886 lt_cv_objdir=_libs
5887fi
5888rmdir .libs 2>/dev/null
5889fi
5890echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5891echo "${ECHO_T}$lt_cv_objdir" >&6
5892objdir=$lt_cv_objdir
5893
5894
5895
5896
5897
5898case $host_os in
5899aix3*)
5900 # AIX sometimes has problems with the GCC collect2 program. For some
5901 # reason, if we set the COLLECT_NAMES environment variable, the problems
5902 # vanish in a puff of smoke.
5903 if test "X${COLLECT_NAMES+set}" != Xset; then
5904 COLLECT_NAMES=
5905 export COLLECT_NAMES
5906 fi
5907 ;;
5908esac
5909
5910# Sed substitution that helps us do robust quoting. It backslashifies
5911# metacharacters that are still active within double-quoted strings.
5912Xsed='sed -e 1s/^X//'
5913sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5914
5915# Same as above, but do not quote variable references.
5916double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5917
5918# Sed substitution to delay expansion of an escaped shell variable in a
5919# double_quote_subst'ed string.
5920delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5921
5922# Sed substitution to avoid accidental globbing in evaled expressions
5923no_glob_subst='s/\*/\\\*/g'
5924
5925# Constants:
5926rm="rm -f"
5927
5928# Global variables:
5929default_ofile=libtool
5930can_build_shared=yes
5931
5932# All known linkers require a `.a' archive for static linking (except MSVC,
5933# which needs '.lib').
5934libext=a
5935ltmain="$ac_aux_dir/ltmain.sh"
5936ofile="$default_ofile"
5937with_gnu_ld="$lt_cv_prog_gnu_ld"
5938
5939if test -n "$ac_tool_prefix"; then
5940 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5941set dummy ${ac_tool_prefix}ar; ac_word=$2
5942echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944if test "${ac_cv_prog_AR+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 if test -n "$AR"; then
5948 ac_cv_prog_AR="$AR" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_AR="${ac_tool_prefix}ar"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961done
5962done
5963
5964fi
5965fi
5966AR=$ac_cv_prog_AR
5967if test -n "$AR"; then
5968 echo "$as_me:$LINENO: result: $AR" >&5
5969echo "${ECHO_T}$AR" >&6
5970else
5971 echo "$as_me:$LINENO: result: no" >&5
5972echo "${ECHO_T}no" >&6
5973fi
5974
5975fi
5976if test -z "$ac_cv_prog_AR"; then
5977 ac_ct_AR=$AR
5978 # Extract the first word of "ar", so it can be a program name with args.
5979set dummy ar; ac_word=$2
5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 if test -n "$ac_ct_AR"; then
5986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_ac_ct_AR="ar"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000done
6001
6002 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6003fi
6004fi
6005ac_ct_AR=$ac_cv_prog_ac_ct_AR
6006if test -n "$ac_ct_AR"; then
6007 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6008echo "${ECHO_T}$ac_ct_AR" >&6
6009else
6010 echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
6012fi
6013
6014 AR=$ac_ct_AR
6015else
6016 AR="$ac_cv_prog_AR"
6017fi
6018
6019if test -n "$ac_tool_prefix"; then
6020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6021set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6022echo "$as_me:$LINENO: checking for $ac_word" >&5
6023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024if test "${ac_cv_prog_RANLIB+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 if test -n "$RANLIB"; then
6028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041done
6042done
6043
6044fi
6045fi
6046RANLIB=$ac_cv_prog_RANLIB
6047if test -n "$RANLIB"; then
6048 echo "$as_me:$LINENO: result: $RANLIB" >&5
6049echo "${ECHO_T}$RANLIB" >&6
6050else
6051 echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6
6053fi
6054
6055fi
6056if test -z "$ac_cv_prog_RANLIB"; then
6057 ac_ct_RANLIB=$RANLIB
6058 # Extract the first word of "ranlib", so it can be a program name with args.
6059set dummy ranlib; ac_word=$2
6060echo "$as_me:$LINENO: checking for $ac_word" >&5
6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6062if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065 if test -n "$ac_ct_RANLIB"; then
6066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_ac_ct_RANLIB="ranlib"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080done
6081
6082 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6083fi
6084fi
6085ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086if test -n "$ac_ct_RANLIB"; then
6087 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6088echo "${ECHO_T}$ac_ct_RANLIB" >&6
6089else
6090 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092fi
6093
6094 RANLIB=$ac_ct_RANLIB
6095else
6096 RANLIB="$ac_cv_prog_RANLIB"
6097fi
6098
6099if test -n "$ac_tool_prefix"; then
6100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6101set dummy ${ac_tool_prefix}strip; ac_word=$2
6102echo "$as_me:$LINENO: checking for $ac_word" >&5
6103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104if test "${ac_cv_prog_STRIP+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107 if test -n "$STRIP"; then
6108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6120 fi
6121done
6122done
6123
6124fi
6125fi
6126STRIP=$ac_cv_prog_STRIP
6127if test -n "$STRIP"; then
6128 echo "$as_me:$LINENO: result: $STRIP" >&5
6129echo "${ECHO_T}$STRIP" >&6
6130else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133fi
6134
6135fi
6136if test -z "$ac_cv_prog_STRIP"; then
6137 ac_ct_STRIP=$STRIP
6138 # Extract the first word of "strip", so it can be a program name with args.
6139set dummy strip; ac_word=$2
6140echo "$as_me:$LINENO: checking for $ac_word" >&5
6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6142if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 if test -n "$ac_ct_STRIP"; then
6146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_STRIP="strip"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159done
6160done
6161
6162 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6163fi
6164fi
6165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6166if test -n "$ac_ct_STRIP"; then
6167 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6168echo "${ECHO_T}$ac_ct_STRIP" >&6
6169else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172fi
6173
6174 STRIP=$ac_ct_STRIP
6175else
6176 STRIP="$ac_cv_prog_STRIP"
6177fi
6178
6179
6180old_CC="$CC"
6181old_CFLAGS="$CFLAGS"
6182
6183# Set sane defaults for various variables
6184test -z "$AR" && AR=ar
6185test -z "$AR_FLAGS" && AR_FLAGS=cru
6186test -z "$AS" && AS=as
6187test -z "$CC" && CC=cc
6188test -z "$LTCC" && LTCC=$CC
6189test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6190test -z "$DLLTOOL" && DLLTOOL=dlltool
6191test -z "$LD" && LD=ld
6192test -z "$LN_S" && LN_S="ln -s"
6193test -z "$MAGIC_CMD" && MAGIC_CMD=file
6194test -z "$NM" && NM=nm
6195test -z "$SED" && SED=sed
6196test -z "$OBJDUMP" && OBJDUMP=objdump
6197test -z "$RANLIB" && RANLIB=:
6198test -z "$STRIP" && STRIP=:
6199test -z "$ac_objext" && ac_objext=o
6200
6201# Determine commands to create old-style static archives.
6202old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6203old_postinstall_cmds='chmod 644 $oldlib'
6204old_postuninstall_cmds=
6205
6206if test -n "$RANLIB"; then
6207 case $host_os in
6208 openbsd*)
6209 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6210 ;;
6211 *)
6212 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6213 ;;
6214 esac
6215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6216fi
6217
6218for cc_temp in $compiler""; do
6219 case $cc_temp in
6220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6222 \-*) ;;
6223 *) break;;
6224 esac
6225done
6226cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6227
6228
6229# Only perform the check for file, if the check method requires it
6230case $deplibs_check_method in
6231file_magic*)
6232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6233 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6234echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6235if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238 case $MAGIC_CMD in
6239[\\/*] | ?:[\\/]*)
6240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6241 ;;
6242*)
6243 lt_save_MAGIC_CMD="$MAGIC_CMD"
6244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6246 for ac_dir in $ac_dummy; do
6247 IFS="$lt_save_ifs"
6248 test -z "$ac_dir" && ac_dir=.
6249 if test -f $ac_dir/${ac_tool_prefix}file; then
6250 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6251 if test -n "$file_magic_test_file"; then
6252 case $deplibs_check_method in
6253 "file_magic "*)
6254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6257 $EGREP "$file_magic_regex" > /dev/null; then
6258 :
6259 else
6260 cat <<EOF 1>&2
6261
6262*** Warning: the command libtool uses to detect shared libraries,
6263*** $file_magic_cmd, produces output that libtool cannot recognize.
6264*** The result is that libtool may fail to recognize shared libraries
6265*** as such. This will affect the creation of libtool libraries that
6266*** depend on shared libraries, but programs linked with such libtool
6267*** libraries will work regardless of this problem. Nevertheless, you
6268*** may want to report the problem to your system manager and/or to
6269*** bug-libtool@gnu.org
6270
6271EOF
6272 fi ;;
6273 esac
6274 fi
6275 break
6276 fi
6277 done
6278 IFS="$lt_save_ifs"
6279 MAGIC_CMD="$lt_save_MAGIC_CMD"
6280 ;;
6281esac
6282fi
6283
6284MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285if test -n "$MAGIC_CMD"; then
6286 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6287echo "${ECHO_T}$MAGIC_CMD" >&6
6288else
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
6291fi
6292
6293if test -z "$lt_cv_path_MAGIC_CMD"; then
6294 if test -n "$ac_tool_prefix"; then
6295 echo "$as_me:$LINENO: checking for file" >&5
6296echo $ECHO_N "checking for file... $ECHO_C" >&6
6297if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300 case $MAGIC_CMD in
6301[\\/*] | ?:[\\/]*)
6302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6303 ;;
6304*)
6305 lt_save_MAGIC_CMD="$MAGIC_CMD"
6306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6308 for ac_dir in $ac_dummy; do
6309 IFS="$lt_save_ifs"
6310 test -z "$ac_dir" && ac_dir=.
6311 if test -f $ac_dir/file; then
6312 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6313 if test -n "$file_magic_test_file"; then
6314 case $deplibs_check_method in
6315 "file_magic "*)
6316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6319 $EGREP "$file_magic_regex" > /dev/null; then
6320 :
6321 else
6322 cat <<EOF 1>&2
6323
6324*** Warning: the command libtool uses to detect shared libraries,
6325*** $file_magic_cmd, produces output that libtool cannot recognize.
6326*** The result is that libtool may fail to recognize shared libraries
6327*** as such. This will affect the creation of libtool libraries that
6328*** depend on shared libraries, but programs linked with such libtool
6329*** libraries will work regardless of this problem. Nevertheless, you
6330*** may want to report the problem to your system manager and/or to
6331*** bug-libtool@gnu.org
6332
6333EOF
6334 fi ;;
6335 esac
6336 fi
6337 break
6338 fi
6339 done
6340 IFS="$lt_save_ifs"
6341 MAGIC_CMD="$lt_save_MAGIC_CMD"
6342 ;;
6343esac
6344fi
6345
6346MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6347if test -n "$MAGIC_CMD"; then
6348 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6349echo "${ECHO_T}$MAGIC_CMD" >&6
6350else
6351 echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
6353fi
6354
6355 else
6356 MAGIC_CMD=:
6357 fi
6358fi
6359
6360 fi
6361 ;;
6362esac
6363
6364enable_dlopen=no
6365enable_win32_dll=no
6366
6367# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6368if test "${enable_libtool_lock+set}" = set; then
6369 enableval="$enable_libtool_lock"
6370
6371fi;
6372test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6373
6374
6375# Check whether --with-pic or --without-pic was given.
6376if test "${with_pic+set}" = set; then
6377 withval="$with_pic"
6378 pic_mode="$withval"
6379else
6380 pic_mode=default
6381fi;
6382test -z "$pic_mode" && pic_mode=default
6383
6384# Use C for the default configuration in the libtool script
6385tagname=
6386lt_save_CC="$CC"
6387ac_ext=c
6388ac_cpp='$CPP $CPPFLAGS'
6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393
6394# Source file extension for C test sources.
6395ac_ext=c
6396
6397# Object file extension for compiled C test sources.
6398objext=o
6399objext=$objext
6400
6401# Code to be used in simple compile tests
6402lt_simple_compile_test_code="int some_variable = 0;\n"
6403
6404# Code to be used in simple link tests
6405lt_simple_link_test_code='int main(){return(0);}\n'
6406
6407
6408# If no C compiler was specified, use CC.
6409LTCC=${LTCC-"$CC"}
6410
6411# If no C compiler flags were specified, use CFLAGS.
6412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6413
6414# Allow CC to be a program name with arguments.
6415compiler=$CC
6416
6417
6418# save warnings/boilerplate of simple test code
6419ac_outfile=conftest.$ac_objext
6420printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6421eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6422_lt_compiler_boilerplate=`cat conftest.err`
6423$rm conftest*
6424
6425ac_outfile=conftest.$ac_objext
6426printf "$lt_simple_link_test_code" >conftest.$ac_ext
6427eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6428_lt_linker_boilerplate=`cat conftest.err`
6429$rm conftest*
6430
6431
6432
6433lt_prog_compiler_no_builtin_flag=
6434
6435if test "$GCC" = yes; then
6436 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6437
6438
6439echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6440echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6441if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444 lt_cv_prog_compiler_rtti_exceptions=no
6445 ac_outfile=conftest.$ac_objext
6446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6447 lt_compiler_flag="-fno-rtti -fno-exceptions"
6448 # Insert the option either (1) after the last *FLAGS variable, or
6449 # (2) before a word containing "conftest.", or (3) at the end.
6450 # Note that $ac_compile itself does not contain backslashes and begins
6451 # with a dollar sign (not a hyphen), so the echo should work correctly.
6452 # The option is referenced via a variable to avoid confusing sed.
6453 lt_compile=`echo "$ac_compile" | $SED \
6454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6456 -e 's:$: $lt_compiler_flag:'`
6457 (eval echo "\"\$as_me:6457: $lt_compile\"" >&5)
6458 (eval "$lt_compile" 2>conftest.err)
6459 ac_status=$?
6460 cat conftest.err >&5
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 if (exit $ac_status) && test -s "$ac_outfile"; then
6463 # The compiler can only warn and ignore the option if not recognized
6464 # So say no if there are warnings other than the usual output.
6465 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6468 lt_cv_prog_compiler_rtti_exceptions=yes
6469 fi
6470 fi
6471 $rm conftest*
6472
6473fi
6474echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6475echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6476
6477if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6478 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6479else
6480 :
6481fi
6482
6483fi
6484
6485lt_prog_compiler_wl=
6486lt_prog_compiler_pic=
6487lt_prog_compiler_static=
6488
6489echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6490echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6491
6492 if test "$GCC" = yes; then
6493 lt_prog_compiler_wl='-Wl,'
6494 lt_prog_compiler_static='-static'
6495
6496 case $host_os in
6497 aix*)
6498 # All AIX code is PIC.
6499 if test "$host_cpu" = ia64; then
6500 # AIX 5 now supports IA64 processor
6501 lt_prog_compiler_static='-Bstatic'
6502 fi
6503 ;;
6504
6505 amigaos*)
6506 # FIXME: we need at least 68020 code to build shared libraries, but
6507 # adding the `-m68020' flag to GCC prevents building anything better,
6508 # like `-m68040'.
6509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6510 ;;
6511
6512 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6513 # PIC is the default for these OSes.
6514 ;;
6515
6516 mingw* | pw32* | os2*)
6517 # This hack is so that the source file can tell whether it is being
6518 # built for inclusion in a dll (and should export symbols for example).
6519 lt_prog_compiler_pic='-DDLL_EXPORT'
6520 ;;
6521
6522 darwin* | rhapsody*)
6523 # PIC is the default on this platform
6524 # Common symbols not allowed in MH_DYLIB files
6525 lt_prog_compiler_pic='-fno-common'
6526 ;;
6527
6528 interix3*)
6529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6530 # Instead, we relocate shared libraries at runtime.
6531 ;;
6532
6533 msdosdjgpp*)
6534 # Just because we use GCC doesn't mean we suddenly get shared libraries
6535 # on systems that don't support them.
6536 lt_prog_compiler_can_build_shared=no
6537 enable_shared=no
6538 ;;
6539
6540 sysv4*MP*)
6541 if test -d /usr/nec; then
6542 lt_prog_compiler_pic=-Kconform_pic
6543 fi
6544 ;;
6545
6546 hpux*)
6547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6548 # not for PA HP-UX.
6549 case $host_cpu in
6550 hppa*64*|ia64*)
6551 # +Z the default
6552 ;;
6553 *)
6554 lt_prog_compiler_pic='-fPIC'
6555 ;;
6556 esac
6557 ;;
6558
6559 *)
6560 lt_prog_compiler_pic='-fPIC'
6561 ;;
6562 esac
6563 else
6564 # PORTME Check for flag to pass linker flags through the system compiler.
6565 case $host_os in
6566 aix*)
6567 lt_prog_compiler_wl='-Wl,'
6568 if test "$host_cpu" = ia64; then
6569 # AIX 5 now supports IA64 processor
6570 lt_prog_compiler_static='-Bstatic'
6571 else
6572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6573 fi
6574 ;;
6575 darwin*)
6576 # PIC is the default on this platform
6577 # Common symbols not allowed in MH_DYLIB files
6578 case $cc_basename in
6579 xlc*)
6580 lt_prog_compiler_pic='-qnocommon'
6581 lt_prog_compiler_wl='-Wl,'
6582 ;;
6583 esac
6584 ;;
6585
6586 mingw* | pw32* | os2*)
6587 # This hack is so that the source file can tell whether it is being
6588 # built for inclusion in a dll (and should export symbols for example).
6589 lt_prog_compiler_pic='-DDLL_EXPORT'
6590 ;;
6591
6592 hpux9* | hpux10* | hpux11*)
6593 lt_prog_compiler_wl='-Wl,'
6594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6595 # not for PA HP-UX.
6596 case $host_cpu in
6597 hppa*64*|ia64*)
6598 # +Z the default
6599 ;;
6600 *)
6601 lt_prog_compiler_pic='+Z'
6602 ;;
6603 esac
6604 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6605 lt_prog_compiler_static='${wl}-a ${wl}archive'
6606 ;;
6607
6608 irix5* | irix6* | nonstopux*)
6609 lt_prog_compiler_wl='-Wl,'
6610 # PIC (with -KPIC) is the default.
6611 lt_prog_compiler_static='-non_shared'
6612 ;;
6613
6614 newsos6)
6615 lt_prog_compiler_pic='-KPIC'
6616 lt_prog_compiler_static='-Bstatic'
6617 ;;
6618
6619 linux*)
6620 case $cc_basename in
6621 icc* | ecc*)
6622 lt_prog_compiler_wl='-Wl,'
6623 lt_prog_compiler_pic='-KPIC'
6624 lt_prog_compiler_static='-static'
6625 ;;
6626 pgcc* | pgf77* | pgf90* | pgf95*)
6627 # Portland Group compilers (*not* the Pentium gcc compiler,
6628 # which looks to be a dead project)
6629 lt_prog_compiler_wl='-Wl,'
6630 lt_prog_compiler_pic='-fpic'
6631 lt_prog_compiler_static='-Bstatic'
6632 ;;
6633 ccc*)
6634 lt_prog_compiler_wl='-Wl,'
6635 # All Alpha code is PIC.
6636 lt_prog_compiler_static='-non_shared'
6637 ;;
6638 esac
6639 ;;
6640
6641 osf3* | osf4* | osf5*)
6642 lt_prog_compiler_wl='-Wl,'
6643 # All OSF/1 code is PIC.
6644 lt_prog_compiler_static='-non_shared'
6645 ;;
6646
6647 solaris*)
6648 lt_prog_compiler_pic='-KPIC'
6649 lt_prog_compiler_static='-Bstatic'
6650 case $cc_basename in
6651 f77* | f90* | f95*)
6652 lt_prog_compiler_wl='-Qoption ld ';;
6653 *)
6654 lt_prog_compiler_wl='-Wl,';;
6655 esac
6656 ;;
6657
6658 sunos4*)
6659 lt_prog_compiler_wl='-Qoption ld '
6660 lt_prog_compiler_pic='-PIC'
6661 lt_prog_compiler_static='-Bstatic'
6662 ;;
6663
6664 sysv4 | sysv4.2uw2* | sysv4.3*)
6665 lt_prog_compiler_wl='-Wl,'
6666 lt_prog_compiler_pic='-KPIC'
6667 lt_prog_compiler_static='-Bstatic'
6668 ;;
6669
6670 sysv4*MP*)
6671 if test -d /usr/nec ;then
6672 lt_prog_compiler_pic='-Kconform_pic'
6673 lt_prog_compiler_static='-Bstatic'
6674 fi
6675 ;;
6676
6677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6678 lt_prog_compiler_wl='-Wl,'
6679 lt_prog_compiler_pic='-KPIC'
6680 lt_prog_compiler_static='-Bstatic'
6681 ;;
6682
6683 unicos*)
6684 lt_prog_compiler_wl='-Wl,'
6685 lt_prog_compiler_can_build_shared=no
6686 ;;
6687
6688 uts4*)
6689 lt_prog_compiler_pic='-pic'
6690 lt_prog_compiler_static='-Bstatic'
6691 ;;
6692
6693 *)
6694 lt_prog_compiler_can_build_shared=no
6695 ;;
6696 esac
6697 fi
6698
6699echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6700echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6701
6702#
6703# Check to make sure the PIC flag actually works.
6704#
6705if test -n "$lt_prog_compiler_pic"; then
6706
6707echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6708echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6709if test "${lt_prog_compiler_pic_works+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712 lt_prog_compiler_pic_works=no
6713 ac_outfile=conftest.$ac_objext
6714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6715 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6716 # Insert the option either (1) after the last *FLAGS variable, or
6717 # (2) before a word containing "conftest.", or (3) at the end.
6718 # Note that $ac_compile itself does not contain backslashes and begins
6719 # with a dollar sign (not a hyphen), so the echo should work correctly.
6720 # The option is referenced via a variable to avoid confusing sed.
6721 lt_compile=`echo "$ac_compile" | $SED \
6722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6724 -e 's:$: $lt_compiler_flag:'`
6725 (eval echo "\"\$as_me:6725: $lt_compile\"" >&5)
6726 (eval "$lt_compile" 2>conftest.err)
6727 ac_status=$?
6728 cat conftest.err >&5
6729 echo "$as_me:6729: \$? = $ac_status" >&5
6730 if (exit $ac_status) && test -s "$ac_outfile"; then
6731 # The compiler can only warn and ignore the option if not recognized
6732 # So say no if there are warnings other than the usual output.
6733 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6736 lt_prog_compiler_pic_works=yes
6737 fi
6738 fi
6739 $rm conftest*
6740
6741fi
6742echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6743echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6744
6745if test x"$lt_prog_compiler_pic_works" = xyes; then
6746 case $lt_prog_compiler_pic in
6747 "" | " "*) ;;
6748 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6749 esac
6750else
6751 lt_prog_compiler_pic=
6752 lt_prog_compiler_can_build_shared=no
6753fi
6754
6755fi
6756case $host_os in
6757 # For platforms which do not support PIC, -DPIC is meaningless:
6758 *djgpp*)
6759 lt_prog_compiler_pic=
6760 ;;
6761 *)
6762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6763 ;;
6764esac
6765
6766#
6767# Check to make sure the static flag actually works.
6768#
6769wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6770echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6771echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6772if test "${lt_prog_compiler_static_works+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775 lt_prog_compiler_static_works=no
6776 save_LDFLAGS="$LDFLAGS"
6777 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6778 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6779 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6780 # The linker can only warn and ignore the option if not recognized
6781 # So say no if there are warnings
6782 if test -s conftest.err; then
6783 # Append any errors to the config.log.
6784 cat conftest.err 1>&5
6785 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6787 if diff conftest.exp conftest.er2 >/dev/null; then
6788 lt_prog_compiler_static_works=yes
6789 fi
6790 else
6791 lt_prog_compiler_static_works=yes
6792 fi
6793 fi
6794 $rm conftest*
6795 LDFLAGS="$save_LDFLAGS"
6796
6797fi
6798echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6799echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6800
6801if test x"$lt_prog_compiler_static_works" = xyes; then
6802 :
6803else
6804 lt_prog_compiler_static=
6805fi
6806
6807
6808echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6809echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6810if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 lt_cv_prog_compiler_c_o=no
6814 $rm -r conftest 2>/dev/null
6815 mkdir conftest
6816 cd conftest
6817 mkdir out
6818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6819
6820 lt_compiler_flag="-o out/conftest2.$ac_objext"
6821 # Insert the option either (1) after the last *FLAGS variable, or
6822 # (2) before a word containing "conftest.", or (3) at the end.
6823 # Note that $ac_compile itself does not contain backslashes and begins
6824 # with a dollar sign (not a hyphen), so the echo should work correctly.
6825 lt_compile=`echo "$ac_compile" | $SED \
6826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6828 -e 's:$: $lt_compiler_flag:'`
6829 (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
6830 (eval "$lt_compile" 2>out/conftest.err)
6831 ac_status=$?
6832 cat out/conftest.err >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6835 then
6836 # The compiler can only warn and ignore the option if not recognized
6837 # So say no if there are warnings
6838 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6841 lt_cv_prog_compiler_c_o=yes
6842 fi
6843 fi
6844 chmod u+w . 2>&5
6845 $rm conftest*
6846 # SGI C++ compiler will create directory out/ii_files/ for
6847 # template instantiation
6848 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6849 $rm out/* && rmdir out
6850 cd ..
6851 rmdir conftest
6852 $rm conftest*
6853
6854fi
6855echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6856echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6857
6858
6859hard_links="nottested"
6860if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6861 # do not overwrite the value of need_locks provided by the user
6862 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6863echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6864 hard_links=yes
6865 $rm conftest*
6866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6867 touch conftest.a
6868 ln conftest.a conftest.b 2>&5 || hard_links=no
6869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6870 echo "$as_me:$LINENO: result: $hard_links" >&5
6871echo "${ECHO_T}$hard_links" >&6
6872 if test "$hard_links" = no; then
6873 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6874echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6875 need_locks=warn
6876 fi
6877else
6878 need_locks=no
6879fi
6880
6881echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6882echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6883
6884 runpath_var=
6885 allow_undefined_flag=
6886 enable_shared_with_static_runtimes=no
6887 archive_cmds=
6888 archive_expsym_cmds=
6889 old_archive_From_new_cmds=
6890 old_archive_from_expsyms_cmds=
6891 export_dynamic_flag_spec=
6892 whole_archive_flag_spec=
6893 thread_safe_flag_spec=
6894 hardcode_libdir_flag_spec=
6895 hardcode_libdir_flag_spec_ld=
6896 hardcode_libdir_separator=
6897 hardcode_direct=no
6898 hardcode_minus_L=no
6899 hardcode_shlibpath_var=unsupported
6900 link_all_deplibs=unknown
6901 hardcode_automatic=no
6902 module_cmds=
6903 module_expsym_cmds=
6904 always_export_symbols=no
6905 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6906 # include_expsyms should be a list of space-separated symbols to be *always*
6907 # included in the symbol list
6908 include_expsyms=
6909 # exclude_expsyms can be an extended regexp of symbols to exclude
6910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6912 # as well as any symbol that contains `d'.
6913 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6915 # platforms (ab)use it in PIC code, but their linkers get confused if
6916 # the symbol is explicitly referenced. Since portable code cannot
6917 # rely on this symbol name, it's probably fine to never include it in
6918 # preloaded symbol tables.
6919 extract_expsyms_cmds=
6920 # Just being paranoid about ensuring that cc_basename is set.
6921 for cc_temp in $compiler""; do
6922 case $cc_temp in
6923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6925 \-*) ;;
6926 *) break;;
6927 esac
6928done
6929cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6930
6931 case $host_os in
6932 cygwin* | mingw* | pw32*)
6933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6934 # When not using gcc, we currently assume that we are using
6935 # Microsoft Visual C++.
6936 if test "$GCC" != yes; then
6937 with_gnu_ld=no
6938 fi
6939 ;;
6940 interix*)
6941 # we just hope/assume this is gcc and not c89 (= MSVC++)
6942 with_gnu_ld=yes
6943 ;;
6944 openbsd*)
6945 with_gnu_ld=no
6946 ;;
6947 esac
6948
6949 ld_shlibs=yes
6950 if test "$with_gnu_ld" = yes; then
6951 # If archive_cmds runs LD, not CC, wlarc should be empty
6952 wlarc='${wl}'
6953
6954 # Set some defaults for GNU ld with shared library support. These
6955 # are reset later if shared libraries are not supported. Putting them
6956 # here allows them to be overridden if necessary.
6957 runpath_var=LD_RUN_PATH
6958 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6959 export_dynamic_flag_spec='${wl}--export-dynamic'
6960 # ancient GNU ld didn't support --whole-archive et. al.
6961 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6962 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6963 else
6964 whole_archive_flag_spec=
6965 fi
6966 supports_anon_versioning=no
6967 case `$LD -v 2>/dev/null` in
6968 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6971 *\ 2.11.*) ;; # other 2.11 versions
6972 *) supports_anon_versioning=yes ;;
6973 esac
6974
6975 # See if GNU ld supports shared libraries.
6976 case $host_os in
6977 aix3* | aix4* | aix5*)
6978 # On AIX/PPC, the GNU linker is very broken
6979 if test "$host_cpu" != ia64; then
6980 ld_shlibs=no
6981 cat <<EOF 1>&2
6982
6983*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6984*** to be unable to reliably create shared libraries on AIX.
6985*** Therefore, libtool is disabling shared libraries support. If you
6986*** really care for shared libraries, you may want to modify your PATH
6987*** so that a non-GNU linker is found, and then restart.
6988
6989EOF
6990 fi
6991 ;;
6992
6993 amigaos*)
6994 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)'
6995 hardcode_libdir_flag_spec='-L$libdir'
6996 hardcode_minus_L=yes
6997
6998 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6999 # that the semantics of dynamic libraries on AmigaOS, at least up
7000 # to version 4, is to share data among multiple programs linked
7001 # with the same dynamic library. Since this doesn't match the
7002 # behavior of shared libraries on other platforms, we can't use
7003 # them.
7004 ld_shlibs=no
7005 ;;
7006
7007 beos*)
7008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7009 allow_undefined_flag=unsupported
7010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7011 # support --undefined. This deserves some investigation. FIXME
7012 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7013 else
7014 ld_shlibs=no
7015 fi
7016 ;;
7017
7018 cygwin* | mingw* | pw32*)
7019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7020 # as there is no search path for DLLs.
7021 hardcode_libdir_flag_spec='-L$libdir'
7022 allow_undefined_flag=unsupported
7023 always_export_symbols=no
7024 enable_shared_with_static_runtimes=yes
7025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7026
7027 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7029 # If the export-symbols file already is a .def file (1st line
7030 # is EXPORTS), use it as is; otherwise, prepend...
7031 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7032 cp $export_symbols $output_objdir/$soname.def;
7033 else
7034 echo EXPORTS > $output_objdir/$soname.def;
7035 cat $export_symbols >> $output_objdir/$soname.def;
7036 fi~
7037 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7038 else
7039 ld_shlibs=no
7040 fi
7041 ;;
7042
7043 interix3*)
7044 hardcode_direct=no
7045 hardcode_shlibpath_var=no
7046 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7047 export_dynamic_flag_spec='${wl}-E'
7048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7049 # Instead, shared libraries are loaded at an image base (0x10000000 by
7050 # default) and relocated if they conflict, which is a slow very memory
7051 # consuming and fragmenting process. To avoid this, we pick a random,
7052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7055 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'
7056 ;;
7057
7058 linux*)
7059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7060 tmp_addflag=
7061 case $cc_basename,$host_cpu in
7062 pgcc*) # Portland Group C compiler
7063 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'
7064 tmp_addflag=' $pic_flag'
7065 ;;
7066 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7067 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'
7068 tmp_addflag=' $pic_flag -Mnomain' ;;
7069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7070 tmp_addflag=' -i_dynamic' ;;
7071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7072 tmp_addflag=' -i_dynamic -nofor_main' ;;
7073 ifc* | ifort*) # Intel Fortran compiler
7074 tmp_addflag=' -nofor_main' ;;
7075 esac
7076 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7077
7078 if test $supports_anon_versioning = yes; then
7079 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7081 $echo "local: *; };" >> $output_objdir/$libname.ver~
7082 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7083 fi
7084 else
7085 ld_shlibs=no
7086 fi
7087 ;;
7088
7089 netbsd*)
7090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7092 wlarc=
7093 else
7094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7096 fi
7097 ;;
7098
7099 solaris*)
7100 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7101 ld_shlibs=no
7102 cat <<EOF 1>&2
7103
7104*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7105*** create shared libraries on Solaris systems. Therefore, libtool
7106*** is disabling shared libraries support. We urge you to upgrade GNU
7107*** binutils to release 2.9.1 or newer. Another option is to modify
7108*** your PATH or compiler configuration so that the native linker is
7109*** used, and then restart.
7110
7111EOF
7112 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7115 else
7116 ld_shlibs=no
7117 fi
7118 ;;
7119
7120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7121 case `$LD -v 2>&1` in
7122 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7123 ld_shlibs=no
7124 cat <<_LT_EOF 1>&2
7125
7126*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7127*** reliably create shared libraries on SCO systems. Therefore, libtool
7128*** is disabling shared libraries support. We urge you to upgrade GNU
7129*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7130*** your PATH or compiler configuration so that the native linker is
7131*** used, and then restart.
7132
7133_LT_EOF
7134 ;;
7135 *)
7136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7137 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7140 else
7141 ld_shlibs=no
7142 fi
7143 ;;
7144 esac
7145 ;;
7146
7147 sunos4*)
7148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7149 wlarc=
7150 hardcode_direct=yes
7151 hardcode_shlibpath_var=no
7152 ;;
7153
7154 *)
7155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7158 else
7159 ld_shlibs=no
7160 fi
7161 ;;
7162 esac
7163
7164 if test "$ld_shlibs" = no; then
7165 runpath_var=
7166 hardcode_libdir_flag_spec=
7167 export_dynamic_flag_spec=
7168 whole_archive_flag_spec=
7169 fi
7170 else
7171 # PORTME fill in a description of your system's linker (not GNU ld)
7172 case $host_os in
7173 aix3*)
7174 allow_undefined_flag=unsupported
7175 always_export_symbols=yes
7176 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'
7177 # Note: this linker hardcodes the directories in LIBPATH if there
7178 # are no directories specified by -L.
7179 hardcode_minus_L=yes
7180 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7181 # Neither direct hardcoding nor static linking is supported with a
7182 # broken collect2.
7183 hardcode_direct=unsupported
7184 fi
7185 ;;
7186
7187 aix4* | aix5*)
7188 if test "$host_cpu" = ia64; then
7189 # On IA64, the linker does run time linking by default, so we don't
7190 # have to do anything special.
7191 aix_use_runtimelinking=no
7192 exp_sym_flag='-Bexport'
7193 no_entry_flag=""
7194 else
7195 # If we're using GNU nm, then we don't want the "-C" option.
7196 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7197 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7198 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'
7199 else
7200 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'
7201 fi
7202 aix_use_runtimelinking=no
7203
7204 # Test if we are trying to use run time linking or normal
7205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7206 # need to do runtime linking.
7207 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7208 for ld_flag in $LDFLAGS; do
7209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7210 aix_use_runtimelinking=yes
7211 break
7212 fi
7213 done
7214 ;;
7215 esac
7216
7217 exp_sym_flag='-bexport'
7218 no_entry_flag='-bnoentry'
7219 fi
7220
7221 # When large executables or shared objects are built, AIX ld can
7222 # have problems creating the table of contents. If linking a library
7223 # or program results in "error TOC overflow" add -mminimal-toc to
7224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7226
7227 archive_cmds=''
7228 hardcode_direct=yes
7229 hardcode_libdir_separator=':'
7230 link_all_deplibs=yes
7231
7232 if test "$GCC" = yes; then
7233 case $host_os in aix4.[012]|aix4.[012].*)
7234 # We only want to do this on AIX 4.2 and lower, the check
7235 # below for broken collect2 doesn't work under 4.3+
7236 collect2name=`${CC} -print-prog-name=collect2`
7237 if test -f "$collect2name" && \
7238 strings "$collect2name" | grep resolve_lib_name >/dev/null
7239 then
7240 # We have reworked collect2
7241 hardcode_direct=yes
7242 else
7243 # We have old collect2
7244 hardcode_direct=unsupported
7245 # It fails to find uninstalled libraries when the uninstalled
7246 # path is not listed in the libpath. Setting hardcode_minus_L
7247 # to unsupported forces relinking
7248 hardcode_minus_L=yes
7249 hardcode_libdir_flag_spec='-L$libdir'
7250 hardcode_libdir_separator=
7251 fi
7252 ;;
7253 esac
7254 shared_flag='-shared'
7255 if test "$aix_use_runtimelinking" = yes; then
7256 shared_flag="$shared_flag "'${wl}-G'
7257 fi
7258 else
7259 # not using gcc
7260 if test "$host_cpu" = ia64; then
7261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7262 # chokes on -Wl,-G. The following line is correct:
7263 shared_flag='-G'
7264 else
7265 if test "$aix_use_runtimelinking" = yes; then
7266 shared_flag='${wl}-G'
7267 else
7268 shared_flag='${wl}-bM:SRE'
7269 fi
7270 fi
7271 fi
7272
7273 # It seems that -bexpall does not export symbols beginning with
7274 # underscore (_), so it is better to generate a list of symbols to export.
7275 always_export_symbols=yes
7276 if test "$aix_use_runtimelinking" = yes; then
7277 # Warning - without using the other runtime loading flags (-brtl),
7278 # -berok will link without error, but may produce a broken library.
7279 allow_undefined_flag='-berok'
7280 # Determine the default libpath from the value encoded in an empty executable.
7281 cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h. */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h. */
7287
7288int
7289main ()
7290{
7291
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext conftest$ac_exeext
7297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -z "$ac_c_werror_flag"
7306 || test ! -s conftest.err'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318
7319aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7320}'`
7321# Check for a 64-bit object if we didn't find anything.
7322if 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; }
7323}'`; fi
7324else
7325 echo "$as_me: failed program was:" >&5
7326sed 's/^/| /' conftest.$ac_ext >&5
7327
7328fi
7329rm -f conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7332
7333 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7334 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"
7335 else
7336 if test "$host_cpu" = ia64; then
7337 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7338 allow_undefined_flag="-z nodefs"
7339 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"
7340 else
7341 # Determine the default libpath from the value encoded in an empty executable.
7342 cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h. */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h. */
7348
7349int
7350main ()
7351{
7352
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest.$ac_objext conftest$ac_exeext
7358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359 (eval $ac_link) 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try='test -z "$ac_c_werror_flag"
7367 || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try='test -s conftest$ac_exeext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379
7380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7381}'`
7382# Check for a 64-bit object if we didn't find anything.
7383if 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; }
7384}'`; fi
7385else
7386 echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389fi
7390rm -f conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7393
7394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7395 # Warning - without using the other run time loading flags,
7396 # -berok will link without error, but may produce a broken library.
7397 no_undefined_flag=' ${wl}-bernotok'
7398 allow_undefined_flag=' ${wl}-berok'
7399 # Exported symbols can be pulled into shared objects from archives
7400 whole_archive_flag_spec='$convenience'
7401 archive_cmds_need_lc=yes
7402 # This is similar to how AIX traditionally builds its shared libraries.
7403 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'
7404 fi
7405 fi
7406 ;;
7407
7408 amigaos*)
7409 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)'
7410 hardcode_libdir_flag_spec='-L$libdir'
7411 hardcode_minus_L=yes
7412 # see comment about different semantics on the GNU ld section
7413 ld_shlibs=no
7414 ;;
7415
7416 bsdi[45]*)
7417 export_dynamic_flag_spec=-rdynamic
7418 ;;
7419
7420 cygwin* | mingw* | pw32*)
7421 # When not using gcc, we currently assume that we are using
7422 # Microsoft Visual C++.
7423 # hardcode_libdir_flag_spec is actually meaningless, as there is
7424 # no search path for DLLs.
7425 hardcode_libdir_flag_spec=' '
7426 allow_undefined_flag=unsupported
7427 # Tell ltmain to make .lib files, not .a files.
7428 libext=lib
7429 # Tell ltmain to make .dll files, not .so files.
7430 shrext_cmds=".dll"
7431 # FIXME: Setting linknames here is a bad hack.
7432 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7433 # The linker will automatically build a .lib file if we build a DLL.
7434 old_archive_From_new_cmds='true'
7435 # FIXME: Should let the user specify the lib program.
7436 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7437 fix_srcfile_path='`cygpath -w "$srcfile"`'
7438 enable_shared_with_static_runtimes=yes
7439 ;;
7440
7441 darwin* | rhapsody*)
7442 case $host_os in
7443 rhapsody* | darwin1.[012])
7444 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7445 ;;
7446 *) # Darwin 1.3 on
7447 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7448 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7449 else
7450 case ${MACOSX_DEPLOYMENT_TARGET} in
7451 10.[012])
7452 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7453 ;;
7454 10.*)
7455 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7456 ;;
7457 esac
7458 fi
7459 ;;
7460 esac
7461 archive_cmds_need_lc=no
7462 hardcode_direct=no
7463 hardcode_automatic=yes
7464 hardcode_shlibpath_var=unsupported
7465 whole_archive_flag_spec=''
7466 link_all_deplibs=yes
7467 if test "$GCC" = yes ; then
7468 output_verbose_link_cmd='echo'
7469 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7470 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7471 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7472 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}'
7473 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}'
7474 else
7475 case $cc_basename in
7476 xlc*)
7477 output_verbose_link_cmd='echo'
7478 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7479 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7480 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7481 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}'
7482 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}'
7483 ;;
7484 *)
7485 ld_shlibs=no
7486 ;;
7487 esac
7488 fi
7489 ;;
7490
7491 dgux*)
7492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7493 hardcode_libdir_flag_spec='-L$libdir'
7494 hardcode_shlibpath_var=no
7495 ;;
7496
7497 freebsd1*)
7498 ld_shlibs=no
7499 ;;
7500
7501 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7502 # support. Future versions do this automatically, but an explicit c++rt0.o
7503 # does not break anything, and helps significantly (at the cost of a little
7504 # extra space).
7505 freebsd2.2*)
7506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7507 hardcode_libdir_flag_spec='-R$libdir'
7508 hardcode_direct=yes
7509 hardcode_shlibpath_var=no
7510 ;;
7511
7512 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7513 freebsd2*)
7514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7515 hardcode_direct=yes
7516 hardcode_minus_L=yes
7517 hardcode_shlibpath_var=no
7518 ;;
7519
7520 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7521 freebsd* | kfreebsd*-gnu | dragonfly*)
7522 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7523 hardcode_libdir_flag_spec='-R$libdir'
7524 hardcode_direct=yes
7525 hardcode_shlibpath_var=no
7526 ;;
7527
7528 hpux9*)
7529 if test "$GCC" = yes; then
7530 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'
7531 else
7532 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'
7533 fi
7534 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7535 hardcode_libdir_separator=:
7536 hardcode_direct=yes
7537
7538 # hardcode_minus_L: Not really in the search PATH,
7539 # but as the default location of the library.
7540 hardcode_minus_L=yes
7541 export_dynamic_flag_spec='${wl}-E'
7542 ;;
7543
7544 hpux10*)
7545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7546 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7547 else
7548 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7549 fi
7550 if test "$with_gnu_ld" = no; then
7551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7552 hardcode_libdir_separator=:
7553
7554 hardcode_direct=yes
7555 export_dynamic_flag_spec='${wl}-E'
7556
7557 # hardcode_minus_L: Not really in the search PATH,
7558 # but as the default location of the library.
7559 hardcode_minus_L=yes
7560 fi
7561 ;;
7562
7563 hpux11*)
7564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7565 case $host_cpu in
7566 hppa*64*)
7567 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7568 ;;
7569 ia64*)
7570 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7571 ;;
7572 *)
7573 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7574 ;;
7575 esac
7576 else
7577 case $host_cpu in
7578 hppa*64*)
7579 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7580 ;;
7581 ia64*)
7582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7583 ;;
7584 *)
7585 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7586 ;;
7587 esac
7588 fi
7589 if test "$with_gnu_ld" = no; then
7590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7591 hardcode_libdir_separator=:
7592
7593 case $host_cpu in
7594 hppa*64*|ia64*)
7595 hardcode_libdir_flag_spec_ld='+b $libdir'
7596 hardcode_direct=no
7597 hardcode_shlibpath_var=no
7598 ;;
7599 *)
7600 hardcode_direct=yes
7601 export_dynamic_flag_spec='${wl}-E'
7602
7603 # hardcode_minus_L: Not really in the search PATH,
7604 # but as the default location of the library.
7605 hardcode_minus_L=yes
7606 ;;
7607 esac
7608 fi
7609 ;;
7610
7611 irix5* | irix6* | nonstopux*)
7612 if test "$GCC" = yes; then
7613 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'
7614 else
7615 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'
7616 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7617 fi
7618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7619 hardcode_libdir_separator=:
7620 link_all_deplibs=yes
7621 ;;
7622
7623 netbsd*)
7624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7626 else
7627 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7628 fi
7629 hardcode_libdir_flag_spec='-R$libdir'
7630 hardcode_direct=yes
7631 hardcode_shlibpath_var=no
7632 ;;
7633
7634 newsos6)
7635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_direct=yes
7637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7638 hardcode_libdir_separator=:
7639 hardcode_shlibpath_var=no
7640 ;;
7641
7642 openbsd*)
7643 hardcode_direct=yes
7644 hardcode_shlibpath_var=no
7645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7647 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7649 export_dynamic_flag_spec='${wl}-E'
7650 else
7651 case $host_os in
7652 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7654 hardcode_libdir_flag_spec='-R$libdir'
7655 ;;
7656 *)
7657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7659 ;;
7660 esac
7661 fi
7662 ;;
7663
7664 os2*)
7665 hardcode_libdir_flag_spec='-L$libdir'
7666 hardcode_minus_L=yes
7667 allow_undefined_flag=unsupported
7668 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'
7669 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7670 ;;
7671
7672 osf3*)
7673 if test "$GCC" = yes; then
7674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7675 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'
7676 else
7677 allow_undefined_flag=' -expect_unresolved \*'
7678 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'
7679 fi
7680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7681 hardcode_libdir_separator=:
7682 ;;
7683
7684 osf4* | osf5*) # as osf3* with the addition of -msym flag
7685 if test "$GCC" = yes; then
7686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7687 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'
7688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7689 else
7690 allow_undefined_flag=' -expect_unresolved \*'
7691 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'
7692 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7693 $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'
7694
7695 # Both c and cxx compiler support -rpath directly
7696 hardcode_libdir_flag_spec='-rpath $libdir'
7697 fi
7698 hardcode_libdir_separator=:
7699 ;;
7700
7701 solaris*)
7702 no_undefined_flag=' -z text'
7703 if test "$GCC" = yes; then
7704 wlarc='${wl}'
7705 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7708 else
7709 wlarc=''
7710 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7711 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7713 fi
7714 hardcode_libdir_flag_spec='-R$libdir'
7715 hardcode_shlibpath_var=no
7716 case $host_os in
7717 solaris2.[0-5] | solaris2.[0-5].*) ;;
7718 *)
7719 # The compiler driver will combine linker options so we
7720 # cannot just pass the convience library names through
7721 # without $wl, iff we do not link with $LD.
7722 # Luckily, gcc supports the same syntax we need for Sun Studio.
7723 # Supported since Solaris 2.6 (maybe 2.5.1?)
7724 case $wlarc in
7725 '')
7726 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7727 *)
7728 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' ;;
7729 esac ;;
7730 esac
7731 link_all_deplibs=yes
7732 ;;
7733
7734 sunos4*)
7735 if test "x$host_vendor" = xsequent; then
7736 # Use $CC to link under sequent, because it throws in some extra .o
7737 # files that make .init and .fini sections work.
7738 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7739 else
7740 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7741 fi
7742 hardcode_libdir_flag_spec='-L$libdir'
7743 hardcode_direct=yes
7744 hardcode_minus_L=yes
7745 hardcode_shlibpath_var=no
7746 ;;
7747
7748 sysv4)
7749 case $host_vendor in
7750 sni)
7751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7752 hardcode_direct=yes # is this really true???
7753 ;;
7754 siemens)
7755 ## LD is ld it makes a PLAMLIB
7756 ## CC just makes a GrossModule.
7757 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7758 reload_cmds='$CC -r -o $output$reload_objs'
7759 hardcode_direct=no
7760 ;;
7761 motorola)
7762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7763 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7764 ;;
7765 esac
7766 runpath_var='LD_RUN_PATH'
7767 hardcode_shlibpath_var=no
7768 ;;
7769
7770 sysv4.3*)
7771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7772 hardcode_shlibpath_var=no
7773 export_dynamic_flag_spec='-Bexport'
7774 ;;
7775
7776 sysv4*MP*)
7777 if test -d /usr/nec; then
7778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7779 hardcode_shlibpath_var=no
7780 runpath_var=LD_RUN_PATH
7781 hardcode_runpath_var=yes
7782 ld_shlibs=yes
7783 fi
7784 ;;
7785
7786 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7787 no_undefined_flag='${wl}-z,text'
7788 archive_cmds_need_lc=no
7789 hardcode_shlibpath_var=no
7790 runpath_var='LD_RUN_PATH'
7791
7792 if test "$GCC" = yes; then
7793 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7794 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7795 else
7796 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7797 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7798 fi
7799 ;;
7800
7801 sysv5* | sco3.2v5* | sco5v6*)
7802 # Note: We can NOT use -z defs as we might desire, because we do not
7803 # link with -lc, and that would cause any symbols used from libc to
7804 # always be unresolved, which means just about no library would
7805 # ever link correctly. If we're not using GNU ld we use -z text
7806 # though, which does catch some bad symbols but isn't as heavy-handed
7807 # as -z defs.
7808 no_undefined_flag='${wl}-z,text'
7809 allow_undefined_flag='${wl}-z,nodefs'
7810 archive_cmds_need_lc=no
7811 hardcode_shlibpath_var=no
7812 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7813 hardcode_libdir_separator=':'
7814 link_all_deplibs=yes
7815 export_dynamic_flag_spec='${wl}-Bexport'
7816 runpath_var='LD_RUN_PATH'
7817
7818 if test "$GCC" = yes; then
7819 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7820 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7821 else
7822 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7823 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7824 fi
7825 ;;
7826
7827 uts4*)
7828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7829 hardcode_libdir_flag_spec='-L$libdir'
7830 hardcode_shlibpath_var=no
7831 ;;
7832
7833 *)
7834 ld_shlibs=no
7835 ;;
7836 esac
7837 fi
7838
7839echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7840echo "${ECHO_T}$ld_shlibs" >&6
7841test "$ld_shlibs" = no && can_build_shared=no
7842
7843#
7844# Do we need to explicitly link libc?
7845#
7846case "x$archive_cmds_need_lc" in
7847x|xyes)
7848 # Assume -lc should be added
7849 archive_cmds_need_lc=yes
7850
7851 if test "$enable_shared" = yes && test "$GCC" = yes; then
7852 case $archive_cmds in
7853 *'~'*)
7854 # FIXME: we may have to deal with multi-command sequences.
7855 ;;
7856 '$CC '*)
7857 # Test whether the compiler implicitly links with -lc since on some
7858 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7859 # to ld, don't add -lc before -lgcc.
7860 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7861echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7862 $rm conftest*
7863 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7864
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } 2>conftest.err; then
7870 soname=conftest
7871 lib=conftest
7872 libobjs=conftest.$ac_objext
7873 deplibs=
7874 wl=$lt_prog_compiler_wl
7875 pic_flag=$lt_prog_compiler_pic
7876 compiler_flags=-v
7877 linker_flags=-v
7878 verstring=
7879 output_objdir=.
7880 libname=conftest
7881 lt_save_allow_undefined_flag=$allow_undefined_flag
7882 allow_undefined_flag=
7883 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7884 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }
7888 then
7889 archive_cmds_need_lc=no
7890 else
7891 archive_cmds_need_lc=yes
7892 fi
7893 allow_undefined_flag=$lt_save_allow_undefined_flag
7894 else
7895 cat conftest.err 1>&5
7896 fi
7897 $rm conftest*
7898 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7899echo "${ECHO_T}$archive_cmds_need_lc" >&6
7900 ;;
7901 esac
7902 fi
7903 ;;
7904esac
7905
7906echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7907echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7908library_names_spec=
7909libname_spec='lib$name'
7910soname_spec=
7911shrext_cmds=".so"
7912postinstall_cmds=
7913postuninstall_cmds=
7914finish_cmds=
7915finish_eval=
7916shlibpath_var=
7917shlibpath_overrides_runpath=unknown
7918version_type=none
7919dynamic_linker="$host_os ld.so"
7920sys_lib_dlsearch_path_spec="/lib /usr/lib"
7921if test "$GCC" = yes; then
7922 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7923 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7924 # if the path contains ";" then we assume it to be the separator
7925 # otherwise default to the standard path separator (i.e. ":") - it is
7926 # assumed that no part of a normal pathname contains ";" but that should
7927 # okay in the real world where ";" in dirpaths is itself problematic.
7928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7929 else
7930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7931 fi
7932else
7933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7934fi
7935need_lib_prefix=unknown
7936hardcode_into_libs=no
7937
7938# when you set need_version to no, make sure it does not cause -set_version
7939# flags to be left without arguments
7940need_version=unknown
7941
7942case $host_os in
7943aix3*)
7944 version_type=linux
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7946 shlibpath_var=LIBPATH
7947
7948 # AIX 3 has no versioning support, so we append a major version to the name.
7949 soname_spec='${libname}${release}${shared_ext}$major'
7950 ;;
7951
7952aix4* | aix5*)
7953 version_type=linux
7954 need_lib_prefix=no
7955 need_version=no
7956 hardcode_into_libs=yes
7957 if test "$host_cpu" = ia64; then
7958 # AIX 5 supports IA64
7959 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7960 shlibpath_var=LD_LIBRARY_PATH
7961 else
7962 # With GCC up to 2.95.x, collect2 would create an import file
7963 # for dependence libraries. The import file would start with
7964 # the line `#! .'. This would cause the generated library to
7965 # depend on `.', always an invalid library. This was fixed in
7966 # development snapshots of GCC prior to 3.0.
7967 case $host_os in
7968 aix4 | aix4.[01] | aix4.[01].*)
7969 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7970 echo ' yes '
7971 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7972 :
7973 else
7974 can_build_shared=no
7975 fi
7976 ;;
7977 esac
7978 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7979 # soname into executable. Probably we can add versioning support to
7980 # collect2, so additional links can be useful in future.
7981 if test "$aix_use_runtimelinking" = yes; then
7982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7983 # instead of lib<name>.a to let people know that these are not
7984 # typical AIX shared libraries.
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986 else
7987 # We preserve .a as extension for shared libraries through AIX4.2
7988 # and later when we are not doing run time linking.
7989 library_names_spec='${libname}${release}.a $libname.a'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 fi
7992 shlibpath_var=LIBPATH
7993 fi
7994 ;;
7995
7996amigaos*)
7997 library_names_spec='$libname.ixlibrary $libname.a'
7998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7999 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'
8000 ;;
8001
8002beos*)
8003 library_names_spec='${libname}${shared_ext}'
8004 dynamic_linker="$host_os ld.so"
8005 shlibpath_var=LIBRARY_PATH
8006 ;;
8007
8008bsdi[45]*)
8009 version_type=linux
8010 need_version=no
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8014 shlibpath_var=LD_LIBRARY_PATH
8015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8017 # the default ld.so.conf also contains /usr/contrib/lib and
8018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8019 # libtool to hard-code these into programs
8020 ;;
8021
8022cygwin* | mingw* | pw32*)
8023 version_type=windows
8024 shrext_cmds=".dll"
8025 need_version=no
8026 need_lib_prefix=no
8027
8028 case $GCC,$host_os in
8029 yes,cygwin* | yes,mingw* | yes,pw32*)
8030 library_names_spec='$libname.dll.a'
8031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8032 postinstall_cmds='base_file=`basename \${file}`~
8033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8034 dldir=$destdir/`dirname \$dlpath`~
8035 test -d \$dldir || mkdir -p \$dldir~
8036 $install_prog $dir/$dlname \$dldir/$dlname~
8037 chmod a+x \$dldir/$dlname'
8038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8039 dlpath=$dir/\$dldll~
8040 $rm \$dlpath'
8041 shlibpath_overrides_runpath=yes
8042
8043 case $host_os in
8044 cygwin*)
8045 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8046 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8047 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8048 ;;
8049 mingw*)
8050 # MinGW DLLs use traditional 'lib' prefix
8051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8053 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8054 # It is most probably a Windows format PATH printed by
8055 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8056 # path with ; separators, and with drive letters. We can handle the
8057 # drive letters (cygwin fileutils understands them), so leave them,
8058 # especially as we might pass files found there to a mingw objdump,
8059 # which wouldn't understand a cygwinified path. Ahh.
8060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8061 else
8062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8063 fi
8064 ;;
8065 pw32*)
8066 # pw32 DLLs use 'pw' prefix rather than 'lib'
8067 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8068 ;;
8069 esac
8070 ;;
8071
8072 *)
8073 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8074 ;;
8075 esac
8076 dynamic_linker='Win32 ld.exe'
8077 # FIXME: first we should search . and the directory the executable is in
8078 shlibpath_var=PATH
8079 ;;
8080
8081darwin* | rhapsody*)
8082 dynamic_linker="$host_os dyld"
8083 version_type=darwin
8084 need_lib_prefix=no
8085 need_version=no
8086 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8087 soname_spec='${libname}${release}${major}$shared_ext'
8088 shlibpath_overrides_runpath=yes
8089 shlibpath_var=DYLD_LIBRARY_PATH
8090 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8091 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8092 if test "$GCC" = yes; then
8093 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"`
8094 else
8095 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8096 fi
8097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8098 ;;
8099
8100dgux*)
8101 version_type=linux
8102 need_lib_prefix=no
8103 need_version=no
8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8105 soname_spec='${libname}${release}${shared_ext}$major'
8106 shlibpath_var=LD_LIBRARY_PATH
8107 ;;
8108
8109freebsd1*)
8110 dynamic_linker=no
8111 ;;
8112
8113kfreebsd*-gnu)
8114 version_type=linux
8115 need_lib_prefix=no
8116 need_version=no
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 shlibpath_overrides_runpath=no
8121 hardcode_into_libs=yes
8122 dynamic_linker='GNU ld.so'
8123 ;;
8124
8125freebsd* | dragonfly*)
8126 # DragonFly does not have aout. When/if they implement a new
8127 # versioning mechanism, adjust this.
8128 if test -x /usr/bin/objformat; then
8129 objformat=`/usr/bin/objformat`
8130 else
8131 case $host_os in
8132 freebsd[123]*) objformat=aout ;;
8133 *) objformat=elf ;;
8134 esac
8135 fi
8136 version_type=freebsd-$objformat
8137 case $version_type in
8138 freebsd-elf*)
8139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8140 need_version=no
8141 need_lib_prefix=no
8142 ;;
8143 freebsd-*)
8144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8145 need_version=yes
8146 ;;
8147 esac
8148 shlibpath_var=LD_LIBRARY_PATH
8149 case $host_os in
8150 freebsd2*)
8151 shlibpath_overrides_runpath=yes
8152 ;;
8153 freebsd3.[01]* | freebsdelf3.[01]*)
8154 shlibpath_overrides_runpath=yes
8155 hardcode_into_libs=yes
8156 ;;
8157 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8158 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8159 shlibpath_overrides_runpath=no
8160 hardcode_into_libs=yes
8161 ;;
8162 freebsd*) # from 4.6 on
8163 shlibpath_overrides_runpath=yes
8164 hardcode_into_libs=yes
8165 ;;
8166 esac
8167 ;;
8168
8169gnu*)
8170 version_type=linux
8171 need_lib_prefix=no
8172 need_version=no
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8175 shlibpath_var=LD_LIBRARY_PATH
8176 hardcode_into_libs=yes
8177 ;;
8178
8179hpux9* | hpux10* | hpux11*)
8180 # Give a soname corresponding to the major version so that dld.sl refuses to
8181 # link against other versions.
8182 version_type=sunos
8183 need_lib_prefix=no
8184 need_version=no
8185 case $host_cpu in
8186 ia64*)
8187 shrext_cmds='.so'
8188 hardcode_into_libs=yes
8189 dynamic_linker="$host_os dld.so"
8190 shlibpath_var=LD_LIBRARY_PATH
8191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 if test "X$HPUX_IA64_MODE" = X32; then
8195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8196 else
8197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8198 fi
8199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8200 ;;
8201 hppa*64*)
8202 shrext_cmds='.sl'
8203 hardcode_into_libs=yes
8204 dynamic_linker="$host_os dld.sl"
8205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8211 ;;
8212 *)
8213 shrext_cmds='.sl'
8214 dynamic_linker="$host_os dld.sl"
8215 shlibpath_var=SHLIB_PATH
8216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8218 soname_spec='${libname}${release}${shared_ext}$major'
8219 ;;
8220 esac
8221 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8222 postinstall_cmds='chmod 555 $lib'
8223 ;;
8224
8225interix3*)
8226 version_type=linux
8227 need_lib_prefix=no
8228 need_version=no
8229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8230 soname_spec='${libname}${release}${shared_ext}$major'
8231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8232 shlibpath_var=LD_LIBRARY_PATH
8233 shlibpath_overrides_runpath=no
8234 hardcode_into_libs=yes
8235 ;;
8236
8237irix5* | irix6* | nonstopux*)
8238 case $host_os in
8239 nonstopux*) version_type=nonstopux ;;
8240 *)
8241 if test "$lt_cv_prog_gnu_ld" = yes; then
8242 version_type=linux
8243 else
8244 version_type=irix
8245 fi ;;
8246 esac
8247 need_lib_prefix=no
8248 need_version=no
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8251 case $host_os in
8252 irix5* | nonstopux*)
8253 libsuff= shlibsuff=
8254 ;;
8255 *)
8256 case $LD in # libtool.m4 will add one of these switches to LD
8257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8258 libsuff= shlibsuff= libmagic=32-bit;;
8259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8260 libsuff=32 shlibsuff=N32 libmagic=N32;;
8261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8263 *) libsuff= shlibsuff= libmagic=never-match;;
8264 esac
8265 ;;
8266 esac
8267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8268 shlibpath_overrides_runpath=no
8269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8271 hardcode_into_libs=yes
8272 ;;
8273
8274# No shared lib support for Linux oldld, aout, or coff.
8275linux*oldld* | linux*aout* | linux*coff*)
8276 dynamic_linker=no
8277 ;;
8278
8279# This must be Linux ELF.
8280linux*)
8281 version_type=linux
8282 need_lib_prefix=no
8283 need_version=no
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8287 shlibpath_var=LD_LIBRARY_PATH
8288 shlibpath_overrides_runpath=no
8289 # This implies no fast_install, which is unacceptable.
8290 # Some rework will be needed to allow for fast_install
8291 # before this can be enabled.
8292 hardcode_into_libs=yes
8293
8294 # find out which ABI we are using
8295 libsuff=
8296 case "$host_cpu" in
8297 x86_64*|s390x*|powerpc64*)
8298 echo '#line 8298 "configure"' > conftest.$ac_ext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; then
8304 case `/usr/bin/file conftest.$ac_objext` in
8305 *64-bit*)
8306 libsuff=64
8307 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8308 ;;
8309 esac
8310 fi
8311 rm -rf conftest*
8312 ;;
8313 esac
8314
8315 # Append ld.so.conf contents to the search path
8316 if test -f /etc/ld.so.conf; then
8317 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' ' '`
8318 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8319 fi
8320
8321 # We used to test for /lib/ld.so.1 and disable shared libraries on
8322 # powerpc, because MkLinux only supported shared libraries with the
8323 # GNU dynamic linker. Since this was broken with cross compilers,
8324 # most powerpc-linux boxes support dynamic linking these days and
8325 # people can always --disable-shared, the test was removed, and we
8326 # assume the GNU/Linux dynamic linker is in use.
8327 dynamic_linker='GNU/Linux ld.so'
8328 ;;
8329
8330knetbsd*-gnu)
8331 version_type=linux
8332 need_lib_prefix=no
8333 need_version=no
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8335 soname_spec='${libname}${release}${shared_ext}$major'
8336 shlibpath_var=LD_LIBRARY_PATH
8337 shlibpath_overrides_runpath=no
8338 hardcode_into_libs=yes
8339 dynamic_linker='GNU ld.so'
8340 ;;
8341
8342netbsd*)
8343 version_type=sunos
8344 need_lib_prefix=no
8345 need_version=no
8346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8349 dynamic_linker='NetBSD (a.out) ld.so'
8350 else
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8352 soname_spec='${libname}${release}${shared_ext}$major'
8353 dynamic_linker='NetBSD ld.elf_so'
8354 fi
8355 shlibpath_var=LD_LIBRARY_PATH
8356 shlibpath_overrides_runpath=yes
8357 hardcode_into_libs=yes
8358 ;;
8359
8360newsos6)
8361 version_type=linux
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=yes
8365 ;;
8366
8367nto-qnx*)
8368 version_type=linux
8369 need_lib_prefix=no
8370 need_version=no
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372 soname_spec='${libname}${release}${shared_ext}$major'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 shlibpath_overrides_runpath=yes
8375 ;;
8376
8377openbsd*)
8378 version_type=sunos
8379 sys_lib_dlsearch_path_spec="/usr/lib"
8380 need_lib_prefix=no
8381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8382 case $host_os in
8383 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8384 *) need_version=no ;;
8385 esac
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8390 case $host_os in
8391 openbsd2.[89] | openbsd2.[89].*)
8392 shlibpath_overrides_runpath=no
8393 ;;
8394 *)
8395 shlibpath_overrides_runpath=yes
8396 ;;
8397 esac
8398 else
8399 shlibpath_overrides_runpath=yes
8400 fi
8401 ;;
8402
8403os2*)
8404 libname_spec='$name'
8405 shrext_cmds=".dll"
8406 need_lib_prefix=no
8407 library_names_spec='$libname${shared_ext} $libname.a'
8408 dynamic_linker='OS/2 ld.exe'
8409 shlibpath_var=LIBPATH
8410 ;;
8411
8412osf3* | osf4* | osf5*)
8413 version_type=osf
8414 need_lib_prefix=no
8415 need_version=no
8416 soname_spec='${libname}${release}${shared_ext}$major'
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8421 ;;
8422
8423solaris*)
8424 version_type=linux
8425 need_lib_prefix=no
8426 need_version=no
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 shlibpath_var=LD_LIBRARY_PATH
8430 shlibpath_overrides_runpath=yes
8431 hardcode_into_libs=yes
8432 # ldd complains unless libraries are executable
8433 postinstall_cmds='chmod +x $lib'
8434 ;;
8435
8436sunos4*)
8437 version_type=sunos
8438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 shlibpath_overrides_runpath=yes
8442 if test "$with_gnu_ld" = yes; then
8443 need_lib_prefix=no
8444 fi
8445 need_version=yes
8446 ;;
8447
8448sysv4 | sysv4.3*)
8449 version_type=linux
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 case $host_vendor in
8454 sni)
8455 shlibpath_overrides_runpath=no
8456 need_lib_prefix=no
8457 export_dynamic_flag_spec='${wl}-Blargedynsym'
8458 runpath_var=LD_RUN_PATH
8459 ;;
8460 siemens)
8461 need_lib_prefix=no
8462 ;;
8463 motorola)
8464 need_lib_prefix=no
8465 need_version=no
8466 shlibpath_overrides_runpath=no
8467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8468 ;;
8469 esac
8470 ;;
8471
8472sysv4*MP*)
8473 if test -d /usr/nec ;then
8474 version_type=linux
8475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8476 soname_spec='$libname${shared_ext}.$major'
8477 shlibpath_var=LD_LIBRARY_PATH
8478 fi
8479 ;;
8480
8481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8482 version_type=freebsd-elf
8483 need_lib_prefix=no
8484 need_version=no
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 hardcode_into_libs=yes
8489 if test "$with_gnu_ld" = yes; then
8490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8491 shlibpath_overrides_runpath=no
8492 else
8493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8494 shlibpath_overrides_runpath=yes
8495 case $host_os in
8496 sco3.2v5*)
8497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8498 ;;
8499 esac
8500 fi
8501 sys_lib_dlsearch_path_spec='/usr/lib'
8502 ;;
8503
8504uts4*)
8505 version_type=linux
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8507 soname_spec='${libname}${release}${shared_ext}$major'
8508 shlibpath_var=LD_LIBRARY_PATH
8509 ;;
8510
8511*)
8512 dynamic_linker=no
8513 ;;
8514esac
8515echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8516echo "${ECHO_T}$dynamic_linker" >&6
8517test "$dynamic_linker" = no && can_build_shared=no
8518
8519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8520if test "$GCC" = yes; then
8521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8522fi
8523
8524echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8525echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8526hardcode_action=
8527if test -n "$hardcode_libdir_flag_spec" || \
8528 test -n "$runpath_var" || \
8529 test "X$hardcode_automatic" = "Xyes" ; then
8530
8531 # We can hardcode non-existant directories.
8532 if test "$hardcode_direct" != no &&
8533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8534 # have to relink, otherwise we might link with an installed library
8535 # when we should be linking with a yet-to-be-installed one
8536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8537 test "$hardcode_minus_L" != no; then
8538 # Linking always hardcodes the temporary library directory.
8539 hardcode_action=relink
8540 else
8541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8542 hardcode_action=immediate
8543 fi
8544else
8545 # We cannot hardcode anything, or else we can only hardcode existing
8546 # directories.
8547 hardcode_action=unsupported
8548fi
8549echo "$as_me:$LINENO: result: $hardcode_action" >&5
8550echo "${ECHO_T}$hardcode_action" >&6
8551
8552if test "$hardcode_action" = relink; then
8553 # Fast installation is not supported
8554 enable_fast_install=no
8555elif test "$shlibpath_overrides_runpath" = yes ||
8556 test "$enable_shared" = no; then
8557 # Fast installation is not necessary
8558 enable_fast_install=needless
8559fi
8560
8561striplib=
8562old_striplib=
8563echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8564echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8565if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8566 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8567 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8568 echo "$as_me:$LINENO: result: yes" >&5
8569echo "${ECHO_T}yes" >&6
8570else
8571# FIXME - insert some real tests, host_os isn't really good enough
8572 case $host_os in
8573 darwin*)
8574 if test -n "$STRIP" ; then
8575 striplib="$STRIP -x"
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581fi
8582 ;;
8583 *)
8584 echo "$as_me:$LINENO: result: no" >&5
8585echo "${ECHO_T}no" >&6
8586 ;;
8587 esac
8588fi
8589
8590if test "x$enable_dlopen" != xyes; then
8591 enable_dlopen=unknown
8592 enable_dlopen_self=unknown
8593 enable_dlopen_self_static=unknown
8594else
8595 lt_cv_dlopen=no
8596 lt_cv_dlopen_libs=
8597
8598 case $host_os in
8599 beos*)
8600 lt_cv_dlopen="load_add_on"
8601 lt_cv_dlopen_libs=
8602 lt_cv_dlopen_self=yes
8603 ;;
8604
8605 mingw* | pw32*)
8606 lt_cv_dlopen="LoadLibrary"
8607 lt_cv_dlopen_libs=
8608 ;;
8609
8610 cygwin*)
8611 lt_cv_dlopen="dlopen"
8612 lt_cv_dlopen_libs=
8613 ;;
8614
8615 darwin*)
8616 # if libdl is installed we need to link against it
8617 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8618echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8619if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 ac_check_lib_save_LIBS=$LIBS
8623LIBS="-ldl $LIBS"
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630
8631/* Override any gcc2 internal prototype to avoid an error. */
8632#ifdef __cplusplus
8633extern "C"
8634#endif
8635/* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637char dlopen ();
8638int
8639main ()
8640{
8641dlopen ();
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
8647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_lib_dl_dlopen=yes
8669else
8670 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673ac_cv_lib_dl_dlopen=no
8674fi
8675rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS
8678fi
8679echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8681if test $ac_cv_lib_dl_dlopen = yes; then
8682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8683else
8684
8685 lt_cv_dlopen="dyld"
8686 lt_cv_dlopen_libs=
8687 lt_cv_dlopen_self=yes
8688
8689fi
8690
8691 ;;
8692
8693 *)
8694 echo "$as_me:$LINENO: checking for shl_load" >&5
8695echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8696if test "${ac_cv_func_shl_load+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 cat >conftest.$ac_ext <<_ACEOF
8700/* confdefs.h. */
8701_ACEOF
8702cat confdefs.h >>conftest.$ac_ext
8703cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h. */
8705/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8707#define shl_load innocuous_shl_load
8708
8709/* System header to define __stub macros and hopefully few prototypes,
8710 which can conflict with char shl_load (); below.
8711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8712 <limits.h> exists even on freestanding compilers. */
8713
8714#ifdef __STDC__
8715# include <limits.h>
8716#else
8717# include <assert.h>
8718#endif
8719
8720#undef shl_load
8721
8722/* Override any gcc2 internal prototype to avoid an error. */
8723#ifdef __cplusplus
8724extern "C"
8725{
8726#endif
8727/* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729char shl_load ();
8730/* The GNU C library defines this for functions which it implements
8731 to always fail with ENOSYS. Some functions are actually named
8732 something starting with __ and the normal name is an alias. */
8733#if defined (__stub_shl_load) || defined (__stub___shl_load)
8734choke me
8735#else
8736char (*f) () = shl_load;
8737#endif
8738#ifdef __cplusplus
8739}
8740#endif
8741
8742int
8743main ()
8744{
8745return f != shl_load;
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext conftest$ac_exeext
8751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_func_shl_load=yes
8773else
8774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
8777ac_cv_func_shl_load=no
8778fi
8779rm -f conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781fi
8782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8783echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8784if test $ac_cv_func_shl_load = yes; then
8785 lt_cv_dlopen="shl_load"
8786else
8787 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
8792 ac_check_lib_save_LIBS=$LIBS
8793LIBS="-ldld $LIBS"
8794cat >conftest.$ac_ext <<_ACEOF
8795/* confdefs.h. */
8796_ACEOF
8797cat confdefs.h >>conftest.$ac_ext
8798cat >>conftest.$ac_ext <<_ACEOF
8799/* end confdefs.h. */
8800
8801/* Override any gcc2 internal prototype to avoid an error. */
8802#ifdef __cplusplus
8803extern "C"
8804#endif
8805/* We use char because int might match the return type of a gcc2
8806 builtin and then its argument prototype would still apply. */
8807char shl_load ();
8808int
8809main ()
8810{
8811shl_load ();
8812 ;
8813 return 0;
8814}
8815_ACEOF
8816rm -f conftest.$ac_objext conftest$ac_exeext
8817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_lib_dld_shl_load=yes
8839else
8840 echo "$as_me: failed program was:" >&5
8841sed 's/^/| /' conftest.$ac_ext >&5
8842
8843ac_cv_lib_dld_shl_load=no
8844fi
8845rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847LIBS=$ac_check_lib_save_LIBS
8848fi
8849echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8850echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8851if test $ac_cv_lib_dld_shl_load = yes; then
8852 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8853else
8854 echo "$as_me:$LINENO: checking for dlopen" >&5
8855echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8856if test "${ac_cv_func_dlopen+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858else
8859 cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8867#define dlopen innocuous_dlopen
8868
8869/* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char dlopen (); below.
8871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8872 <limits.h> exists even on freestanding compilers. */
8873
8874#ifdef __STDC__
8875# include <limits.h>
8876#else
8877# include <assert.h>
8878#endif
8879
8880#undef dlopen
8881
8882/* Override any gcc2 internal prototype to avoid an error. */
8883#ifdef __cplusplus
8884extern "C"
8885{
8886#endif
8887/* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889char dlopen ();
8890/* The GNU C library defines this for functions which it implements
8891 to always fail with ENOSYS. Some functions are actually named
8892 something starting with __ and the normal name is an alias. */
8893#if defined (__stub_dlopen) || defined (__stub___dlopen)
8894choke me
8895#else
8896char (*f) () = dlopen;
8897#endif
8898#ifdef __cplusplus
8899}
8900#endif
8901
8902int
8903main ()
8904{
8905return f != dlopen;
8906 ;
8907 return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext conftest$ac_exeext
8911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -z "$ac_c_werror_flag"
8920 || test ! -s conftest.err'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 (eval $ac_try) 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; } &&
8926 { ac_try='test -s conftest$ac_exeext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 ac_cv_func_dlopen=yes
8933else
8934 echo "$as_me: failed program was:" >&5
8935sed 's/^/| /' conftest.$ac_ext >&5
8936
8937ac_cv_func_dlopen=no
8938fi
8939rm -f conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941fi
8942echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8943echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8944if test $ac_cv_func_dlopen = yes; then
8945 lt_cv_dlopen="dlopen"
8946else
8947 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8948echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8949if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951else
8952 ac_check_lib_save_LIBS=$LIBS
8953LIBS="-ldl $LIBS"
8954cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h. */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */
8960
8961/* Override any gcc2 internal prototype to avoid an error. */
8962#ifdef __cplusplus
8963extern "C"
8964#endif
8965/* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967char dlopen ();
8968int
8969main ()
8970{
8971dlopen ();
8972 ;
8973 return 0;
8974}
8975_ACEOF
8976rm -f conftest.$ac_objext conftest$ac_exeext
8977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_lib_dl_dlopen=yes
8999else
9000 echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003ac_cv_lib_dl_dlopen=no
9004fi
9005rm -f conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007LIBS=$ac_check_lib_save_LIBS
9008fi
9009echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9011if test $ac_cv_lib_dl_dlopen = yes; then
9012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9013else
9014 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9015echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9016if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019 ac_check_lib_save_LIBS=$LIBS
9020LIBS="-lsvld $LIBS"
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h. */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h. */
9027
9028/* Override any gcc2 internal prototype to avoid an error. */
9029#ifdef __cplusplus
9030extern "C"
9031#endif
9032/* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9034char dlopen ();
9035int
9036main ()
9037{
9038dlopen ();
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043rm -f conftest.$ac_objext conftest$ac_exeext
9044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 ac_cv_lib_svld_dlopen=yes
9066else
9067 echo "$as_me: failed program was:" >&5
9068sed 's/^/| /' conftest.$ac_ext >&5
9069
9070ac_cv_lib_svld_dlopen=no
9071fi
9072rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074LIBS=$ac_check_lib_save_LIBS
9075fi
9076echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9077echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9078if test $ac_cv_lib_svld_dlopen = yes; then
9079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9080else
9081 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9082echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9083if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086 ac_check_lib_save_LIBS=$LIBS
9087LIBS="-ldld $LIBS"
9088cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h. */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h. */
9094
9095/* Override any gcc2 internal prototype to avoid an error. */
9096#ifdef __cplusplus
9097extern "C"
9098#endif
9099/* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101char dld_link ();
9102int
9103main ()
9104{
9105dld_link ();
9106 ;
9107 return 0;
9108}
9109_ACEOF
9110rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112 (eval $ac_link) 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_lib_dld_dld_link=yes
9133else
9134 echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137ac_cv_lib_dld_dld_link=no
9138fi
9139rm -f conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141LIBS=$ac_check_lib_save_LIBS
9142fi
9143echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9144echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9145if test $ac_cv_lib_dld_dld_link = yes; then
9146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9147fi
9148
9149
9150fi
9151
9152
9153fi
9154
9155
9156fi
9157
9158
9159fi
9160
9161
9162fi
9163
9164 ;;
9165 esac
9166
9167 if test "x$lt_cv_dlopen" != xno; then
9168 enable_dlopen=yes
9169 else
9170 enable_dlopen=no
9171 fi
9172
9173 case $lt_cv_dlopen in
9174 dlopen)
9175 save_CPPFLAGS="$CPPFLAGS"
9176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9177
9178 save_LDFLAGS="$LDFLAGS"
9179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9180
9181 save_LIBS="$LIBS"
9182 LIBS="$lt_cv_dlopen_libs $LIBS"
9183
9184 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9185echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9186if test "${lt_cv_dlopen_self+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189 if test "$cross_compiling" = yes; then :
9190 lt_cv_dlopen_self=cross
9191else
9192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9193 lt_status=$lt_dlunknown
9194 cat > conftest.$ac_ext <<EOF
9195#line 9195 "configure"
9196#include "confdefs.h"
9197
9198#if HAVE_DLFCN_H
9199#include <dlfcn.h>
9200#endif
9201
9202#include <stdio.h>
9203
9204#ifdef RTLD_GLOBAL
9205# define LT_DLGLOBAL RTLD_GLOBAL
9206#else
9207# ifdef DL_GLOBAL
9208# define LT_DLGLOBAL DL_GLOBAL
9209# else
9210# define LT_DLGLOBAL 0
9211# endif
9212#endif
9213
9214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9215 find out it does not work in some platform. */
9216#ifndef LT_DLLAZY_OR_NOW
9217# ifdef RTLD_LAZY
9218# define LT_DLLAZY_OR_NOW RTLD_LAZY
9219# else
9220# ifdef DL_LAZY
9221# define LT_DLLAZY_OR_NOW DL_LAZY
9222# else
9223# ifdef RTLD_NOW
9224# define LT_DLLAZY_OR_NOW RTLD_NOW
9225# else
9226# ifdef DL_NOW
9227# define LT_DLLAZY_OR_NOW DL_NOW
9228# else
9229# define LT_DLLAZY_OR_NOW 0
9230# endif
9231# endif
9232# endif
9233# endif
9234#endif
9235
9236#ifdef __cplusplus
9237extern "C" void exit (int);
9238#endif
9239
9240void fnord() { int i=42;}
9241int main ()
9242{
9243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9244 int status = $lt_dlunknown;
9245
9246 if (self)
9247 {
9248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9250 /* dlclose (self); */
9251 }
9252 else
9253 puts (dlerror ());
9254
9255 exit (status);
9256}
9257EOF
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9263 (./conftest; exit; ) >&5 2>/dev/null
9264 lt_status=$?
9265 case x$lt_status in
9266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9269 esac
9270 else :
9271 # compilation failed
9272 lt_cv_dlopen_self=no
9273 fi
9274fi
9275rm -fr conftest*
9276
9277
9278fi
9279echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9280echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9281
9282 if test "x$lt_cv_dlopen_self" = xyes; then
9283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9284 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9285echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9286if test "${lt_cv_dlopen_self_static+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 if test "$cross_compiling" = yes; then :
9290 lt_cv_dlopen_self_static=cross
9291else
9292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9293 lt_status=$lt_dlunknown
9294 cat > conftest.$ac_ext <<EOF
9295#line 9295 "configure"
9296#include "confdefs.h"
9297
9298#if HAVE_DLFCN_H
9299#include <dlfcn.h>
9300#endif
9301
9302#include <stdio.h>
9303
9304#ifdef RTLD_GLOBAL
9305# define LT_DLGLOBAL RTLD_GLOBAL
9306#else
9307# ifdef DL_GLOBAL
9308# define LT_DLGLOBAL DL_GLOBAL
9309# else
9310# define LT_DLGLOBAL 0
9311# endif
9312#endif
9313
9314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9315 find out it does not work in some platform. */
9316#ifndef LT_DLLAZY_OR_NOW
9317# ifdef RTLD_LAZY
9318# define LT_DLLAZY_OR_NOW RTLD_LAZY
9319# else
9320# ifdef DL_LAZY
9321# define LT_DLLAZY_OR_NOW DL_LAZY
9322# else
9323# ifdef RTLD_NOW
9324# define LT_DLLAZY_OR_NOW RTLD_NOW
9325# else
9326# ifdef DL_NOW
9327# define LT_DLLAZY_OR_NOW DL_NOW
9328# else
9329# define LT_DLLAZY_OR_NOW 0
9330# endif
9331# endif
9332# endif
9333# endif
9334#endif
9335
9336#ifdef __cplusplus
9337extern "C" void exit (int);
9338#endif
9339
9340void fnord() { int i=42;}
9341int main ()
9342{
9343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9344 int status = $lt_dlunknown;
9345
9346 if (self)
9347 {
9348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9350 /* dlclose (self); */
9351 }
9352 else
9353 puts (dlerror ());
9354
9355 exit (status);
9356}
9357EOF
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9363 (./conftest; exit; ) >&5 2>/dev/null
9364 lt_status=$?
9365 case x$lt_status in
9366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9368 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9369 esac
9370 else :
9371 # compilation failed
9372 lt_cv_dlopen_self_static=no
9373 fi
9374fi
9375rm -fr conftest*
9376
9377
9378fi
9379echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9380echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9381 fi
9382
9383 CPPFLAGS="$save_CPPFLAGS"
9384 LDFLAGS="$save_LDFLAGS"
9385 LIBS="$save_LIBS"
9386 ;;
9387 esac
9388
9389 case $lt_cv_dlopen_self in
9390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9391 *) enable_dlopen_self=unknown ;;
9392 esac
9393
9394 case $lt_cv_dlopen_self_static in
9395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9396 *) enable_dlopen_self_static=unknown ;;
9397 esac
9398fi
9399
9400
9401# Report which library types will actually be built
9402echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9403echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9404echo "$as_me:$LINENO: result: $can_build_shared" >&5
9405echo "${ECHO_T}$can_build_shared" >&6
9406
9407echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9408echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9409test "$can_build_shared" = "no" && enable_shared=no
9410
9411# On AIX, shared libraries and static libraries use the same namespace, and
9412# are all built from PIC.
9413case $host_os in
9414aix3*)
9415 test "$enable_shared" = yes && enable_static=no
9416 if test -n "$RANLIB"; then
9417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9418 postinstall_cmds='$RANLIB $lib'
9419 fi
9420 ;;
9421
9422aix4* | aix5*)
9423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9424 test "$enable_shared" = yes && enable_static=no
9425 fi
9426 ;;
9427esac
9428echo "$as_me:$LINENO: result: $enable_shared" >&5
9429echo "${ECHO_T}$enable_shared" >&6
9430
9431echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9432echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9433# Make sure either enable_shared or enable_static is yes.
9434test "$enable_shared" = yes || enable_static=yes
9435echo "$as_me:$LINENO: result: $enable_static" >&5
9436echo "${ECHO_T}$enable_static" >&6
9437
9438# The else clause should only fire when bootstrapping the
9439# libtool distribution, otherwise you forgot to ship ltmain.sh
9440# with your package, and you will get complaints that there are
9441# no rules to generate ltmain.sh.
9442if test -f "$ltmain"; then
9443 # See if we are running on zsh, and set the options which allow our commands through
9444 # without removal of \ escapes.
9445 if test -n "${ZSH_VERSION+set}" ; then
9446 setopt NO_GLOB_SUBST
9447 fi
9448 # Now quote all the things that may contain metacharacters while being
9449 # careful not to overquote the AC_SUBSTed values. We take copies of the
9450 # variables and quote the copies for generation of the libtool script.
9451 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9452 SED SHELL STRIP \
9453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9455 deplibs_check_method reload_flag reload_cmds need_locks \
9456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9457 lt_cv_sys_global_symbol_to_c_name_address \
9458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9459 old_postinstall_cmds old_postuninstall_cmds \
9460 compiler \
9461 CC \
9462 LD \
9463 lt_prog_compiler_wl \
9464 lt_prog_compiler_pic \
9465 lt_prog_compiler_static \
9466 lt_prog_compiler_no_builtin_flag \
9467 export_dynamic_flag_spec \
9468 thread_safe_flag_spec \
9469 whole_archive_flag_spec \
9470 enable_shared_with_static_runtimes \
9471 old_archive_cmds \
9472 old_archive_from_new_cmds \
9473 predep_objects \
9474 postdep_objects \
9475 predeps \
9476 postdeps \
9477 compiler_lib_search_path \
9478 archive_cmds \
9479 archive_expsym_cmds \
9480 postinstall_cmds \
9481 postuninstall_cmds \
9482 old_archive_from_expsyms_cmds \
9483 allow_undefined_flag \
9484 no_undefined_flag \
9485 export_symbols_cmds \
9486 hardcode_libdir_flag_spec \
9487 hardcode_libdir_flag_spec_ld \
9488 hardcode_libdir_separator \
9489 hardcode_automatic \
9490 module_cmds \
9491 module_expsym_cmds \
9492 lt_cv_prog_compiler_c_o \
9493 exclude_expsyms \
9494 include_expsyms; do
9495
9496 case $var in
9497 old_archive_cmds | \
9498 old_archive_from_new_cmds | \
9499 archive_cmds | \
9500 archive_expsym_cmds | \
9501 module_cmds | \
9502 module_expsym_cmds | \
9503 old_archive_from_expsyms_cmds | \
9504 export_symbols_cmds | \
9505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9506 postinstall_cmds | postuninstall_cmds | \
9507 old_postinstall_cmds | old_postuninstall_cmds | \
9508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9509 # Double-quote double-evaled strings.
9510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9511 ;;
9512 *)
9513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9514 ;;
9515 esac
9516 done
9517
9518 case $lt_echo in
9519 *'\$0 --fallback-echo"')
9520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9521 ;;
9522 esac
9523
9524cfgfile="${ofile}T"
9525 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9526 $rm -f "$cfgfile"
9527 { echo "$as_me:$LINENO: creating $ofile" >&5
9528echo "$as_me: creating $ofile" >&6;}
9529
9530 cat <<__EOF__ >> "$cfgfile"
9531#! $SHELL
9532
9533# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9534# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9535# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9536#
9537# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9538# Free Software Foundation, Inc.
9539#
9540# This file is part of GNU Libtool:
9541# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9542#
9543# This program is free software; you can redistribute it and/or modify
9544# it under the terms of the GNU General Public License as published by
9545# the Free Software Foundation; either version 2 of the License, or
9546# (at your option) any later version.
9547#
9548# This program is distributed in the hope that it will be useful, but
9549# WITHOUT ANY WARRANTY; without even the implied warranty of
9550# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9551# General Public License for more details.
9552#
9553# You should have received a copy of the GNU General Public License
9554# along with this program; if not, write to the Free Software
9555# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9556#
9557# As a special exception to the GNU General Public License, if you
9558# distribute this file as part of a program that contains a
9559# configuration script generated by Autoconf, you may include it under
9560# the same distribution terms that you use for the rest of that program.
9561
9562# A sed program that does not truncate output.
9563SED=$lt_SED
9564
9565# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9566Xsed="$SED -e 1s/^X//"
9567
9568# The HP-UX ksh and POSIX shell print the target directory to stdout
9569# if CDPATH is set.
9570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9571
9572# The names of the tagged configurations supported by this script.
9573available_tags=
9574
9575# ### BEGIN LIBTOOL CONFIG
9576
9577# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9578
9579# Shell to use when invoking shell scripts.
9580SHELL=$lt_SHELL
9581
9582# Whether or not to build shared libraries.
9583build_libtool_libs=$enable_shared
9584
9585# Whether or not to build static libraries.
9586build_old_libs=$enable_static
9587
9588# Whether or not to add -lc for building shared libraries.
9589build_libtool_need_lc=$archive_cmds_need_lc
9590
9591# Whether or not to disallow shared libs when runtime libs are static
9592allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9593
9594# Whether or not to optimize for fast installation.
9595fast_install=$enable_fast_install
9596
9597# The host system.
9598host_alias=$host_alias
9599host=$host
9600host_os=$host_os
9601
9602# The build system.
9603build_alias=$build_alias
9604build=$build
9605build_os=$build_os
9606
9607# An echo program that does not interpret backslashes.
9608echo=$lt_echo
9609
9610# The archiver.
9611AR=$lt_AR
9612AR_FLAGS=$lt_AR_FLAGS
9613
9614# A C compiler.
9615LTCC=$lt_LTCC
9616
9617# LTCC compiler flags.
9618LTCFLAGS=$lt_LTCFLAGS
9619
9620# A language-specific compiler.
9621CC=$lt_compiler
9622
9623# Is the compiler the GNU C compiler?
9624with_gcc=$GCC
9625
9626gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9627gcc_ver=\`gcc -dumpversion\`
9628
9629# An ERE matcher.
9630EGREP=$lt_EGREP
9631
9632# The linker used to build libraries.
9633LD=$lt_LD
9634
9635# Whether we need hard or soft links.
9636LN_S=$lt_LN_S
9637
9638# A BSD-compatible nm program.
9639NM=$lt_NM
9640
9641# A symbol stripping program
9642STRIP=$lt_STRIP
9643
9644# Used to examine libraries when file_magic_cmd begins "file"
9645MAGIC_CMD=$MAGIC_CMD
9646
9647# Used on cygwin: DLL creation program.
9648DLLTOOL="$DLLTOOL"
9649
9650# Used on cygwin: object dumper.
9651OBJDUMP="$OBJDUMP"
9652
9653# Used on cygwin: assembler.
9654AS="$AS"
9655
9656# The name of the directory that contains temporary libtool files.
9657objdir=$objdir
9658
9659# How to create reloadable object files.
9660reload_flag=$lt_reload_flag
9661reload_cmds=$lt_reload_cmds
9662
9663# How to pass a linker flag through the compiler.
9664wl=$lt_lt_prog_compiler_wl
9665
9666# Object file suffix (normally "o").
9667objext="$ac_objext"
9668
9669# Old archive suffix (normally "a").
9670libext="$libext"
9671
9672# Shared library suffix (normally ".so").
9673shrext_cmds='$shrext_cmds'
9674
9675# Executable file suffix (normally "").
9676exeext="$exeext"
9677
9678# Additional compiler flags for building library objects.
9679pic_flag=$lt_lt_prog_compiler_pic
9680pic_mode=$pic_mode
9681
9682# What is the maximum length of a command?
9683max_cmd_len=$lt_cv_sys_max_cmd_len
9684
9685# Does compiler simultaneously support -c and -o options?
9686compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9687
9688# Must we lock files when doing compilation?
9689need_locks=$lt_need_locks
9690
9691# Do we need the lib prefix for modules?
9692need_lib_prefix=$need_lib_prefix
9693
9694# Do we need a version for libraries?
9695need_version=$need_version
9696
9697# Whether dlopen is supported.
9698dlopen_support=$enable_dlopen
9699
9700# Whether dlopen of programs is supported.
9701dlopen_self=$enable_dlopen_self
9702
9703# Whether dlopen of statically linked programs is supported.
9704dlopen_self_static=$enable_dlopen_self_static
9705
9706# Compiler flag to prevent dynamic linking.
9707link_static_flag=$lt_lt_prog_compiler_static
9708
9709# Compiler flag to turn off builtin functions.
9710no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9711
9712# Compiler flag to allow reflexive dlopens.
9713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9714
9715# Compiler flag to generate shared objects directly from archives.
9716whole_archive_flag_spec=$lt_whole_archive_flag_spec
9717
9718# Compiler flag to generate thread-safe objects.
9719thread_safe_flag_spec=$lt_thread_safe_flag_spec
9720
9721# Library versioning type.
9722version_type=$version_type
9723
9724# Format of library name prefix.
9725libname_spec=$lt_libname_spec
9726
9727# List of archive names. First name is the real one, the rest are links.
9728# The last name is the one that the linker finds with -lNAME.
9729library_names_spec=$lt_library_names_spec
9730
9731# The coded name of the library, if different from the real name.
9732soname_spec=$lt_soname_spec
9733
9734# Commands used to build and install an old-style archive.
9735RANLIB=$lt_RANLIB
9736old_archive_cmds=$lt_old_archive_cmds
9737old_postinstall_cmds=$lt_old_postinstall_cmds
9738old_postuninstall_cmds=$lt_old_postuninstall_cmds
9739
9740# Create an old-style archive from a shared archive.
9741old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9742
9743# Create a temporary old-style archive to link instead of a shared archive.
9744old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9745
9746# Commands used to build and install a shared archive.
9747archive_cmds=$lt_archive_cmds
9748archive_expsym_cmds=$lt_archive_expsym_cmds
9749postinstall_cmds=$lt_postinstall_cmds
9750postuninstall_cmds=$lt_postuninstall_cmds
9751
9752# Commands used to build a loadable module (assumed same as above if empty)
9753module_cmds=$lt_module_cmds
9754module_expsym_cmds=$lt_module_expsym_cmds
9755
9756# Commands to strip libraries.
9757old_striplib=$lt_old_striplib
9758striplib=$lt_striplib
9759
9760# Dependencies to place before the objects being linked to create a
9761# shared library.
9762predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9763
9764# Dependencies to place after the objects being linked to create a
9765# shared library.
9766postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9767
9768# Dependencies to place before the objects being linked to create a
9769# shared library.
9770predeps=$lt_predeps
9771
9772# Dependencies to place after the objects being linked to create a
9773# shared library.
9774postdeps=$lt_postdeps
9775
9776# The library search path used internally by the compiler when linking
9777# a shared library.
9778compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9779
9780# Method to check whether dependent libraries are shared objects.
9781deplibs_check_method=$lt_deplibs_check_method
9782
9783# Command to use when deplibs_check_method == file_magic.
9784file_magic_cmd=$lt_file_magic_cmd
9785
9786# Flag that allows shared libraries with undefined symbols to be built.
9787allow_undefined_flag=$lt_allow_undefined_flag
9788
9789# Flag that forces no undefined symbols.
9790no_undefined_flag=$lt_no_undefined_flag
9791
9792# Commands used to finish a libtool library installation in a directory.
9793finish_cmds=$lt_finish_cmds
9794
9795# Same as above, but a single script fragment to be evaled but not shown.
9796finish_eval=$lt_finish_eval
9797
9798# Take the output of nm and produce a listing of raw symbols and C names.
9799global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9800
9801# Transform the output of nm in a proper C declaration
9802global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9803
9804# Transform the output of nm in a C name address pair
9805global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9806
9807# This is the shared library runtime path variable.
9808runpath_var=$runpath_var
9809
9810# This is the shared library path variable.
9811shlibpath_var=$shlibpath_var
9812
9813# Is shlibpath searched before the hard-coded library search path?
9814shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9815
9816# How to hardcode a shared library path into an executable.
9817hardcode_action=$hardcode_action
9818
9819# Whether we should hardcode library paths into libraries.
9820hardcode_into_libs=$hardcode_into_libs
9821
9822# Flag to hardcode \$libdir into a binary during linking.
9823# This must work even if \$libdir does not exist.
9824hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9825
9826# If ld is used when linking, flag to hardcode \$libdir into
9827# a binary during linking. This must work even if \$libdir does
9828# not exist.
9829hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9830
9831# Whether we need a single -rpath flag with a separated argument.
9832hardcode_libdir_separator=$lt_hardcode_libdir_separator
9833
9834# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9835# resulting binary.
9836hardcode_direct=$hardcode_direct
9837
9838# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9839# resulting binary.
9840hardcode_minus_L=$hardcode_minus_L
9841
9842# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9843# the resulting binary.
9844hardcode_shlibpath_var=$hardcode_shlibpath_var
9845
9846# Set to yes if building a shared library automatically hardcodes DIR into the library
9847# and all subsequent libraries and executables linked against it.
9848hardcode_automatic=$hardcode_automatic
9849
9850# Variables whose values should be saved in libtool wrapper scripts and
9851# restored at relink time.
9852variables_saved_for_relink="$variables_saved_for_relink"
9853
9854# Whether libtool must link a program against all its dependency libraries.
9855link_all_deplibs=$link_all_deplibs
9856
9857# Compile-time system search path for libraries
9858sys_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"\`
9859
9860# Run-time system search path for libraries
9861sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9862
9863# Fix the shell variable \$srcfile for the compiler.
9864fix_srcfile_path="$fix_srcfile_path"
9865
9866# Set to yes if exported symbols are required.
9867always_export_symbols=$always_export_symbols
9868
9869# The commands to list exported symbols.
9870export_symbols_cmds=$lt_export_symbols_cmds
9871
9872# The commands to extract the exported symbol list from a shared archive.
9873extract_expsyms_cmds=$lt_extract_expsyms_cmds
9874
9875# Symbols that should not be listed in the preloaded symbols.
9876exclude_expsyms=$lt_exclude_expsyms
9877
9878# Symbols that must always be exported.
9879include_expsyms=$lt_include_expsyms
9880
9881# ### END LIBTOOL CONFIG
9882
9883__EOF__
9884
9885
9886 case $host_os in
9887 aix3*)
9888 cat <<\EOF >> "$cfgfile"
9889
9890# AIX sometimes has problems with the GCC collect2 program. For some
9891# reason, if we set the COLLECT_NAMES environment variable, the problems
9892# vanish in a puff of smoke.
9893if test "X${COLLECT_NAMES+set}" != Xset; then
9894 COLLECT_NAMES=
9895 export COLLECT_NAMES
9896fi
9897EOF
9898 ;;
9899 esac
9900
9901 # We use sed instead of cat because bash on DJGPP gets confused if
9902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9903 # text mode, it properly converts lines to CR/LF. This bash problem
9904 # is reportedly fixed, but why not run on old versions too?
9905 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9906
9907 mv -f "$cfgfile" "$ofile" || \
9908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9909 chmod +x "$ofile"
9910
9911else
9912 # If there is no Makefile yet, we rely on a make rule to execute
9913 # `config.status --recheck' to rerun these tests and create the
9914 # libtool script then.
9915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9916 if test -f "$ltmain_in"; then
9917 test -f Makefile && make "$ltmain"
9918 fi
9919fi
9920
9921
9922ac_ext=c
9923ac_cpp='$CPP $CPPFLAGS'
9924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9926ac_compiler_gnu=$ac_cv_c_compiler_gnu
9927
9928CC="$lt_save_CC"
9929
9930
9931# Check whether --with-tags or --without-tags was given.
9932if test "${with_tags+set}" = set; then
9933 withval="$with_tags"
9934 tagnames="$withval"
9935fi;
9936
9937if test -f "$ltmain" && test -n "$tagnames"; then
9938 if test ! -f "${ofile}"; then
9939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9940echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9941 fi
9942
9943 if test -z "$LTCC"; then
9944 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9945 if test -z "$LTCC"; then
9946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9947echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9948 else
9949 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9950echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9951 fi
9952 fi
9953 if test -z "$LTCFLAGS"; then
9954 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9955 fi
9956
9957 # Extract list of available tagged configurations in $ofile.
9958 # Note that this assumes the entire list is on one line.
9959 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9960
9961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9962 for tagname in $tagnames; do
9963 IFS="$lt_save_ifs"
9964 # Check whether tagname contains only valid characters
9965 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9966 "") ;;
9967 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9968echo "$as_me: error: invalid tag name: $tagname" >&2;}
9969 { (exit 1); exit 1; }; }
9970 ;;
9971 esac
9972
9973 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9974 then
9975 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9976echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9977 { (exit 1); exit 1; }; }
9978 fi
9979
9980 # Update the list of available tags.
9981 if test -n "$tagname"; then
9982 echo appending configuration tag \"$tagname\" to $ofile
9983
9984 case $tagname in
9985 CXX)
9986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9988 (test "X$CXX" != "Xg++"))) ; then
9989 ac_ext=cc
9990ac_cpp='$CXXCPP $CPPFLAGS'
9991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9994
9995
9996
9997
9998archive_cmds_need_lc_CXX=no
9999allow_undefined_flag_CXX=
10000always_export_symbols_CXX=no
10001archive_expsym_cmds_CXX=
10002export_dynamic_flag_spec_CXX=
10003hardcode_direct_CXX=no
10004hardcode_libdir_flag_spec_CXX=
10005hardcode_libdir_flag_spec_ld_CXX=
10006hardcode_libdir_separator_CXX=
10007hardcode_minus_L_CXX=no
10008hardcode_shlibpath_var_CXX=unsupported
10009hardcode_automatic_CXX=no
10010module_cmds_CXX=
10011module_expsym_cmds_CXX=
10012link_all_deplibs_CXX=unknown
10013old_archive_cmds_CXX=$old_archive_cmds
10014no_undefined_flag_CXX=
10015whole_archive_flag_spec_CXX=
10016enable_shared_with_static_runtimes_CXX=no
10017
10018# Dependencies to place before and after the object being linked:
10019predep_objects_CXX=
10020postdep_objects_CXX=
10021predeps_CXX=
10022postdeps_CXX=
10023compiler_lib_search_path_CXX=
10024
10025# Source file extension for C++ test sources.
10026ac_ext=cpp
10027
10028# Object file extension for compiled C++ test sources.
10029objext=o
10030objext_CXX=$objext
10031
10032# Code to be used in simple compile tests
10033lt_simple_compile_test_code="int some_variable = 0;\n"
10034
10035# Code to be used in simple link tests
10036lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10037
10038# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10039
10040# If no C compiler was specified, use CC.
10041LTCC=${LTCC-"$CC"}
10042
10043# If no C compiler flags were specified, use CFLAGS.
10044LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10045
10046# Allow CC to be a program name with arguments.
10047compiler=$CC
10048
10049
10050# save warnings/boilerplate of simple test code
10051ac_outfile=conftest.$ac_objext
10052printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10054_lt_compiler_boilerplate=`cat conftest.err`
10055$rm conftest*
10056
10057ac_outfile=conftest.$ac_objext
10058printf "$lt_simple_link_test_code" >conftest.$ac_ext
10059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10060_lt_linker_boilerplate=`cat conftest.err`
10061$rm conftest*
10062
10063
10064# Allow CC to be a program name with arguments.
10065lt_save_CC=$CC
10066lt_save_LD=$LD
10067lt_save_GCC=$GCC
10068GCC=$GXX
10069lt_save_with_gnu_ld=$with_gnu_ld
10070lt_save_path_LD=$lt_cv_path_LD
10071if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10072 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10073else
10074 $as_unset lt_cv_prog_gnu_ld
10075fi
10076if test -n "${lt_cv_path_LDCXX+set}"; then
10077 lt_cv_path_LD=$lt_cv_path_LDCXX
10078else
10079 $as_unset lt_cv_path_LD
10080fi
10081test -z "${LDCXX+set}" || LD=$LDCXX
10082CC=${CXX-"c++"}
10083compiler=$CC
10084compiler_CXX=$CC
10085for cc_temp in $compiler""; do
10086 case $cc_temp in
10087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10089 \-*) ;;
10090 *) break;;
10091 esac
10092done
10093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10094
10095
10096# We don't want -fno-exception wen compiling C++ code, so set the
10097# no_builtin_flag separately
10098if test "$GXX" = yes; then
10099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10100else
10101 lt_prog_compiler_no_builtin_flag_CXX=
10102fi
10103
10104if test "$GXX" = yes; then
10105 # Set up default GNU C++ configuration
10106
10107
10108# Check whether --with-gnu-ld or --without-gnu-ld was given.
10109if test "${with_gnu_ld+set}" = set; then
10110 withval="$with_gnu_ld"
10111 test "$withval" = no || with_gnu_ld=yes
10112else
10113 with_gnu_ld=no
10114fi;
10115ac_prog=ld
10116if test "$GCC" = yes; then
10117 # Check if gcc -print-prog-name=ld gives a path.
10118 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10119echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10120 case $host in
10121 *-*-mingw*)
10122 # gcc leaves a trailing carriage return which upsets mingw
10123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10124 *)
10125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10126 esac
10127 case $ac_prog in
10128 # Accept absolute paths.
10129 [\\/]* | ?:[\\/]*)
10130 re_direlt='/[^/][^/]*/\.\./'
10131 # Canonicalize the pathname of ld
10132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10135 done
10136 test -z "$LD" && LD="$ac_prog"
10137 ;;
10138 "")
10139 # If it fails, then pretend we aren't using GCC.
10140 ac_prog=ld
10141 ;;
10142 *)
10143 # If it is relative, then search for the first ld in PATH.
10144 with_gnu_ld=unknown
10145 ;;
10146 esac
10147elif test "$with_gnu_ld" = yes; then
10148 echo "$as_me:$LINENO: checking for GNU ld" >&5
10149echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10150else
10151 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10152echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10153fi
10154if test "${lt_cv_path_LD+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157 if test -z "$LD"; then
10158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10159 for ac_dir in $PATH; do
10160 IFS="$lt_save_ifs"
10161 test -z "$ac_dir" && ac_dir=.
10162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10163 lt_cv_path_LD="$ac_dir/$ac_prog"
10164 # Check to see if the program is GNU ld. I'd rather use --version,
10165 # but apparently some variants of GNU ld only accept -v.
10166 # Break only if it was the GNU/non-GNU ld that we prefer.
10167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10168 *GNU* | *'with BFD'*)
10169 test "$with_gnu_ld" != no && break
10170 ;;
10171 *)
10172 test "$with_gnu_ld" != yes && break
10173 ;;
10174 esac
10175 fi
10176 done
10177 IFS="$lt_save_ifs"
10178else
10179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10180fi
10181fi
10182
10183LD="$lt_cv_path_LD"
10184if test -n "$LD"; then
10185 echo "$as_me:$LINENO: result: $LD" >&5
10186echo "${ECHO_T}$LD" >&6
10187else
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
10190fi
10191test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10192echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10193 { (exit 1); exit 1; }; }
10194echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10195echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10196if test "${lt_cv_prog_gnu_ld+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198else
10199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10200case `$LD -v 2>&1 </dev/null` in
10201*GNU* | *'with BFD'*)
10202 lt_cv_prog_gnu_ld=yes
10203 ;;
10204*)
10205 lt_cv_prog_gnu_ld=no
10206 ;;
10207esac
10208fi
10209echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10210echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10211with_gnu_ld=$lt_cv_prog_gnu_ld
10212
10213
10214
10215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10216 # archiving commands below assume that GNU ld is being used.
10217 if test "$with_gnu_ld" = yes; then
10218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 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'
10220
10221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10223
10224 # If archive_cmds runs LD, not CC, wlarc should be empty
10225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10226 # investigate it a little bit more. (MM)
10227 wlarc='${wl}'
10228
10229 # ancient GNU ld didn't support --whole-archive et. al.
10230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10231 grep 'no-whole-archive' > /dev/null; then
10232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10233 else
10234 whole_archive_flag_spec_CXX=
10235 fi
10236 else
10237 with_gnu_ld=no
10238 wlarc=
10239
10240 # A generic and very simple default shared library creation
10241 # command for GNU C++ for the case where it uses the native
10242 # linker, instead of GNU ld. If possible, this setting should
10243 # overridden to take advantage of the native linker features on
10244 # the platform it is being used on.
10245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10246 fi
10247
10248 # Commands to make compiler produce verbose output that lists
10249 # what "hidden" libraries, object files and flags are used when
10250 # linking a shared library.
10251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10252
10253else
10254 GXX=no
10255 with_gnu_ld=no
10256 wlarc=
10257fi
10258
10259# PORTME: fill in a description of your system's C++ link characteristics
10260echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10261echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10262ld_shlibs_CXX=yes
10263case $host_os in
10264 aix3*)
10265 # FIXME: insert proper C++ library support
10266 ld_shlibs_CXX=no
10267 ;;
10268 aix4* | aix5*)
10269 if test "$host_cpu" = ia64; then
10270 # On IA64, the linker does run time linking by default, so we don't
10271 # have to do anything special.
10272 aix_use_runtimelinking=no
10273 exp_sym_flag='-Bexport'
10274 no_entry_flag=""
10275 else
10276 aix_use_runtimelinking=no
10277
10278 # Test if we are trying to use run time linking or normal
10279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10280 # need to do runtime linking.
10281 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10282 for ld_flag in $LDFLAGS; do
10283 case $ld_flag in
10284 *-brtl*)
10285 aix_use_runtimelinking=yes
10286 break
10287 ;;
10288 esac
10289 done
10290 ;;
10291 esac
10292
10293 exp_sym_flag='-bexport'
10294 no_entry_flag='-bnoentry'
10295 fi
10296
10297 # When large executables or shared objects are built, AIX ld can
10298 # have problems creating the table of contents. If linking a library
10299 # or program results in "error TOC overflow" add -mminimal-toc to
10300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10302
10303 archive_cmds_CXX=''
10304 hardcode_direct_CXX=yes
10305 hardcode_libdir_separator_CXX=':'
10306 link_all_deplibs_CXX=yes
10307
10308 if test "$GXX" = yes; then
10309 case $host_os in aix4.[012]|aix4.[012].*)
10310 # We only want to do this on AIX 4.2 and lower, the check
10311 # below for broken collect2 doesn't work under 4.3+
10312 collect2name=`${CC} -print-prog-name=collect2`
10313 if test -f "$collect2name" && \
10314 strings "$collect2name" | grep resolve_lib_name >/dev/null
10315 then
10316 # We have reworked collect2
10317 hardcode_direct_CXX=yes
10318 else
10319 # We have old collect2
10320 hardcode_direct_CXX=unsupported
10321 # It fails to find uninstalled libraries when the uninstalled
10322 # path is not listed in the libpath. Setting hardcode_minus_L
10323 # to unsupported forces relinking
10324 hardcode_minus_L_CXX=yes
10325 hardcode_libdir_flag_spec_CXX='-L$libdir'
10326 hardcode_libdir_separator_CXX=
10327 fi
10328 ;;
10329 esac
10330 shared_flag='-shared'
10331 if test "$aix_use_runtimelinking" = yes; then
10332 shared_flag="$shared_flag "'${wl}-G'
10333 fi
10334 else
10335 # not using gcc
10336 if test "$host_cpu" = ia64; then
10337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10338 # chokes on -Wl,-G. The following line is correct:
10339 shared_flag='-G'
10340 else
10341 if test "$aix_use_runtimelinking" = yes; then
10342 shared_flag='${wl}-G'
10343 else
10344 shared_flag='${wl}-bM:SRE'
10345 fi
10346 fi
10347 fi
10348
10349 # It seems that -bexpall does not export symbols beginning with
10350 # underscore (_), so it is better to generate a list of symbols to export.
10351 always_export_symbols_CXX=yes
10352 if test "$aix_use_runtimelinking" = yes; then
10353 # Warning - without using the other runtime loading flags (-brtl),
10354 # -berok will link without error, but may produce a broken library.
10355 allow_undefined_flag_CXX='-berok'
10356 # Determine the default libpath from the value encoded in an empty executable.
10357 cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363
10364int
10365main ()
10366{
10367
10368 ;
10369 return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_cxx_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394
10395aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10396}'`
10397# Check for a 64-bit object if we didn't find anything.
10398if 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; }
10399}'`; fi
10400else
10401 echo "$as_me: failed program was:" >&5
10402sed 's/^/| /' conftest.$ac_ext >&5
10403
10404fi
10405rm -f conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10408
10409 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10410
10411 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"
10412 else
10413 if test "$host_cpu" = ia64; then
10414 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10415 allow_undefined_flag_CXX="-z nodefs"
10416 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"
10417 else
10418 # Determine the default libpath from the value encoded in an empty executable.
10419 cat >conftest.$ac_ext <<_ACEOF
10420/* confdefs.h. */
10421_ACEOF
10422cat confdefs.h >>conftest.$ac_ext
10423cat >>conftest.$ac_ext <<_ACEOF
10424/* end confdefs.h. */
10425
10426int
10427main ()
10428{
10429
10430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_cxx_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456
10457aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10458}'`
10459# Check for a 64-bit object if we didn't find anything.
10460if 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; }
10461}'`; fi
10462else
10463 echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
10466fi
10467rm -f conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10470
10471 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10472 # Warning - without using the other run time loading flags,
10473 # -berok will link without error, but may produce a broken library.
10474 no_undefined_flag_CXX=' ${wl}-bernotok'
10475 allow_undefined_flag_CXX=' ${wl}-berok'
10476 # Exported symbols can be pulled into shared objects from archives
10477 whole_archive_flag_spec_CXX='$convenience'
10478 archive_cmds_need_lc_CXX=yes
10479 # This is similar to how AIX traditionally builds its shared libraries.
10480 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'
10481 fi
10482 fi
10483 ;;
10484
10485 beos*)
10486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10487 allow_undefined_flag_CXX=unsupported
10488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10489 # support --undefined. This deserves some investigation. FIXME
10490 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10491 else
10492 ld_shlibs_CXX=no
10493 fi
10494 ;;
10495
10496 chorus*)
10497 case $cc_basename in
10498 *)
10499 # FIXME: insert proper C++ library support
10500 ld_shlibs_CXX=no
10501 ;;
10502 esac
10503 ;;
10504
10505 cygwin* | mingw* | pw32*)
10506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10507 # as there is no search path for DLLs.
10508 hardcode_libdir_flag_spec_CXX='-L$libdir'
10509 allow_undefined_flag_CXX=unsupported
10510 always_export_symbols_CXX=no
10511 enable_shared_with_static_runtimes_CXX=yes
10512
10513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10514 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'
10515 # If the export-symbols file already is a .def file (1st line
10516 # is EXPORTS), use it as is; otherwise, prepend...
10517 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10518 cp $export_symbols $output_objdir/$soname.def;
10519 else
10520 echo EXPORTS > $output_objdir/$soname.def;
10521 cat $export_symbols >> $output_objdir/$soname.def;
10522 fi~
10523 $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'
10524 else
10525 ld_shlibs_CXX=no
10526 fi
10527 ;;
10528 darwin* | rhapsody*)
10529 case $host_os in
10530 rhapsody* | darwin1.[012])
10531 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10532 ;;
10533 *) # Darwin 1.3 on
10534 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10535 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10536 else
10537 case ${MACOSX_DEPLOYMENT_TARGET} in
10538 10.[012])
10539 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10540 ;;
10541 10.*)
10542 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10543 ;;
10544 esac
10545 fi
10546 ;;
10547 esac
10548 archive_cmds_need_lc_CXX=no
10549 hardcode_direct_CXX=no
10550 hardcode_automatic_CXX=yes
10551 hardcode_shlibpath_var_CXX=unsupported
10552 whole_archive_flag_spec_CXX=''
10553 link_all_deplibs_CXX=yes
10554
10555 if test "$GXX" = yes ; then
10556 lt_int_apple_cc_single_mod=no
10557 output_verbose_link_cmd='echo'
10558 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10559 lt_int_apple_cc_single_mod=yes
10560 fi
10561 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10562 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10563 else
10564 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'
10565 fi
10566 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10569 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}'
10570 else
10571 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}'
10572 fi
10573 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}'
10574 else
10575 case $cc_basename in
10576 xlc*)
10577 output_verbose_link_cmd='echo'
10578 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'
10579 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10580 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10581 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}'
10582 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}'
10583 ;;
10584 *)
10585 ld_shlibs_CXX=no
10586 ;;
10587 esac
10588 fi
10589 ;;
10590
10591 dgux*)
10592 case $cc_basename in
10593 ec++*)
10594 # FIXME: insert proper C++ library support
10595 ld_shlibs_CXX=no
10596 ;;
10597 ghcx*)
10598 # Green Hills C++ Compiler
10599 # FIXME: insert proper C++ library support
10600 ld_shlibs_CXX=no
10601 ;;
10602 *)
10603 # FIXME: insert proper C++ library support
10604 ld_shlibs_CXX=no
10605 ;;
10606 esac
10607 ;;
10608 freebsd[12]*)
10609 # C++ shared libraries reported to be fairly broken before switch to ELF
10610 ld_shlibs_CXX=no
10611 ;;
10612 freebsd-elf*)
10613 archive_cmds_need_lc_CXX=no
10614 ;;
10615 freebsd* | kfreebsd*-gnu | dragonfly*)
10616 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10617 # conventions
10618 ld_shlibs_CXX=yes
10619 ;;
10620 gnu*)
10621 ;;
10622 hpux9*)
10623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10624 hardcode_libdir_separator_CXX=:
10625 export_dynamic_flag_spec_CXX='${wl}-E'
10626 hardcode_direct_CXX=yes
10627 hardcode_minus_L_CXX=yes # Not in the search PATH,
10628 # but as the default
10629 # location of the library.
10630
10631 case $cc_basename in
10632 CC*)
10633 # FIXME: insert proper C++ library support
10634 ld_shlibs_CXX=no
10635 ;;
10636 aCC*)
10637 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'
10638 # Commands to make compiler produce verbose output that lists
10639 # what "hidden" libraries, object files and flags are used when
10640 # linking a shared library.
10641 #
10642 # There doesn't appear to be a way to prevent this compiler from
10643 # explicitly linking system object files so we need to strip them
10644 # from the output so that they don't get included in the library
10645 # dependencies.
10646 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'
10647 ;;
10648 *)
10649 if test "$GXX" = yes; then
10650 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'
10651 else
10652 # FIXME: insert proper C++ library support
10653 ld_shlibs_CXX=no
10654 fi
10655 ;;
10656 esac
10657 ;;
10658 hpux10*|hpux11*)
10659 if test $with_gnu_ld = no; then
10660 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10661 hardcode_libdir_separator_CXX=:
10662
10663 case $host_cpu in
10664 hppa*64*|ia64*)
10665 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10666 ;;
10667 *)
10668 export_dynamic_flag_spec_CXX='${wl}-E'
10669 ;;
10670 esac
10671 fi
10672 case $host_cpu in
10673 hppa*64*|ia64*)
10674 hardcode_direct_CXX=no
10675 hardcode_shlibpath_var_CXX=no
10676 ;;
10677 *)
10678 hardcode_direct_CXX=yes
10679 hardcode_minus_L_CXX=yes # Not in the search PATH,
10680 # but as the default
10681 # location of the library.
10682 ;;
10683 esac
10684
10685 case $cc_basename in
10686 CC*)
10687 # FIXME: insert proper C++ library support
10688 ld_shlibs_CXX=no
10689 ;;
10690 aCC*)
10691 case $host_cpu in
10692 hppa*64*)
10693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10694 ;;
10695 ia64*)
10696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10697 ;;
10698 *)
10699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10700 ;;
10701 esac
10702 # Commands to make compiler produce verbose output that lists
10703 # what "hidden" libraries, object files and flags are used when
10704 # linking a shared library.
10705 #
10706 # There doesn't appear to be a way to prevent this compiler from
10707 # explicitly linking system object files so we need to strip them
10708 # from the output so that they don't get included in the library
10709 # dependencies.
10710 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'
10711 ;;
10712 *)
10713 if test "$GXX" = yes; then
10714 if test $with_gnu_ld = no; then
10715 case $host_cpu in
10716 hppa*64*)
10717 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10718 ;;
10719 ia64*)
10720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10721 ;;
10722 *)
10723 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'
10724 ;;
10725 esac
10726 fi
10727 else
10728 # FIXME: insert proper C++ library support
10729 ld_shlibs_CXX=no
10730 fi
10731 ;;
10732 esac
10733 ;;
10734 interix3*)
10735 hardcode_direct_CXX=no
10736 hardcode_shlibpath_var_CXX=no
10737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738 export_dynamic_flag_spec_CXX='${wl}-E'
10739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10740 # Instead, shared libraries are loaded at an image base (0x10000000 by
10741 # default) and relocated if they conflict, which is a slow very memory
10742 # consuming and fragmenting process. To avoid this, we pick a random,
10743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10745 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'
10746 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'
10747 ;;
10748 irix5* | irix6*)
10749 case $cc_basename in
10750 CC*)
10751 # SGI C++
10752 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'
10753
10754 # Archives containing C++ object files must be created using
10755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10756 # necessary to make sure instantiated templates are included
10757 # in the archive.
10758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10759 ;;
10760 *)
10761 if test "$GXX" = yes; then
10762 if test "$with_gnu_ld" = no; then
10763 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'
10764 else
10765 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'
10766 fi
10767 fi
10768 link_all_deplibs_CXX=yes
10769 ;;
10770 esac
10771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10772 hardcode_libdir_separator_CXX=:
10773 ;;
10774 linux*)
10775 case $cc_basename in
10776 KCC*)
10777 # Kuck and Associates, Inc. (KAI) C++ Compiler
10778
10779 # KCC will only create a shared library if the output file
10780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10781 # to its proper name (with version) after linking.
10782 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'
10783 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'
10784 # Commands to make compiler produce verbose output that lists
10785 # what "hidden" libraries, object files and flags are used when
10786 # linking a shared library.
10787 #
10788 # There doesn't appear to be a way to prevent this compiler from
10789 # explicitly linking system object files so we need to strip them
10790 # from the output so that they don't get included in the library
10791 # dependencies.
10792 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'
10793
10794 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10796
10797 # Archives containing C++ object files must be created using
10798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10800 ;;
10801 icpc*)
10802 # Intel C++
10803 with_gnu_ld=yes
10804 # version 8.0 and above of icpc choke on multiply defined symbols
10805 # if we add $predep_objects and $postdep_objects, however 7.1 and
10806 # earlier do not add the objects themselves.
10807 case `$CC -V 2>&1` in
10808 *"Version 7."*)
10809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10810 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'
10811 ;;
10812 *) # Version 8.0 or newer
10813 tmp_idyn=
10814 case $host_cpu in
10815 ia64*) tmp_idyn=' -i_dynamic';;
10816 esac
10817 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 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'
10819 ;;
10820 esac
10821 archive_cmds_need_lc_CXX=no
10822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10824 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10825 ;;
10826 pgCC*)
10827 # Portland Group C++ compiler
10828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10829 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'
10830
10831 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833 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'
10834 ;;
10835 cxx*)
10836 # Compaq C++
10837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838 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'
10839
10840 runpath_var=LD_RUN_PATH
10841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10842 hardcode_libdir_separator_CXX=:
10843
10844 # Commands to make compiler produce verbose output that lists
10845 # what "hidden" libraries, object files and flags are used when
10846 # linking a shared library.
10847 #
10848 # There doesn't appear to be a way to prevent this compiler from
10849 # explicitly linking system object files so we need to strip them
10850 # from the output so that they don't get included in the library
10851 # dependencies.
10852 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'
10853 ;;
10854 esac
10855 ;;
10856 lynxos*)
10857 # FIXME: insert proper C++ library support
10858 ld_shlibs_CXX=no
10859 ;;
10860 m88k*)
10861 # FIXME: insert proper C++ library support
10862 ld_shlibs_CXX=no
10863 ;;
10864 mvs*)
10865 case $cc_basename in
10866 cxx*)
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10869 ;;
10870 *)
10871 # FIXME: insert proper C++ library support
10872 ld_shlibs_CXX=no
10873 ;;
10874 esac
10875 ;;
10876 netbsd*)
10877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10878 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10879 wlarc=
10880 hardcode_libdir_flag_spec_CXX='-R$libdir'
10881 hardcode_direct_CXX=yes
10882 hardcode_shlibpath_var_CXX=no
10883 fi
10884 # Workaround some broken pre-1.5 toolchains
10885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10886 ;;
10887 openbsd2*)
10888 # C++ shared libraries are fairly broken
10889 ld_shlibs_CXX=no
10890 ;;
10891 openbsd*)
10892 hardcode_direct_CXX=yes
10893 hardcode_shlibpath_var_CXX=no
10894 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10897 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10898 export_dynamic_flag_spec_CXX='${wl}-E'
10899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10900 fi
10901 output_verbose_link_cmd='echo'
10902 ;;
10903 osf3*)
10904 case $cc_basename in
10905 KCC*)
10906 # Kuck and Associates, Inc. (KAI) C++ Compiler
10907
10908 # KCC will only create a shared library if the output file
10909 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10910 # to its proper name (with version) after linking.
10911 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'
10912
10913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10914 hardcode_libdir_separator_CXX=:
10915
10916 # Archives containing C++ object files must be created using
10917 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10918 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10919
10920 ;;
10921 RCC*)
10922 # Rational C++ 2.4.1
10923 # FIXME: insert proper C++ library support
10924 ld_shlibs_CXX=no
10925 ;;
10926 cxx*)
10927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10928 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'
10929
10930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10931 hardcode_libdir_separator_CXX=:
10932
10933 # Commands to make compiler produce verbose output that lists
10934 # what "hidden" libraries, object files and flags are used when
10935 # linking a shared library.
10936 #
10937 # There doesn't appear to be a way to prevent this compiler from
10938 # explicitly linking system object files so we need to strip them
10939 # from the output so that they don't get included in the library
10940 # dependencies.
10941 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'
10942 ;;
10943 *)
10944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10946 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'
10947
10948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10949 hardcode_libdir_separator_CXX=:
10950
10951 # Commands to make compiler produce verbose output that lists
10952 # what "hidden" libraries, object files and flags are used when
10953 # linking a shared library.
10954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10955
10956 else
10957 # FIXME: insert proper C++ library support
10958 ld_shlibs_CXX=no
10959 fi
10960 ;;
10961 esac
10962 ;;
10963 osf4* | osf5*)
10964 case $cc_basename in
10965 KCC*)
10966 # Kuck and Associates, Inc. (KAI) C++ Compiler
10967
10968 # KCC will only create a shared library if the output file
10969 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10970 # to its proper name (with version) after linking.
10971 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'
10972
10973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10974 hardcode_libdir_separator_CXX=:
10975
10976 # Archives containing C++ object files must be created using
10977 # the KAI C++ compiler.
10978 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10979 ;;
10980 RCC*)
10981 # Rational C++ 2.4.1
10982 # FIXME: insert proper C++ library support
10983 ld_shlibs_CXX=no
10984 ;;
10985 cxx*)
10986 allow_undefined_flag_CXX=' -expect_unresolved \*'
10987 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'
10988 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10989 echo "-hidden">> $lib.exp~
10990 $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~
10991 $rm $lib.exp'
10992
10993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10994 hardcode_libdir_separator_CXX=:
10995
10996 # Commands to make compiler produce verbose output that lists
10997 # what "hidden" libraries, object files and flags are used when
10998 # linking a shared library.
10999 #
11000 # There doesn't appear to be a way to prevent this compiler from
11001 # explicitly linking system object files so we need to strip them
11002 # from the output so that they don't get included in the library
11003 # dependencies.
11004 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'
11005 ;;
11006 *)
11007 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11009 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'
11010
11011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11012 hardcode_libdir_separator_CXX=:
11013
11014 # Commands to make compiler produce verbose output that lists
11015 # what "hidden" libraries, object files and flags are used when
11016 # linking a shared library.
11017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11018
11019 else
11020 # FIXME: insert proper C++ library support
11021 ld_shlibs_CXX=no
11022 fi
11023 ;;
11024 esac
11025 ;;
11026 psos*)
11027 # FIXME: insert proper C++ library support
11028 ld_shlibs_CXX=no
11029 ;;
11030 sunos4*)
11031 case $cc_basename in
11032 CC*)
11033 # Sun C++ 4.x
11034 # FIXME: insert proper C++ library support
11035 ld_shlibs_CXX=no
11036 ;;
11037 lcc*)
11038 # Lucid
11039 # FIXME: insert proper C++ library support
11040 ld_shlibs_CXX=no
11041 ;;
11042 *)
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11045 ;;
11046 esac
11047 ;;
11048 solaris*)
11049 case $cc_basename in
11050 CC*)
11051 # Sun C++ 4.2, 5.x and Centerline C++
11052 archive_cmds_need_lc_CXX=yes
11053 no_undefined_flag_CXX=' -zdefs'
11054 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11055 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11056 $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'
11057
11058 hardcode_libdir_flag_spec_CXX='-R$libdir'
11059 hardcode_shlibpath_var_CXX=no
11060 case $host_os in
11061 solaris2.[0-5] | solaris2.[0-5].*) ;;
11062 *)
11063 # The C++ compiler is used as linker so we must use $wl
11064 # flag to pass the commands to the underlying system
11065 # linker. We must also pass each convience library through
11066 # to the system linker between allextract/defaultextract.
11067 # The C++ compiler will combine linker options so we
11068 # cannot just pass the convience library names through
11069 # without $wl.
11070 # Supported since Solaris 2.6 (maybe 2.5.1?)
11071 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'
11072 ;;
11073 esac
11074 link_all_deplibs_CXX=yes
11075
11076 output_verbose_link_cmd='echo'
11077
11078 # Archives containing C++ object files must be created using
11079 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11080 # necessary to make sure instantiated templates are included
11081 # in the archive.
11082 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11083 ;;
11084 gcx*)
11085 # Green Hills C++ Compiler
11086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11087
11088 # The C++ compiler must be used to create the archive.
11089 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11090 ;;
11091 *)
11092 # GNU C++ compiler with Solaris linker
11093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11094 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11095 if $CC --version | grep -v '^2\.7' > /dev/null; then
11096 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11098 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11099
11100 # Commands to make compiler produce verbose output that lists
11101 # what "hidden" libraries, object files and flags are used when
11102 # linking a shared library.
11103 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11104 else
11105 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11106 # platform.
11107 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11108 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11109 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11110
11111 # Commands to make compiler produce verbose output that lists
11112 # what "hidden" libraries, object files and flags are used when
11113 # linking a shared library.
11114 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11115 fi
11116
11117 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11118 fi
11119 ;;
11120 esac
11121 ;;
11122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11123 no_undefined_flag_CXX='${wl}-z,text'
11124 archive_cmds_need_lc_CXX=no
11125 hardcode_shlibpath_var_CXX=no
11126 runpath_var='LD_RUN_PATH'
11127
11128 case $cc_basename in
11129 CC*)
11130 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 ;;
11133 *)
11134 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 ;;
11137 esac
11138 ;;
11139 sysv5* | sco3.2v5* | sco5v6*)
11140 # Note: We can NOT use -z defs as we might desire, because we do not
11141 # link with -lc, and that would cause any symbols used from libc to
11142 # always be unresolved, which means just about no library would
11143 # ever link correctly. If we're not using GNU ld we use -z text
11144 # though, which does catch some bad symbols but isn't as heavy-handed
11145 # as -z defs.
11146 # For security reasons, it is highly recommended that you always
11147 # use absolute paths for naming shared libraries, and exclude the
11148 # DT_RUNPATH tag from executables and libraries. But doing so
11149 # requires that you compile everything twice, which is a pain.
11150 # So that behaviour is only enabled if SCOABSPATH is set to a
11151 # non-empty value in the environment. Most likely only useful for
11152 # creating official distributions of packages.
11153 # This is a hack until libtool officially supports absolute path
11154 # names for shared libraries.
11155 no_undefined_flag_CXX='${wl}-z,text'
11156 allow_undefined_flag_CXX='${wl}-z,nodefs'
11157 archive_cmds_need_lc_CXX=no
11158 hardcode_shlibpath_var_CXX=no
11159 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11160 hardcode_libdir_separator_CXX=':'
11161 link_all_deplibs_CXX=yes
11162 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11163 runpath_var='LD_RUN_PATH'
11164
11165 case $cc_basename in
11166 CC*)
11167 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 ;;
11170 *)
11171 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11173 ;;
11174 esac
11175 ;;
11176 tandem*)
11177 case $cc_basename in
11178 NCC*)
11179 # NonStop-UX NCC 3.20
11180 # FIXME: insert proper C++ library support
11181 ld_shlibs_CXX=no
11182 ;;
11183 *)
11184 # FIXME: insert proper C++ library support
11185 ld_shlibs_CXX=no
11186 ;;
11187 esac
11188 ;;
11189 vxworks*)
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11192 ;;
11193 *)
11194 # FIXME: insert proper C++ library support
11195 ld_shlibs_CXX=no
11196 ;;
11197esac
11198echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11199echo "${ECHO_T}$ld_shlibs_CXX" >&6
11200test "$ld_shlibs_CXX" = no && can_build_shared=no
11201
11202GCC_CXX="$GXX"
11203LD_CXX="$LD"
11204
11205
11206cat > conftest.$ac_ext <<EOF
11207class Foo
11208{
11209public:
11210 Foo (void) { a = 0; }
11211private:
11212 int a;
11213};
11214EOF
11215
11216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>&5
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; then
11221 # Parse the compiler output and extract the necessary
11222 # objects, libraries and library flags.
11223
11224 # Sentinel used to keep track of whether or not we are before
11225 # the conftest object file.
11226 pre_test_object_deps_done=no
11227
11228 # The `*' in the case matches for architectures that use `case' in
11229 # $output_verbose_cmd can trigger glob expansion during the loop
11230 # eval without this substitution.
11231 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11232
11233 for p in `eval $output_verbose_link_cmd`; do
11234 case $p in
11235
11236 -L* | -R* | -l*)
11237 # Some compilers place space between "-{L,R}" and the path.
11238 # Remove the space.
11239 if test $p = "-L" \
11240 || test $p = "-R"; then
11241 prev=$p
11242 continue
11243 else
11244 prev=
11245 fi
11246
11247 if test "$pre_test_object_deps_done" = no; then
11248 case $p in
11249 -L* | -R*)
11250 # Internal compiler library paths should come after those
11251 # provided the user. The postdeps already come after the
11252 # user supplied libs so there is no need to process them.
11253 if test -z "$compiler_lib_search_path_CXX"; then
11254 compiler_lib_search_path_CXX="${prev}${p}"
11255 else
11256 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11257 fi
11258 ;;
11259 # The "-l" case would never come before the object being
11260 # linked, so don't bother handling this case.
11261 esac
11262 else
11263 if test -z "$postdeps_CXX"; then
11264 postdeps_CXX="${prev}${p}"
11265 else
11266 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11267 fi
11268 fi
11269 ;;
11270
11271 *.$objext)
11272 # This assumes that the test object file only shows up
11273 # once in the compiler output.
11274 if test "$p" = "conftest.$objext"; then
11275 pre_test_object_deps_done=yes
11276 continue
11277 fi
11278
11279 if test "$pre_test_object_deps_done" = no; then
11280 if test -z "$predep_objects_CXX"; then
11281 predep_objects_CXX="$p"
11282 else
11283 predep_objects_CXX="$predep_objects_CXX $p"
11284 fi
11285 else
11286 if test -z "$postdep_objects_CXX"; then
11287 postdep_objects_CXX="$p"
11288 else
11289 postdep_objects_CXX="$postdep_objects_CXX $p"
11290 fi
11291 fi
11292 ;;
11293
11294 *) ;; # Ignore the rest.
11295
11296 esac
11297 done
11298
11299 # Clean up.
11300 rm -f a.out a.exe
11301else
11302 echo "libtool.m4: error: problem compiling CXX test program"
11303fi
11304
11305$rm -f confest.$objext
11306
11307# PORTME: override above test on systems where it is broken
11308case $host_os in
11309interix3*)
11310 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11311 # hack all around it, let's just trust "g++" to DTRT.
11312 predep_objects_CXX=
11313 postdep_objects_CXX=
11314 postdeps_CXX=
11315 ;;
11316
11317solaris*)
11318 case $cc_basename in
11319 CC*)
11320 # Adding this requires a known-good setup of shared libraries for
11321 # Sun compiler versions before 5.6, else PIC objects from an old
11322 # archive will be linked into the output, leading to subtle bugs.
11323 postdeps_CXX='-lCstd -lCrun'
11324 ;;
11325 esac
11326 ;;
11327esac
11328
11329
11330case " $postdeps_CXX " in
11331*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11332esac
11333
11334lt_prog_compiler_wl_CXX=
11335lt_prog_compiler_pic_CXX=
11336lt_prog_compiler_static_CXX=
11337
11338echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11339echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11340
11341 # C++ specific cases for pic, static, wl, etc.
11342 if test "$GXX" = yes; then
11343 lt_prog_compiler_wl_CXX='-Wl,'
11344 lt_prog_compiler_static_CXX='-static'
11345
11346 case $host_os in
11347 aix*)
11348 # All AIX code is PIC.
11349 if test "$host_cpu" = ia64; then
11350 # AIX 5 now supports IA64 processor
11351 lt_prog_compiler_static_CXX='-Bstatic'
11352 fi
11353 ;;
11354 amigaos*)
11355 # FIXME: we need at least 68020 code to build shared libraries, but
11356 # adding the `-m68020' flag to GCC prevents building anything better,
11357 # like `-m68040'.
11358 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11359 ;;
11360 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11361 # PIC is the default for these OSes.
11362 ;;
11363 mingw* | os2* | pw32*)
11364 # This hack is so that the source file can tell whether it is being
11365 # built for inclusion in a dll (and should export symbols for example).
11366 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11367 ;;
11368 darwin* | rhapsody*)
11369 # PIC is the default on this platform
11370 # Common symbols not allowed in MH_DYLIB files
11371 lt_prog_compiler_pic_CXX='-fno-common'
11372 ;;
11373 *djgpp*)
11374 # DJGPP does not support shared libraries at all
11375 lt_prog_compiler_pic_CXX=
11376 ;;
11377 interix3*)
11378 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11379 # Instead, we relocate shared libraries at runtime.
11380 ;;
11381 sysv4*MP*)
11382 if test -d /usr/nec; then
11383 lt_prog_compiler_pic_CXX=-Kconform_pic
11384 fi
11385 ;;
11386 hpux*)
11387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11388 # not for PA HP-UX.
11389 case $host_cpu in
11390 hppa*64*|ia64*)
11391 ;;
11392 *)
11393 lt_prog_compiler_pic_CXX='-fPIC'
11394 ;;
11395 esac
11396 ;;
11397 *)
11398 lt_prog_compiler_pic_CXX='-fPIC'
11399 ;;
11400 esac
11401 else
11402 case $host_os in
11403 aix4* | aix5*)
11404 # All AIX code is PIC.
11405 if test "$host_cpu" = ia64; then
11406 # AIX 5 now supports IA64 processor
11407 lt_prog_compiler_static_CXX='-Bstatic'
11408 else
11409 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11410 fi
11411 ;;
11412 chorus*)
11413 case $cc_basename in
11414 cxch68*)
11415 # Green Hills C++ Compiler
11416 # _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"
11417 ;;
11418 esac
11419 ;;
11420 darwin*)
11421 # PIC is the default on this platform
11422 # Common symbols not allowed in MH_DYLIB files
11423 case $cc_basename in
11424 xlc*)
11425 lt_prog_compiler_pic_CXX='-qnocommon'
11426 lt_prog_compiler_wl_CXX='-Wl,'
11427 ;;
11428 esac
11429 ;;
11430 dgux*)
11431 case $cc_basename in
11432 ec++*)
11433 lt_prog_compiler_pic_CXX='-KPIC'
11434 ;;
11435 ghcx*)
11436 # Green Hills C++ Compiler
11437 lt_prog_compiler_pic_CXX='-pic'
11438 ;;
11439 *)
11440 ;;
11441 esac
11442 ;;
11443 freebsd* | kfreebsd*-gnu | dragonfly*)
11444 # FreeBSD uses GNU C++
11445 ;;
11446 hpux9* | hpux10* | hpux11*)
11447 case $cc_basename in
11448 CC*)
11449 lt_prog_compiler_wl_CXX='-Wl,'
11450 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11451 if test "$host_cpu" != ia64; then
11452 lt_prog_compiler_pic_CXX='+Z'
11453 fi
11454 ;;
11455 aCC*)
11456 lt_prog_compiler_wl_CXX='-Wl,'
11457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11458 case $host_cpu in
11459 hppa*64*|ia64*)
11460 # +Z the default
11461 ;;
11462 *)
11463 lt_prog_compiler_pic_CXX='+Z'
11464 ;;
11465 esac
11466 ;;
11467 *)
11468 ;;
11469 esac
11470 ;;
11471 interix*)
11472 # This is c89, which is MS Visual C++ (no shared libs)
11473 # Anyone wants to do a port?
11474 ;;
11475 irix5* | irix6* | nonstopux*)
11476 case $cc_basename in
11477 CC*)
11478 lt_prog_compiler_wl_CXX='-Wl,'
11479 lt_prog_compiler_static_CXX='-non_shared'
11480 # CC pic flag -KPIC is the default.
11481 ;;
11482 *)
11483 ;;
11484 esac
11485 ;;
11486 linux*)
11487 case $cc_basename in
11488 KCC*)
11489 # KAI C++ Compiler
11490 lt_prog_compiler_wl_CXX='--backend -Wl,'
11491 lt_prog_compiler_pic_CXX='-fPIC'
11492 ;;
11493 icpc* | ecpc*)
11494 # Intel C++
11495 lt_prog_compiler_wl_CXX='-Wl,'
11496 lt_prog_compiler_pic_CXX='-KPIC'
11497 lt_prog_compiler_static_CXX='-static'
11498 ;;
11499 pgCC*)
11500 # Portland Group C++ compiler.
11501 lt_prog_compiler_wl_CXX='-Wl,'
11502 lt_prog_compiler_pic_CXX='-fpic'
11503 lt_prog_compiler_static_CXX='-Bstatic'
11504 ;;
11505 cxx*)
11506 # Compaq C++
11507 # Make sure the PIC flag is empty. It appears that all Alpha
11508 # Linux and Compaq Tru64 Unix objects are PIC.
11509 lt_prog_compiler_pic_CXX=
11510 lt_prog_compiler_static_CXX='-non_shared'
11511 ;;
11512 *)
11513 ;;
11514 esac
11515 ;;
11516 lynxos*)
11517 ;;
11518 m88k*)
11519 ;;
11520 mvs*)
11521 case $cc_basename in
11522 cxx*)
11523 lt_prog_compiler_pic_CXX='-W c,exportall'
11524 ;;
11525 *)
11526 ;;
11527 esac
11528 ;;
11529 netbsd*)
11530 ;;
11531 osf3* | osf4* | osf5*)
11532 case $cc_basename in
11533 KCC*)
11534 lt_prog_compiler_wl_CXX='--backend -Wl,'
11535 ;;
11536 RCC*)
11537 # Rational C++ 2.4.1
11538 lt_prog_compiler_pic_CXX='-pic'
11539 ;;
11540 cxx*)
11541 # Digital/Compaq C++
11542 lt_prog_compiler_wl_CXX='-Wl,'
11543 # Make sure the PIC flag is empty. It appears that all Alpha
11544 # Linux and Compaq Tru64 Unix objects are PIC.
11545 lt_prog_compiler_pic_CXX=
11546 lt_prog_compiler_static_CXX='-non_shared'
11547 ;;
11548 *)
11549 ;;
11550 esac
11551 ;;
11552 psos*)
11553 ;;
11554 solaris*)
11555 case $cc_basename in
11556 CC*)
11557 # Sun C++ 4.2, 5.x and Centerline C++
11558 lt_prog_compiler_pic_CXX='-KPIC'
11559 lt_prog_compiler_static_CXX='-Bstatic'
11560 lt_prog_compiler_wl_CXX='-Qoption ld '
11561 ;;
11562 gcx*)
11563 # Green Hills C++ Compiler
11564 lt_prog_compiler_pic_CXX='-PIC'
11565 ;;
11566 *)
11567 ;;
11568 esac
11569 ;;
11570 sunos4*)
11571 case $cc_basename in
11572 CC*)
11573 # Sun C++ 4.x
11574 lt_prog_compiler_pic_CXX='-pic'
11575 lt_prog_compiler_static_CXX='-Bstatic'
11576 ;;
11577 lcc*)
11578 # Lucid
11579 lt_prog_compiler_pic_CXX='-pic'
11580 ;;
11581 *)
11582 ;;
11583 esac
11584 ;;
11585 tandem*)
11586 case $cc_basename in
11587 NCC*)
11588 # NonStop-UX NCC 3.20
11589 lt_prog_compiler_pic_CXX='-KPIC'
11590 ;;
11591 *)
11592 ;;
11593 esac
11594 ;;
11595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11596 case $cc_basename in
11597 CC*)
11598 lt_prog_compiler_wl_CXX='-Wl,'
11599 lt_prog_compiler_pic_CXX='-KPIC'
11600 lt_prog_compiler_static_CXX='-Bstatic'
11601 ;;
11602 esac
11603 ;;
11604 vxworks*)
11605 ;;
11606 *)
11607 lt_prog_compiler_can_build_shared_CXX=no
11608 ;;
11609 esac
11610 fi
11611
11612echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11613echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11614
11615#
11616# Check to make sure the PIC flag actually works.
11617#
11618if test -n "$lt_prog_compiler_pic_CXX"; then
11619
11620echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11621echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11622if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624else
11625 lt_prog_compiler_pic_works_CXX=no
11626 ac_outfile=conftest.$ac_objext
11627 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11628 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11629 # Insert the option either (1) after the last *FLAGS variable, or
11630 # (2) before a word containing "conftest.", or (3) at the end.
11631 # Note that $ac_compile itself does not contain backslashes and begins
11632 # with a dollar sign (not a hyphen), so the echo should work correctly.
11633 # The option is referenced via a variable to avoid confusing sed.
11634 lt_compile=`echo "$ac_compile" | $SED \
11635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11637 -e 's:$: $lt_compiler_flag:'`
11638 (eval echo "\"\$as_me:11638: $lt_compile\"" >&5)
11639 (eval "$lt_compile" 2>conftest.err)
11640 ac_status=$?
11641 cat conftest.err >&5
11642 echo "$as_me:11642: \$? = $ac_status" >&5
11643 if (exit $ac_status) && test -s "$ac_outfile"; then
11644 # The compiler can only warn and ignore the option if not recognized
11645 # So say no if there are warnings other than the usual output.
11646 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11649 lt_prog_compiler_pic_works_CXX=yes
11650 fi
11651 fi
11652 $rm conftest*
11653
11654fi
11655echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11656echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11657
11658if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11659 case $lt_prog_compiler_pic_CXX in
11660 "" | " "*) ;;
11661 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11662 esac
11663else
11664 lt_prog_compiler_pic_CXX=
11665 lt_prog_compiler_can_build_shared_CXX=no
11666fi
11667
11668fi
11669case $host_os in
11670 # For platforms which do not support PIC, -DPIC is meaningless:
11671 *djgpp*)
11672 lt_prog_compiler_pic_CXX=
11673 ;;
11674 *)
11675 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11676 ;;
11677esac
11678
11679#
11680# Check to make sure the static flag actually works.
11681#
11682wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11683echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11684echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11685if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else
11688 lt_prog_compiler_static_works_CXX=no
11689 save_LDFLAGS="$LDFLAGS"
11690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11691 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11693 # The linker can only warn and ignore the option if not recognized
11694 # So say no if there are warnings
11695 if test -s conftest.err; then
11696 # Append any errors to the config.log.
11697 cat conftest.err 1>&5
11698 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11700 if diff conftest.exp conftest.er2 >/dev/null; then
11701 lt_prog_compiler_static_works_CXX=yes
11702 fi
11703 else
11704 lt_prog_compiler_static_works_CXX=yes
11705 fi
11706 fi
11707 $rm conftest*
11708 LDFLAGS="$save_LDFLAGS"
11709
11710fi
11711echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11712echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11713
11714if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11715 :
11716else
11717 lt_prog_compiler_static_CXX=
11718fi
11719
11720
11721echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11722echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11723if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726 lt_cv_prog_compiler_c_o_CXX=no
11727 $rm -r conftest 2>/dev/null
11728 mkdir conftest
11729 cd conftest
11730 mkdir out
11731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11732
11733 lt_compiler_flag="-o out/conftest2.$ac_objext"
11734 # Insert the option either (1) after the last *FLAGS variable, or
11735 # (2) before a word containing "conftest.", or (3) at the end.
11736 # Note that $ac_compile itself does not contain backslashes and begins
11737 # with a dollar sign (not a hyphen), so the echo should work correctly.
11738 lt_compile=`echo "$ac_compile" | $SED \
11739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11741 -e 's:$: $lt_compiler_flag:'`
11742 (eval echo "\"\$as_me:11742: $lt_compile\"" >&5)
11743 (eval "$lt_compile" 2>out/conftest.err)
11744 ac_status=$?
11745 cat out/conftest.err >&5
11746 echo "$as_me:11746: \$? = $ac_status" >&5
11747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11748 then
11749 # The compiler can only warn and ignore the option if not recognized
11750 # So say no if there are warnings
11751 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11754 lt_cv_prog_compiler_c_o_CXX=yes
11755 fi
11756 fi
11757 chmod u+w . 2>&5
11758 $rm conftest*
11759 # SGI C++ compiler will create directory out/ii_files/ for
11760 # template instantiation
11761 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11762 $rm out/* && rmdir out
11763 cd ..
11764 rmdir conftest
11765 $rm conftest*
11766
11767fi
11768echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11769echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11770
11771
11772hard_links="nottested"
11773if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11774 # do not overwrite the value of need_locks provided by the user
11775 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11776echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11777 hard_links=yes
11778 $rm conftest*
11779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11780 touch conftest.a
11781 ln conftest.a conftest.b 2>&5 || hard_links=no
11782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11783 echo "$as_me:$LINENO: result: $hard_links" >&5
11784echo "${ECHO_T}$hard_links" >&6
11785 if test "$hard_links" = no; then
11786 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11787echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11788 need_locks=warn
11789 fi
11790else
11791 need_locks=no
11792fi
11793
11794echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11795echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11796
11797 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11798 case $host_os in
11799 aix4* | aix5*)
11800 # If we're using GNU nm, then we don't want the "-C" option.
11801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11802 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11803 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'
11804 else
11805 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'
11806 fi
11807 ;;
11808 pw32*)
11809 export_symbols_cmds_CXX="$ltdll_cmds"
11810 ;;
11811 cygwin* | mingw*)
11812 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'
11813 ;;
11814 *)
11815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11816 ;;
11817 esac
11818
11819echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11820echo "${ECHO_T}$ld_shlibs_CXX" >&6
11821test "$ld_shlibs_CXX" = no && can_build_shared=no
11822
11823#
11824# Do we need to explicitly link libc?
11825#
11826case "x$archive_cmds_need_lc_CXX" in
11827x|xyes)
11828 # Assume -lc should be added
11829 archive_cmds_need_lc_CXX=yes
11830
11831 if test "$enable_shared" = yes && test "$GCC" = yes; then
11832 case $archive_cmds_CXX in
11833 *'~'*)
11834 # FIXME: we may have to deal with multi-command sequences.
11835 ;;
11836 '$CC '*)
11837 # Test whether the compiler implicitly links with -lc since on some
11838 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11839 # to ld, don't add -lc before -lgcc.
11840 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11841echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11842 $rm conftest*
11843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11844
11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846 (eval $ac_compile) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } 2>conftest.err; then
11850 soname=conftest
11851 lib=conftest
11852 libobjs=conftest.$ac_objext
11853 deplibs=
11854 wl=$lt_prog_compiler_wl_CXX
11855 pic_flag=$lt_prog_compiler_pic_CXX
11856 compiler_flags=-v
11857 linker_flags=-v
11858 verstring=
11859 output_objdir=.
11860 libname=conftest
11861 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11862 allow_undefined_flag_CXX=
11863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11864 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }
11868 then
11869 archive_cmds_need_lc_CXX=no
11870 else
11871 archive_cmds_need_lc_CXX=yes
11872 fi
11873 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11874 else
11875 cat conftest.err 1>&5
11876 fi
11877 $rm conftest*
11878 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11879echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11880 ;;
11881 esac
11882 fi
11883 ;;
11884esac
11885
11886echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11887echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11888library_names_spec=
11889libname_spec='lib$name'
11890soname_spec=
11891shrext_cmds=".so"
11892postinstall_cmds=
11893postuninstall_cmds=
11894finish_cmds=
11895finish_eval=
11896shlibpath_var=
11897shlibpath_overrides_runpath=unknown
11898version_type=none
11899dynamic_linker="$host_os ld.so"
11900sys_lib_dlsearch_path_spec="/lib /usr/lib"
11901if test "$GCC" = yes; then
11902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11904 # if the path contains ";" then we assume it to be the separator
11905 # otherwise default to the standard path separator (i.e. ":") - it is
11906 # assumed that no part of a normal pathname contains ";" but that should
11907 # okay in the real world where ";" in dirpaths is itself problematic.
11908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11909 else
11910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11911 fi
11912else
11913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11914fi
11915need_lib_prefix=unknown
11916hardcode_into_libs=no
11917
11918# when you set need_version to no, make sure it does not cause -set_version
11919# flags to be left without arguments
11920need_version=unknown
11921
11922case $host_os in
11923aix3*)
11924 version_type=linux
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11926 shlibpath_var=LIBPATH
11927
11928 # AIX 3 has no versioning support, so we append a major version to the name.
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 ;;
11931
11932aix4* | aix5*)
11933 version_type=linux
11934 need_lib_prefix=no
11935 need_version=no
11936 hardcode_into_libs=yes
11937 if test "$host_cpu" = ia64; then
11938 # AIX 5 supports IA64
11939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 else
11942 # With GCC up to 2.95.x, collect2 would create an import file
11943 # for dependence libraries. The import file would start with
11944 # the line `#! .'. This would cause the generated library to
11945 # depend on `.', always an invalid library. This was fixed in
11946 # development snapshots of GCC prior to 3.0.
11947 case $host_os in
11948 aix4 | aix4.[01] | aix4.[01].*)
11949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11950 echo ' yes '
11951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11952 :
11953 else
11954 can_build_shared=no
11955 fi
11956 ;;
11957 esac
11958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11959 # soname into executable. Probably we can add versioning support to
11960 # collect2, so additional links can be useful in future.
11961 if test "$aix_use_runtimelinking" = yes; then
11962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11963 # instead of lib<name>.a to let people know that these are not
11964 # typical AIX shared libraries.
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966 else
11967 # We preserve .a as extension for shared libraries through AIX4.2
11968 # and later when we are not doing run time linking.
11969 library_names_spec='${libname}${release}.a $libname.a'
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 fi
11972 shlibpath_var=LIBPATH
11973 fi
11974 ;;
11975
11976amigaos*)
11977 library_names_spec='$libname.ixlibrary $libname.a'
11978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11979 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'
11980 ;;
11981
11982beos*)
11983 library_names_spec='${libname}${shared_ext}'
11984 dynamic_linker="$host_os ld.so"
11985 shlibpath_var=LIBRARY_PATH
11986 ;;
11987
11988bsdi[45]*)
11989 version_type=linux
11990 need_version=no
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11997 # the default ld.so.conf also contains /usr/contrib/lib and
11998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11999 # libtool to hard-code these into programs
12000 ;;
12001
12002cygwin* | mingw* | pw32*)
12003 version_type=windows
12004 shrext_cmds=".dll"
12005 need_version=no
12006 need_lib_prefix=no
12007
12008 case $GCC,$host_os in
12009 yes,cygwin* | yes,mingw* | yes,pw32*)
12010 library_names_spec='$libname.dll.a'
12011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12012 postinstall_cmds='base_file=`basename \${file}`~
12013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12014 dldir=$destdir/`dirname \$dlpath`~
12015 test -d \$dldir || mkdir -p \$dldir~
12016 $install_prog $dir/$dlname \$dldir/$dlname~
12017 chmod a+x \$dldir/$dlname'
12018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12019 dlpath=$dir/\$dldll~
12020 $rm \$dlpath'
12021 shlibpath_overrides_runpath=yes
12022
12023 case $host_os in
12024 cygwin*)
12025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12028 ;;
12029 mingw*)
12030 # MinGW DLLs use traditional 'lib' prefix
12031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12034 # It is most probably a Windows format PATH printed by
12035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12036 # path with ; separators, and with drive letters. We can handle the
12037 # drive letters (cygwin fileutils understands them), so leave them,
12038 # especially as we might pass files found there to a mingw objdump,
12039 # which wouldn't understand a cygwinified path. Ahh.
12040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12041 else
12042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12043 fi
12044 ;;
12045 pw32*)
12046 # pw32 DLLs use 'pw' prefix rather than 'lib'
12047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12048 ;;
12049 esac
12050 ;;
12051
12052 *)
12053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12054 ;;
12055 esac
12056 dynamic_linker='Win32 ld.exe'
12057 # FIXME: first we should search . and the directory the executable is in
12058 shlibpath_var=PATH
12059 ;;
12060
12061darwin* | rhapsody*)
12062 dynamic_linker="$host_os dyld"
12063 version_type=darwin
12064 need_lib_prefix=no
12065 need_version=no
12066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12067 soname_spec='${libname}${release}${major}$shared_ext'
12068 shlibpath_overrides_runpath=yes
12069 shlibpath_var=DYLD_LIBRARY_PATH
12070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12072 if test "$GCC" = yes; then
12073 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"`
12074 else
12075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12076 fi
12077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12078 ;;
12079
12080dgux*)
12081 version_type=linux
12082 need_lib_prefix=no
12083 need_version=no
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12085 soname_spec='${libname}${release}${shared_ext}$major'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 ;;
12088
12089freebsd1*)
12090 dynamic_linker=no
12091 ;;
12092
12093kfreebsd*-gnu)
12094 version_type=linux
12095 need_lib_prefix=no
12096 need_version=no
12097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12098 soname_spec='${libname}${release}${shared_ext}$major'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 shlibpath_overrides_runpath=no
12101 hardcode_into_libs=yes
12102 dynamic_linker='GNU ld.so'
12103 ;;
12104
12105freebsd* | dragonfly*)
12106 # DragonFly does not have aout. When/if they implement a new
12107 # versioning mechanism, adjust this.
12108 if test -x /usr/bin/objformat; then
12109 objformat=`/usr/bin/objformat`
12110 else
12111 case $host_os in
12112 freebsd[123]*) objformat=aout ;;
12113 *) objformat=elf ;;
12114 esac
12115 fi
12116 version_type=freebsd-$objformat
12117 case $version_type in
12118 freebsd-elf*)
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12120 need_version=no
12121 need_lib_prefix=no
12122 ;;
12123 freebsd-*)
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12125 need_version=yes
12126 ;;
12127 esac
12128 shlibpath_var=LD_LIBRARY_PATH
12129 case $host_os in
12130 freebsd2*)
12131 shlibpath_overrides_runpath=yes
12132 ;;
12133 freebsd3.[01]* | freebsdelf3.[01]*)
12134 shlibpath_overrides_runpath=yes
12135 hardcode_into_libs=yes
12136 ;;
12137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12139 shlibpath_overrides_runpath=no
12140 hardcode_into_libs=yes
12141 ;;
12142 freebsd*) # from 4.6 on
12143 shlibpath_overrides_runpath=yes
12144 hardcode_into_libs=yes
12145 ;;
12146 esac
12147 ;;
12148
12149gnu*)
12150 version_type=linux
12151 need_lib_prefix=no
12152 need_version=no
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12154 soname_spec='${libname}${release}${shared_ext}$major'
12155 shlibpath_var=LD_LIBRARY_PATH
12156 hardcode_into_libs=yes
12157 ;;
12158
12159hpux9* | hpux10* | hpux11*)
12160 # Give a soname corresponding to the major version so that dld.sl refuses to
12161 # link against other versions.
12162 version_type=sunos
12163 need_lib_prefix=no
12164 need_version=no
12165 case $host_cpu in
12166 ia64*)
12167 shrext_cmds='.so'
12168 hardcode_into_libs=yes
12169 dynamic_linker="$host_os dld.so"
12170 shlibpath_var=LD_LIBRARY_PATH
12171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 if test "X$HPUX_IA64_MODE" = X32; then
12175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12176 else
12177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12178 fi
12179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12180 ;;
12181 hppa*64*)
12182 shrext_cmds='.sl'
12183 hardcode_into_libs=yes
12184 dynamic_linker="$host_os dld.sl"
12185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12191 ;;
12192 *)
12193 shrext_cmds='.sl'
12194 dynamic_linker="$host_os dld.sl"
12195 shlibpath_var=SHLIB_PATH
12196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 ;;
12200 esac
12201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12202 postinstall_cmds='chmod 555 $lib'
12203 ;;
12204
12205interix3*)
12206 version_type=linux
12207 need_lib_prefix=no
12208 need_version=no
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12210 soname_spec='${libname}${release}${shared_ext}$major'
12211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=no
12214 hardcode_into_libs=yes
12215 ;;
12216
12217irix5* | irix6* | nonstopux*)
12218 case $host_os in
12219 nonstopux*) version_type=nonstopux ;;
12220 *)
12221 if test "$lt_cv_prog_gnu_ld" = yes; then
12222 version_type=linux
12223 else
12224 version_type=irix
12225 fi ;;
12226 esac
12227 need_lib_prefix=no
12228 need_version=no
12229 soname_spec='${libname}${release}${shared_ext}$major'
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12231 case $host_os in
12232 irix5* | nonstopux*)
12233 libsuff= shlibsuff=
12234 ;;
12235 *)
12236 case $LD in # libtool.m4 will add one of these switches to LD
12237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12238 libsuff= shlibsuff= libmagic=32-bit;;
12239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12240 libsuff=32 shlibsuff=N32 libmagic=N32;;
12241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12243 *) libsuff= shlibsuff= libmagic=never-match;;
12244 esac
12245 ;;
12246 esac
12247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12248 shlibpath_overrides_runpath=no
12249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12251 hardcode_into_libs=yes
12252 ;;
12253
12254# No shared lib support for Linux oldld, aout, or coff.
12255linux*oldld* | linux*aout* | linux*coff*)
12256 dynamic_linker=no
12257 ;;
12258
12259# This must be Linux ELF.
12260linux*)
12261 version_type=linux
12262 need_lib_prefix=no
12263 need_version=no
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=no
12269 # This implies no fast_install, which is unacceptable.
12270 # Some rework will be needed to allow for fast_install
12271 # before this can be enabled.
12272 hardcode_into_libs=yes
12273
12274 # find out which ABI we are using
12275 libsuff=
12276 case "$host_cpu" in
12277 x86_64*|s390x*|powerpc64*)
12278 echo '#line 12278 "configure"' > conftest.$ac_ext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; then
12284 case `/usr/bin/file conftest.$ac_objext` in
12285 *64-bit*)
12286 libsuff=64
12287 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12288 ;;
12289 esac
12290 fi
12291 rm -rf conftest*
12292 ;;
12293 esac
12294
12295 # Append ld.so.conf contents to the search path
12296 if test -f /etc/ld.so.conf; then
12297 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' ' '`
12298 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12299 fi
12300
12301 # We used to test for /lib/ld.so.1 and disable shared libraries on
12302 # powerpc, because MkLinux only supported shared libraries with the
12303 # GNU dynamic linker. Since this was broken with cross compilers,
12304 # most powerpc-linux boxes support dynamic linking these days and
12305 # people can always --disable-shared, the test was removed, and we
12306 # assume the GNU/Linux dynamic linker is in use.
12307 dynamic_linker='GNU/Linux ld.so'
12308 ;;
12309
12310knetbsd*-gnu)
12311 version_type=linux
12312 need_lib_prefix=no
12313 need_version=no
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=no
12318 hardcode_into_libs=yes
12319 dynamic_linker='GNU ld.so'
12320 ;;
12321
12322netbsd*)
12323 version_type=sunos
12324 need_lib_prefix=no
12325 need_version=no
12326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12329 dynamic_linker='NetBSD (a.out) ld.so'
12330 else
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 dynamic_linker='NetBSD ld.elf_so'
12334 fi
12335 shlibpath_var=LD_LIBRARY_PATH
12336 shlibpath_overrides_runpath=yes
12337 hardcode_into_libs=yes
12338 ;;
12339
12340newsos6)
12341 version_type=linux
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 shlibpath_overrides_runpath=yes
12345 ;;
12346
12347nto-qnx*)
12348 version_type=linux
12349 need_lib_prefix=no
12350 need_version=no
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352 soname_spec='${libname}${release}${shared_ext}$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 shlibpath_overrides_runpath=yes
12355 ;;
12356
12357openbsd*)
12358 version_type=sunos
12359 sys_lib_dlsearch_path_spec="/usr/lib"
12360 need_lib_prefix=no
12361 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12362 case $host_os in
12363 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12364 *) need_version=no ;;
12365 esac
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12370 case $host_os in
12371 openbsd2.[89] | openbsd2.[89].*)
12372 shlibpath_overrides_runpath=no
12373 ;;
12374 *)
12375 shlibpath_overrides_runpath=yes
12376 ;;
12377 esac
12378 else
12379 shlibpath_overrides_runpath=yes
12380 fi
12381 ;;
12382
12383os2*)
12384 libname_spec='$name'
12385 shrext_cmds=".dll"
12386 need_lib_prefix=no
12387 library_names_spec='$libname${shared_ext} $libname.a'
12388 dynamic_linker='OS/2 ld.exe'
12389 shlibpath_var=LIBPATH
12390 ;;
12391
12392osf3* | osf4* | osf5*)
12393 version_type=osf
12394 need_lib_prefix=no
12395 need_version=no
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12400 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12401 ;;
12402
12403solaris*)
12404 version_type=linux
12405 need_lib_prefix=no
12406 need_version=no
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12408 soname_spec='${libname}${release}${shared_ext}$major'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 shlibpath_overrides_runpath=yes
12411 hardcode_into_libs=yes
12412 # ldd complains unless libraries are executable
12413 postinstall_cmds='chmod +x $lib'
12414 ;;
12415
12416sunos4*)
12417 version_type=sunos
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12420 shlibpath_var=LD_LIBRARY_PATH
12421 shlibpath_overrides_runpath=yes
12422 if test "$with_gnu_ld" = yes; then
12423 need_lib_prefix=no
12424 fi
12425 need_version=yes
12426 ;;
12427
12428sysv4 | sysv4.3*)
12429 version_type=linux
12430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431 soname_spec='${libname}${release}${shared_ext}$major'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 case $host_vendor in
12434 sni)
12435 shlibpath_overrides_runpath=no
12436 need_lib_prefix=no
12437 export_dynamic_flag_spec='${wl}-Blargedynsym'
12438 runpath_var=LD_RUN_PATH
12439 ;;
12440 siemens)
12441 need_lib_prefix=no
12442 ;;
12443 motorola)
12444 need_lib_prefix=no
12445 need_version=no
12446 shlibpath_overrides_runpath=no
12447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12448 ;;
12449 esac
12450 ;;
12451
12452sysv4*MP*)
12453 if test -d /usr/nec ;then
12454 version_type=linux
12455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12456 soname_spec='$libname${shared_ext}.$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 fi
12459 ;;
12460
12461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12462 version_type=freebsd-elf
12463 need_lib_prefix=no
12464 need_version=no
12465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12466 soname_spec='${libname}${release}${shared_ext}$major'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 hardcode_into_libs=yes
12469 if test "$with_gnu_ld" = yes; then
12470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12471 shlibpath_overrides_runpath=no
12472 else
12473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12474 shlibpath_overrides_runpath=yes
12475 case $host_os in
12476 sco3.2v5*)
12477 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12478 ;;
12479 esac
12480 fi
12481 sys_lib_dlsearch_path_spec='/usr/lib'
12482 ;;
12483
12484uts4*)
12485 version_type=linux
12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12487 soname_spec='${libname}${release}${shared_ext}$major'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 ;;
12490
12491*)
12492 dynamic_linker=no
12493 ;;
12494esac
12495echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12496echo "${ECHO_T}$dynamic_linker" >&6
12497test "$dynamic_linker" = no && can_build_shared=no
12498
12499variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12500if test "$GCC" = yes; then
12501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12502fi
12503
12504echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12505echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12506hardcode_action_CXX=
12507if test -n "$hardcode_libdir_flag_spec_CXX" || \
12508 test -n "$runpath_var_CXX" || \
12509 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12510
12511 # We can hardcode non-existant directories.
12512 if test "$hardcode_direct_CXX" != no &&
12513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12514 # have to relink, otherwise we might link with an installed library
12515 # when we should be linking with a yet-to-be-installed one
12516 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12517 test "$hardcode_minus_L_CXX" != no; then
12518 # Linking always hardcodes the temporary library directory.
12519 hardcode_action_CXX=relink
12520 else
12521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12522 hardcode_action_CXX=immediate
12523 fi
12524else
12525 # We cannot hardcode anything, or else we can only hardcode existing
12526 # directories.
12527 hardcode_action_CXX=unsupported
12528fi
12529echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12530echo "${ECHO_T}$hardcode_action_CXX" >&6
12531
12532if test "$hardcode_action_CXX" = relink; then
12533 # Fast installation is not supported
12534 enable_fast_install=no
12535elif test "$shlibpath_overrides_runpath" = yes ||
12536 test "$enable_shared" = no; then
12537 # Fast installation is not necessary
12538 enable_fast_install=needless
12539fi
12540
12541
12542# The else clause should only fire when bootstrapping the
12543# libtool distribution, otherwise you forgot to ship ltmain.sh
12544# with your package, and you will get complaints that there are
12545# no rules to generate ltmain.sh.
12546if test -f "$ltmain"; then
12547 # See if we are running on zsh, and set the options which allow our commands through
12548 # without removal of \ escapes.
12549 if test -n "${ZSH_VERSION+set}" ; then
12550 setopt NO_GLOB_SUBST
12551 fi
12552 # Now quote all the things that may contain metacharacters while being
12553 # careful not to overquote the AC_SUBSTed values. We take copies of the
12554 # variables and quote the copies for generation of the libtool script.
12555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12556 SED SHELL STRIP \
12557 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12558 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12559 deplibs_check_method reload_flag reload_cmds need_locks \
12560 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12561 lt_cv_sys_global_symbol_to_c_name_address \
12562 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12563 old_postinstall_cmds old_postuninstall_cmds \
12564 compiler_CXX \
12565 CC_CXX \
12566 LD_CXX \
12567 lt_prog_compiler_wl_CXX \
12568 lt_prog_compiler_pic_CXX \
12569 lt_prog_compiler_static_CXX \
12570 lt_prog_compiler_no_builtin_flag_CXX \
12571 export_dynamic_flag_spec_CXX \
12572 thread_safe_flag_spec_CXX \
12573 whole_archive_flag_spec_CXX \
12574 enable_shared_with_static_runtimes_CXX \
12575 old_archive_cmds_CXX \
12576 old_archive_from_new_cmds_CXX \
12577 predep_objects_CXX \
12578 postdep_objects_CXX \
12579 predeps_CXX \
12580 postdeps_CXX \
12581 compiler_lib_search_path_CXX \
12582 archive_cmds_CXX \
12583 archive_expsym_cmds_CXX \
12584 postinstall_cmds_CXX \
12585 postuninstall_cmds_CXX \
12586 old_archive_from_expsyms_cmds_CXX \
12587 allow_undefined_flag_CXX \
12588 no_undefined_flag_CXX \
12589 export_symbols_cmds_CXX \
12590 hardcode_libdir_flag_spec_CXX \
12591 hardcode_libdir_flag_spec_ld_CXX \
12592 hardcode_libdir_separator_CXX \
12593 hardcode_automatic_CXX \
12594 module_cmds_CXX \
12595 module_expsym_cmds_CXX \
12596 lt_cv_prog_compiler_c_o_CXX \
12597 exclude_expsyms_CXX \
12598 include_expsyms_CXX; do
12599
12600 case $var in
12601 old_archive_cmds_CXX | \
12602 old_archive_from_new_cmds_CXX | \
12603 archive_cmds_CXX | \
12604 archive_expsym_cmds_CXX | \
12605 module_cmds_CXX | \
12606 module_expsym_cmds_CXX | \
12607 old_archive_from_expsyms_cmds_CXX | \
12608 export_symbols_cmds_CXX | \
12609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12610 postinstall_cmds | postuninstall_cmds | \
12611 old_postinstall_cmds | old_postuninstall_cmds | \
12612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12613 # Double-quote double-evaled strings.
12614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12615 ;;
12616 *)
12617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12618 ;;
12619 esac
12620 done
12621
12622 case $lt_echo in
12623 *'\$0 --fallback-echo"')
12624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12625 ;;
12626 esac
12627
12628cfgfile="$ofile"
12629
12630 cat <<__EOF__ >> "$cfgfile"
12631# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12632
12633# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12634
12635# Shell to use when invoking shell scripts.
12636SHELL=$lt_SHELL
12637
12638# Whether or not to build shared libraries.
12639build_libtool_libs=$enable_shared
12640
12641# Whether or not to build static libraries.
12642build_old_libs=$enable_static
12643
12644# Whether or not to add -lc for building shared libraries.
12645build_libtool_need_lc=$archive_cmds_need_lc_CXX
12646
12647# Whether or not to disallow shared libs when runtime libs are static
12648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12649
12650# Whether or not to optimize for fast installation.
12651fast_install=$enable_fast_install
12652
12653# The host system.
12654host_alias=$host_alias
12655host=$host
12656host_os=$host_os
12657
12658# The build system.
12659build_alias=$build_alias
12660build=$build
12661build_os=$build_os
12662
12663# An echo program that does not interpret backslashes.
12664echo=$lt_echo
12665
12666# The archiver.
12667AR=$lt_AR
12668AR_FLAGS=$lt_AR_FLAGS
12669
12670# A C compiler.
12671LTCC=$lt_LTCC
12672
12673# LTCC compiler flags.
12674LTCFLAGS=$lt_LTCFLAGS
12675
12676# A language-specific compiler.
12677CC=$lt_compiler_CXX
12678
12679# Is the compiler the GNU C compiler?
12680with_gcc=$GCC_CXX
12681
12682gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12683gcc_ver=\`gcc -dumpversion\`
12684
12685# An ERE matcher.
12686EGREP=$lt_EGREP
12687
12688# The linker used to build libraries.
12689LD=$lt_LD_CXX
12690
12691# Whether we need hard or soft links.
12692LN_S=$lt_LN_S
12693
12694# A BSD-compatible nm program.
12695NM=$lt_NM
12696
12697# A symbol stripping program
12698STRIP=$lt_STRIP
12699
12700# Used to examine libraries when file_magic_cmd begins "file"
12701MAGIC_CMD=$MAGIC_CMD
12702
12703# Used on cygwin: DLL creation program.
12704DLLTOOL="$DLLTOOL"
12705
12706# Used on cygwin: object dumper.
12707OBJDUMP="$OBJDUMP"
12708
12709# Used on cygwin: assembler.
12710AS="$AS"
12711
12712# The name of the directory that contains temporary libtool files.
12713objdir=$objdir
12714
12715# How to create reloadable object files.
12716reload_flag=$lt_reload_flag
12717reload_cmds=$lt_reload_cmds
12718
12719# How to pass a linker flag through the compiler.
12720wl=$lt_lt_prog_compiler_wl_CXX
12721
12722# Object file suffix (normally "o").
12723objext="$ac_objext"
12724
12725# Old archive suffix (normally "a").
12726libext="$libext"
12727
12728# Shared library suffix (normally ".so").
12729shrext_cmds='$shrext_cmds'
12730
12731# Executable file suffix (normally "").
12732exeext="$exeext"
12733
12734# Additional compiler flags for building library objects.
12735pic_flag=$lt_lt_prog_compiler_pic_CXX
12736pic_mode=$pic_mode
12737
12738# What is the maximum length of a command?
12739max_cmd_len=$lt_cv_sys_max_cmd_len
12740
12741# Does compiler simultaneously support -c and -o options?
12742compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12743
12744# Must we lock files when doing compilation?
12745need_locks=$lt_need_locks
12746
12747# Do we need the lib prefix for modules?
12748need_lib_prefix=$need_lib_prefix
12749
12750# Do we need a version for libraries?
12751need_version=$need_version
12752
12753# Whether dlopen is supported.
12754dlopen_support=$enable_dlopen
12755
12756# Whether dlopen of programs is supported.
12757dlopen_self=$enable_dlopen_self
12758
12759# Whether dlopen of statically linked programs is supported.
12760dlopen_self_static=$enable_dlopen_self_static
12761
12762# Compiler flag to prevent dynamic linking.
12763link_static_flag=$lt_lt_prog_compiler_static_CXX
12764
12765# Compiler flag to turn off builtin functions.
12766no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12767
12768# Compiler flag to allow reflexive dlopens.
12769export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12770
12771# Compiler flag to generate shared objects directly from archives.
12772whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12773
12774# Compiler flag to generate thread-safe objects.
12775thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12776
12777# Library versioning type.
12778version_type=$version_type
12779
12780# Format of library name prefix.
12781libname_spec=$lt_libname_spec
12782
12783# List of archive names. First name is the real one, the rest are links.
12784# The last name is the one that the linker finds with -lNAME.
12785library_names_spec=$lt_library_names_spec
12786
12787# The coded name of the library, if different from the real name.
12788soname_spec=$lt_soname_spec
12789
12790# Commands used to build and install an old-style archive.
12791RANLIB=$lt_RANLIB
12792old_archive_cmds=$lt_old_archive_cmds_CXX
12793old_postinstall_cmds=$lt_old_postinstall_cmds
12794old_postuninstall_cmds=$lt_old_postuninstall_cmds
12795
12796# Create an old-style archive from a shared archive.
12797old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12798
12799# Create a temporary old-style archive to link instead of a shared archive.
12800old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12801
12802# Commands used to build and install a shared archive.
12803archive_cmds=$lt_archive_cmds_CXX
12804archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12805postinstall_cmds=$lt_postinstall_cmds
12806postuninstall_cmds=$lt_postuninstall_cmds
12807
12808# Commands used to build a loadable module (assumed same as above if empty)
12809module_cmds=$lt_module_cmds_CXX
12810module_expsym_cmds=$lt_module_expsym_cmds_CXX
12811
12812# Commands to strip libraries.
12813old_striplib=$lt_old_striplib
12814striplib=$lt_striplib
12815
12816# Dependencies to place before the objects being linked to create a
12817# shared library.
12818predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12819
12820# Dependencies to place after the objects being linked to create a
12821# shared library.
12822postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12823
12824# Dependencies to place before the objects being linked to create a
12825# shared library.
12826predeps=$lt_predeps_CXX
12827
12828# Dependencies to place after the objects being linked to create a
12829# shared library.
12830postdeps=$lt_postdeps_CXX
12831
12832# The library search path used internally by the compiler when linking
12833# a shared library.
12834compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12835
12836# Method to check whether dependent libraries are shared objects.
12837deplibs_check_method=$lt_deplibs_check_method
12838
12839# Command to use when deplibs_check_method == file_magic.
12840file_magic_cmd=$lt_file_magic_cmd
12841
12842# Flag that allows shared libraries with undefined symbols to be built.
12843allow_undefined_flag=$lt_allow_undefined_flag_CXX
12844
12845# Flag that forces no undefined symbols.
12846no_undefined_flag=$lt_no_undefined_flag_CXX
12847
12848# Commands used to finish a libtool library installation in a directory.
12849finish_cmds=$lt_finish_cmds
12850
12851# Same as above, but a single script fragment to be evaled but not shown.
12852finish_eval=$lt_finish_eval
12853
12854# Take the output of nm and produce a listing of raw symbols and C names.
12855global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12856
12857# Transform the output of nm in a proper C declaration
12858global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12859
12860# Transform the output of nm in a C name address pair
12861global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12862
12863# This is the shared library runtime path variable.
12864runpath_var=$runpath_var
12865
12866# This is the shared library path variable.
12867shlibpath_var=$shlibpath_var
12868
12869# Is shlibpath searched before the hard-coded library search path?
12870shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12871
12872# How to hardcode a shared library path into an executable.
12873hardcode_action=$hardcode_action_CXX
12874
12875# Whether we should hardcode library paths into libraries.
12876hardcode_into_libs=$hardcode_into_libs
12877
12878# Flag to hardcode \$libdir into a binary during linking.
12879# This must work even if \$libdir does not exist.
12880hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12881
12882# If ld is used when linking, flag to hardcode \$libdir into
12883# a binary during linking. This must work even if \$libdir does
12884# not exist.
12885hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12886
12887# Whether we need a single -rpath flag with a separated argument.
12888hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12889
12890# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12891# resulting binary.
12892hardcode_direct=$hardcode_direct_CXX
12893
12894# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12895# resulting binary.
12896hardcode_minus_L=$hardcode_minus_L_CXX
12897
12898# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12899# the resulting binary.
12900hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12901
12902# Set to yes if building a shared library automatically hardcodes DIR into the library
12903# and all subsequent libraries and executables linked against it.
12904hardcode_automatic=$hardcode_automatic_CXX
12905
12906# Variables whose values should be saved in libtool wrapper scripts and
12907# restored at relink time.
12908variables_saved_for_relink="$variables_saved_for_relink"
12909
12910# Whether libtool must link a program against all its dependency libraries.
12911link_all_deplibs=$link_all_deplibs_CXX
12912
12913# Compile-time system search path for libraries
12914sys_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"\`
12915
12916# Run-time system search path for libraries
12917sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12918
12919# Fix the shell variable \$srcfile for the compiler.
12920fix_srcfile_path="$fix_srcfile_path_CXX"
12921
12922# Set to yes if exported symbols are required.
12923always_export_symbols=$always_export_symbols_CXX
12924
12925# The commands to list exported symbols.
12926export_symbols_cmds=$lt_export_symbols_cmds_CXX
12927
12928# The commands to extract the exported symbol list from a shared archive.
12929extract_expsyms_cmds=$lt_extract_expsyms_cmds
12930
12931# Symbols that should not be listed in the preloaded symbols.
12932exclude_expsyms=$lt_exclude_expsyms_CXX
12933
12934# Symbols that must always be exported.
12935include_expsyms=$lt_include_expsyms_CXX
12936
12937# ### END LIBTOOL TAG CONFIG: $tagname
12938
12939__EOF__
12940
12941
12942else
12943 # If there is no Makefile yet, we rely on a make rule to execute
12944 # `config.status --recheck' to rerun these tests and create the
12945 # libtool script then.
12946 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12947 if test -f "$ltmain_in"; then
12948 test -f Makefile && make "$ltmain"
12949 fi
12950fi
12951
12952
12953ac_ext=c
12954ac_cpp='$CPP $CPPFLAGS'
12955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959CC=$lt_save_CC
12960LDCXX=$LD
12961LD=$lt_save_LD
12962GCC=$lt_save_GCC
12963with_gnu_ldcxx=$with_gnu_ld
12964with_gnu_ld=$lt_save_with_gnu_ld
12965lt_cv_path_LDCXX=$lt_cv_path_LD
12966lt_cv_path_LD=$lt_save_path_LD
12967lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12968lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12969
12970 else
12971 tagname=""
12972 fi
12973 ;;
12974
12975 F77)
12976 if test -n "$F77" && test "X$F77" != "Xno"; then
12977
12978ac_ext=f
12979ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12980ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12982
12983
12984archive_cmds_need_lc_F77=no
12985allow_undefined_flag_F77=
12986always_export_symbols_F77=no
12987archive_expsym_cmds_F77=
12988export_dynamic_flag_spec_F77=
12989hardcode_direct_F77=no
12990hardcode_libdir_flag_spec_F77=
12991hardcode_libdir_flag_spec_ld_F77=
12992hardcode_libdir_separator_F77=
12993hardcode_minus_L_F77=no
12994hardcode_automatic_F77=no
12995module_cmds_F77=
12996module_expsym_cmds_F77=
12997link_all_deplibs_F77=unknown
12998old_archive_cmds_F77=$old_archive_cmds
12999no_undefined_flag_F77=
13000whole_archive_flag_spec_F77=
13001enable_shared_with_static_runtimes_F77=no
13002
13003# Source file extension for f77 test sources.
13004ac_ext=f
13005
13006# Object file extension for compiled f77 test sources.
13007objext=o
13008objext_F77=$objext
13009
13010# Code to be used in simple compile tests
13011lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13012
13013# Code to be used in simple link tests
13014lt_simple_link_test_code=" program t\n end\n"
13015
13016# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13017
13018# If no C compiler was specified, use CC.
13019LTCC=${LTCC-"$CC"}
13020
13021# If no C compiler flags were specified, use CFLAGS.
13022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13023
13024# Allow CC to be a program name with arguments.
13025compiler=$CC
13026
13027
13028# save warnings/boilerplate of simple test code
13029ac_outfile=conftest.$ac_objext
13030printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13031eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13032_lt_compiler_boilerplate=`cat conftest.err`
13033$rm conftest*
13034
13035ac_outfile=conftest.$ac_objext
13036printf "$lt_simple_link_test_code" >conftest.$ac_ext
13037eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13038_lt_linker_boilerplate=`cat conftest.err`
13039$rm conftest*
13040
13041
13042# Allow CC to be a program name with arguments.
13043lt_save_CC="$CC"
13044CC=${F77-"f77"}
13045compiler=$CC
13046compiler_F77=$CC
13047for cc_temp in $compiler""; do
13048 case $cc_temp in
13049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13051 \-*) ;;
13052 *) break;;
13053 esac
13054done
13055cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13056
13057
13058echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13059echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13060echo "$as_me:$LINENO: result: $can_build_shared" >&5
13061echo "${ECHO_T}$can_build_shared" >&6
13062
13063echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13064echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13065test "$can_build_shared" = "no" && enable_shared=no
13066
13067# On AIX, shared libraries and static libraries use the same namespace, and
13068# are all built from PIC.
13069case $host_os in
13070aix3*)
13071 test "$enable_shared" = yes && enable_static=no
13072 if test -n "$RANLIB"; then
13073 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13074 postinstall_cmds='$RANLIB $lib'
13075 fi
13076 ;;
13077aix4* | aix5*)
13078 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13079 test "$enable_shared" = yes && enable_static=no
13080 fi
13081 ;;
13082esac
13083echo "$as_me:$LINENO: result: $enable_shared" >&5
13084echo "${ECHO_T}$enable_shared" >&6
13085
13086echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13087echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13088# Make sure either enable_shared or enable_static is yes.
13089test "$enable_shared" = yes || enable_static=yes
13090echo "$as_me:$LINENO: result: $enable_static" >&5
13091echo "${ECHO_T}$enable_static" >&6
13092
13093GCC_F77="$G77"
13094LD_F77="$LD"
13095
13096lt_prog_compiler_wl_F77=
13097lt_prog_compiler_pic_F77=
13098lt_prog_compiler_static_F77=
13099
13100echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13101echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13102
13103 if test "$GCC" = yes; then
13104 lt_prog_compiler_wl_F77='-Wl,'
13105 lt_prog_compiler_static_F77='-static'
13106
13107 case $host_os in
13108 aix*)
13109 # All AIX code is PIC.
13110 if test "$host_cpu" = ia64; then
13111 # AIX 5 now supports IA64 processor
13112 lt_prog_compiler_static_F77='-Bstatic'
13113 fi
13114 ;;
13115
13116 amigaos*)
13117 # FIXME: we need at least 68020 code to build shared libraries, but
13118 # adding the `-m68020' flag to GCC prevents building anything better,
13119 # like `-m68040'.
13120 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13121 ;;
13122
13123 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13124 # PIC is the default for these OSes.
13125 ;;
13126
13127 mingw* | pw32* | os2*)
13128 # This hack is so that the source file can tell whether it is being
13129 # built for inclusion in a dll (and should export symbols for example).
13130 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13131 ;;
13132
13133 darwin* | rhapsody*)
13134 # PIC is the default on this platform
13135 # Common symbols not allowed in MH_DYLIB files
13136 lt_prog_compiler_pic_F77='-fno-common'
13137 ;;
13138
13139 interix3*)
13140 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13141 # Instead, we relocate shared libraries at runtime.
13142 ;;
13143
13144 msdosdjgpp*)
13145 # Just because we use GCC doesn't mean we suddenly get shared libraries
13146 # on systems that don't support them.
13147 lt_prog_compiler_can_build_shared_F77=no
13148 enable_shared=no
13149 ;;
13150
13151 sysv4*MP*)
13152 if test -d /usr/nec; then
13153 lt_prog_compiler_pic_F77=-Kconform_pic
13154 fi
13155 ;;
13156
13157 hpux*)
13158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13159 # not for PA HP-UX.
13160 case $host_cpu in
13161 hppa*64*|ia64*)
13162 # +Z the default
13163 ;;
13164 *)
13165 lt_prog_compiler_pic_F77='-fPIC'
13166 ;;
13167 esac
13168 ;;
13169
13170 *)
13171 lt_prog_compiler_pic_F77='-fPIC'
13172 ;;
13173 esac
13174 else
13175 # PORTME Check for flag to pass linker flags through the system compiler.
13176 case $host_os in
13177 aix*)
13178 lt_prog_compiler_wl_F77='-Wl,'
13179 if test "$host_cpu" = ia64; then
13180 # AIX 5 now supports IA64 processor
13181 lt_prog_compiler_static_F77='-Bstatic'
13182 else
13183 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13184 fi
13185 ;;
13186 darwin*)
13187 # PIC is the default on this platform
13188 # Common symbols not allowed in MH_DYLIB files
13189 case $cc_basename in
13190 xlc*)
13191 lt_prog_compiler_pic_F77='-qnocommon'
13192 lt_prog_compiler_wl_F77='-Wl,'
13193 ;;
13194 esac
13195 ;;
13196
13197 mingw* | pw32* | os2*)
13198 # This hack is so that the source file can tell whether it is being
13199 # built for inclusion in a dll (and should export symbols for example).
13200 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13201 ;;
13202
13203 hpux9* | hpux10* | hpux11*)
13204 lt_prog_compiler_wl_F77='-Wl,'
13205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13206 # not for PA HP-UX.
13207 case $host_cpu in
13208 hppa*64*|ia64*)
13209 # +Z the default
13210 ;;
13211 *)
13212 lt_prog_compiler_pic_F77='+Z'
13213 ;;
13214 esac
13215 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13216 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13217 ;;
13218
13219 irix5* | irix6* | nonstopux*)
13220 lt_prog_compiler_wl_F77='-Wl,'
13221 # PIC (with -KPIC) is the default.
13222 lt_prog_compiler_static_F77='-non_shared'
13223 ;;
13224
13225 newsos6)
13226 lt_prog_compiler_pic_F77='-KPIC'
13227 lt_prog_compiler_static_F77='-Bstatic'
13228 ;;
13229
13230 linux*)
13231 case $cc_basename in
13232 icc* | ecc*)
13233 lt_prog_compiler_wl_F77='-Wl,'
13234 lt_prog_compiler_pic_F77='-KPIC'
13235 lt_prog_compiler_static_F77='-static'
13236 ;;
13237 pgcc* | pgf77* | pgf90* | pgf95*)
13238 # Portland Group compilers (*not* the Pentium gcc compiler,
13239 # which looks to be a dead project)
13240 lt_prog_compiler_wl_F77='-Wl,'
13241 lt_prog_compiler_pic_F77='-fpic'
13242 lt_prog_compiler_static_F77='-Bstatic'
13243 ;;
13244 ccc*)
13245 lt_prog_compiler_wl_F77='-Wl,'
13246 # All Alpha code is PIC.
13247 lt_prog_compiler_static_F77='-non_shared'
13248 ;;
13249 esac
13250 ;;
13251
13252 osf3* | osf4* | osf5*)
13253 lt_prog_compiler_wl_F77='-Wl,'
13254 # All OSF/1 code is PIC.
13255 lt_prog_compiler_static_F77='-non_shared'
13256 ;;
13257
13258 solaris*)
13259 lt_prog_compiler_pic_F77='-KPIC'
13260 lt_prog_compiler_static_F77='-Bstatic'
13261 case $cc_basename in
13262 f77* | f90* | f95*)
13263 lt_prog_compiler_wl_F77='-Qoption ld ';;
13264 *)
13265 lt_prog_compiler_wl_F77='-Wl,';;
13266 esac
13267 ;;
13268
13269 sunos4*)
13270 lt_prog_compiler_wl_F77='-Qoption ld '
13271 lt_prog_compiler_pic_F77='-PIC'
13272 lt_prog_compiler_static_F77='-Bstatic'
13273 ;;
13274
13275 sysv4 | sysv4.2uw2* | sysv4.3*)
13276 lt_prog_compiler_wl_F77='-Wl,'
13277 lt_prog_compiler_pic_F77='-KPIC'
13278 lt_prog_compiler_static_F77='-Bstatic'
13279 ;;
13280
13281 sysv4*MP*)
13282 if test -d /usr/nec ;then
13283 lt_prog_compiler_pic_F77='-Kconform_pic'
13284 lt_prog_compiler_static_F77='-Bstatic'
13285 fi
13286 ;;
13287
13288 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 lt_prog_compiler_pic_F77='-KPIC'
13291 lt_prog_compiler_static_F77='-Bstatic'
13292 ;;
13293
13294 unicos*)
13295 lt_prog_compiler_wl_F77='-Wl,'
13296 lt_prog_compiler_can_build_shared_F77=no
13297 ;;
13298
13299 uts4*)
13300 lt_prog_compiler_pic_F77='-pic'
13301 lt_prog_compiler_static_F77='-Bstatic'
13302 ;;
13303
13304 *)
13305 lt_prog_compiler_can_build_shared_F77=no
13306 ;;
13307 esac
13308 fi
13309
13310echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13311echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13312
13313#
13314# Check to make sure the PIC flag actually works.
13315#
13316if test -n "$lt_prog_compiler_pic_F77"; then
13317
13318echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13319echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13320if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13322else
13323 lt_prog_compiler_pic_works_F77=no
13324 ac_outfile=conftest.$ac_objext
13325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13326 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13327 # Insert the option either (1) after the last *FLAGS variable, or
13328 # (2) before a word containing "conftest.", or (3) at the end.
13329 # Note that $ac_compile itself does not contain backslashes and begins
13330 # with a dollar sign (not a hyphen), so the echo should work correctly.
13331 # The option is referenced via a variable to avoid confusing sed.
13332 lt_compile=`echo "$ac_compile" | $SED \
13333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335 -e 's:$: $lt_compiler_flag:'`
13336 (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
13337 (eval "$lt_compile" 2>conftest.err)
13338 ac_status=$?
13339 cat conftest.err >&5
13340 echo "$as_me:13340: \$? = $ac_status" >&5
13341 if (exit $ac_status) && test -s "$ac_outfile"; then
13342 # The compiler can only warn and ignore the option if not recognized
13343 # So say no if there are warnings other than the usual output.
13344 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13347 lt_prog_compiler_pic_works_F77=yes
13348 fi
13349 fi
13350 $rm conftest*
13351
13352fi
13353echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13354echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13355
13356if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13357 case $lt_prog_compiler_pic_F77 in
13358 "" | " "*) ;;
13359 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13360 esac
13361else
13362 lt_prog_compiler_pic_F77=
13363 lt_prog_compiler_can_build_shared_F77=no
13364fi
13365
13366fi
13367case $host_os in
13368 # For platforms which do not support PIC, -DPIC is meaningless:
13369 *djgpp*)
13370 lt_prog_compiler_pic_F77=
13371 ;;
13372 *)
13373 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13374 ;;
13375esac
13376
13377#
13378# Check to make sure the static flag actually works.
13379#
13380wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13381echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13382echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13383if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385else
13386 lt_prog_compiler_static_works_F77=no
13387 save_LDFLAGS="$LDFLAGS"
13388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13389 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13391 # The linker can only warn and ignore the option if not recognized
13392 # So say no if there are warnings
13393 if test -s conftest.err; then
13394 # Append any errors to the config.log.
13395 cat conftest.err 1>&5
13396 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13398 if diff conftest.exp conftest.er2 >/dev/null; then
13399 lt_prog_compiler_static_works_F77=yes
13400 fi
13401 else
13402 lt_prog_compiler_static_works_F77=yes
13403 fi
13404 fi
13405 $rm conftest*
13406 LDFLAGS="$save_LDFLAGS"
13407
13408fi
13409echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13410echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13411
13412if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13413 :
13414else
13415 lt_prog_compiler_static_F77=
13416fi
13417
13418
13419echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13420echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13421if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424 lt_cv_prog_compiler_c_o_F77=no
13425 $rm -r conftest 2>/dev/null
13426 mkdir conftest
13427 cd conftest
13428 mkdir out
13429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13430
13431 lt_compiler_flag="-o out/conftest2.$ac_objext"
13432 # Insert the option either (1) after the last *FLAGS variable, or
13433 # (2) before a word containing "conftest.", or (3) at the end.
13434 # Note that $ac_compile itself does not contain backslashes and begins
13435 # with a dollar sign (not a hyphen), so the echo should work correctly.
13436 lt_compile=`echo "$ac_compile" | $SED \
13437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13439 -e 's:$: $lt_compiler_flag:'`
13440 (eval echo "\"\$as_me:13440: $lt_compile\"" >&5)
13441 (eval "$lt_compile" 2>out/conftest.err)
13442 ac_status=$?
13443 cat out/conftest.err >&5
13444 echo "$as_me:13444: \$? = $ac_status" >&5
13445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13446 then
13447 # The compiler can only warn and ignore the option if not recognized
13448 # So say no if there are warnings
13449 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13452 lt_cv_prog_compiler_c_o_F77=yes
13453 fi
13454 fi
13455 chmod u+w . 2>&5
13456 $rm conftest*
13457 # SGI C++ compiler will create directory out/ii_files/ for
13458 # template instantiation
13459 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13460 $rm out/* && rmdir out
13461 cd ..
13462 rmdir conftest
13463 $rm conftest*
13464
13465fi
13466echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13467echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13468
13469
13470hard_links="nottested"
13471if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13472 # do not overwrite the value of need_locks provided by the user
13473 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13474echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13475 hard_links=yes
13476 $rm conftest*
13477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13478 touch conftest.a
13479 ln conftest.a conftest.b 2>&5 || hard_links=no
13480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13481 echo "$as_me:$LINENO: result: $hard_links" >&5
13482echo "${ECHO_T}$hard_links" >&6
13483 if test "$hard_links" = no; then
13484 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13485echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13486 need_locks=warn
13487 fi
13488else
13489 need_locks=no
13490fi
13491
13492echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13493echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13494
13495 runpath_var=
13496 allow_undefined_flag_F77=
13497 enable_shared_with_static_runtimes_F77=no
13498 archive_cmds_F77=
13499 archive_expsym_cmds_F77=
13500 old_archive_From_new_cmds_F77=
13501 old_archive_from_expsyms_cmds_F77=
13502 export_dynamic_flag_spec_F77=
13503 whole_archive_flag_spec_F77=
13504 thread_safe_flag_spec_F77=
13505 hardcode_libdir_flag_spec_F77=
13506 hardcode_libdir_flag_spec_ld_F77=
13507 hardcode_libdir_separator_F77=
13508 hardcode_direct_F77=no
13509 hardcode_minus_L_F77=no
13510 hardcode_shlibpath_var_F77=unsupported
13511 link_all_deplibs_F77=unknown
13512 hardcode_automatic_F77=no
13513 module_cmds_F77=
13514 module_expsym_cmds_F77=
13515 always_export_symbols_F77=no
13516 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13517 # include_expsyms should be a list of space-separated symbols to be *always*
13518 # included in the symbol list
13519 include_expsyms_F77=
13520 # exclude_expsyms can be an extended regexp of symbols to exclude
13521 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13522 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13523 # as well as any symbol that contains `d'.
13524 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13525 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13526 # platforms (ab)use it in PIC code, but their linkers get confused if
13527 # the symbol is explicitly referenced. Since portable code cannot
13528 # rely on this symbol name, it's probably fine to never include it in
13529 # preloaded symbol tables.
13530 extract_expsyms_cmds=
13531 # Just being paranoid about ensuring that cc_basename is set.
13532 for cc_temp in $compiler""; do
13533 case $cc_temp in
13534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13536 \-*) ;;
13537 *) break;;
13538 esac
13539done
13540cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13541
13542 case $host_os in
13543 cygwin* | mingw* | pw32*)
13544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13545 # When not using gcc, we currently assume that we are using
13546 # Microsoft Visual C++.
13547 if test "$GCC" != yes; then
13548 with_gnu_ld=no
13549 fi
13550 ;;
13551 interix*)
13552 # we just hope/assume this is gcc and not c89 (= MSVC++)
13553 with_gnu_ld=yes
13554 ;;
13555 openbsd*)
13556 with_gnu_ld=no
13557 ;;
13558 esac
13559
13560 ld_shlibs_F77=yes
13561 if test "$with_gnu_ld" = yes; then
13562 # If archive_cmds runs LD, not CC, wlarc should be empty
13563 wlarc='${wl}'
13564
13565 # Set some defaults for GNU ld with shared library support. These
13566 # are reset later if shared libraries are not supported. Putting them
13567 # here allows them to be overridden if necessary.
13568 runpath_var=LD_RUN_PATH
13569 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13570 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13571 # ancient GNU ld didn't support --whole-archive et. al.
13572 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13573 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13574 else
13575 whole_archive_flag_spec_F77=
13576 fi
13577 supports_anon_versioning=no
13578 case `$LD -v 2>/dev/null` in
13579 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13580 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13581 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13582 *\ 2.11.*) ;; # other 2.11 versions
13583 *) supports_anon_versioning=yes ;;
13584 esac
13585
13586 # See if GNU ld supports shared libraries.
13587 case $host_os in
13588 aix3* | aix4* | aix5*)
13589 # On AIX/PPC, the GNU linker is very broken
13590 if test "$host_cpu" != ia64; then
13591 ld_shlibs_F77=no
13592 cat <<EOF 1>&2
13593
13594*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13595*** to be unable to reliably create shared libraries on AIX.
13596*** Therefore, libtool is disabling shared libraries support. If you
13597*** really care for shared libraries, you may want to modify your PATH
13598*** so that a non-GNU linker is found, and then restart.
13599
13600EOF
13601 fi
13602 ;;
13603
13604 amigaos*)
13605 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)'
13606 hardcode_libdir_flag_spec_F77='-L$libdir'
13607 hardcode_minus_L_F77=yes
13608
13609 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13610 # that the semantics of dynamic libraries on AmigaOS, at least up
13611 # to version 4, is to share data among multiple programs linked
13612 # with the same dynamic library. Since this doesn't match the
13613 # behavior of shared libraries on other platforms, we can't use
13614 # them.
13615 ld_shlibs_F77=no
13616 ;;
13617
13618 beos*)
13619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13620 allow_undefined_flag_F77=unsupported
13621 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13622 # support --undefined. This deserves some investigation. FIXME
13623 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624 else
13625 ld_shlibs_F77=no
13626 fi
13627 ;;
13628
13629 cygwin* | mingw* | pw32*)
13630 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13631 # as there is no search path for DLLs.
13632 hardcode_libdir_flag_spec_F77='-L$libdir'
13633 allow_undefined_flag_F77=unsupported
13634 always_export_symbols_F77=no
13635 enable_shared_with_static_runtimes_F77=yes
13636 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13637
13638 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13640 # If the export-symbols file already is a .def file (1st line
13641 # is EXPORTS), use it as is; otherwise, prepend...
13642 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13643 cp $export_symbols $output_objdir/$soname.def;
13644 else
13645 echo EXPORTS > $output_objdir/$soname.def;
13646 cat $export_symbols >> $output_objdir/$soname.def;
13647 fi~
13648 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13649 else
13650 ld_shlibs_F77=no
13651 fi
13652 ;;
13653
13654 interix3*)
13655 hardcode_direct_F77=no
13656 hardcode_shlibpath_var_F77=no
13657 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13658 export_dynamic_flag_spec_F77='${wl}-E'
13659 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13660 # Instead, shared libraries are loaded at an image base (0x10000000 by
13661 # default) and relocated if they conflict, which is a slow very memory
13662 # consuming and fragmenting process. To avoid this, we pick a random,
13663 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13664 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13665 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'
13666 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'
13667 ;;
13668
13669 linux*)
13670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13671 tmp_addflag=
13672 case $cc_basename,$host_cpu in
13673 pgcc*) # Portland Group C compiler
13674 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'
13675 tmp_addflag=' $pic_flag'
13676 ;;
13677 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13678 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'
13679 tmp_addflag=' $pic_flag -Mnomain' ;;
13680 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13681 tmp_addflag=' -i_dynamic' ;;
13682 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13683 tmp_addflag=' -i_dynamic -nofor_main' ;;
13684 ifc* | ifort*) # Intel Fortran compiler
13685 tmp_addflag=' -nofor_main' ;;
13686 esac
13687 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688
13689 if test $supports_anon_versioning = yes; then
13690 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13692 $echo "local: *; };" >> $output_objdir/$libname.ver~
13693 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13694 fi
13695 else
13696 ld_shlibs_F77=no
13697 fi
13698 ;;
13699
13700 netbsd*)
13701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13702 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13703 wlarc=
13704 else
13705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13707 fi
13708 ;;
13709
13710 solaris*)
13711 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13712 ld_shlibs_F77=no
13713 cat <<EOF 1>&2
13714
13715*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13716*** create shared libraries on Solaris systems. Therefore, libtool
13717*** is disabling shared libraries support. We urge you to upgrade GNU
13718*** binutils to release 2.9.1 or newer. Another option is to modify
13719*** your PATH or compiler configuration so that the native linker is
13720*** used, and then restart.
13721
13722EOF
13723 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13726 else
13727 ld_shlibs_F77=no
13728 fi
13729 ;;
13730
13731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13732 case `$LD -v 2>&1` in
13733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13734 ld_shlibs_F77=no
13735 cat <<_LT_EOF 1>&2
13736
13737*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13738*** reliably create shared libraries on SCO systems. Therefore, libtool
13739*** is disabling shared libraries support. We urge you to upgrade GNU
13740*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13741*** your PATH or compiler configuration so that the native linker is
13742*** used, and then restart.
13743
13744_LT_EOF
13745 ;;
13746 *)
13747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13748 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13749 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13750 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13751 else
13752 ld_shlibs_F77=no
13753 fi
13754 ;;
13755 esac
13756 ;;
13757
13758 sunos4*)
13759 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13760 wlarc=
13761 hardcode_direct_F77=yes
13762 hardcode_shlibpath_var_F77=no
13763 ;;
13764
13765 *)
13766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13767 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13768 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13769 else
13770 ld_shlibs_F77=no
13771 fi
13772 ;;
13773 esac
13774
13775 if test "$ld_shlibs_F77" = no; then
13776 runpath_var=
13777 hardcode_libdir_flag_spec_F77=
13778 export_dynamic_flag_spec_F77=
13779 whole_archive_flag_spec_F77=
13780 fi
13781 else
13782 # PORTME fill in a description of your system's linker (not GNU ld)
13783 case $host_os in
13784 aix3*)
13785 allow_undefined_flag_F77=unsupported
13786 always_export_symbols_F77=yes
13787 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'
13788 # Note: this linker hardcodes the directories in LIBPATH if there
13789 # are no directories specified by -L.
13790 hardcode_minus_L_F77=yes
13791 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13792 # Neither direct hardcoding nor static linking is supported with a
13793 # broken collect2.
13794 hardcode_direct_F77=unsupported
13795 fi
13796 ;;
13797
13798 aix4* | aix5*)
13799 if test "$host_cpu" = ia64; then
13800 # On IA64, the linker does run time linking by default, so we don't
13801 # have to do anything special.
13802 aix_use_runtimelinking=no
13803 exp_sym_flag='-Bexport'
13804 no_entry_flag=""
13805 else
13806 # If we're using GNU nm, then we don't want the "-C" option.
13807 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13808 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13809 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'
13810 else
13811 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'
13812 fi
13813 aix_use_runtimelinking=no
13814
13815 # Test if we are trying to use run time linking or normal
13816 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13817 # need to do runtime linking.
13818 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13819 for ld_flag in $LDFLAGS; do
13820 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13821 aix_use_runtimelinking=yes
13822 break
13823 fi
13824 done
13825 ;;
13826 esac
13827
13828 exp_sym_flag='-bexport'
13829 no_entry_flag='-bnoentry'
13830 fi
13831
13832 # When large executables or shared objects are built, AIX ld can
13833 # have problems creating the table of contents. If linking a library
13834 # or program results in "error TOC overflow" add -mminimal-toc to
13835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13837
13838 archive_cmds_F77=''
13839 hardcode_direct_F77=yes
13840 hardcode_libdir_separator_F77=':'
13841 link_all_deplibs_F77=yes
13842
13843 if test "$GCC" = yes; then
13844 case $host_os in aix4.[012]|aix4.[012].*)
13845 # We only want to do this on AIX 4.2 and lower, the check
13846 # below for broken collect2 doesn't work under 4.3+
13847 collect2name=`${CC} -print-prog-name=collect2`
13848 if test -f "$collect2name" && \
13849 strings "$collect2name" | grep resolve_lib_name >/dev/null
13850 then
13851 # We have reworked collect2
13852 hardcode_direct_F77=yes
13853 else
13854 # We have old collect2
13855 hardcode_direct_F77=unsupported
13856 # It fails to find uninstalled libraries when the uninstalled
13857 # path is not listed in the libpath. Setting hardcode_minus_L
13858 # to unsupported forces relinking
13859 hardcode_minus_L_F77=yes
13860 hardcode_libdir_flag_spec_F77='-L$libdir'
13861 hardcode_libdir_separator_F77=
13862 fi
13863 ;;
13864 esac
13865 shared_flag='-shared'
13866 if test "$aix_use_runtimelinking" = yes; then
13867 shared_flag="$shared_flag "'${wl}-G'
13868 fi
13869 else
13870 # not using gcc
13871 if test "$host_cpu" = ia64; then
13872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13873 # chokes on -Wl,-G. The following line is correct:
13874 shared_flag='-G'
13875 else
13876 if test "$aix_use_runtimelinking" = yes; then
13877 shared_flag='${wl}-G'
13878 else
13879 shared_flag='${wl}-bM:SRE'
13880 fi
13881 fi
13882 fi
13883
13884 # It seems that -bexpall does not export symbols beginning with
13885 # underscore (_), so it is better to generate a list of symbols to export.
13886 always_export_symbols_F77=yes
13887 if test "$aix_use_runtimelinking" = yes; then
13888 # Warning - without using the other runtime loading flags (-brtl),
13889 # -berok will link without error, but may produce a broken library.
13890 allow_undefined_flag_F77='-berok'
13891 # Determine the default libpath from the value encoded in an empty executable.
13892 cat >conftest.$ac_ext <<_ACEOF
13893 program main
13894
13895 end
13896_ACEOF
13897rm -f conftest.$ac_objext conftest$ac_exeext
13898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13899 (eval $ac_link) 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -z "$ac_f77_werror_flag"
13907 || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919
13920aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13921}'`
13922# Check for a 64-bit object if we didn't find anything.
13923if 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; }
13924}'`; fi
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929fi
13930rm -f conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13933
13934 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13935 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"
13936 else
13937 if test "$host_cpu" = ia64; then
13938 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13939 allow_undefined_flag_F77="-z nodefs"
13940 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"
13941 else
13942 # Determine the default libpath from the value encoded in an empty executable.
13943 cat >conftest.$ac_ext <<_ACEOF
13944 program main
13945
13946 end
13947_ACEOF
13948rm -f conftest.$ac_objext conftest$ac_exeext
13949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13950 (eval $ac_link) 2>conftest.er1
13951 ac_status=$?
13952 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } &&
13957 { ac_try='test -z "$ac_f77_werror_flag"
13958 || test ! -s conftest.err'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970
13971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13972}'`
13973# Check for a 64-bit object if we didn't find anything.
13974if 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; }
13975}'`; fi
13976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980fi
13981rm -f conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13984
13985 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13986 # Warning - without using the other run time loading flags,
13987 # -berok will link without error, but may produce a broken library.
13988 no_undefined_flag_F77=' ${wl}-bernotok'
13989 allow_undefined_flag_F77=' ${wl}-berok'
13990 # Exported symbols can be pulled into shared objects from archives
13991 whole_archive_flag_spec_F77='$convenience'
13992 archive_cmds_need_lc_F77=yes
13993 # This is similar to how AIX traditionally builds its shared libraries.
13994 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'
13995 fi
13996 fi
13997 ;;
13998
13999 amigaos*)
14000 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)'
14001 hardcode_libdir_flag_spec_F77='-L$libdir'
14002 hardcode_minus_L_F77=yes
14003 # see comment about different semantics on the GNU ld section
14004 ld_shlibs_F77=no
14005 ;;
14006
14007 bsdi[45]*)
14008 export_dynamic_flag_spec_F77=-rdynamic
14009 ;;
14010
14011 cygwin* | mingw* | pw32*)
14012 # When not using gcc, we currently assume that we are using
14013 # Microsoft Visual C++.
14014 # hardcode_libdir_flag_spec is actually meaningless, as there is
14015 # no search path for DLLs.
14016 hardcode_libdir_flag_spec_F77=' '
14017 allow_undefined_flag_F77=unsupported
14018 # Tell ltmain to make .lib files, not .a files.
14019 libext=lib
14020 # Tell ltmain to make .dll files, not .so files.
14021 shrext_cmds=".dll"
14022 # FIXME: Setting linknames here is a bad hack.
14023 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14024 # The linker will automatically build a .lib file if we build a DLL.
14025 old_archive_From_new_cmds_F77='true'
14026 # FIXME: Should let the user specify the lib program.
14027 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14028 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14029 enable_shared_with_static_runtimes_F77=yes
14030 ;;
14031
14032 darwin* | rhapsody*)
14033 case $host_os in
14034 rhapsody* | darwin1.[012])
14035 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14036 ;;
14037 *) # Darwin 1.3 on
14038 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14039 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14040 else
14041 case ${MACOSX_DEPLOYMENT_TARGET} in
14042 10.[012])
14043 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14044 ;;
14045 10.*)
14046 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14047 ;;
14048 esac
14049 fi
14050 ;;
14051 esac
14052 archive_cmds_need_lc_F77=no
14053 hardcode_direct_F77=no
14054 hardcode_automatic_F77=yes
14055 hardcode_shlibpath_var_F77=unsupported
14056 whole_archive_flag_spec_F77=''
14057 link_all_deplibs_F77=yes
14058 if test "$GCC" = yes ; then
14059 output_verbose_link_cmd='echo'
14060 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14061 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14063 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}'
14064 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}'
14065 else
14066 case $cc_basename in
14067 xlc*)
14068 output_verbose_link_cmd='echo'
14069 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14070 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14072 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}'
14073 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}'
14074 ;;
14075 *)
14076 ld_shlibs_F77=no
14077 ;;
14078 esac
14079 fi
14080 ;;
14081
14082 dgux*)
14083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084 hardcode_libdir_flag_spec_F77='-L$libdir'
14085 hardcode_shlibpath_var_F77=no
14086 ;;
14087
14088 freebsd1*)
14089 ld_shlibs_F77=no
14090 ;;
14091
14092 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14093 # support. Future versions do this automatically, but an explicit c++rt0.o
14094 # does not break anything, and helps significantly (at the cost of a little
14095 # extra space).
14096 freebsd2.2*)
14097 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14098 hardcode_libdir_flag_spec_F77='-R$libdir'
14099 hardcode_direct_F77=yes
14100 hardcode_shlibpath_var_F77=no
14101 ;;
14102
14103 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14104 freebsd2*)
14105 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14106 hardcode_direct_F77=yes
14107 hardcode_minus_L_F77=yes
14108 hardcode_shlibpath_var_F77=no
14109 ;;
14110
14111 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14112 freebsd* | kfreebsd*-gnu | dragonfly*)
14113 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14114 hardcode_libdir_flag_spec_F77='-R$libdir'
14115 hardcode_direct_F77=yes
14116 hardcode_shlibpath_var_F77=no
14117 ;;
14118
14119 hpux9*)
14120 if test "$GCC" = yes; then
14121 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'
14122 else
14123 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'
14124 fi
14125 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14126 hardcode_libdir_separator_F77=:
14127 hardcode_direct_F77=yes
14128
14129 # hardcode_minus_L: Not really in the search PATH,
14130 # but as the default location of the library.
14131 hardcode_minus_L_F77=yes
14132 export_dynamic_flag_spec_F77='${wl}-E'
14133 ;;
14134
14135 hpux10*)
14136 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14137 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14138 else
14139 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14140 fi
14141 if test "$with_gnu_ld" = no; then
14142 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14143 hardcode_libdir_separator_F77=:
14144
14145 hardcode_direct_F77=yes
14146 export_dynamic_flag_spec_F77='${wl}-E'
14147
14148 # hardcode_minus_L: Not really in the search PATH,
14149 # but as the default location of the library.
14150 hardcode_minus_L_F77=yes
14151 fi
14152 ;;
14153
14154 hpux11*)
14155 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14156 case $host_cpu in
14157 hppa*64*)
14158 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159 ;;
14160 ia64*)
14161 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14162 ;;
14163 *)
14164 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14165 ;;
14166 esac
14167 else
14168 case $host_cpu in
14169 hppa*64*)
14170 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14171 ;;
14172 ia64*)
14173 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14174 ;;
14175 *)
14176 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14177 ;;
14178 esac
14179 fi
14180 if test "$with_gnu_ld" = no; then
14181 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14182 hardcode_libdir_separator_F77=:
14183
14184 case $host_cpu in
14185 hppa*64*|ia64*)
14186 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14187 hardcode_direct_F77=no
14188 hardcode_shlibpath_var_F77=no
14189 ;;
14190 *)
14191 hardcode_direct_F77=yes
14192 export_dynamic_flag_spec_F77='${wl}-E'
14193
14194 # hardcode_minus_L: Not really in the search PATH,
14195 # but as the default location of the library.
14196 hardcode_minus_L_F77=yes
14197 ;;
14198 esac
14199 fi
14200 ;;
14201
14202 irix5* | irix6* | nonstopux*)
14203 if test "$GCC" = yes; then
14204 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'
14205 else
14206 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'
14207 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14208 fi
14209 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14210 hardcode_libdir_separator_F77=:
14211 link_all_deplibs_F77=yes
14212 ;;
14213
14214 netbsd*)
14215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14216 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14217 else
14218 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14219 fi
14220 hardcode_libdir_flag_spec_F77='-R$libdir'
14221 hardcode_direct_F77=yes
14222 hardcode_shlibpath_var_F77=no
14223 ;;
14224
14225 newsos6)
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_direct_F77=yes
14228 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14229 hardcode_libdir_separator_F77=:
14230 hardcode_shlibpath_var_F77=no
14231 ;;
14232
14233 openbsd*)
14234 hardcode_direct_F77=yes
14235 hardcode_shlibpath_var_F77=no
14236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14237 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14238 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14239 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14240 export_dynamic_flag_spec_F77='${wl}-E'
14241 else
14242 case $host_os in
14243 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14244 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_libdir_flag_spec_F77='-R$libdir'
14246 ;;
14247 *)
14248 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14249 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14250 ;;
14251 esac
14252 fi
14253 ;;
14254
14255 os2*)
14256 hardcode_libdir_flag_spec_F77='-L$libdir'
14257 hardcode_minus_L_F77=yes
14258 allow_undefined_flag_F77=unsupported
14259 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'
14260 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14261 ;;
14262
14263 osf3*)
14264 if test "$GCC" = yes; then
14265 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14266 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'
14267 else
14268 allow_undefined_flag_F77=' -expect_unresolved \*'
14269 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'
14270 fi
14271 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14272 hardcode_libdir_separator_F77=:
14273 ;;
14274
14275 osf4* | osf5*) # as osf3* with the addition of -msym flag
14276 if test "$GCC" = yes; then
14277 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14278 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'
14279 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14280 else
14281 allow_undefined_flag_F77=' -expect_unresolved \*'
14282 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'
14283 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~
14284 $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'
14285
14286 # Both c and cxx compiler support -rpath directly
14287 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14288 fi
14289 hardcode_libdir_separator_F77=:
14290 ;;
14291
14292 solaris*)
14293 no_undefined_flag_F77=' -z text'
14294 if test "$GCC" = yes; then
14295 wlarc='${wl}'
14296 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14297 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14298 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14299 else
14300 wlarc=''
14301 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14302 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14304 fi
14305 hardcode_libdir_flag_spec_F77='-R$libdir'
14306 hardcode_shlibpath_var_F77=no
14307 case $host_os in
14308 solaris2.[0-5] | solaris2.[0-5].*) ;;
14309 *)
14310 # The compiler driver will combine linker options so we
14311 # cannot just pass the convience library names through
14312 # without $wl, iff we do not link with $LD.
14313 # Luckily, gcc supports the same syntax we need for Sun Studio.
14314 # Supported since Solaris 2.6 (maybe 2.5.1?)
14315 case $wlarc in
14316 '')
14317 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14318 *)
14319 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' ;;
14320 esac ;;
14321 esac
14322 link_all_deplibs_F77=yes
14323 ;;
14324
14325 sunos4*)
14326 if test "x$host_vendor" = xsequent; then
14327 # Use $CC to link under sequent, because it throws in some extra .o
14328 # files that make .init and .fini sections work.
14329 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14330 else
14331 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14332 fi
14333 hardcode_libdir_flag_spec_F77='-L$libdir'
14334 hardcode_direct_F77=yes
14335 hardcode_minus_L_F77=yes
14336 hardcode_shlibpath_var_F77=no
14337 ;;
14338
14339 sysv4)
14340 case $host_vendor in
14341 sni)
14342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343 hardcode_direct_F77=yes # is this really true???
14344 ;;
14345 siemens)
14346 ## LD is ld it makes a PLAMLIB
14347 ## CC just makes a GrossModule.
14348 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14349 reload_cmds_F77='$CC -r -o $output$reload_objs'
14350 hardcode_direct_F77=no
14351 ;;
14352 motorola)
14353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14354 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14355 ;;
14356 esac
14357 runpath_var='LD_RUN_PATH'
14358 hardcode_shlibpath_var_F77=no
14359 ;;
14360
14361 sysv4.3*)
14362 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14363 hardcode_shlibpath_var_F77=no
14364 export_dynamic_flag_spec_F77='-Bexport'
14365 ;;
14366
14367 sysv4*MP*)
14368 if test -d /usr/nec; then
14369 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14370 hardcode_shlibpath_var_F77=no
14371 runpath_var=LD_RUN_PATH
14372 hardcode_runpath_var=yes
14373 ld_shlibs_F77=yes
14374 fi
14375 ;;
14376
14377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14378 no_undefined_flag_F77='${wl}-z,text'
14379 archive_cmds_need_lc_F77=no
14380 hardcode_shlibpath_var_F77=no
14381 runpath_var='LD_RUN_PATH'
14382
14383 if test "$GCC" = yes; then
14384 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14385 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14386 else
14387 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14388 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14389 fi
14390 ;;
14391
14392 sysv5* | sco3.2v5* | sco5v6*)
14393 # Note: We can NOT use -z defs as we might desire, because we do not
14394 # link with -lc, and that would cause any symbols used from libc to
14395 # always be unresolved, which means just about no library would
14396 # ever link correctly. If we're not using GNU ld we use -z text
14397 # though, which does catch some bad symbols but isn't as heavy-handed
14398 # as -z defs.
14399 no_undefined_flag_F77='${wl}-z,text'
14400 allow_undefined_flag_F77='${wl}-z,nodefs'
14401 archive_cmds_need_lc_F77=no
14402 hardcode_shlibpath_var_F77=no
14403 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14404 hardcode_libdir_separator_F77=':'
14405 link_all_deplibs_F77=yes
14406 export_dynamic_flag_spec_F77='${wl}-Bexport'
14407 runpath_var='LD_RUN_PATH'
14408
14409 if test "$GCC" = yes; then
14410 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14411 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14412 else
14413 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14414 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14415 fi
14416 ;;
14417
14418 uts4*)
14419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14420 hardcode_libdir_flag_spec_F77='-L$libdir'
14421 hardcode_shlibpath_var_F77=no
14422 ;;
14423
14424 *)
14425 ld_shlibs_F77=no
14426 ;;
14427 esac
14428 fi
14429
14430echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14431echo "${ECHO_T}$ld_shlibs_F77" >&6
14432test "$ld_shlibs_F77" = no && can_build_shared=no
14433
14434#
14435# Do we need to explicitly link libc?
14436#
14437case "x$archive_cmds_need_lc_F77" in
14438x|xyes)
14439 # Assume -lc should be added
14440 archive_cmds_need_lc_F77=yes
14441
14442 if test "$enable_shared" = yes && test "$GCC" = yes; then
14443 case $archive_cmds_F77 in
14444 *'~'*)
14445 # FIXME: we may have to deal with multi-command sequences.
14446 ;;
14447 '$CC '*)
14448 # Test whether the compiler implicitly links with -lc since on some
14449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14450 # to ld, don't add -lc before -lgcc.
14451 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14452echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14453 $rm conftest*
14454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14455
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457 (eval $ac_compile) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } 2>conftest.err; then
14461 soname=conftest
14462 lib=conftest
14463 libobjs=conftest.$ac_objext
14464 deplibs=
14465 wl=$lt_prog_compiler_wl_F77
14466 pic_flag=$lt_prog_compiler_pic_F77
14467 compiler_flags=-v
14468 linker_flags=-v
14469 verstring=
14470 output_objdir=.
14471 libname=conftest
14472 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14473 allow_undefined_flag_F77=
14474 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14475 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }
14479 then
14480 archive_cmds_need_lc_F77=no
14481 else
14482 archive_cmds_need_lc_F77=yes
14483 fi
14484 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14485 else
14486 cat conftest.err 1>&5
14487 fi
14488 $rm conftest*
14489 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14490echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14491 ;;
14492 esac
14493 fi
14494 ;;
14495esac
14496
14497echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14498echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14499library_names_spec=
14500libname_spec='lib$name'
14501soname_spec=
14502shrext_cmds=".so"
14503postinstall_cmds=
14504postuninstall_cmds=
14505finish_cmds=
14506finish_eval=
14507shlibpath_var=
14508shlibpath_overrides_runpath=unknown
14509version_type=none
14510dynamic_linker="$host_os ld.so"
14511sys_lib_dlsearch_path_spec="/lib /usr/lib"
14512if test "$GCC" = yes; then
14513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14515 # if the path contains ";" then we assume it to be the separator
14516 # otherwise default to the standard path separator (i.e. ":") - it is
14517 # assumed that no part of a normal pathname contains ";" but that should
14518 # okay in the real world where ";" in dirpaths is itself problematic.
14519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14520 else
14521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14522 fi
14523else
14524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14525fi
14526need_lib_prefix=unknown
14527hardcode_into_libs=no
14528
14529# when you set need_version to no, make sure it does not cause -set_version
14530# flags to be left without arguments
14531need_version=unknown
14532
14533case $host_os in
14534aix3*)
14535 version_type=linux
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14537 shlibpath_var=LIBPATH
14538
14539 # AIX 3 has no versioning support, so we append a major version to the name.
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 ;;
14542
14543aix4* | aix5*)
14544 version_type=linux
14545 need_lib_prefix=no
14546 need_version=no
14547 hardcode_into_libs=yes
14548 if test "$host_cpu" = ia64; then
14549 # AIX 5 supports IA64
14550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 else
14553 # With GCC up to 2.95.x, collect2 would create an import file
14554 # for dependence libraries. The import file would start with
14555 # the line `#! .'. This would cause the generated library to
14556 # depend on `.', always an invalid library. This was fixed in
14557 # development snapshots of GCC prior to 3.0.
14558 case $host_os in
14559 aix4 | aix4.[01] | aix4.[01].*)
14560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14561 echo ' yes '
14562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14563 :
14564 else
14565 can_build_shared=no
14566 fi
14567 ;;
14568 esac
14569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14570 # soname into executable. Probably we can add versioning support to
14571 # collect2, so additional links can be useful in future.
14572 if test "$aix_use_runtimelinking" = yes; then
14573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14574 # instead of lib<name>.a to let people know that these are not
14575 # typical AIX shared libraries.
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 else
14578 # We preserve .a as extension for shared libraries through AIX4.2
14579 # and later when we are not doing run time linking.
14580 library_names_spec='${libname}${release}.a $libname.a'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 fi
14583 shlibpath_var=LIBPATH
14584 fi
14585 ;;
14586
14587amigaos*)
14588 library_names_spec='$libname.ixlibrary $libname.a'
14589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14590 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'
14591 ;;
14592
14593beos*)
14594 library_names_spec='${libname}${shared_ext}'
14595 dynamic_linker="$host_os ld.so"
14596 shlibpath_var=LIBRARY_PATH
14597 ;;
14598
14599bsdi[45]*)
14600 version_type=linux
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14608 # the default ld.so.conf also contains /usr/contrib/lib and
14609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14610 # libtool to hard-code these into programs
14611 ;;
14612
14613cygwin* | mingw* | pw32*)
14614 version_type=windows
14615 shrext_cmds=".dll"
14616 need_version=no
14617 need_lib_prefix=no
14618
14619 case $GCC,$host_os in
14620 yes,cygwin* | yes,mingw* | yes,pw32*)
14621 library_names_spec='$libname.dll.a'
14622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14623 postinstall_cmds='base_file=`basename \${file}`~
14624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14625 dldir=$destdir/`dirname \$dlpath`~
14626 test -d \$dldir || mkdir -p \$dldir~
14627 $install_prog $dir/$dlname \$dldir/$dlname~
14628 chmod a+x \$dldir/$dlname'
14629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14630 dlpath=$dir/\$dldll~
14631 $rm \$dlpath'
14632 shlibpath_overrides_runpath=yes
14633
14634 case $host_os in
14635 cygwin*)
14636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14639 ;;
14640 mingw*)
14641 # MinGW DLLs use traditional 'lib' prefix
14642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14644 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14645 # It is most probably a Windows format PATH printed by
14646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14647 # path with ; separators, and with drive letters. We can handle the
14648 # drive letters (cygwin fileutils understands them), so leave them,
14649 # especially as we might pass files found there to a mingw objdump,
14650 # which wouldn't understand a cygwinified path. Ahh.
14651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14652 else
14653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14654 fi
14655 ;;
14656 pw32*)
14657 # pw32 DLLs use 'pw' prefix rather than 'lib'
14658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14659 ;;
14660 esac
14661 ;;
14662
14663 *)
14664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14665 ;;
14666 esac
14667 dynamic_linker='Win32 ld.exe'
14668 # FIXME: first we should search . and the directory the executable is in
14669 shlibpath_var=PATH
14670 ;;
14671
14672darwin* | rhapsody*)
14673 dynamic_linker="$host_os dyld"
14674 version_type=darwin
14675 need_lib_prefix=no
14676 need_version=no
14677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14678 soname_spec='${libname}${release}${major}$shared_ext'
14679 shlibpath_overrides_runpath=yes
14680 shlibpath_var=DYLD_LIBRARY_PATH
14681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14682 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14683 if test "$GCC" = yes; then
14684 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"`
14685 else
14686 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14687 fi
14688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14689 ;;
14690
14691dgux*)
14692 version_type=linux
14693 need_lib_prefix=no
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 ;;
14699
14700freebsd1*)
14701 dynamic_linker=no
14702 ;;
14703
14704kfreebsd*-gnu)
14705 version_type=linux
14706 need_lib_prefix=no
14707 need_version=no
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=no
14712 hardcode_into_libs=yes
14713 dynamic_linker='GNU ld.so'
14714 ;;
14715
14716freebsd* | dragonfly*)
14717 # DragonFly does not have aout. When/if they implement a new
14718 # versioning mechanism, adjust this.
14719 if test -x /usr/bin/objformat; then
14720 objformat=`/usr/bin/objformat`
14721 else
14722 case $host_os in
14723 freebsd[123]*) objformat=aout ;;
14724 *) objformat=elf ;;
14725 esac
14726 fi
14727 version_type=freebsd-$objformat
14728 case $version_type in
14729 freebsd-elf*)
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14731 need_version=no
14732 need_lib_prefix=no
14733 ;;
14734 freebsd-*)
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14736 need_version=yes
14737 ;;
14738 esac
14739 shlibpath_var=LD_LIBRARY_PATH
14740 case $host_os in
14741 freebsd2*)
14742 shlibpath_overrides_runpath=yes
14743 ;;
14744 freebsd3.[01]* | freebsdelf3.[01]*)
14745 shlibpath_overrides_runpath=yes
14746 hardcode_into_libs=yes
14747 ;;
14748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14750 shlibpath_overrides_runpath=no
14751 hardcode_into_libs=yes
14752 ;;
14753 freebsd*) # from 4.6 on
14754 shlibpath_overrides_runpath=yes
14755 hardcode_into_libs=yes
14756 ;;
14757 esac
14758 ;;
14759
14760gnu*)
14761 version_type=linux
14762 need_lib_prefix=no
14763 need_version=no
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 hardcode_into_libs=yes
14768 ;;
14769
14770hpux9* | hpux10* | hpux11*)
14771 # Give a soname corresponding to the major version so that dld.sl refuses to
14772 # link against other versions.
14773 version_type=sunos
14774 need_lib_prefix=no
14775 need_version=no
14776 case $host_cpu in
14777 ia64*)
14778 shrext_cmds='.so'
14779 hardcode_into_libs=yes
14780 dynamic_linker="$host_os dld.so"
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 if test "X$HPUX_IA64_MODE" = X32; then
14786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14787 else
14788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14789 fi
14790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14791 ;;
14792 hppa*64*)
14793 shrext_cmds='.sl'
14794 hardcode_into_libs=yes
14795 dynamic_linker="$host_os dld.sl"
14796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14802 ;;
14803 *)
14804 shrext_cmds='.sl'
14805 dynamic_linker="$host_os dld.sl"
14806 shlibpath_var=SHLIB_PATH
14807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 ;;
14811 esac
14812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14813 postinstall_cmds='chmod 555 $lib'
14814 ;;
14815
14816interix3*)
14817 version_type=linux
14818 need_lib_prefix=no
14819 need_version=no
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14823 shlibpath_var=LD_LIBRARY_PATH
14824 shlibpath_overrides_runpath=no
14825 hardcode_into_libs=yes
14826 ;;
14827
14828irix5* | irix6* | nonstopux*)
14829 case $host_os in
14830 nonstopux*) version_type=nonstopux ;;
14831 *)
14832 if test "$lt_cv_prog_gnu_ld" = yes; then
14833 version_type=linux
14834 else
14835 version_type=irix
14836 fi ;;
14837 esac
14838 need_lib_prefix=no
14839 need_version=no
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14842 case $host_os in
14843 irix5* | nonstopux*)
14844 libsuff= shlibsuff=
14845 ;;
14846 *)
14847 case $LD in # libtool.m4 will add one of these switches to LD
14848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14849 libsuff= shlibsuff= libmagic=32-bit;;
14850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14851 libsuff=32 shlibsuff=N32 libmagic=N32;;
14852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14854 *) libsuff= shlibsuff= libmagic=never-match;;
14855 esac
14856 ;;
14857 esac
14858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14859 shlibpath_overrides_runpath=no
14860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14862 hardcode_into_libs=yes
14863 ;;
14864
14865# No shared lib support for Linux oldld, aout, or coff.
14866linux*oldld* | linux*aout* | linux*coff*)
14867 dynamic_linker=no
14868 ;;
14869
14870# This must be Linux ELF.
14871linux*)
14872 version_type=linux
14873 need_lib_prefix=no
14874 need_version=no
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=no
14880 # This implies no fast_install, which is unacceptable.
14881 # Some rework will be needed to allow for fast_install
14882 # before this can be enabled.
14883 hardcode_into_libs=yes
14884
14885 # find out which ABI we are using
14886 libsuff=
14887 case "$host_cpu" in
14888 x86_64*|s390x*|powerpc64*)
14889 echo '#line 14889 "configure"' > conftest.$ac_ext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; then
14895 case `/usr/bin/file conftest.$ac_objext` in
14896 *64-bit*)
14897 libsuff=64
14898 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14899 ;;
14900 esac
14901 fi
14902 rm -rf conftest*
14903 ;;
14904 esac
14905
14906 # Append ld.so.conf contents to the search path
14907 if test -f /etc/ld.so.conf; then
14908 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' ' '`
14909 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14910 fi
14911
14912 # We used to test for /lib/ld.so.1 and disable shared libraries on
14913 # powerpc, because MkLinux only supported shared libraries with the
14914 # GNU dynamic linker. Since this was broken with cross compilers,
14915 # most powerpc-linux boxes support dynamic linking these days and
14916 # people can always --disable-shared, the test was removed, and we
14917 # assume the GNU/Linux dynamic linker is in use.
14918 dynamic_linker='GNU/Linux ld.so'
14919 ;;
14920
14921knetbsd*-gnu)
14922 version_type=linux
14923 need_lib_prefix=no
14924 need_version=no
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=no
14929 hardcode_into_libs=yes
14930 dynamic_linker='GNU ld.so'
14931 ;;
14932
14933netbsd*)
14934 version_type=sunos
14935 need_lib_prefix=no
14936 need_version=no
14937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14940 dynamic_linker='NetBSD (a.out) ld.so'
14941 else
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 dynamic_linker='NetBSD ld.elf_so'
14945 fi
14946 shlibpath_var=LD_LIBRARY_PATH
14947 shlibpath_overrides_runpath=yes
14948 hardcode_into_libs=yes
14949 ;;
14950
14951newsos6)
14952 version_type=linux
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=yes
14956 ;;
14957
14958nto-qnx*)
14959 version_type=linux
14960 need_lib_prefix=no
14961 need_version=no
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=yes
14966 ;;
14967
14968openbsd*)
14969 version_type=sunos
14970 sys_lib_dlsearch_path_spec="/usr/lib"
14971 need_lib_prefix=no
14972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14973 case $host_os in
14974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14975 *) need_version=no ;;
14976 esac
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14981 case $host_os in
14982 openbsd2.[89] | openbsd2.[89].*)
14983 shlibpath_overrides_runpath=no
14984 ;;
14985 *)
14986 shlibpath_overrides_runpath=yes
14987 ;;
14988 esac
14989 else
14990 shlibpath_overrides_runpath=yes
14991 fi
14992 ;;
14993
14994os2*)
14995 libname_spec='$name'
14996 shrext_cmds=".dll"
14997 need_lib_prefix=no
14998 library_names_spec='$libname${shared_ext} $libname.a'
14999 dynamic_linker='OS/2 ld.exe'
15000 shlibpath_var=LIBPATH
15001 ;;
15002
15003osf3* | osf4* | osf5*)
15004 version_type=osf
15005 need_lib_prefix=no
15006 need_version=no
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15012 ;;
15013
15014solaris*)
15015 version_type=linux
15016 need_lib_prefix=no
15017 need_version=no
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=yes
15022 hardcode_into_libs=yes
15023 # ldd complains unless libraries are executable
15024 postinstall_cmds='chmod +x $lib'
15025 ;;
15026
15027sunos4*)
15028 version_type=sunos
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 shlibpath_overrides_runpath=yes
15033 if test "$with_gnu_ld" = yes; then
15034 need_lib_prefix=no
15035 fi
15036 need_version=yes
15037 ;;
15038
15039sysv4 | sysv4.3*)
15040 version_type=linux
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 case $host_vendor in
15045 sni)
15046 shlibpath_overrides_runpath=no
15047 need_lib_prefix=no
15048 export_dynamic_flag_spec='${wl}-Blargedynsym'
15049 runpath_var=LD_RUN_PATH
15050 ;;
15051 siemens)
15052 need_lib_prefix=no
15053 ;;
15054 motorola)
15055 need_lib_prefix=no
15056 need_version=no
15057 shlibpath_overrides_runpath=no
15058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15059 ;;
15060 esac
15061 ;;
15062
15063sysv4*MP*)
15064 if test -d /usr/nec ;then
15065 version_type=linux
15066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15067 soname_spec='$libname${shared_ext}.$major'
15068 shlibpath_var=LD_LIBRARY_PATH
15069 fi
15070 ;;
15071
15072sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15073 version_type=freebsd-elf
15074 need_lib_prefix=no
15075 need_version=no
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 hardcode_into_libs=yes
15080 if test "$with_gnu_ld" = yes; then
15081 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15082 shlibpath_overrides_runpath=no
15083 else
15084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15085 shlibpath_overrides_runpath=yes
15086 case $host_os in
15087 sco3.2v5*)
15088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15089 ;;
15090 esac
15091 fi
15092 sys_lib_dlsearch_path_spec='/usr/lib'
15093 ;;
15094
15095uts4*)
15096 version_type=linux
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 ;;
15101
15102*)
15103 dynamic_linker=no
15104 ;;
15105esac
15106echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15107echo "${ECHO_T}$dynamic_linker" >&6
15108test "$dynamic_linker" = no && can_build_shared=no
15109
15110variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15111if test "$GCC" = yes; then
15112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15113fi
15114
15115echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15116echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15117hardcode_action_F77=
15118if test -n "$hardcode_libdir_flag_spec_F77" || \
15119 test -n "$runpath_var_F77" || \
15120 test "X$hardcode_automatic_F77" = "Xyes" ; then
15121
15122 # We can hardcode non-existant directories.
15123 if test "$hardcode_direct_F77" != no &&
15124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15125 # have to relink, otherwise we might link with an installed library
15126 # when we should be linking with a yet-to-be-installed one
15127 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15128 test "$hardcode_minus_L_F77" != no; then
15129 # Linking always hardcodes the temporary library directory.
15130 hardcode_action_F77=relink
15131 else
15132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15133 hardcode_action_F77=immediate
15134 fi
15135else
15136 # We cannot hardcode anything, or else we can only hardcode existing
15137 # directories.
15138 hardcode_action_F77=unsupported
15139fi
15140echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15141echo "${ECHO_T}$hardcode_action_F77" >&6
15142
15143if test "$hardcode_action_F77" = relink; then
15144 # Fast installation is not supported
15145 enable_fast_install=no
15146elif test "$shlibpath_overrides_runpath" = yes ||
15147 test "$enable_shared" = no; then
15148 # Fast installation is not necessary
15149 enable_fast_install=needless
15150fi
15151
15152
15153# The else clause should only fire when bootstrapping the
15154# libtool distribution, otherwise you forgot to ship ltmain.sh
15155# with your package, and you will get complaints that there are
15156# no rules to generate ltmain.sh.
15157if test -f "$ltmain"; then
15158 # See if we are running on zsh, and set the options which allow our commands through
15159 # without removal of \ escapes.
15160 if test -n "${ZSH_VERSION+set}" ; then
15161 setopt NO_GLOB_SUBST
15162 fi
15163 # Now quote all the things that may contain metacharacters while being
15164 # careful not to overquote the AC_SUBSTed values. We take copies of the
15165 # variables and quote the copies for generation of the libtool script.
15166 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15167 SED SHELL STRIP \
15168 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15169 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15170 deplibs_check_method reload_flag reload_cmds need_locks \
15171 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15172 lt_cv_sys_global_symbol_to_c_name_address \
15173 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15174 old_postinstall_cmds old_postuninstall_cmds \
15175 compiler_F77 \
15176 CC_F77 \
15177 LD_F77 \
15178 lt_prog_compiler_wl_F77 \
15179 lt_prog_compiler_pic_F77 \
15180 lt_prog_compiler_static_F77 \
15181 lt_prog_compiler_no_builtin_flag_F77 \
15182 export_dynamic_flag_spec_F77 \
15183 thread_safe_flag_spec_F77 \
15184 whole_archive_flag_spec_F77 \
15185 enable_shared_with_static_runtimes_F77 \
15186 old_archive_cmds_F77 \
15187 old_archive_from_new_cmds_F77 \
15188 predep_objects_F77 \
15189 postdep_objects_F77 \
15190 predeps_F77 \
15191 postdeps_F77 \
15192 compiler_lib_search_path_F77 \
15193 archive_cmds_F77 \
15194 archive_expsym_cmds_F77 \
15195 postinstall_cmds_F77 \
15196 postuninstall_cmds_F77 \
15197 old_archive_from_expsyms_cmds_F77 \
15198 allow_undefined_flag_F77 \
15199 no_undefined_flag_F77 \
15200 export_symbols_cmds_F77 \
15201 hardcode_libdir_flag_spec_F77 \
15202 hardcode_libdir_flag_spec_ld_F77 \
15203 hardcode_libdir_separator_F77 \
15204 hardcode_automatic_F77 \
15205 module_cmds_F77 \
15206 module_expsym_cmds_F77 \
15207 lt_cv_prog_compiler_c_o_F77 \
15208 exclude_expsyms_F77 \
15209 include_expsyms_F77; do
15210
15211 case $var in
15212 old_archive_cmds_F77 | \
15213 old_archive_from_new_cmds_F77 | \
15214 archive_cmds_F77 | \
15215 archive_expsym_cmds_F77 | \
15216 module_cmds_F77 | \
15217 module_expsym_cmds_F77 | \
15218 old_archive_from_expsyms_cmds_F77 | \
15219 export_symbols_cmds_F77 | \
15220 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15221 postinstall_cmds | postuninstall_cmds | \
15222 old_postinstall_cmds | old_postuninstall_cmds | \
15223 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15224 # Double-quote double-evaled strings.
15225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15226 ;;
15227 *)
15228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15229 ;;
15230 esac
15231 done
15232
15233 case $lt_echo in
15234 *'\$0 --fallback-echo"')
15235 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15236 ;;
15237 esac
15238
15239cfgfile="$ofile"
15240
15241 cat <<__EOF__ >> "$cfgfile"
15242# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15243
15244# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15245
15246# Shell to use when invoking shell scripts.
15247SHELL=$lt_SHELL
15248
15249# Whether or not to build shared libraries.
15250build_libtool_libs=$enable_shared
15251
15252# Whether or not to build static libraries.
15253build_old_libs=$enable_static
15254
15255# Whether or not to add -lc for building shared libraries.
15256build_libtool_need_lc=$archive_cmds_need_lc_F77
15257
15258# Whether or not to disallow shared libs when runtime libs are static
15259allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15260
15261# Whether or not to optimize for fast installation.
15262fast_install=$enable_fast_install
15263
15264# The host system.
15265host_alias=$host_alias
15266host=$host
15267host_os=$host_os
15268
15269# The build system.
15270build_alias=$build_alias
15271build=$build
15272build_os=$build_os
15273
15274# An echo program that does not interpret backslashes.
15275echo=$lt_echo
15276
15277# The archiver.
15278AR=$lt_AR
15279AR_FLAGS=$lt_AR_FLAGS
15280
15281# A C compiler.
15282LTCC=$lt_LTCC
15283
15284# LTCC compiler flags.
15285LTCFLAGS=$lt_LTCFLAGS
15286
15287# A language-specific compiler.
15288CC=$lt_compiler_F77
15289
15290# Is the compiler the GNU C compiler?
15291with_gcc=$GCC_F77
15292
15293gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15294gcc_ver=\`gcc -dumpversion\`
15295
15296# An ERE matcher.
15297EGREP=$lt_EGREP
15298
15299# The linker used to build libraries.
15300LD=$lt_LD_F77
15301
15302# Whether we need hard or soft links.
15303LN_S=$lt_LN_S
15304
15305# A BSD-compatible nm program.
15306NM=$lt_NM
15307
15308# A symbol stripping program
15309STRIP=$lt_STRIP
15310
15311# Used to examine libraries when file_magic_cmd begins "file"
15312MAGIC_CMD=$MAGIC_CMD
15313
15314# Used on cygwin: DLL creation program.
15315DLLTOOL="$DLLTOOL"
15316
15317# Used on cygwin: object dumper.
15318OBJDUMP="$OBJDUMP"
15319
15320# Used on cygwin: assembler.
15321AS="$AS"
15322
15323# The name of the directory that contains temporary libtool files.
15324objdir=$objdir
15325
15326# How to create reloadable object files.
15327reload_flag=$lt_reload_flag
15328reload_cmds=$lt_reload_cmds
15329
15330# How to pass a linker flag through the compiler.
15331wl=$lt_lt_prog_compiler_wl_F77
15332
15333# Object file suffix (normally "o").
15334objext="$ac_objext"
15335
15336# Old archive suffix (normally "a").
15337libext="$libext"
15338
15339# Shared library suffix (normally ".so").
15340shrext_cmds='$shrext_cmds'
15341
15342# Executable file suffix (normally "").
15343exeext="$exeext"
15344
15345# Additional compiler flags for building library objects.
15346pic_flag=$lt_lt_prog_compiler_pic_F77
15347pic_mode=$pic_mode
15348
15349# What is the maximum length of a command?
15350max_cmd_len=$lt_cv_sys_max_cmd_len
15351
15352# Does compiler simultaneously support -c and -o options?
15353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15354
15355# Must we lock files when doing compilation?
15356need_locks=$lt_need_locks
15357
15358# Do we need the lib prefix for modules?
15359need_lib_prefix=$need_lib_prefix
15360
15361# Do we need a version for libraries?
15362need_version=$need_version
15363
15364# Whether dlopen is supported.
15365dlopen_support=$enable_dlopen
15366
15367# Whether dlopen of programs is supported.
15368dlopen_self=$enable_dlopen_self
15369
15370# Whether dlopen of statically linked programs is supported.
15371dlopen_self_static=$enable_dlopen_self_static
15372
15373# Compiler flag to prevent dynamic linking.
15374link_static_flag=$lt_lt_prog_compiler_static_F77
15375
15376# Compiler flag to turn off builtin functions.
15377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15378
15379# Compiler flag to allow reflexive dlopens.
15380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15381
15382# Compiler flag to generate shared objects directly from archives.
15383whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15384
15385# Compiler flag to generate thread-safe objects.
15386thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15387
15388# Library versioning type.
15389version_type=$version_type
15390
15391# Format of library name prefix.
15392libname_spec=$lt_libname_spec
15393
15394# List of archive names. First name is the real one, the rest are links.
15395# The last name is the one that the linker finds with -lNAME.
15396library_names_spec=$lt_library_names_spec
15397
15398# The coded name of the library, if different from the real name.
15399soname_spec=$lt_soname_spec
15400
15401# Commands used to build and install an old-style archive.
15402RANLIB=$lt_RANLIB
15403old_archive_cmds=$lt_old_archive_cmds_F77
15404old_postinstall_cmds=$lt_old_postinstall_cmds
15405old_postuninstall_cmds=$lt_old_postuninstall_cmds
15406
15407# Create an old-style archive from a shared archive.
15408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15409
15410# Create a temporary old-style archive to link instead of a shared archive.
15411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15412
15413# Commands used to build and install a shared archive.
15414archive_cmds=$lt_archive_cmds_F77
15415archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15416postinstall_cmds=$lt_postinstall_cmds
15417postuninstall_cmds=$lt_postuninstall_cmds
15418
15419# Commands used to build a loadable module (assumed same as above if empty)
15420module_cmds=$lt_module_cmds_F77
15421module_expsym_cmds=$lt_module_expsym_cmds_F77
15422
15423# Commands to strip libraries.
15424old_striplib=$lt_old_striplib
15425striplib=$lt_striplib
15426
15427# Dependencies to place before the objects being linked to create a
15428# shared library.
15429predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15430
15431# Dependencies to place after the objects being linked to create a
15432# shared library.
15433postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15434
15435# Dependencies to place before the objects being linked to create a
15436# shared library.
15437predeps=$lt_predeps_F77
15438
15439# Dependencies to place after the objects being linked to create a
15440# shared library.
15441postdeps=$lt_postdeps_F77
15442
15443# The library search path used internally by the compiler when linking
15444# a shared library.
15445compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15446
15447# Method to check whether dependent libraries are shared objects.
15448deplibs_check_method=$lt_deplibs_check_method
15449
15450# Command to use when deplibs_check_method == file_magic.
15451file_magic_cmd=$lt_file_magic_cmd
15452
15453# Flag that allows shared libraries with undefined symbols to be built.
15454allow_undefined_flag=$lt_allow_undefined_flag_F77
15455
15456# Flag that forces no undefined symbols.
15457no_undefined_flag=$lt_no_undefined_flag_F77
15458
15459# Commands used to finish a libtool library installation in a directory.
15460finish_cmds=$lt_finish_cmds
15461
15462# Same as above, but a single script fragment to be evaled but not shown.
15463finish_eval=$lt_finish_eval
15464
15465# Take the output of nm and produce a listing of raw symbols and C names.
15466global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15467
15468# Transform the output of nm in a proper C declaration
15469global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15470
15471# Transform the output of nm in a C name address pair
15472global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15473
15474# This is the shared library runtime path variable.
15475runpath_var=$runpath_var
15476
15477# This is the shared library path variable.
15478shlibpath_var=$shlibpath_var
15479
15480# Is shlibpath searched before the hard-coded library search path?
15481shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15482
15483# How to hardcode a shared library path into an executable.
15484hardcode_action=$hardcode_action_F77
15485
15486# Whether we should hardcode library paths into libraries.
15487hardcode_into_libs=$hardcode_into_libs
15488
15489# Flag to hardcode \$libdir into a binary during linking.
15490# This must work even if \$libdir does not exist.
15491hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15492
15493# If ld is used when linking, flag to hardcode \$libdir into
15494# a binary during linking. This must work even if \$libdir does
15495# not exist.
15496hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15497
15498# Whether we need a single -rpath flag with a separated argument.
15499hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15500
15501# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15502# resulting binary.
15503hardcode_direct=$hardcode_direct_F77
15504
15505# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15506# resulting binary.
15507hardcode_minus_L=$hardcode_minus_L_F77
15508
15509# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15510# the resulting binary.
15511hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15512
15513# Set to yes if building a shared library automatically hardcodes DIR into the library
15514# and all subsequent libraries and executables linked against it.
15515hardcode_automatic=$hardcode_automatic_F77
15516
15517# Variables whose values should be saved in libtool wrapper scripts and
15518# restored at relink time.
15519variables_saved_for_relink="$variables_saved_for_relink"
15520
15521# Whether libtool must link a program against all its dependency libraries.
15522link_all_deplibs=$link_all_deplibs_F77
15523
15524# Compile-time system search path for libraries
15525sys_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"\`
15526
15527# Run-time system search path for libraries
15528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15529
15530# Fix the shell variable \$srcfile for the compiler.
15531fix_srcfile_path="$fix_srcfile_path_F77"
15532
15533# Set to yes if exported symbols are required.
15534always_export_symbols=$always_export_symbols_F77
15535
15536# The commands to list exported symbols.
15537export_symbols_cmds=$lt_export_symbols_cmds_F77
15538
15539# The commands to extract the exported symbol list from a shared archive.
15540extract_expsyms_cmds=$lt_extract_expsyms_cmds
15541
15542# Symbols that should not be listed in the preloaded symbols.
15543exclude_expsyms=$lt_exclude_expsyms_F77
15544
15545# Symbols that must always be exported.
15546include_expsyms=$lt_include_expsyms_F77
15547
15548# ### END LIBTOOL TAG CONFIG: $tagname
15549
15550__EOF__
15551
15552
15553else
15554 # If there is no Makefile yet, we rely on a make rule to execute
15555 # `config.status --recheck' to rerun these tests and create the
15556 # libtool script then.
15557 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15558 if test -f "$ltmain_in"; then
15559 test -f Makefile && make "$ltmain"
15560 fi
15561fi
15562
15563
15564ac_ext=c
15565ac_cpp='$CPP $CPPFLAGS'
15566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568ac_compiler_gnu=$ac_cv_c_compiler_gnu
15569
15570CC="$lt_save_CC"
15571
15572 else
15573 tagname=""
15574 fi
15575 ;;
15576
15577 GCJ)
15578 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15579
15580
15581
15582# Source file extension for Java test sources.
15583ac_ext=java
15584
15585# Object file extension for compiled Java test sources.
15586objext=o
15587objext_GCJ=$objext
15588
15589# Code to be used in simple compile tests
15590lt_simple_compile_test_code="class foo {}\n"
15591
15592# Code to be used in simple link tests
15593lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15594
15595# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15596
15597# If no C compiler was specified, use CC.
15598LTCC=${LTCC-"$CC"}
15599
15600# If no C compiler flags were specified, use CFLAGS.
15601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15602
15603# Allow CC to be a program name with arguments.
15604compiler=$CC
15605
15606
15607# save warnings/boilerplate of simple test code
15608ac_outfile=conftest.$ac_objext
15609printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15611_lt_compiler_boilerplate=`cat conftest.err`
15612$rm conftest*
15613
15614ac_outfile=conftest.$ac_objext
15615printf "$lt_simple_link_test_code" >conftest.$ac_ext
15616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15617_lt_linker_boilerplate=`cat conftest.err`
15618$rm conftest*
15619
15620
15621# Allow CC to be a program name with arguments.
15622lt_save_CC="$CC"
15623CC=${GCJ-"gcj"}
15624compiler=$CC
15625compiler_GCJ=$CC
15626for cc_temp in $compiler""; do
15627 case $cc_temp in
15628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15630 \-*) ;;
15631 *) break;;
15632 esac
15633done
15634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15635
15636
15637# GCJ did not exist at the time GCC didn't implicitly link libc in.
15638archive_cmds_need_lc_GCJ=no
15639
15640old_archive_cmds_GCJ=$old_archive_cmds
15641
15642
15643lt_prog_compiler_no_builtin_flag_GCJ=
15644
15645if test "$GCC" = yes; then
15646 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15647
15648
15649echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15650echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15651if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
15654 lt_cv_prog_compiler_rtti_exceptions=no
15655 ac_outfile=conftest.$ac_objext
15656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15657 lt_compiler_flag="-fno-rtti -fno-exceptions"
15658 # Insert the option either (1) after the last *FLAGS variable, or
15659 # (2) before a word containing "conftest.", or (3) at the end.
15660 # Note that $ac_compile itself does not contain backslashes and begins
15661 # with a dollar sign (not a hyphen), so the echo should work correctly.
15662 # The option is referenced via a variable to avoid confusing sed.
15663 lt_compile=`echo "$ac_compile" | $SED \
15664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15666 -e 's:$: $lt_compiler_flag:'`
15667 (eval echo "\"\$as_me:15667: $lt_compile\"" >&5)
15668 (eval "$lt_compile" 2>conftest.err)
15669 ac_status=$?
15670 cat conftest.err >&5
15671 echo "$as_me:15671: \$? = $ac_status" >&5
15672 if (exit $ac_status) && test -s "$ac_outfile"; then
15673 # The compiler can only warn and ignore the option if not recognized
15674 # So say no if there are warnings other than the usual output.
15675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15678 lt_cv_prog_compiler_rtti_exceptions=yes
15679 fi
15680 fi
15681 $rm conftest*
15682
15683fi
15684echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15685echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15686
15687if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15688 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15689else
15690 :
15691fi
15692
15693fi
15694
15695lt_prog_compiler_wl_GCJ=
15696lt_prog_compiler_pic_GCJ=
15697lt_prog_compiler_static_GCJ=
15698
15699echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15700echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15701
15702 if test "$GCC" = yes; then
15703 lt_prog_compiler_wl_GCJ='-Wl,'
15704 lt_prog_compiler_static_GCJ='-static'
15705
15706 case $host_os in
15707 aix*)
15708 # All AIX code is PIC.
15709 if test "$host_cpu" = ia64; then
15710 # AIX 5 now supports IA64 processor
15711 lt_prog_compiler_static_GCJ='-Bstatic'
15712 fi
15713 ;;
15714
15715 amigaos*)
15716 # FIXME: we need at least 68020 code to build shared libraries, but
15717 # adding the `-m68020' flag to GCC prevents building anything better,
15718 # like `-m68040'.
15719 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15720 ;;
15721
15722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15723 # PIC is the default for these OSes.
15724 ;;
15725
15726 mingw* | pw32* | os2*)
15727 # This hack is so that the source file can tell whether it is being
15728 # built for inclusion in a dll (and should export symbols for example).
15729 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15730 ;;
15731
15732 darwin* | rhapsody*)
15733 # PIC is the default on this platform
15734 # Common symbols not allowed in MH_DYLIB files
15735 lt_prog_compiler_pic_GCJ='-fno-common'
15736 ;;
15737
15738 interix3*)
15739 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15740 # Instead, we relocate shared libraries at runtime.
15741 ;;
15742
15743 msdosdjgpp*)
15744 # Just because we use GCC doesn't mean we suddenly get shared libraries
15745 # on systems that don't support them.
15746 lt_prog_compiler_can_build_shared_GCJ=no
15747 enable_shared=no
15748 ;;
15749
15750 sysv4*MP*)
15751 if test -d /usr/nec; then
15752 lt_prog_compiler_pic_GCJ=-Kconform_pic
15753 fi
15754 ;;
15755
15756 hpux*)
15757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15758 # not for PA HP-UX.
15759 case $host_cpu in
15760 hppa*64*|ia64*)
15761 # +Z the default
15762 ;;
15763 *)
15764 lt_prog_compiler_pic_GCJ='-fPIC'
15765 ;;
15766 esac
15767 ;;
15768
15769 *)
15770 lt_prog_compiler_pic_GCJ='-fPIC'
15771 ;;
15772 esac
15773 else
15774 # PORTME Check for flag to pass linker flags through the system compiler.
15775 case $host_os in
15776 aix*)
15777 lt_prog_compiler_wl_GCJ='-Wl,'
15778 if test "$host_cpu" = ia64; then
15779 # AIX 5 now supports IA64 processor
15780 lt_prog_compiler_static_GCJ='-Bstatic'
15781 else
15782 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15783 fi
15784 ;;
15785 darwin*)
15786 # PIC is the default on this platform
15787 # Common symbols not allowed in MH_DYLIB files
15788 case $cc_basename in
15789 xlc*)
15790 lt_prog_compiler_pic_GCJ='-qnocommon'
15791 lt_prog_compiler_wl_GCJ='-Wl,'
15792 ;;
15793 esac
15794 ;;
15795
15796 mingw* | pw32* | os2*)
15797 # This hack is so that the source file can tell whether it is being
15798 # built for inclusion in a dll (and should export symbols for example).
15799 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15800 ;;
15801
15802 hpux9* | hpux10* | hpux11*)
15803 lt_prog_compiler_wl_GCJ='-Wl,'
15804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15805 # not for PA HP-UX.
15806 case $host_cpu in
15807 hppa*64*|ia64*)
15808 # +Z the default
15809 ;;
15810 *)
15811 lt_prog_compiler_pic_GCJ='+Z'
15812 ;;
15813 esac
15814 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15815 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15816 ;;
15817
15818 irix5* | irix6* | nonstopux*)
15819 lt_prog_compiler_wl_GCJ='-Wl,'
15820 # PIC (with -KPIC) is the default.
15821 lt_prog_compiler_static_GCJ='-non_shared'
15822 ;;
15823
15824 newsos6)
15825 lt_prog_compiler_pic_GCJ='-KPIC'
15826 lt_prog_compiler_static_GCJ='-Bstatic'
15827 ;;
15828
15829 linux*)
15830 case $cc_basename in
15831 icc* | ecc*)
15832 lt_prog_compiler_wl_GCJ='-Wl,'
15833 lt_prog_compiler_pic_GCJ='-KPIC'
15834 lt_prog_compiler_static_GCJ='-static'
15835 ;;
15836 pgcc* | pgf77* | pgf90* | pgf95*)
15837 # Portland Group compilers (*not* the Pentium gcc compiler,
15838 # which looks to be a dead project)
15839 lt_prog_compiler_wl_GCJ='-Wl,'
15840 lt_prog_compiler_pic_GCJ='-fpic'
15841 lt_prog_compiler_static_GCJ='-Bstatic'
15842 ;;
15843 ccc*)
15844 lt_prog_compiler_wl_GCJ='-Wl,'
15845 # All Alpha code is PIC.
15846 lt_prog_compiler_static_GCJ='-non_shared'
15847 ;;
15848 esac
15849 ;;
15850
15851 osf3* | osf4* | osf5*)
15852 lt_prog_compiler_wl_GCJ='-Wl,'
15853 # All OSF/1 code is PIC.
15854 lt_prog_compiler_static_GCJ='-non_shared'
15855 ;;
15856
15857 solaris*)
15858 lt_prog_compiler_pic_GCJ='-KPIC'
15859 lt_prog_compiler_static_GCJ='-Bstatic'
15860 case $cc_basename in
15861 f77* | f90* | f95*)
15862 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15863 *)
15864 lt_prog_compiler_wl_GCJ='-Wl,';;
15865 esac
15866 ;;
15867
15868 sunos4*)
15869 lt_prog_compiler_wl_GCJ='-Qoption ld '
15870 lt_prog_compiler_pic_GCJ='-PIC'
15871 lt_prog_compiler_static_GCJ='-Bstatic'
15872 ;;
15873
15874 sysv4 | sysv4.2uw2* | sysv4.3*)
15875 lt_prog_compiler_wl_GCJ='-Wl,'
15876 lt_prog_compiler_pic_GCJ='-KPIC'
15877 lt_prog_compiler_static_GCJ='-Bstatic'
15878 ;;
15879
15880 sysv4*MP*)
15881 if test -d /usr/nec ;then
15882 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15883 lt_prog_compiler_static_GCJ='-Bstatic'
15884 fi
15885 ;;
15886
15887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15888 lt_prog_compiler_wl_GCJ='-Wl,'
15889 lt_prog_compiler_pic_GCJ='-KPIC'
15890 lt_prog_compiler_static_GCJ='-Bstatic'
15891 ;;
15892
15893 unicos*)
15894 lt_prog_compiler_wl_GCJ='-Wl,'
15895 lt_prog_compiler_can_build_shared_GCJ=no
15896 ;;
15897
15898 uts4*)
15899 lt_prog_compiler_pic_GCJ='-pic'
15900 lt_prog_compiler_static_GCJ='-Bstatic'
15901 ;;
15902
15903 *)
15904 lt_prog_compiler_can_build_shared_GCJ=no
15905 ;;
15906 esac
15907 fi
15908
15909echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15910echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15911
15912#
15913# Check to make sure the PIC flag actually works.
15914#
15915if test -n "$lt_prog_compiler_pic_GCJ"; then
15916
15917echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15918echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15919if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921else
15922 lt_prog_compiler_pic_works_GCJ=no
15923 ac_outfile=conftest.$ac_objext
15924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15925 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15926 # Insert the option either (1) after the last *FLAGS variable, or
15927 # (2) before a word containing "conftest.", or (3) at the end.
15928 # Note that $ac_compile itself does not contain backslashes and begins
15929 # with a dollar sign (not a hyphen), so the echo should work correctly.
15930 # The option is referenced via a variable to avoid confusing sed.
15931 lt_compile=`echo "$ac_compile" | $SED \
15932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15934 -e 's:$: $lt_compiler_flag:'`
15935 (eval echo "\"\$as_me:15935: $lt_compile\"" >&5)
15936 (eval "$lt_compile" 2>conftest.err)
15937 ac_status=$?
15938 cat conftest.err >&5
15939 echo "$as_me:15939: \$? = $ac_status" >&5
15940 if (exit $ac_status) && test -s "$ac_outfile"; then
15941 # The compiler can only warn and ignore the option if not recognized
15942 # So say no if there are warnings other than the usual output.
15943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15946 lt_prog_compiler_pic_works_GCJ=yes
15947 fi
15948 fi
15949 $rm conftest*
15950
15951fi
15952echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15953echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15954
15955if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15956 case $lt_prog_compiler_pic_GCJ in
15957 "" | " "*) ;;
15958 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15959 esac
15960else
15961 lt_prog_compiler_pic_GCJ=
15962 lt_prog_compiler_can_build_shared_GCJ=no
15963fi
15964
15965fi
15966case $host_os in
15967 # For platforms which do not support PIC, -DPIC is meaningless:
15968 *djgpp*)
15969 lt_prog_compiler_pic_GCJ=
15970 ;;
15971 *)
15972 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15973 ;;
15974esac
15975
15976#
15977# Check to make sure the static flag actually works.
15978#
15979wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15980echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15981echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15982if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984else
15985 lt_prog_compiler_static_works_GCJ=no
15986 save_LDFLAGS="$LDFLAGS"
15987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15988 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15990 # The linker can only warn and ignore the option if not recognized
15991 # So say no if there are warnings
15992 if test -s conftest.err; then
15993 # Append any errors to the config.log.
15994 cat conftest.err 1>&5
15995 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15997 if diff conftest.exp conftest.er2 >/dev/null; then
15998 lt_prog_compiler_static_works_GCJ=yes
15999 fi
16000 else
16001 lt_prog_compiler_static_works_GCJ=yes
16002 fi
16003 fi
16004 $rm conftest*
16005 LDFLAGS="$save_LDFLAGS"
16006
16007fi
16008echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16009echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16010
16011if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16012 :
16013else
16014 lt_prog_compiler_static_GCJ=
16015fi
16016
16017
16018echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16019echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16020if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022else
16023 lt_cv_prog_compiler_c_o_GCJ=no
16024 $rm -r conftest 2>/dev/null
16025 mkdir conftest
16026 cd conftest
16027 mkdir out
16028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16029
16030 lt_compiler_flag="-o out/conftest2.$ac_objext"
16031 # Insert the option either (1) after the last *FLAGS variable, or
16032 # (2) before a word containing "conftest.", or (3) at the end.
16033 # Note that $ac_compile itself does not contain backslashes and begins
16034 # with a dollar sign (not a hyphen), so the echo should work correctly.
16035 lt_compile=`echo "$ac_compile" | $SED \
16036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16038 -e 's:$: $lt_compiler_flag:'`
16039 (eval echo "\"\$as_me:16039: $lt_compile\"" >&5)
16040 (eval "$lt_compile" 2>out/conftest.err)
16041 ac_status=$?
16042 cat out/conftest.err >&5
16043 echo "$as_me:16043: \$? = $ac_status" >&5
16044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16045 then
16046 # The compiler can only warn and ignore the option if not recognized
16047 # So say no if there are warnings
16048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16051 lt_cv_prog_compiler_c_o_GCJ=yes
16052 fi
16053 fi
16054 chmod u+w . 2>&5
16055 $rm conftest*
16056 # SGI C++ compiler will create directory out/ii_files/ for
16057 # template instantiation
16058 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16059 $rm out/* && rmdir out
16060 cd ..
16061 rmdir conftest
16062 $rm conftest*
16063
16064fi
16065echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16066echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16067
16068
16069hard_links="nottested"
16070if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16071 # do not overwrite the value of need_locks provided by the user
16072 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16073echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16074 hard_links=yes
16075 $rm conftest*
16076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16077 touch conftest.a
16078 ln conftest.a conftest.b 2>&5 || hard_links=no
16079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16080 echo "$as_me:$LINENO: result: $hard_links" >&5
16081echo "${ECHO_T}$hard_links" >&6
16082 if test "$hard_links" = no; then
16083 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16084echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16085 need_locks=warn
16086 fi
16087else
16088 need_locks=no
16089fi
16090
16091echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16092echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16093
16094 runpath_var=
16095 allow_undefined_flag_GCJ=
16096 enable_shared_with_static_runtimes_GCJ=no
16097 archive_cmds_GCJ=
16098 archive_expsym_cmds_GCJ=
16099 old_archive_From_new_cmds_GCJ=
16100 old_archive_from_expsyms_cmds_GCJ=
16101 export_dynamic_flag_spec_GCJ=
16102 whole_archive_flag_spec_GCJ=
16103 thread_safe_flag_spec_GCJ=
16104 hardcode_libdir_flag_spec_GCJ=
16105 hardcode_libdir_flag_spec_ld_GCJ=
16106 hardcode_libdir_separator_GCJ=
16107 hardcode_direct_GCJ=no
16108 hardcode_minus_L_GCJ=no
16109 hardcode_shlibpath_var_GCJ=unsupported
16110 link_all_deplibs_GCJ=unknown
16111 hardcode_automatic_GCJ=no
16112 module_cmds_GCJ=
16113 module_expsym_cmds_GCJ=
16114 always_export_symbols_GCJ=no
16115 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16116 # include_expsyms should be a list of space-separated symbols to be *always*
16117 # included in the symbol list
16118 include_expsyms_GCJ=
16119 # exclude_expsyms can be an extended regexp of symbols to exclude
16120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16122 # as well as any symbol that contains `d'.
16123 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16125 # platforms (ab)use it in PIC code, but their linkers get confused if
16126 # the symbol is explicitly referenced. Since portable code cannot
16127 # rely on this symbol name, it's probably fine to never include it in
16128 # preloaded symbol tables.
16129 extract_expsyms_cmds=
16130 # Just being paranoid about ensuring that cc_basename is set.
16131 for cc_temp in $compiler""; do
16132 case $cc_temp in
16133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16135 \-*) ;;
16136 *) break;;
16137 esac
16138done
16139cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16140
16141 case $host_os in
16142 cygwin* | mingw* | pw32*)
16143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16144 # When not using gcc, we currently assume that we are using
16145 # Microsoft Visual C++.
16146 if test "$GCC" != yes; then
16147 with_gnu_ld=no
16148 fi
16149 ;;
16150 interix*)
16151 # we just hope/assume this is gcc and not c89 (= MSVC++)
16152 with_gnu_ld=yes
16153 ;;
16154 openbsd*)
16155 with_gnu_ld=no
16156 ;;
16157 esac
16158
16159 ld_shlibs_GCJ=yes
16160 if test "$with_gnu_ld" = yes; then
16161 # If archive_cmds runs LD, not CC, wlarc should be empty
16162 wlarc='${wl}'
16163
16164 # Set some defaults for GNU ld with shared library support. These
16165 # are reset later if shared libraries are not supported. Putting them
16166 # here allows them to be overridden if necessary.
16167 runpath_var=LD_RUN_PATH
16168 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16169 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16170 # ancient GNU ld didn't support --whole-archive et. al.
16171 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16172 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16173 else
16174 whole_archive_flag_spec_GCJ=
16175 fi
16176 supports_anon_versioning=no
16177 case `$LD -v 2>/dev/null` in
16178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16181 *\ 2.11.*) ;; # other 2.11 versions
16182 *) supports_anon_versioning=yes ;;
16183 esac
16184
16185 # See if GNU ld supports shared libraries.
16186 case $host_os in
16187 aix3* | aix4* | aix5*)
16188 # On AIX/PPC, the GNU linker is very broken
16189 if test "$host_cpu" != ia64; then
16190 ld_shlibs_GCJ=no
16191 cat <<EOF 1>&2
16192
16193*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16194*** to be unable to reliably create shared libraries on AIX.
16195*** Therefore, libtool is disabling shared libraries support. If you
16196*** really care for shared libraries, you may want to modify your PATH
16197*** so that a non-GNU linker is found, and then restart.
16198
16199EOF
16200 fi
16201 ;;
16202
16203 amigaos*)
16204 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)'
16205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206 hardcode_minus_L_GCJ=yes
16207
16208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16209 # that the semantics of dynamic libraries on AmigaOS, at least up
16210 # to version 4, is to share data among multiple programs linked
16211 # with the same dynamic library. Since this doesn't match the
16212 # behavior of shared libraries on other platforms, we can't use
16213 # them.
16214 ld_shlibs_GCJ=no
16215 ;;
16216
16217 beos*)
16218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16219 allow_undefined_flag_GCJ=unsupported
16220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16221 # support --undefined. This deserves some investigation. FIXME
16222 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16223 else
16224 ld_shlibs_GCJ=no
16225 fi
16226 ;;
16227
16228 cygwin* | mingw* | pw32*)
16229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16230 # as there is no search path for DLLs.
16231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16232 allow_undefined_flag_GCJ=unsupported
16233 always_export_symbols_GCJ=no
16234 enable_shared_with_static_runtimes_GCJ=yes
16235 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16236
16237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16239 # If the export-symbols file already is a .def file (1st line
16240 # is EXPORTS), use it as is; otherwise, prepend...
16241 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16242 cp $export_symbols $output_objdir/$soname.def;
16243 else
16244 echo EXPORTS > $output_objdir/$soname.def;
16245 cat $export_symbols >> $output_objdir/$soname.def;
16246 fi~
16247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16248 else
16249 ld_shlibs_GCJ=no
16250 fi
16251 ;;
16252
16253 interix3*)
16254 hardcode_direct_GCJ=no
16255 hardcode_shlibpath_var_GCJ=no
16256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16257 export_dynamic_flag_spec_GCJ='${wl}-E'
16258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16259 # Instead, shared libraries are loaded at an image base (0x10000000 by
16260 # default) and relocated if they conflict, which is a slow very memory
16261 # consuming and fragmenting process. To avoid this, we pick a random,
16262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16264 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'
16265 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'
16266 ;;
16267
16268 linux*)
16269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16270 tmp_addflag=
16271 case $cc_basename,$host_cpu in
16272 pgcc*) # Portland Group C compiler
16273 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'
16274 tmp_addflag=' $pic_flag'
16275 ;;
16276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16277 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'
16278 tmp_addflag=' $pic_flag -Mnomain' ;;
16279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16280 tmp_addflag=' -i_dynamic' ;;
16281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16282 tmp_addflag=' -i_dynamic -nofor_main' ;;
16283 ifc* | ifort*) # Intel Fortran compiler
16284 tmp_addflag=' -nofor_main' ;;
16285 esac
16286 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16287
16288 if test $supports_anon_versioning = yes; then
16289 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16291 $echo "local: *; };" >> $output_objdir/$libname.ver~
16292 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16293 fi
16294 else
16295 ld_shlibs_GCJ=no
16296 fi
16297 ;;
16298
16299 netbsd*)
16300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16301 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16302 wlarc=
16303 else
16304 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16305 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16306 fi
16307 ;;
16308
16309 solaris*)
16310 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16311 ld_shlibs_GCJ=no
16312 cat <<EOF 1>&2
16313
16314*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16315*** create shared libraries on Solaris systems. Therefore, libtool
16316*** is disabling shared libraries support. We urge you to upgrade GNU
16317*** binutils to release 2.9.1 or newer. Another option is to modify
16318*** your PATH or compiler configuration so that the native linker is
16319*** used, and then restart.
16320
16321EOF
16322 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16325 else
16326 ld_shlibs_GCJ=no
16327 fi
16328 ;;
16329
16330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16331 case `$LD -v 2>&1` in
16332 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16333 ld_shlibs_GCJ=no
16334 cat <<_LT_EOF 1>&2
16335
16336*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16337*** reliably create shared libraries on SCO systems. Therefore, libtool
16338*** is disabling shared libraries support. We urge you to upgrade GNU
16339*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16340*** your PATH or compiler configuration so that the native linker is
16341*** used, and then restart.
16342
16343_LT_EOF
16344 ;;
16345 *)
16346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16347 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16348 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16349 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16350 else
16351 ld_shlibs_GCJ=no
16352 fi
16353 ;;
16354 esac
16355 ;;
16356
16357 sunos4*)
16358 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16359 wlarc=
16360 hardcode_direct_GCJ=yes
16361 hardcode_shlibpath_var_GCJ=no
16362 ;;
16363
16364 *)
16365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16366 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16367 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16368 else
16369 ld_shlibs_GCJ=no
16370 fi
16371 ;;
16372 esac
16373
16374 if test "$ld_shlibs_GCJ" = no; then
16375 runpath_var=
16376 hardcode_libdir_flag_spec_GCJ=
16377 export_dynamic_flag_spec_GCJ=
16378 whole_archive_flag_spec_GCJ=
16379 fi
16380 else
16381 # PORTME fill in a description of your system's linker (not GNU ld)
16382 case $host_os in
16383 aix3*)
16384 allow_undefined_flag_GCJ=unsupported
16385 always_export_symbols_GCJ=yes
16386 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'
16387 # Note: this linker hardcodes the directories in LIBPATH if there
16388 # are no directories specified by -L.
16389 hardcode_minus_L_GCJ=yes
16390 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16391 # Neither direct hardcoding nor static linking is supported with a
16392 # broken collect2.
16393 hardcode_direct_GCJ=unsupported
16394 fi
16395 ;;
16396
16397 aix4* | aix5*)
16398 if test "$host_cpu" = ia64; then
16399 # On IA64, the linker does run time linking by default, so we don't
16400 # have to do anything special.
16401 aix_use_runtimelinking=no
16402 exp_sym_flag='-Bexport'
16403 no_entry_flag=""
16404 else
16405 # If we're using GNU nm, then we don't want the "-C" option.
16406 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16407 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16408 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'
16409 else
16410 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'
16411 fi
16412 aix_use_runtimelinking=no
16413
16414 # Test if we are trying to use run time linking or normal
16415 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16416 # need to do runtime linking.
16417 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16418 for ld_flag in $LDFLAGS; do
16419 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16420 aix_use_runtimelinking=yes
16421 break
16422 fi
16423 done
16424 ;;
16425 esac
16426
16427 exp_sym_flag='-bexport'
16428 no_entry_flag='-bnoentry'
16429 fi
16430
16431 # When large executables or shared objects are built, AIX ld can
16432 # have problems creating the table of contents. If linking a library
16433 # or program results in "error TOC overflow" add -mminimal-toc to
16434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16436
16437 archive_cmds_GCJ=''
16438 hardcode_direct_GCJ=yes
16439 hardcode_libdir_separator_GCJ=':'
16440 link_all_deplibs_GCJ=yes
16441
16442 if test "$GCC" = yes; then
16443 case $host_os in aix4.[012]|aix4.[012].*)
16444 # We only want to do this on AIX 4.2 and lower, the check
16445 # below for broken collect2 doesn't work under 4.3+
16446 collect2name=`${CC} -print-prog-name=collect2`
16447 if test -f "$collect2name" && \
16448 strings "$collect2name" | grep resolve_lib_name >/dev/null
16449 then
16450 # We have reworked collect2
16451 hardcode_direct_GCJ=yes
16452 else
16453 # We have old collect2
16454 hardcode_direct_GCJ=unsupported
16455 # It fails to find uninstalled libraries when the uninstalled
16456 # path is not listed in the libpath. Setting hardcode_minus_L
16457 # to unsupported forces relinking
16458 hardcode_minus_L_GCJ=yes
16459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16460 hardcode_libdir_separator_GCJ=
16461 fi
16462 ;;
16463 esac
16464 shared_flag='-shared'
16465 if test "$aix_use_runtimelinking" = yes; then
16466 shared_flag="$shared_flag "'${wl}-G'
16467 fi
16468 else
16469 # not using gcc
16470 if test "$host_cpu" = ia64; then
16471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16472 # chokes on -Wl,-G. The following line is correct:
16473 shared_flag='-G'
16474 else
16475 if test "$aix_use_runtimelinking" = yes; then
16476 shared_flag='${wl}-G'
16477 else
16478 shared_flag='${wl}-bM:SRE'
16479 fi
16480 fi
16481 fi
16482
16483 # It seems that -bexpall does not export symbols beginning with
16484 # underscore (_), so it is better to generate a list of symbols to export.
16485 always_export_symbols_GCJ=yes
16486 if test "$aix_use_runtimelinking" = yes; then
16487 # Warning - without using the other runtime loading flags (-brtl),
16488 # -berok will link without error, but may produce a broken library.
16489 allow_undefined_flag_GCJ='-berok'
16490 # Determine the default libpath from the value encoded in an empty executable.
16491 cat >conftest.$ac_ext <<_ACEOF
16492/* confdefs.h. */
16493_ACEOF
16494cat confdefs.h >>conftest.$ac_ext
16495cat >>conftest.$ac_ext <<_ACEOF
16496/* end confdefs.h. */
16497
16498int
16499main ()
16500{
16501
16502 ;
16503 return 0;
16504}
16505_ACEOF
16506rm -f conftest.$ac_objext conftest$ac_exeext
16507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528
16529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16530}'`
16531# Check for a 64-bit object if we didn't find anything.
16532if 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; }
16533}'`; fi
16534else
16535 echo "$as_me: failed program was:" >&5
16536sed 's/^/| /' conftest.$ac_ext >&5
16537
16538fi
16539rm -f conftest.err conftest.$ac_objext \
16540 conftest$ac_exeext conftest.$ac_ext
16541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16542
16543 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16544 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"
16545 else
16546 if test "$host_cpu" = ia64; then
16547 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16548 allow_undefined_flag_GCJ="-z nodefs"
16549 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"
16550 else
16551 # Determine the default libpath from the value encoded in an empty executable.
16552 cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558
16559int
16560main ()
16561{
16562
16563 ;
16564 return 0;
16565}
16566_ACEOF
16567rm -f conftest.$ac_objext conftest$ac_exeext
16568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16569 (eval $ac_link) 2>conftest.er1
16570 ac_status=$?
16571 grep -v '^ *+' conftest.er1 >conftest.err
16572 rm -f conftest.er1
16573 cat conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try='test -z "$ac_c_werror_flag"
16577 || test ! -s conftest.err'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest$ac_exeext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589
16590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16591}'`
16592# Check for a 64-bit object if we didn't find anything.
16593if 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; }
16594}'`; fi
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599fi
16600rm -f conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16603
16604 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16605 # Warning - without using the other run time loading flags,
16606 # -berok will link without error, but may produce a broken library.
16607 no_undefined_flag_GCJ=' ${wl}-bernotok'
16608 allow_undefined_flag_GCJ=' ${wl}-berok'
16609 # Exported symbols can be pulled into shared objects from archives
16610 whole_archive_flag_spec_GCJ='$convenience'
16611 archive_cmds_need_lc_GCJ=yes
16612 # This is similar to how AIX traditionally builds its shared libraries.
16613 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'
16614 fi
16615 fi
16616 ;;
16617
16618 amigaos*)
16619 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)'
16620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16621 hardcode_minus_L_GCJ=yes
16622 # see comment about different semantics on the GNU ld section
16623 ld_shlibs_GCJ=no
16624 ;;
16625
16626 bsdi[45]*)
16627 export_dynamic_flag_spec_GCJ=-rdynamic
16628 ;;
16629
16630 cygwin* | mingw* | pw32*)
16631 # When not using gcc, we currently assume that we are using
16632 # Microsoft Visual C++.
16633 # hardcode_libdir_flag_spec is actually meaningless, as there is
16634 # no search path for DLLs.
16635 hardcode_libdir_flag_spec_GCJ=' '
16636 allow_undefined_flag_GCJ=unsupported
16637 # Tell ltmain to make .lib files, not .a files.
16638 libext=lib
16639 # Tell ltmain to make .dll files, not .so files.
16640 shrext_cmds=".dll"
16641 # FIXME: Setting linknames here is a bad hack.
16642 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16643 # The linker will automatically build a .lib file if we build a DLL.
16644 old_archive_From_new_cmds_GCJ='true'
16645 # FIXME: Should let the user specify the lib program.
16646 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16647 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16648 enable_shared_with_static_runtimes_GCJ=yes
16649 ;;
16650
16651 darwin* | rhapsody*)
16652 case $host_os in
16653 rhapsody* | darwin1.[012])
16654 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16655 ;;
16656 *) # Darwin 1.3 on
16657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16658 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16659 else
16660 case ${MACOSX_DEPLOYMENT_TARGET} in
16661 10.[012])
16662 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16663 ;;
16664 10.*)
16665 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16666 ;;
16667 esac
16668 fi
16669 ;;
16670 esac
16671 archive_cmds_need_lc_GCJ=no
16672 hardcode_direct_GCJ=no
16673 hardcode_automatic_GCJ=yes
16674 hardcode_shlibpath_var_GCJ=unsupported
16675 whole_archive_flag_spec_GCJ=''
16676 link_all_deplibs_GCJ=yes
16677 if test "$GCC" = yes ; then
16678 output_verbose_link_cmd='echo'
16679 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16680 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16682 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}'
16683 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}'
16684 else
16685 case $cc_basename in
16686 xlc*)
16687 output_verbose_link_cmd='echo'
16688 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16689 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16691 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}'
16692 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}'
16693 ;;
16694 *)
16695 ld_shlibs_GCJ=no
16696 ;;
16697 esac
16698 fi
16699 ;;
16700
16701 dgux*)
16702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16704 hardcode_shlibpath_var_GCJ=no
16705 ;;
16706
16707 freebsd1*)
16708 ld_shlibs_GCJ=no
16709 ;;
16710
16711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16712 # support. Future versions do this automatically, but an explicit c++rt0.o
16713 # does not break anything, and helps significantly (at the cost of a little
16714 # extra space).
16715 freebsd2.2*)
16716 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16718 hardcode_direct_GCJ=yes
16719 hardcode_shlibpath_var_GCJ=no
16720 ;;
16721
16722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16723 freebsd2*)
16724 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_direct_GCJ=yes
16726 hardcode_minus_L_GCJ=yes
16727 hardcode_shlibpath_var_GCJ=no
16728 ;;
16729
16730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16731 freebsd* | kfreebsd*-gnu | dragonfly*)
16732 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16733 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16734 hardcode_direct_GCJ=yes
16735 hardcode_shlibpath_var_GCJ=no
16736 ;;
16737
16738 hpux9*)
16739 if test "$GCC" = yes; then
16740 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'
16741 else
16742 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'
16743 fi
16744 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16745 hardcode_libdir_separator_GCJ=:
16746 hardcode_direct_GCJ=yes
16747
16748 # hardcode_minus_L: Not really in the search PATH,
16749 # but as the default location of the library.
16750 hardcode_minus_L_GCJ=yes
16751 export_dynamic_flag_spec_GCJ='${wl}-E'
16752 ;;
16753
16754 hpux10*)
16755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16756 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16757 else
16758 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16759 fi
16760 if test "$with_gnu_ld" = no; then
16761 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16762 hardcode_libdir_separator_GCJ=:
16763
16764 hardcode_direct_GCJ=yes
16765 export_dynamic_flag_spec_GCJ='${wl}-E'
16766
16767 # hardcode_minus_L: Not really in the search PATH,
16768 # but as the default location of the library.
16769 hardcode_minus_L_GCJ=yes
16770 fi
16771 ;;
16772
16773 hpux11*)
16774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16775 case $host_cpu in
16776 hppa*64*)
16777 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 ;;
16779 ia64*)
16780 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16781 ;;
16782 *)
16783 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16784 ;;
16785 esac
16786 else
16787 case $host_cpu in
16788 hppa*64*)
16789 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 ;;
16791 ia64*)
16792 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16793 ;;
16794 *)
16795 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16796 ;;
16797 esac
16798 fi
16799 if test "$with_gnu_ld" = no; then
16800 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16801 hardcode_libdir_separator_GCJ=:
16802
16803 case $host_cpu in
16804 hppa*64*|ia64*)
16805 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16806 hardcode_direct_GCJ=no
16807 hardcode_shlibpath_var_GCJ=no
16808 ;;
16809 *)
16810 hardcode_direct_GCJ=yes
16811 export_dynamic_flag_spec_GCJ='${wl}-E'
16812
16813 # hardcode_minus_L: Not really in the search PATH,
16814 # but as the default location of the library.
16815 hardcode_minus_L_GCJ=yes
16816 ;;
16817 esac
16818 fi
16819 ;;
16820
16821 irix5* | irix6* | nonstopux*)
16822 if test "$GCC" = yes; then
16823 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'
16824 else
16825 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'
16826 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16827 fi
16828 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16829 hardcode_libdir_separator_GCJ=:
16830 link_all_deplibs_GCJ=yes
16831 ;;
16832
16833 netbsd*)
16834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16835 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16836 else
16837 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16838 fi
16839 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16840 hardcode_direct_GCJ=yes
16841 hardcode_shlibpath_var_GCJ=no
16842 ;;
16843
16844 newsos6)
16845 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16846 hardcode_direct_GCJ=yes
16847 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16848 hardcode_libdir_separator_GCJ=:
16849 hardcode_shlibpath_var_GCJ=no
16850 ;;
16851
16852 openbsd*)
16853 hardcode_direct_GCJ=yes
16854 hardcode_shlibpath_var_GCJ=no
16855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16856 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16858 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16859 export_dynamic_flag_spec_GCJ='${wl}-E'
16860 else
16861 case $host_os in
16862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16863 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16865 ;;
16866 *)
16867 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16869 ;;
16870 esac
16871 fi
16872 ;;
16873
16874 os2*)
16875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876 hardcode_minus_L_GCJ=yes
16877 allow_undefined_flag_GCJ=unsupported
16878 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'
16879 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16880 ;;
16881
16882 osf3*)
16883 if test "$GCC" = yes; then
16884 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16885 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'
16886 else
16887 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16888 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'
16889 fi
16890 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16891 hardcode_libdir_separator_GCJ=:
16892 ;;
16893
16894 osf4* | osf5*) # as osf3* with the addition of -msym flag
16895 if test "$GCC" = yes; then
16896 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16897 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'
16898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16899 else
16900 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16901 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'
16902 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~
16903 $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'
16904
16905 # Both c and cxx compiler support -rpath directly
16906 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16907 fi
16908 hardcode_libdir_separator_GCJ=:
16909 ;;
16910
16911 solaris*)
16912 no_undefined_flag_GCJ=' -z text'
16913 if test "$GCC" = yes; then
16914 wlarc='${wl}'
16915 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16916 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16917 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16918 else
16919 wlarc=''
16920 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16921 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16923 fi
16924 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16925 hardcode_shlibpath_var_GCJ=no
16926 case $host_os in
16927 solaris2.[0-5] | solaris2.[0-5].*) ;;
16928 *)
16929 # The compiler driver will combine linker options so we
16930 # cannot just pass the convience library names through
16931 # without $wl, iff we do not link with $LD.
16932 # Luckily, gcc supports the same syntax we need for Sun Studio.
16933 # Supported since Solaris 2.6 (maybe 2.5.1?)
16934 case $wlarc in
16935 '')
16936 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16937 *)
16938 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' ;;
16939 esac ;;
16940 esac
16941 link_all_deplibs_GCJ=yes
16942 ;;
16943
16944 sunos4*)
16945 if test "x$host_vendor" = xsequent; then
16946 # Use $CC to link under sequent, because it throws in some extra .o
16947 # files that make .init and .fini sections work.
16948 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16949 else
16950 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16951 fi
16952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16953 hardcode_direct_GCJ=yes
16954 hardcode_minus_L_GCJ=yes
16955 hardcode_shlibpath_var_GCJ=no
16956 ;;
16957
16958 sysv4)
16959 case $host_vendor in
16960 sni)
16961 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16962 hardcode_direct_GCJ=yes # is this really true???
16963 ;;
16964 siemens)
16965 ## LD is ld it makes a PLAMLIB
16966 ## CC just makes a GrossModule.
16967 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16968 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16969 hardcode_direct_GCJ=no
16970 ;;
16971 motorola)
16972 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16973 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16974 ;;
16975 esac
16976 runpath_var='LD_RUN_PATH'
16977 hardcode_shlibpath_var_GCJ=no
16978 ;;
16979
16980 sysv4.3*)
16981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16982 hardcode_shlibpath_var_GCJ=no
16983 export_dynamic_flag_spec_GCJ='-Bexport'
16984 ;;
16985
16986 sysv4*MP*)
16987 if test -d /usr/nec; then
16988 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_shlibpath_var_GCJ=no
16990 runpath_var=LD_RUN_PATH
16991 hardcode_runpath_var=yes
16992 ld_shlibs_GCJ=yes
16993 fi
16994 ;;
16995
16996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16997 no_undefined_flag_GCJ='${wl}-z,text'
16998 archive_cmds_need_lc_GCJ=no
16999 hardcode_shlibpath_var_GCJ=no
17000 runpath_var='LD_RUN_PATH'
17001
17002 if test "$GCC" = yes; then
17003 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17004 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 else
17006 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17008 fi
17009 ;;
17010
17011 sysv5* | sco3.2v5* | sco5v6*)
17012 # Note: We can NOT use -z defs as we might desire, because we do not
17013 # link with -lc, and that would cause any symbols used from libc to
17014 # always be unresolved, which means just about no library would
17015 # ever link correctly. If we're not using GNU ld we use -z text
17016 # though, which does catch some bad symbols but isn't as heavy-handed
17017 # as -z defs.
17018 no_undefined_flag_GCJ='${wl}-z,text'
17019 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17020 archive_cmds_need_lc_GCJ=no
17021 hardcode_shlibpath_var_GCJ=no
17022 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17023 hardcode_libdir_separator_GCJ=':'
17024 link_all_deplibs_GCJ=yes
17025 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17026 runpath_var='LD_RUN_PATH'
17027
17028 if test "$GCC" = yes; then
17029 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17030 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17031 else
17032 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17033 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17034 fi
17035 ;;
17036
17037 uts4*)
17038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17040 hardcode_shlibpath_var_GCJ=no
17041 ;;
17042
17043 *)
17044 ld_shlibs_GCJ=no
17045 ;;
17046 esac
17047 fi
17048
17049echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17050echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17051test "$ld_shlibs_GCJ" = no && can_build_shared=no
17052
17053#
17054# Do we need to explicitly link libc?
17055#
17056case "x$archive_cmds_need_lc_GCJ" in
17057x|xyes)
17058 # Assume -lc should be added
17059 archive_cmds_need_lc_GCJ=yes
17060
17061 if test "$enable_shared" = yes && test "$GCC" = yes; then
17062 case $archive_cmds_GCJ in
17063 *'~'*)
17064 # FIXME: we may have to deal with multi-command sequences.
17065 ;;
17066 '$CC '*)
17067 # Test whether the compiler implicitly links with -lc since on some
17068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17069 # to ld, don't add -lc before -lgcc.
17070 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17071echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17072 $rm conftest*
17073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17074
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076 (eval $ac_compile) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } 2>conftest.err; then
17080 soname=conftest
17081 lib=conftest
17082 libobjs=conftest.$ac_objext
17083 deplibs=
17084 wl=$lt_prog_compiler_wl_GCJ
17085 pic_flag=$lt_prog_compiler_pic_GCJ
17086 compiler_flags=-v
17087 linker_flags=-v
17088 verstring=
17089 output_objdir=.
17090 libname=conftest
17091 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17092 allow_undefined_flag_GCJ=
17093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17094 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }
17098 then
17099 archive_cmds_need_lc_GCJ=no
17100 else
17101 archive_cmds_need_lc_GCJ=yes
17102 fi
17103 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17104 else
17105 cat conftest.err 1>&5
17106 fi
17107 $rm conftest*
17108 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17109echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17110 ;;
17111 esac
17112 fi
17113 ;;
17114esac
17115
17116echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17117echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17118library_names_spec=
17119libname_spec='lib$name'
17120soname_spec=
17121shrext_cmds=".so"
17122postinstall_cmds=
17123postuninstall_cmds=
17124finish_cmds=
17125finish_eval=
17126shlibpath_var=
17127shlibpath_overrides_runpath=unknown
17128version_type=none
17129dynamic_linker="$host_os ld.so"
17130sys_lib_dlsearch_path_spec="/lib /usr/lib"
17131if test "$GCC" = yes; then
17132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17133 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17134 # if the path contains ";" then we assume it to be the separator
17135 # otherwise default to the standard path separator (i.e. ":") - it is
17136 # assumed that no part of a normal pathname contains ";" but that should
17137 # okay in the real world where ";" in dirpaths is itself problematic.
17138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17139 else
17140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17141 fi
17142else
17143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17144fi
17145need_lib_prefix=unknown
17146hardcode_into_libs=no
17147
17148# when you set need_version to no, make sure it does not cause -set_version
17149# flags to be left without arguments
17150need_version=unknown
17151
17152case $host_os in
17153aix3*)
17154 version_type=linux
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17156 shlibpath_var=LIBPATH
17157
17158 # AIX 3 has no versioning support, so we append a major version to the name.
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 ;;
17161
17162aix4* | aix5*)
17163 version_type=linux
17164 need_lib_prefix=no
17165 need_version=no
17166 hardcode_into_libs=yes
17167 if test "$host_cpu" = ia64; then
17168 # AIX 5 supports IA64
17169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17170 shlibpath_var=LD_LIBRARY_PATH
17171 else
17172 # With GCC up to 2.95.x, collect2 would create an import file
17173 # for dependence libraries. The import file would start with
17174 # the line `#! .'. This would cause the generated library to
17175 # depend on `.', always an invalid library. This was fixed in
17176 # development snapshots of GCC prior to 3.0.
17177 case $host_os in
17178 aix4 | aix4.[01] | aix4.[01].*)
17179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17180 echo ' yes '
17181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17182 :
17183 else
17184 can_build_shared=no
17185 fi
17186 ;;
17187 esac
17188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17189 # soname into executable. Probably we can add versioning support to
17190 # collect2, so additional links can be useful in future.
17191 if test "$aix_use_runtimelinking" = yes; then
17192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17193 # instead of lib<name>.a to let people know that these are not
17194 # typical AIX shared libraries.
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 else
17197 # We preserve .a as extension for shared libraries through AIX4.2
17198 # and later when we are not doing run time linking.
17199 library_names_spec='${libname}${release}.a $libname.a'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 fi
17202 shlibpath_var=LIBPATH
17203 fi
17204 ;;
17205
17206amigaos*)
17207 library_names_spec='$libname.ixlibrary $libname.a'
17208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17209 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'
17210 ;;
17211
17212beos*)
17213 library_names_spec='${libname}${shared_ext}'
17214 dynamic_linker="$host_os ld.so"
17215 shlibpath_var=LIBRARY_PATH
17216 ;;
17217
17218bsdi[45]*)
17219 version_type=linux
17220 need_version=no
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17227 # the default ld.so.conf also contains /usr/contrib/lib and
17228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17229 # libtool to hard-code these into programs
17230 ;;
17231
17232cygwin* | mingw* | pw32*)
17233 version_type=windows
17234 shrext_cmds=".dll"
17235 need_version=no
17236 need_lib_prefix=no
17237
17238 case $GCC,$host_os in
17239 yes,cygwin* | yes,mingw* | yes,pw32*)
17240 library_names_spec='$libname.dll.a'
17241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17242 postinstall_cmds='base_file=`basename \${file}`~
17243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17244 dldir=$destdir/`dirname \$dlpath`~
17245 test -d \$dldir || mkdir -p \$dldir~
17246 $install_prog $dir/$dlname \$dldir/$dlname~
17247 chmod a+x \$dldir/$dlname'
17248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17249 dlpath=$dir/\$dldll~
17250 $rm \$dlpath'
17251 shlibpath_overrides_runpath=yes
17252
17253 case $host_os in
17254 cygwin*)
17255 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17256 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17258 ;;
17259 mingw*)
17260 # MinGW DLLs use traditional 'lib' prefix
17261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17264 # It is most probably a Windows format PATH printed by
17265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17266 # path with ; separators, and with drive letters. We can handle the
17267 # drive letters (cygwin fileutils understands them), so leave them,
17268 # especially as we might pass files found there to a mingw objdump,
17269 # which wouldn't understand a cygwinified path. Ahh.
17270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17271 else
17272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17273 fi
17274 ;;
17275 pw32*)
17276 # pw32 DLLs use 'pw' prefix rather than 'lib'
17277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17278 ;;
17279 esac
17280 ;;
17281
17282 *)
17283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17284 ;;
17285 esac
17286 dynamic_linker='Win32 ld.exe'
17287 # FIXME: first we should search . and the directory the executable is in
17288 shlibpath_var=PATH
17289 ;;
17290
17291darwin* | rhapsody*)
17292 dynamic_linker="$host_os dyld"
17293 version_type=darwin
17294 need_lib_prefix=no
17295 need_version=no
17296 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17297 soname_spec='${libname}${release}${major}$shared_ext'
17298 shlibpath_overrides_runpath=yes
17299 shlibpath_var=DYLD_LIBRARY_PATH
17300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17302 if test "$GCC" = yes; then
17303 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"`
17304 else
17305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17306 fi
17307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17308 ;;
17309
17310dgux*)
17311 version_type=linux
17312 need_lib_prefix=no
17313 need_version=no
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 ;;
17318
17319freebsd1*)
17320 dynamic_linker=no
17321 ;;
17322
17323kfreebsd*-gnu)
17324 version_type=linux
17325 need_lib_prefix=no
17326 need_version=no
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath=no
17331 hardcode_into_libs=yes
17332 dynamic_linker='GNU ld.so'
17333 ;;
17334
17335freebsd* | dragonfly*)
17336 # DragonFly does not have aout. When/if they implement a new
17337 # versioning mechanism, adjust this.
17338 if test -x /usr/bin/objformat; then
17339 objformat=`/usr/bin/objformat`
17340 else
17341 case $host_os in
17342 freebsd[123]*) objformat=aout ;;
17343 *) objformat=elf ;;
17344 esac
17345 fi
17346 version_type=freebsd-$objformat
17347 case $version_type in
17348 freebsd-elf*)
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17350 need_version=no
17351 need_lib_prefix=no
17352 ;;
17353 freebsd-*)
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17355 need_version=yes
17356 ;;
17357 esac
17358 shlibpath_var=LD_LIBRARY_PATH
17359 case $host_os in
17360 freebsd2*)
17361 shlibpath_overrides_runpath=yes
17362 ;;
17363 freebsd3.[01]* | freebsdelf3.[01]*)
17364 shlibpath_overrides_runpath=yes
17365 hardcode_into_libs=yes
17366 ;;
17367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17369 shlibpath_overrides_runpath=no
17370 hardcode_into_libs=yes
17371 ;;
17372 freebsd*) # from 4.6 on
17373 shlibpath_overrides_runpath=yes
17374 hardcode_into_libs=yes
17375 ;;
17376 esac
17377 ;;
17378
17379gnu*)
17380 version_type=linux
17381 need_lib_prefix=no
17382 need_version=no
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 hardcode_into_libs=yes
17387 ;;
17388
17389hpux9* | hpux10* | hpux11*)
17390 # Give a soname corresponding to the major version so that dld.sl refuses to
17391 # link against other versions.
17392 version_type=sunos
17393 need_lib_prefix=no
17394 need_version=no
17395 case $host_cpu in
17396 ia64*)
17397 shrext_cmds='.so'
17398 hardcode_into_libs=yes
17399 dynamic_linker="$host_os dld.so"
17400 shlibpath_var=LD_LIBRARY_PATH
17401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 if test "X$HPUX_IA64_MODE" = X32; then
17405 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17406 else
17407 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17408 fi
17409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17410 ;;
17411 hppa*64*)
17412 shrext_cmds='.sl'
17413 hardcode_into_libs=yes
17414 dynamic_linker="$host_os dld.sl"
17415 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17421 ;;
17422 *)
17423 shrext_cmds='.sl'
17424 dynamic_linker="$host_os dld.sl"
17425 shlibpath_var=SHLIB_PATH
17426 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 ;;
17430 esac
17431 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17432 postinstall_cmds='chmod 555 $lib'
17433 ;;
17434
17435interix3*)
17436 version_type=linux
17437 need_lib_prefix=no
17438 need_version=no
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=no
17444 hardcode_into_libs=yes
17445 ;;
17446
17447irix5* | irix6* | nonstopux*)
17448 case $host_os in
17449 nonstopux*) version_type=nonstopux ;;
17450 *)
17451 if test "$lt_cv_prog_gnu_ld" = yes; then
17452 version_type=linux
17453 else
17454 version_type=irix
17455 fi ;;
17456 esac
17457 need_lib_prefix=no
17458 need_version=no
17459 soname_spec='${libname}${release}${shared_ext}$major'
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17461 case $host_os in
17462 irix5* | nonstopux*)
17463 libsuff= shlibsuff=
17464 ;;
17465 *)
17466 case $LD in # libtool.m4 will add one of these switches to LD
17467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17468 libsuff= shlibsuff= libmagic=32-bit;;
17469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17470 libsuff=32 shlibsuff=N32 libmagic=N32;;
17471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17473 *) libsuff= shlibsuff= libmagic=never-match;;
17474 esac
17475 ;;
17476 esac
17477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17478 shlibpath_overrides_runpath=no
17479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17481 hardcode_into_libs=yes
17482 ;;
17483
17484# No shared lib support for Linux oldld, aout, or coff.
17485linux*oldld* | linux*aout* | linux*coff*)
17486 dynamic_linker=no
17487 ;;
17488
17489# This must be Linux ELF.
17490linux*)
17491 version_type=linux
17492 need_lib_prefix=no
17493 need_version=no
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath=no
17499 # This implies no fast_install, which is unacceptable.
17500 # Some rework will be needed to allow for fast_install
17501 # before this can be enabled.
17502 hardcode_into_libs=yes
17503
17504 # find out which ABI we are using
17505 libsuff=
17506 case "$host_cpu" in
17507 x86_64*|s390x*|powerpc64*)
17508 echo '#line 17508 "configure"' > conftest.$ac_ext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; then
17514 case `/usr/bin/file conftest.$ac_objext` in
17515 *64-bit*)
17516 libsuff=64
17517 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17518 ;;
17519 esac
17520 fi
17521 rm -rf conftest*
17522 ;;
17523 esac
17524
17525 # Append ld.so.conf contents to the search path
17526 if test -f /etc/ld.so.conf; then
17527 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' ' '`
17528 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17529 fi
17530
17531 # We used to test for /lib/ld.so.1 and disable shared libraries on
17532 # powerpc, because MkLinux only supported shared libraries with the
17533 # GNU dynamic linker. Since this was broken with cross compilers,
17534 # most powerpc-linux boxes support dynamic linking these days and
17535 # people can always --disable-shared, the test was removed, and we
17536 # assume the GNU/Linux dynamic linker is in use.
17537 dynamic_linker='GNU/Linux ld.so'
17538 ;;
17539
17540knetbsd*-gnu)
17541 version_type=linux
17542 need_lib_prefix=no
17543 need_version=no
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath=no
17548 hardcode_into_libs=yes
17549 dynamic_linker='GNU ld.so'
17550 ;;
17551
17552netbsd*)
17553 version_type=sunos
17554 need_lib_prefix=no
17555 need_version=no
17556 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17559 dynamic_linker='NetBSD (a.out) ld.so'
17560 else
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 dynamic_linker='NetBSD ld.elf_so'
17564 fi
17565 shlibpath_var=LD_LIBRARY_PATH
17566 shlibpath_overrides_runpath=yes
17567 hardcode_into_libs=yes
17568 ;;
17569
17570newsos6)
17571 version_type=linux
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 shlibpath_overrides_runpath=yes
17575 ;;
17576
17577nto-qnx*)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=yes
17585 ;;
17586
17587openbsd*)
17588 version_type=sunos
17589 sys_lib_dlsearch_path_spec="/usr/lib"
17590 need_lib_prefix=no
17591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17592 case $host_os in
17593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17594 *) need_version=no ;;
17595 esac
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17600 case $host_os in
17601 openbsd2.[89] | openbsd2.[89].*)
17602 shlibpath_overrides_runpath=no
17603 ;;
17604 *)
17605 shlibpath_overrides_runpath=yes
17606 ;;
17607 esac
17608 else
17609 shlibpath_overrides_runpath=yes
17610 fi
17611 ;;
17612
17613os2*)
17614 libname_spec='$name'
17615 shrext_cmds=".dll"
17616 need_lib_prefix=no
17617 library_names_spec='$libname${shared_ext} $libname.a'
17618 dynamic_linker='OS/2 ld.exe'
17619 shlibpath_var=LIBPATH
17620 ;;
17621
17622osf3* | osf4* | osf5*)
17623 version_type=osf
17624 need_lib_prefix=no
17625 need_version=no
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17631 ;;
17632
17633solaris*)
17634 version_type=linux
17635 need_lib_prefix=no
17636 need_version=no
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 shlibpath_overrides_runpath=yes
17641 hardcode_into_libs=yes
17642 # ldd complains unless libraries are executable
17643 postinstall_cmds='chmod +x $lib'
17644 ;;
17645
17646sunos4*)
17647 version_type=sunos
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17649 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17650 shlibpath_var=LD_LIBRARY_PATH
17651 shlibpath_overrides_runpath=yes
17652 if test "$with_gnu_ld" = yes; then
17653 need_lib_prefix=no
17654 fi
17655 need_version=yes
17656 ;;
17657
17658sysv4 | sysv4.3*)
17659 version_type=linux
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661 soname_spec='${libname}${release}${shared_ext}$major'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 case $host_vendor in
17664 sni)
17665 shlibpath_overrides_runpath=no
17666 need_lib_prefix=no
17667 export_dynamic_flag_spec='${wl}-Blargedynsym'
17668 runpath_var=LD_RUN_PATH
17669 ;;
17670 siemens)
17671 need_lib_prefix=no
17672 ;;
17673 motorola)
17674 need_lib_prefix=no
17675 need_version=no
17676 shlibpath_overrides_runpath=no
17677 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17678 ;;
17679 esac
17680 ;;
17681
17682sysv4*MP*)
17683 if test -d /usr/nec ;then
17684 version_type=linux
17685 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17686 soname_spec='$libname${shared_ext}.$major'
17687 shlibpath_var=LD_LIBRARY_PATH
17688 fi
17689 ;;
17690
17691sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17692 version_type=freebsd-elf
17693 need_lib_prefix=no
17694 need_version=no
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17696 soname_spec='${libname}${release}${shared_ext}$major'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 hardcode_into_libs=yes
17699 if test "$with_gnu_ld" = yes; then
17700 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17701 shlibpath_overrides_runpath=no
17702 else
17703 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17704 shlibpath_overrides_runpath=yes
17705 case $host_os in
17706 sco3.2v5*)
17707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17708 ;;
17709 esac
17710 fi
17711 sys_lib_dlsearch_path_spec='/usr/lib'
17712 ;;
17713
17714uts4*)
17715 version_type=linux
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 shlibpath_var=LD_LIBRARY_PATH
17719 ;;
17720
17721*)
17722 dynamic_linker=no
17723 ;;
17724esac
17725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17726echo "${ECHO_T}$dynamic_linker" >&6
17727test "$dynamic_linker" = no && can_build_shared=no
17728
17729variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17730if test "$GCC" = yes; then
17731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17732fi
17733
17734echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17735echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17736hardcode_action_GCJ=
17737if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17738 test -n "$runpath_var_GCJ" || \
17739 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17740
17741 # We can hardcode non-existant directories.
17742 if test "$hardcode_direct_GCJ" != no &&
17743 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17744 # have to relink, otherwise we might link with an installed library
17745 # when we should be linking with a yet-to-be-installed one
17746 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17747 test "$hardcode_minus_L_GCJ" != no; then
17748 # Linking always hardcodes the temporary library directory.
17749 hardcode_action_GCJ=relink
17750 else
17751 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17752 hardcode_action_GCJ=immediate
17753 fi
17754else
17755 # We cannot hardcode anything, or else we can only hardcode existing
17756 # directories.
17757 hardcode_action_GCJ=unsupported
17758fi
17759echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17760echo "${ECHO_T}$hardcode_action_GCJ" >&6
17761
17762if test "$hardcode_action_GCJ" = relink; then
17763 # Fast installation is not supported
17764 enable_fast_install=no
17765elif test "$shlibpath_overrides_runpath" = yes ||
17766 test "$enable_shared" = no; then
17767 # Fast installation is not necessary
17768 enable_fast_install=needless
17769fi
17770
17771
17772# The else clause should only fire when bootstrapping the
17773# libtool distribution, otherwise you forgot to ship ltmain.sh
17774# with your package, and you will get complaints that there are
17775# no rules to generate ltmain.sh.
17776if test -f "$ltmain"; then
17777 # See if we are running on zsh, and set the options which allow our commands through
17778 # without removal of \ escapes.
17779 if test -n "${ZSH_VERSION+set}" ; then
17780 setopt NO_GLOB_SUBST
17781 fi
17782 # Now quote all the things that may contain metacharacters while being
17783 # careful not to overquote the AC_SUBSTed values. We take copies of the
17784 # variables and quote the copies for generation of the libtool script.
17785 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17786 SED SHELL STRIP \
17787 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17788 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17789 deplibs_check_method reload_flag reload_cmds need_locks \
17790 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17791 lt_cv_sys_global_symbol_to_c_name_address \
17792 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17793 old_postinstall_cmds old_postuninstall_cmds \
17794 compiler_GCJ \
17795 CC_GCJ \
17796 LD_GCJ \
17797 lt_prog_compiler_wl_GCJ \
17798 lt_prog_compiler_pic_GCJ \
17799 lt_prog_compiler_static_GCJ \
17800 lt_prog_compiler_no_builtin_flag_GCJ \
17801 export_dynamic_flag_spec_GCJ \
17802 thread_safe_flag_spec_GCJ \
17803 whole_archive_flag_spec_GCJ \
17804 enable_shared_with_static_runtimes_GCJ \
17805 old_archive_cmds_GCJ \
17806 old_archive_from_new_cmds_GCJ \
17807 predep_objects_GCJ \
17808 postdep_objects_GCJ \
17809 predeps_GCJ \
17810 postdeps_GCJ \
17811 compiler_lib_search_path_GCJ \
17812 archive_cmds_GCJ \
17813 archive_expsym_cmds_GCJ \
17814 postinstall_cmds_GCJ \
17815 postuninstall_cmds_GCJ \
17816 old_archive_from_expsyms_cmds_GCJ \
17817 allow_undefined_flag_GCJ \
17818 no_undefined_flag_GCJ \
17819 export_symbols_cmds_GCJ \
17820 hardcode_libdir_flag_spec_GCJ \
17821 hardcode_libdir_flag_spec_ld_GCJ \
17822 hardcode_libdir_separator_GCJ \
17823 hardcode_automatic_GCJ \
17824 module_cmds_GCJ \
17825 module_expsym_cmds_GCJ \
17826 lt_cv_prog_compiler_c_o_GCJ \
17827 exclude_expsyms_GCJ \
17828 include_expsyms_GCJ; do
17829
17830 case $var in
17831 old_archive_cmds_GCJ | \
17832 old_archive_from_new_cmds_GCJ | \
17833 archive_cmds_GCJ | \
17834 archive_expsym_cmds_GCJ | \
17835 module_cmds_GCJ | \
17836 module_expsym_cmds_GCJ | \
17837 old_archive_from_expsyms_cmds_GCJ | \
17838 export_symbols_cmds_GCJ | \
17839 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17840 postinstall_cmds | postuninstall_cmds | \
17841 old_postinstall_cmds | old_postuninstall_cmds | \
17842 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17843 # Double-quote double-evaled strings.
17844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17845 ;;
17846 *)
17847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17848 ;;
17849 esac
17850 done
17851
17852 case $lt_echo in
17853 *'\$0 --fallback-echo"')
17854 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17855 ;;
17856 esac
17857
17858cfgfile="$ofile"
17859
17860 cat <<__EOF__ >> "$cfgfile"
17861# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17862
17863# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17864
17865# Shell to use when invoking shell scripts.
17866SHELL=$lt_SHELL
17867
17868# Whether or not to build shared libraries.
17869build_libtool_libs=$enable_shared
17870
17871# Whether or not to build static libraries.
17872build_old_libs=$enable_static
17873
17874# Whether or not to add -lc for building shared libraries.
17875build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17876
17877# Whether or not to disallow shared libs when runtime libs are static
17878allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17879
17880# Whether or not to optimize for fast installation.
17881fast_install=$enable_fast_install
17882
17883# The host system.
17884host_alias=$host_alias
17885host=$host
17886host_os=$host_os
17887
17888# The build system.
17889build_alias=$build_alias
17890build=$build
17891build_os=$build_os
17892
17893# An echo program that does not interpret backslashes.
17894echo=$lt_echo
17895
17896# The archiver.
17897AR=$lt_AR
17898AR_FLAGS=$lt_AR_FLAGS
17899
17900# A C compiler.
17901LTCC=$lt_LTCC
17902
17903# LTCC compiler flags.
17904LTCFLAGS=$lt_LTCFLAGS
17905
17906# A language-specific compiler.
17907CC=$lt_compiler_GCJ
17908
17909# Is the compiler the GNU C compiler?
17910with_gcc=$GCC_GCJ
17911
17912gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17913gcc_ver=\`gcc -dumpversion\`
17914
17915# An ERE matcher.
17916EGREP=$lt_EGREP
17917
17918# The linker used to build libraries.
17919LD=$lt_LD_GCJ
17920
17921# Whether we need hard or soft links.
17922LN_S=$lt_LN_S
17923
17924# A BSD-compatible nm program.
17925NM=$lt_NM
17926
17927# A symbol stripping program
17928STRIP=$lt_STRIP
17929
17930# Used to examine libraries when file_magic_cmd begins "file"
17931MAGIC_CMD=$MAGIC_CMD
17932
17933# Used on cygwin: DLL creation program.
17934DLLTOOL="$DLLTOOL"
17935
17936# Used on cygwin: object dumper.
17937OBJDUMP="$OBJDUMP"
17938
17939# Used on cygwin: assembler.
17940AS="$AS"
17941
17942# The name of the directory that contains temporary libtool files.
17943objdir=$objdir
17944
17945# How to create reloadable object files.
17946reload_flag=$lt_reload_flag
17947reload_cmds=$lt_reload_cmds
17948
17949# How to pass a linker flag through the compiler.
17950wl=$lt_lt_prog_compiler_wl_GCJ
17951
17952# Object file suffix (normally "o").
17953objext="$ac_objext"
17954
17955# Old archive suffix (normally "a").
17956libext="$libext"
17957
17958# Shared library suffix (normally ".so").
17959shrext_cmds='$shrext_cmds'
17960
17961# Executable file suffix (normally "").
17962exeext="$exeext"
17963
17964# Additional compiler flags for building library objects.
17965pic_flag=$lt_lt_prog_compiler_pic_GCJ
17966pic_mode=$pic_mode
17967
17968# What is the maximum length of a command?
17969max_cmd_len=$lt_cv_sys_max_cmd_len
17970
17971# Does compiler simultaneously support -c and -o options?
17972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17973
17974# Must we lock files when doing compilation?
17975need_locks=$lt_need_locks
17976
17977# Do we need the lib prefix for modules?
17978need_lib_prefix=$need_lib_prefix
17979
17980# Do we need a version for libraries?
17981need_version=$need_version
17982
17983# Whether dlopen is supported.
17984dlopen_support=$enable_dlopen
17985
17986# Whether dlopen of programs is supported.
17987dlopen_self=$enable_dlopen_self
17988
17989# Whether dlopen of statically linked programs is supported.
17990dlopen_self_static=$enable_dlopen_self_static
17991
17992# Compiler flag to prevent dynamic linking.
17993link_static_flag=$lt_lt_prog_compiler_static_GCJ
17994
17995# Compiler flag to turn off builtin functions.
17996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17997
17998# Compiler flag to allow reflexive dlopens.
17999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18000
18001# Compiler flag to generate shared objects directly from archives.
18002whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18003
18004# Compiler flag to generate thread-safe objects.
18005thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18006
18007# Library versioning type.
18008version_type=$version_type
18009
18010# Format of library name prefix.
18011libname_spec=$lt_libname_spec
18012
18013# List of archive names. First name is the real one, the rest are links.
18014# The last name is the one that the linker finds with -lNAME.
18015library_names_spec=$lt_library_names_spec
18016
18017# The coded name of the library, if different from the real name.
18018soname_spec=$lt_soname_spec
18019
18020# Commands used to build and install an old-style archive.
18021RANLIB=$lt_RANLIB
18022old_archive_cmds=$lt_old_archive_cmds_GCJ
18023old_postinstall_cmds=$lt_old_postinstall_cmds
18024old_postuninstall_cmds=$lt_old_postuninstall_cmds
18025
18026# Create an old-style archive from a shared archive.
18027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18028
18029# Create a temporary old-style archive to link instead of a shared archive.
18030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18031
18032# Commands used to build and install a shared archive.
18033archive_cmds=$lt_archive_cmds_GCJ
18034archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18035postinstall_cmds=$lt_postinstall_cmds
18036postuninstall_cmds=$lt_postuninstall_cmds
18037
18038# Commands used to build a loadable module (assumed same as above if empty)
18039module_cmds=$lt_module_cmds_GCJ
18040module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18041
18042# Commands to strip libraries.
18043old_striplib=$lt_old_striplib
18044striplib=$lt_striplib
18045
18046# Dependencies to place before the objects being linked to create a
18047# shared library.
18048predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18049
18050# Dependencies to place after the objects being linked to create a
18051# shared library.
18052postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18053
18054# Dependencies to place before the objects being linked to create a
18055# shared library.
18056predeps=$lt_predeps_GCJ
18057
18058# Dependencies to place after the objects being linked to create a
18059# shared library.
18060postdeps=$lt_postdeps_GCJ
18061
18062# The library search path used internally by the compiler when linking
18063# a shared library.
18064compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18065
18066# Method to check whether dependent libraries are shared objects.
18067deplibs_check_method=$lt_deplibs_check_method
18068
18069# Command to use when deplibs_check_method == file_magic.
18070file_magic_cmd=$lt_file_magic_cmd
18071
18072# Flag that allows shared libraries with undefined symbols to be built.
18073allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18074
18075# Flag that forces no undefined symbols.
18076no_undefined_flag=$lt_no_undefined_flag_GCJ
18077
18078# Commands used to finish a libtool library installation in a directory.
18079finish_cmds=$lt_finish_cmds
18080
18081# Same as above, but a single script fragment to be evaled but not shown.
18082finish_eval=$lt_finish_eval
18083
18084# Take the output of nm and produce a listing of raw symbols and C names.
18085global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18086
18087# Transform the output of nm in a proper C declaration
18088global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18089
18090# Transform the output of nm in a C name address pair
18091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18092
18093# This is the shared library runtime path variable.
18094runpath_var=$runpath_var
18095
18096# This is the shared library path variable.
18097shlibpath_var=$shlibpath_var
18098
18099# Is shlibpath searched before the hard-coded library search path?
18100shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18101
18102# How to hardcode a shared library path into an executable.
18103hardcode_action=$hardcode_action_GCJ
18104
18105# Whether we should hardcode library paths into libraries.
18106hardcode_into_libs=$hardcode_into_libs
18107
18108# Flag to hardcode \$libdir into a binary during linking.
18109# This must work even if \$libdir does not exist.
18110hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18111
18112# If ld is used when linking, flag to hardcode \$libdir into
18113# a binary during linking. This must work even if \$libdir does
18114# not exist.
18115hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18116
18117# Whether we need a single -rpath flag with a separated argument.
18118hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18119
18120# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18121# resulting binary.
18122hardcode_direct=$hardcode_direct_GCJ
18123
18124# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18125# resulting binary.
18126hardcode_minus_L=$hardcode_minus_L_GCJ
18127
18128# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18129# the resulting binary.
18130hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18131
18132# Set to yes if building a shared library automatically hardcodes DIR into the library
18133# and all subsequent libraries and executables linked against it.
18134hardcode_automatic=$hardcode_automatic_GCJ
18135
18136# Variables whose values should be saved in libtool wrapper scripts and
18137# restored at relink time.
18138variables_saved_for_relink="$variables_saved_for_relink"
18139
18140# Whether libtool must link a program against all its dependency libraries.
18141link_all_deplibs=$link_all_deplibs_GCJ
18142
18143# Compile-time system search path for libraries
18144sys_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"\`
18145
18146# Run-time system search path for libraries
18147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18148
18149# Fix the shell variable \$srcfile for the compiler.
18150fix_srcfile_path="$fix_srcfile_path_GCJ"
18151
18152# Set to yes if exported symbols are required.
18153always_export_symbols=$always_export_symbols_GCJ
18154
18155# The commands to list exported symbols.
18156export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18157
18158# The commands to extract the exported symbol list from a shared archive.
18159extract_expsyms_cmds=$lt_extract_expsyms_cmds
18160
18161# Symbols that should not be listed in the preloaded symbols.
18162exclude_expsyms=$lt_exclude_expsyms_GCJ
18163
18164# Symbols that must always be exported.
18165include_expsyms=$lt_include_expsyms_GCJ
18166
18167# ### END LIBTOOL TAG CONFIG: $tagname
18168
18169__EOF__
18170
18171
18172else
18173 # If there is no Makefile yet, we rely on a make rule to execute
18174 # `config.status --recheck' to rerun these tests and create the
18175 # libtool script then.
18176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18177 if test -f "$ltmain_in"; then
18178 test -f Makefile && make "$ltmain"
18179 fi
18180fi
18181
18182
18183ac_ext=c
18184ac_cpp='$CPP $CPPFLAGS'
18185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18187ac_compiler_gnu=$ac_cv_c_compiler_gnu
18188
18189CC="$lt_save_CC"
18190
18191 else
18192 tagname=""
18193 fi
18194 ;;
18195
18196 RC)
18197
18198
18199
18200# Source file extension for RC test sources.
18201ac_ext=rc
18202
18203# Object file extension for compiled RC test sources.
18204objext=o
18205objext_RC=$objext
18206
18207# Code to be used in simple compile tests
18208lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18209
18210# Code to be used in simple link tests
18211lt_simple_link_test_code="$lt_simple_compile_test_code"
18212
18213# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18214
18215# If no C compiler was specified, use CC.
18216LTCC=${LTCC-"$CC"}
18217
18218# If no C compiler flags were specified, use CFLAGS.
18219LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18220
18221# Allow CC to be a program name with arguments.
18222compiler=$CC
18223
18224
18225# save warnings/boilerplate of simple test code
18226ac_outfile=conftest.$ac_objext
18227printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18228eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18229_lt_compiler_boilerplate=`cat conftest.err`
18230$rm conftest*
18231
18232ac_outfile=conftest.$ac_objext
18233printf "$lt_simple_link_test_code" >conftest.$ac_ext
18234eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18235_lt_linker_boilerplate=`cat conftest.err`
18236$rm conftest*
18237
18238
18239# Allow CC to be a program name with arguments.
18240lt_save_CC="$CC"
18241CC=${RC-"windres"}
18242compiler=$CC
18243compiler_RC=$CC
18244for cc_temp in $compiler""; do
18245 case $cc_temp in
18246 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18247 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18248 \-*) ;;
18249 *) break;;
18250 esac
18251done
18252cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18253
18254lt_cv_prog_compiler_c_o_RC=yes
18255
18256# The else clause should only fire when bootstrapping the
18257# libtool distribution, otherwise you forgot to ship ltmain.sh
18258# with your package, and you will get complaints that there are
18259# no rules to generate ltmain.sh.
18260if test -f "$ltmain"; then
18261 # See if we are running on zsh, and set the options which allow our commands through
18262 # without removal of \ escapes.
18263 if test -n "${ZSH_VERSION+set}" ; then
18264 setopt NO_GLOB_SUBST
18265 fi
18266 # Now quote all the things that may contain metacharacters while being
18267 # careful not to overquote the AC_SUBSTed values. We take copies of the
18268 # variables and quote the copies for generation of the libtool script.
18269 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18270 SED SHELL STRIP \
18271 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18272 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18273 deplibs_check_method reload_flag reload_cmds need_locks \
18274 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18275 lt_cv_sys_global_symbol_to_c_name_address \
18276 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18277 old_postinstall_cmds old_postuninstall_cmds \
18278 compiler_RC \
18279 CC_RC \
18280 LD_RC \
18281 lt_prog_compiler_wl_RC \
18282 lt_prog_compiler_pic_RC \
18283 lt_prog_compiler_static_RC \
18284 lt_prog_compiler_no_builtin_flag_RC \
18285 export_dynamic_flag_spec_RC \
18286 thread_safe_flag_spec_RC \
18287 whole_archive_flag_spec_RC \
18288 enable_shared_with_static_runtimes_RC \
18289 old_archive_cmds_RC \
18290 old_archive_from_new_cmds_RC \
18291 predep_objects_RC \
18292 postdep_objects_RC \
18293 predeps_RC \
18294 postdeps_RC \
18295 compiler_lib_search_path_RC \
18296 archive_cmds_RC \
18297 archive_expsym_cmds_RC \
18298 postinstall_cmds_RC \
18299 postuninstall_cmds_RC \
18300 old_archive_from_expsyms_cmds_RC \
18301 allow_undefined_flag_RC \
18302 no_undefined_flag_RC \
18303 export_symbols_cmds_RC \
18304 hardcode_libdir_flag_spec_RC \
18305 hardcode_libdir_flag_spec_ld_RC \
18306 hardcode_libdir_separator_RC \
18307 hardcode_automatic_RC \
18308 module_cmds_RC \
18309 module_expsym_cmds_RC \
18310 lt_cv_prog_compiler_c_o_RC \
18311 exclude_expsyms_RC \
18312 include_expsyms_RC; do
18313
18314 case $var in
18315 old_archive_cmds_RC | \
18316 old_archive_from_new_cmds_RC | \
18317 archive_cmds_RC | \
18318 archive_expsym_cmds_RC | \
18319 module_cmds_RC | \
18320 module_expsym_cmds_RC | \
18321 old_archive_from_expsyms_cmds_RC | \
18322 export_symbols_cmds_RC | \
18323 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18324 postinstall_cmds | postuninstall_cmds | \
18325 old_postinstall_cmds | old_postuninstall_cmds | \
18326 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18327 # Double-quote double-evaled strings.
18328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18329 ;;
18330 *)
18331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18332 ;;
18333 esac
18334 done
18335
18336 case $lt_echo in
18337 *'\$0 --fallback-echo"')
18338 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18339 ;;
18340 esac
18341
18342cfgfile="$ofile"
18343
18344 cat <<__EOF__ >> "$cfgfile"
18345# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18346
18347# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18348
18349# Shell to use when invoking shell scripts.
18350SHELL=$lt_SHELL
18351
18352# Whether or not to build shared libraries.
18353build_libtool_libs=$enable_shared
18354
18355# Whether or not to build static libraries.
18356build_old_libs=$enable_static
18357
18358# Whether or not to add -lc for building shared libraries.
18359build_libtool_need_lc=$archive_cmds_need_lc_RC
18360
18361# Whether or not to disallow shared libs when runtime libs are static
18362allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18363
18364# Whether or not to optimize for fast installation.
18365fast_install=$enable_fast_install
18366
18367# The host system.
18368host_alias=$host_alias
18369host=$host
18370host_os=$host_os
18371
18372# The build system.
18373build_alias=$build_alias
18374build=$build
18375build_os=$build_os
18376
18377# An echo program that does not interpret backslashes.
18378echo=$lt_echo
18379
18380# The archiver.
18381AR=$lt_AR
18382AR_FLAGS=$lt_AR_FLAGS
18383
18384# A C compiler.
18385LTCC=$lt_LTCC
18386
18387# LTCC compiler flags.
18388LTCFLAGS=$lt_LTCFLAGS
18389
18390# A language-specific compiler.
18391CC=$lt_compiler_RC
18392
18393# Is the compiler the GNU C compiler?
18394with_gcc=$GCC_RC
18395
18396gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18397gcc_ver=\`gcc -dumpversion\`
18398
18399# An ERE matcher.
18400EGREP=$lt_EGREP
18401
18402# The linker used to build libraries.
18403LD=$lt_LD_RC
18404
18405# Whether we need hard or soft links.
18406LN_S=$lt_LN_S
18407
18408# A BSD-compatible nm program.
18409NM=$lt_NM
18410
18411# A symbol stripping program
18412STRIP=$lt_STRIP
18413
18414# Used to examine libraries when file_magic_cmd begins "file"
18415MAGIC_CMD=$MAGIC_CMD
18416
18417# Used on cygwin: DLL creation program.
18418DLLTOOL="$DLLTOOL"
18419
18420# Used on cygwin: object dumper.
18421OBJDUMP="$OBJDUMP"
18422
18423# Used on cygwin: assembler.
18424AS="$AS"
18425
18426# The name of the directory that contains temporary libtool files.
18427objdir=$objdir
18428
18429# How to create reloadable object files.
18430reload_flag=$lt_reload_flag
18431reload_cmds=$lt_reload_cmds
18432
18433# How to pass a linker flag through the compiler.
18434wl=$lt_lt_prog_compiler_wl_RC
18435
18436# Object file suffix (normally "o").
18437objext="$ac_objext"
18438
18439# Old archive suffix (normally "a").
18440libext="$libext"
18441
18442# Shared library suffix (normally ".so").
18443shrext_cmds='$shrext_cmds'
18444
18445# Executable file suffix (normally "").
18446exeext="$exeext"
18447
18448# Additional compiler flags for building library objects.
18449pic_flag=$lt_lt_prog_compiler_pic_RC
18450pic_mode=$pic_mode
18451
18452# What is the maximum length of a command?
18453max_cmd_len=$lt_cv_sys_max_cmd_len
18454
18455# Does compiler simultaneously support -c and -o options?
18456compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18457
18458# Must we lock files when doing compilation?
18459need_locks=$lt_need_locks
18460
18461# Do we need the lib prefix for modules?
18462need_lib_prefix=$need_lib_prefix
18463
18464# Do we need a version for libraries?
18465need_version=$need_version
18466
18467# Whether dlopen is supported.
18468dlopen_support=$enable_dlopen
18469
18470# Whether dlopen of programs is supported.
18471dlopen_self=$enable_dlopen_self
18472
18473# Whether dlopen of statically linked programs is supported.
18474dlopen_self_static=$enable_dlopen_self_static
18475
18476# Compiler flag to prevent dynamic linking.
18477link_static_flag=$lt_lt_prog_compiler_static_RC
18478
18479# Compiler flag to turn off builtin functions.
18480no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18481
18482# Compiler flag to allow reflexive dlopens.
18483export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18484
18485# Compiler flag to generate shared objects directly from archives.
18486whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18487
18488# Compiler flag to generate thread-safe objects.
18489thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18490
18491# Library versioning type.
18492version_type=$version_type
18493
18494# Format of library name prefix.
18495libname_spec=$lt_libname_spec
18496
18497# List of archive names. First name is the real one, the rest are links.
18498# The last name is the one that the linker finds with -lNAME.
18499library_names_spec=$lt_library_names_spec
18500
18501# The coded name of the library, if different from the real name.
18502soname_spec=$lt_soname_spec
18503
18504# Commands used to build and install an old-style archive.
18505RANLIB=$lt_RANLIB
18506old_archive_cmds=$lt_old_archive_cmds_RC
18507old_postinstall_cmds=$lt_old_postinstall_cmds
18508old_postuninstall_cmds=$lt_old_postuninstall_cmds
18509
18510# Create an old-style archive from a shared archive.
18511old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18512
18513# Create a temporary old-style archive to link instead of a shared archive.
18514old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18515
18516# Commands used to build and install a shared archive.
18517archive_cmds=$lt_archive_cmds_RC
18518archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18519postinstall_cmds=$lt_postinstall_cmds
18520postuninstall_cmds=$lt_postuninstall_cmds
18521
18522# Commands used to build a loadable module (assumed same as above if empty)
18523module_cmds=$lt_module_cmds_RC
18524module_expsym_cmds=$lt_module_expsym_cmds_RC
18525
18526# Commands to strip libraries.
18527old_striplib=$lt_old_striplib
18528striplib=$lt_striplib
18529
18530# Dependencies to place before the objects being linked to create a
18531# shared library.
18532predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18533
18534# Dependencies to place after the objects being linked to create a
18535# shared library.
18536postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18537
18538# Dependencies to place before the objects being linked to create a
18539# shared library.
18540predeps=$lt_predeps_RC
18541
18542# Dependencies to place after the objects being linked to create a
18543# shared library.
18544postdeps=$lt_postdeps_RC
18545
18546# The library search path used internally by the compiler when linking
18547# a shared library.
18548compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18549
18550# Method to check whether dependent libraries are shared objects.
18551deplibs_check_method=$lt_deplibs_check_method
18552
18553# Command to use when deplibs_check_method == file_magic.
18554file_magic_cmd=$lt_file_magic_cmd
18555
18556# Flag that allows shared libraries with undefined symbols to be built.
18557allow_undefined_flag=$lt_allow_undefined_flag_RC
18558
18559# Flag that forces no undefined symbols.
18560no_undefined_flag=$lt_no_undefined_flag_RC
18561
18562# Commands used to finish a libtool library installation in a directory.
18563finish_cmds=$lt_finish_cmds
18564
18565# Same as above, but a single script fragment to be evaled but not shown.
18566finish_eval=$lt_finish_eval
18567
18568# Take the output of nm and produce a listing of raw symbols and C names.
18569global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18570
18571# Transform the output of nm in a proper C declaration
18572global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18573
18574# Transform the output of nm in a C name address pair
18575global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18576
18577# This is the shared library runtime path variable.
18578runpath_var=$runpath_var
18579
18580# This is the shared library path variable.
18581shlibpath_var=$shlibpath_var
18582
18583# Is shlibpath searched before the hard-coded library search path?
18584shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18585
18586# How to hardcode a shared library path into an executable.
18587hardcode_action=$hardcode_action_RC
18588
18589# Whether we should hardcode library paths into libraries.
18590hardcode_into_libs=$hardcode_into_libs
18591
18592# Flag to hardcode \$libdir into a binary during linking.
18593# This must work even if \$libdir does not exist.
18594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18595
18596# If ld is used when linking, flag to hardcode \$libdir into
18597# a binary during linking. This must work even if \$libdir does
18598# not exist.
18599hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18600
18601# Whether we need a single -rpath flag with a separated argument.
18602hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18603
18604# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18605# resulting binary.
18606hardcode_direct=$hardcode_direct_RC
18607
18608# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18609# resulting binary.
18610hardcode_minus_L=$hardcode_minus_L_RC
18611
18612# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18613# the resulting binary.
18614hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18615
18616# Set to yes if building a shared library automatically hardcodes DIR into the library
18617# and all subsequent libraries and executables linked against it.
18618hardcode_automatic=$hardcode_automatic_RC
18619
18620# Variables whose values should be saved in libtool wrapper scripts and
18621# restored at relink time.
18622variables_saved_for_relink="$variables_saved_for_relink"
18623
18624# Whether libtool must link a program against all its dependency libraries.
18625link_all_deplibs=$link_all_deplibs_RC
18626
18627# Compile-time system search path for libraries
18628sys_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"\`
18629
18630# Run-time system search path for libraries
18631sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18632
18633# Fix the shell variable \$srcfile for the compiler.
18634fix_srcfile_path="$fix_srcfile_path_RC"
18635
18636# Set to yes if exported symbols are required.
18637always_export_symbols=$always_export_symbols_RC
18638
18639# The commands to list exported symbols.
18640export_symbols_cmds=$lt_export_symbols_cmds_RC
18641
18642# The commands to extract the exported symbol list from a shared archive.
18643extract_expsyms_cmds=$lt_extract_expsyms_cmds
18644
18645# Symbols that should not be listed in the preloaded symbols.
18646exclude_expsyms=$lt_exclude_expsyms_RC
18647
18648# Symbols that must always be exported.
18649include_expsyms=$lt_include_expsyms_RC
18650
18651# ### END LIBTOOL TAG CONFIG: $tagname
18652
18653__EOF__
18654
18655
18656else
18657 # If there is no Makefile yet, we rely on a make rule to execute
18658 # `config.status --recheck' to rerun these tests and create the
18659 # libtool script then.
18660 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18661 if test -f "$ltmain_in"; then
18662 test -f Makefile && make "$ltmain"
18663 fi
18664fi
18665
18666
18667ac_ext=c
18668ac_cpp='$CPP $CPPFLAGS'
18669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18671ac_compiler_gnu=$ac_cv_c_compiler_gnu
18672
18673CC="$lt_save_CC"
18674
18675 ;;
18676
18677 *)
18678 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18679echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18680 { (exit 1); exit 1; }; }
18681 ;;
18682 esac
18683
18684 # Append the new tag name to the list of available tags.
18685 if test -n "$tagname" ; then
18686 available_tags="$available_tags $tagname"
18687 fi
18688 fi
18689 done
18690 IFS="$lt_save_ifs"
18691
18692 # Now substitute the updated list of available tags.
18693 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18694 mv "${ofile}T" "$ofile"
18695 chmod +x "$ofile"
18696 else
18697 rm -f "${ofile}T"
18698 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18699echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18700 { (exit 1); exit 1; }; }
18701 fi
18702fi
18703
18704
18705
18706# This can be used to rebuild libtool when needed
18707LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18708
18709# Always use our own libtool.
18710LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18711
18712# Prevent multiple expansion
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733for ac_prog in perl5 perl
18734do
18735 # Extract the first word of "$ac_prog", so it can be a program name with args.
18736set dummy $ac_prog; ac_word=$2
18737echo "$as_me:$LINENO: checking for $ac_word" >&5
18738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18739if test "${ac_cv_path_PERL+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741else
18742 case $PERL in
18743 [\\/]* | ?:[\\/]*)
18744 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18745 ;;
18746 *)
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748for as_dir in $LPATH
18749do
18750 IFS=$as_save_IFS
18751 test -z "$as_dir" && as_dir=.
18752 for ac_exec_ext in '' $ac_executable_extensions; do
18753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18756 break 2
18757 fi
18758done
18759done
18760
18761 ;;
18762esac
18763fi
18764PERL=$ac_cv_path_PERL
18765
18766if test -n "$PERL"; then
18767 echo "$as_me:$LINENO: result: $PERL" >&5
18768echo "${ECHO_T}$PERL" >&6
18769else
18770 echo "$as_me:$LINENO: result: no" >&5
18771echo "${ECHO_T}no" >&6
18772fi
18773
18774 test -n "$PERL" && break
18775done
18776test -n "$PERL" || PERL="perl"
18777
18778
18779if test "$PERL" = "perl"
18780then
18781 { { echo "$as_me:$LINENO: error: Perl not found." >&5
18782echo "$as_me: error: Perl not found." >&2;}
18783 { (exit 1); exit 1; }; }
18784fi
18785
18786if test "$GCC" = "yes"
18787then
18788 CFLAGS="$CFLAGS -Wall"
18789fi
18790
18791CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
18792
18793
18794
18795# Check whether --with-userdb or --without-userdb was given.
18796if test "${with_userdb+set}" = set; then
18797 withval="$with_userdb"
18798 userdb="$withval"
18799else
18800 userdb="/etc/userdb"
18801fi;
18802
18803USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
18804
18805
18806
18807# Check whether --with-userdbmandir or --without-userdbmandir was given.
18808if test "${with_userdbmandir+set}" = set; then
18809 withval="$with_userdbmandir"
18810 mandir="$withval"
18811fi;
18812
18813
18814# Check whether --with-userdbtmpdir or --without-userdbtmpdir was given.
18815if test "${with_userdbtmpdir+set}" = set; then
18816 withval="$with_userdbtmpdir"
18817 tmpdir="$withval"
18818else
18819 tmpdir=""
18820fi;
18821
18822
18823
18824if test "$tmpdir" = ""
18825then
18826 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
18827fi
18828
18829
18830
18831
18832
18833
18834
18835# Check whether --with-makedatprog or --without-makedatprog was given.
18836if test "${with_makedatprog+set}" = set; then
18837 withval="$with_makedatprog"
18838 makedat="$withval"
18839else
18840 makedat="$bindir/makedat"
18841fi;
18842
18843
18844if test -d ${srcdir}/../md5
18845then
18846
18847cat >>confdefs.h <<_ACEOF
18848#define HAVE_MD5 1
18849_ACEOF
18850
18851 MD5LIB=../md5/libmd5.la
18852else
18853 MD5LIB=""
18854fi
18855
18856
18857if test -d ${srcdir}/../sha1
18858then
18859 SHA1LIB=../sha1/libsha1.la
18860else
18861 SHA1LIB=""
18862fi
18863
18864
18865if test -d ${srcdir}/../libhmac
18866then
18867
18868cat >>confdefs.h <<_ACEOF
18869#define HAVE_HMAC 1
18870_ACEOF
18871
18872 HMACLIB=../libhmac/libhmac.la
18873else
18874 HMACLIB=""
18875fi
18876
18877
18878echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18879echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18880if test "${ac_cv_header_stdc+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882else
18883 cat >conftest.$ac_ext <<_ACEOF
18884/* confdefs.h. */
18885_ACEOF
18886cat confdefs.h >>conftest.$ac_ext
18887cat >>conftest.$ac_ext <<_ACEOF
18888/* end confdefs.h. */
18889#include <stdlib.h>
18890#include <stdarg.h>
18891#include <string.h>
18892#include <float.h>
18893
18894int
18895main ()
18896{
18897
18898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext
18903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18904 (eval $ac_compile) 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag"
18912 || test ! -s conftest.err'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; } &&
18918 { ac_try='test -s conftest.$ac_objext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_header_stdc=yes
18925else
18926 echo "$as_me: failed program was:" >&5
18927sed 's/^/| /' conftest.$ac_ext >&5
18928
18929ac_cv_header_stdc=no
18930fi
18931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18932
18933if test $ac_cv_header_stdc = yes; then
18934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18935 cat >conftest.$ac_ext <<_ACEOF
18936/* confdefs.h. */
18937_ACEOF
18938cat confdefs.h >>conftest.$ac_ext
18939cat >>conftest.$ac_ext <<_ACEOF
18940/* end confdefs.h. */
18941#include <string.h>
18942
18943_ACEOF
18944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18945 $EGREP "memchr" >/dev/null 2>&1; then
18946 :
18947else
18948 ac_cv_header_stdc=no
18949fi
18950rm -f conftest*
18951
18952fi
18953
18954if test $ac_cv_header_stdc = yes; then
18955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962#include <stdlib.h>
18963
18964_ACEOF
18965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18966 $EGREP "free" >/dev/null 2>&1; then
18967 :
18968else
18969 ac_cv_header_stdc=no
18970fi
18971rm -f conftest*
18972
18973fi
18974
18975if test $ac_cv_header_stdc = yes; then
18976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18977 if test "$cross_compiling" = yes; then
18978 :
18979else
18980 cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986#include <ctype.h>
18987#if ((' ' & 0x0FF) == 0x020)
18988# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18989# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18990#else
18991# define ISLOWER(c) \
18992 (('a' <= (c) && (c) <= 'i') \
18993 || ('j' <= (c) && (c) <= 'r') \
18994 || ('s' <= (c) && (c) <= 'z'))
18995# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18996#endif
18997
18998#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18999int
19000main ()
19001{
19002 int i;
19003 for (i = 0; i < 256; i++)
19004 if (XOR (islower (i), ISLOWER (i))
19005 || toupper (i) != TOUPPER (i))
19006 exit(2);
19007 exit (0);
19008}
19009_ACEOF
19010rm -f conftest$ac_exeext
19011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 :
19022else
19023 echo "$as_me: program exited with status $ac_status" >&5
19024echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027( exit $ac_status )
19028ac_cv_header_stdc=no
19029fi
19030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19031fi
19032fi
19033fi
19034echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19035echo "${ECHO_T}$ac_cv_header_stdc" >&6
19036if test $ac_cv_header_stdc = yes; then
19037
19038cat >>confdefs.h <<\_ACEOF
19039#define STDC_HEADERS 1
19040_ACEOF
19041
19042fi
19043
19044
19045
19046
19047
19048
19049
19050for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
19051do
19052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19053if eval "test \"\${$as_ac_Header+set}\" = set"; then
19054 echo "$as_me:$LINENO: checking for $ac_header" >&5
19055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058fi
19059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19061else
19062 # Is the header compilable?
19063echo "$as_me:$LINENO: checking $ac_header usability" >&5
19064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19065cat >conftest.$ac_ext <<_ACEOF
19066/* confdefs.h. */
19067_ACEOF
19068cat confdefs.h >>conftest.$ac_ext
19069cat >>conftest.$ac_ext <<_ACEOF
19070/* end confdefs.h. */
19071$ac_includes_default
19072#include <$ac_header>
19073_ACEOF
19074rm -f conftest.$ac_objext
19075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -z "$ac_c_werror_flag"
19084 || test ! -s conftest.err'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_header_compiler=yes
19097else
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101ac_header_compiler=no
19102fi
19103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105echo "${ECHO_T}$ac_header_compiler" >&6
19106
19107# Is the header present?
19108echo "$as_me:$LINENO: checking $ac_header presence" >&5
19109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19110cat >conftest.$ac_ext <<_ACEOF
19111/* confdefs.h. */
19112_ACEOF
19113cat confdefs.h >>conftest.$ac_ext
19114cat >>conftest.$ac_ext <<_ACEOF
19115/* end confdefs.h. */
19116#include <$ac_header>
19117_ACEOF
19118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19120 ac_status=$?
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } >/dev/null; then
19126 if test -s conftest.err; then
19127 ac_cpp_err=$ac_c_preproc_warn_flag
19128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19129 else
19130 ac_cpp_err=
19131 fi
19132else
19133 ac_cpp_err=yes
19134fi
19135if test -z "$ac_cpp_err"; then
19136 ac_header_preproc=yes
19137else
19138 echo "$as_me: failed program was:" >&5
19139sed 's/^/| /' conftest.$ac_ext >&5
19140
19141 ac_header_preproc=no
19142fi
19143rm -f conftest.err conftest.$ac_ext
19144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145echo "${ECHO_T}$ac_header_preproc" >&6
19146
19147# So? What about this header?
19148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19149 yes:no: )
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19154 ac_header_preproc=yes
19155 ;;
19156 no:yes:* )
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19169 (
19170 cat <<\_ASBOX
19171## -------------------------------------------------- ##
19172## Report this to courier-users@lists.sourceforge.net ##
19173## -------------------------------------------------- ##
19174_ASBOX
19175 ) |
19176 sed "s/^/$as_me: WARNING: /" >&2
19177 ;;
19178esac
19179echo "$as_me:$LINENO: checking for $ac_header" >&5
19180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184 eval "$as_ac_Header=\$ac_header_preproc"
19185fi
19186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19188
19189fi
19190if test `eval echo '${'$as_ac_Header'}'` = yes; then
19191 cat >>confdefs.h <<_ACEOF
19192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19193_ACEOF
19194
19195fi
19196
19197done
19198
19199echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19200echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19201if test "${ac_cv_header_time+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203else
19204 cat >conftest.$ac_ext <<_ACEOF
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
19210#include <sys/types.h>
19211#include <sys/time.h>
19212#include <time.h>
19213
19214int
19215main ()
19216{
19217if ((struct tm *) 0)
19218return 0;
19219 ;
19220 return 0;
19221}
19222_ACEOF
19223rm -f conftest.$ac_objext
19224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19225 (eval $ac_compile) 2>conftest.er1
19226 ac_status=$?
19227 grep -v '^ *+' conftest.er1 >conftest.err
19228 rm -f conftest.er1
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
19232 { ac_try='test -z "$ac_c_werror_flag"
19233 || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest.$ac_objext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_header_time=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250ac_cv_header_time=no
19251fi
19252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19253fi
19254echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19255echo "${ECHO_T}$ac_cv_header_time" >&6
19256if test $ac_cv_header_time = yes; then
19257
19258cat >>confdefs.h <<\_ACEOF
19259#define TIME_WITH_SYS_TIME 1
19260_ACEOF
19261
19262fi
19263
19264
19265echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19266echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19267if test "${ac_cv_c_const+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269else
19270 cat >conftest.$ac_ext <<_ACEOF
19271/* confdefs.h. */
19272_ACEOF
19273cat confdefs.h >>conftest.$ac_ext
19274cat >>conftest.$ac_ext <<_ACEOF
19275/* end confdefs.h. */
19276
19277int
19278main ()
19279{
19280/* FIXME: Include the comments suggested by Paul. */
19281#ifndef __cplusplus
19282 /* Ultrix mips cc rejects this. */
19283 typedef int charset[2];
19284 const charset x;
19285 /* SunOS 4.1.1 cc rejects this. */
19286 char const *const *ccp;
19287 char **p;
19288 /* NEC SVR4.0.2 mips cc rejects this. */
19289 struct point {int x, y;};
19290 static struct point const zero = {0,0};
19291 /* AIX XL C 1.02.0.0 rejects this.
19292 It does not let you subtract one const X* pointer from another in
19293 an arm of an if-expression whose if-part is not a constant
19294 expression */
19295 const char *g = "string";
19296 ccp = &g + (g ? g-g : 0);
19297 /* HPUX 7.0 cc rejects these. */
19298 ++ccp;
19299 p = (char**) ccp;
19300 ccp = (char const *const *) p;
19301 { /* SCO 3.2v4 cc rejects this. */
19302 char *t;
19303 char const *s = 0 ? (char *) 0 : (char const *) 0;
19304
19305 *t++ = 0;
19306 }
19307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19308 int x[] = {25, 17};
19309 const int *foo = &x[0];
19310 ++foo;
19311 }
19312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19313 typedef const int *iptr;
19314 iptr p = 0;
19315 ++p;
19316 }
19317 { /* AIX XL C 1.02.0.0 rejects this saying
19318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19319 struct s { int j; const int *ap[3]; };
19320 struct s *b; b->j = 5;
19321 }
19322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19323 const int foo = 10;
19324 }
19325#endif
19326
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331rm -f conftest.$ac_objext
19332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333 (eval $ac_compile) 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_c_werror_flag"
19341 || test ! -s conftest.err'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_c_const=yes
19354else
19355 echo "$as_me: failed program was:" >&5
19356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358ac_cv_c_const=no
19359fi
19360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19361fi
19362echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19363echo "${ECHO_T}$ac_cv_c_const" >&6
19364if test $ac_cv_c_const = no; then
19365
19366cat >>confdefs.h <<\_ACEOF
19367#define const
19368_ACEOF
19369
19370fi
19371
19372echo "$as_me:$LINENO: checking for pid_t" >&5
19373echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19374if test "${ac_cv_type_pid_t+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19376else
19377 cat >conftest.$ac_ext <<_ACEOF
19378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
19383$ac_includes_default
19384int
19385main ()
19386{
19387if ((pid_t *) 0)
19388 return 0;
19389if (sizeof (pid_t))
19390 return 0;
19391 ;
19392 return 0;
19393}
19394_ACEOF
19395rm -f conftest.$ac_objext
19396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19397 (eval $ac_compile) 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest.$ac_objext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_type_pid_t=yes
19418else
19419 echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422ac_cv_type_pid_t=no
19423fi
19424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19425fi
19426echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19427echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19428if test $ac_cv_type_pid_t = yes; then
19429 :
19430else
19431
19432cat >>confdefs.h <<_ACEOF
19433#define pid_t int
19434_ACEOF
19435
19436fi
19437
19438echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19439echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
19440if test "${ac_cv_type_uid_t+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443 cat >conftest.$ac_ext <<_ACEOF
19444/* confdefs.h. */
19445_ACEOF
19446cat confdefs.h >>conftest.$ac_ext
19447cat >>conftest.$ac_ext <<_ACEOF
19448/* end confdefs.h. */
19449#include <sys/types.h>
19450
19451_ACEOF
19452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19453 $EGREP "uid_t" >/dev/null 2>&1; then
19454 ac_cv_type_uid_t=yes
19455else
19456 ac_cv_type_uid_t=no
19457fi
19458rm -f conftest*
19459
19460fi
19461echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19462echo "${ECHO_T}$ac_cv_type_uid_t" >&6
19463if test $ac_cv_type_uid_t = no; then
19464
19465cat >>confdefs.h <<\_ACEOF
19466#define uid_t int
19467_ACEOF
19468
19469
19470cat >>confdefs.h <<\_ACEOF
19471#define gid_t int
19472_ACEOF
19473
19474fi
19475
19476echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19477echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19478if test "${ac_cv_type_signal+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480else
19481 cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h. */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
19486/* end confdefs.h. */
19487#include <sys/types.h>
19488#include <signal.h>
19489#ifdef signal
19490# undef signal
19491#endif
19492#ifdef __cplusplus
19493extern "C" void (*signal (int, void (*)(int)))(int);
19494#else
19495void (*signal ()) ();
19496#endif
19497
19498int
19499main ()
19500{
19501int i;
19502 ;
19503 return 0;
19504}
19505_ACEOF
19506rm -f conftest.$ac_objext
19507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19508 (eval $ac_compile) 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_c_werror_flag"
19516 || test ! -s conftest.err'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_type_signal=void
19529else
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533ac_cv_type_signal=int
19534fi
19535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19536fi
19537echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19538echo "${ECHO_T}$ac_cv_type_signal" >&6
19539
19540cat >>confdefs.h <<_ACEOF
19541#define RETSIGTYPE $ac_cv_type_signal
19542_ACEOF
19543
19544
19545
19546
19547echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19548echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19549if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551else
19552 ac_check_lib_save_LIBS=$LIBS
19553LIBS="-lcrypt $LIBS"
19554cat >conftest.$ac_ext <<_ACEOF
19555/* confdefs.h. */
19556_ACEOF
19557cat confdefs.h >>conftest.$ac_ext
19558cat >>conftest.$ac_ext <<_ACEOF
19559/* end confdefs.h. */
19560
19561/* Override any gcc2 internal prototype to avoid an error. */
19562#ifdef __cplusplus
19563extern "C"
19564#endif
19565/* We use char because int might match the return type of a gcc2
19566 builtin and then its argument prototype would still apply. */
19567char crypt ();
19568int
19569main ()
19570{
19571crypt ();
19572 ;
19573 return 0;
19574}
19575_ACEOF
19576rm -f conftest.$ac_objext conftest$ac_exeext
19577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
19585 { ac_try='test -z "$ac_c_werror_flag"
19586 || test ! -s conftest.err'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest$ac_exeext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_cv_lib_crypt_crypt=yes
19599else
19600 echo "$as_me: failed program was:" >&5
19601sed 's/^/| /' conftest.$ac_ext >&5
19602
19603ac_cv_lib_crypt_crypt=no
19604fi
19605rm -f conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19607LIBS=$ac_check_lib_save_LIBS
19608fi
19609echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19610echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19611if test $ac_cv_lib_crypt_crypt = yes; then
19612 CRYPTLIBS="-lcrypt"
19613fi
19614
19615saveLIBS="$LIBS"
19616LIBS="$CRYPTLIBS $LIBS"
19617echo "$as_me:$LINENO: checking for crypt" >&5
19618echo $ECHO_N "checking for crypt... $ECHO_C" >&6
19619if test "${ac_cv_func_crypt+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622 cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h. */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h. */
19628/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
19629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19630#define crypt innocuous_crypt
19631
19632/* System header to define __stub macros and hopefully few prototypes,
19633 which can conflict with char crypt (); below.
19634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19635 <limits.h> exists even on freestanding compilers. */
19636
19637#ifdef __STDC__
19638# include <limits.h>
19639#else
19640# include <assert.h>
19641#endif
19642
19643#undef crypt
19644
19645/* Override any gcc2 internal prototype to avoid an error. */
19646#ifdef __cplusplus
19647extern "C"
19648{
19649#endif
19650/* We use char because int might match the return type of a gcc2
19651 builtin and then its argument prototype would still apply. */
19652char crypt ();
19653/* The GNU C library defines this for functions which it implements
19654 to always fail with ENOSYS. Some functions are actually named
19655 something starting with __ and the normal name is an alias. */
19656#if defined (__stub_crypt) || defined (__stub___crypt)
19657choke me
19658#else
19659char (*f) () = crypt;
19660#endif
19661#ifdef __cplusplus
19662}
19663#endif
19664
19665int
19666main ()
19667{
19668return f != crypt;
19669 ;
19670 return 0;
19671}
19672_ACEOF
19673rm -f conftest.$ac_objext conftest$ac_exeext
19674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19675 (eval $ac_link) 2>conftest.er1
19676 ac_status=$?
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -z "$ac_c_werror_flag"
19683 || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest$ac_exeext'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_cv_func_crypt=yes
19696else
19697 echo "$as_me: failed program was:" >&5
19698sed 's/^/| /' conftest.$ac_ext >&5
19699
19700ac_cv_func_crypt=no
19701fi
19702rm -f conftest.err conftest.$ac_objext \
19703 conftest$ac_exeext conftest.$ac_ext
19704fi
19705echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
19706echo "${ECHO_T}$ac_cv_func_crypt" >&6
19707if test $ac_cv_func_crypt = yes; then
19708
19709cat >>confdefs.h <<_ACEOF
19710#define HAVE_CRYPT 1
19711_ACEOF
19712
19713fi
19714
19715LIBS="$saveLIBS"
19716echo "$as_me:$LINENO: checking for crypt() prototype" >&5
19717echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6
19718if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720else
19721 cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727
19728 #if HAVE_CRYPT_H
19729 #include <crypt.h>
19730 #endif
19731 #if HAVE_UNISTD_H
19732 #include <unistd.h>
19733 #endif
19734 int crypt(int, int);
19735
19736
19737int
19738main ()
19739{
19740
19741 ;
19742 return 0;
19743}
19744_ACEOF
19745rm -f conftest.$ac_objext
19746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747 (eval $ac_compile) 2>conftest.er1
19748 ac_status=$?
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
19754 { ac_try='test -z "$ac_c_werror_flag"
19755 || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 userdb_cv_NEED_CRYPT_PROTOTYPE=1
19768else
19769 echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5
19771
19772userdb_cv_NEED_CRYPT_PROTOTYPE=0
19773fi
19774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19775
19776
19777fi
19778echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
19779echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6
19780
19781
19782cat >>confdefs.h <<_ACEOF
19783#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
19784_ACEOF
19785
19786
19787
19788
19789
19790for ac_func in isatty gettimeofday
19791do
19792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19793echo "$as_me:$LINENO: checking for $ac_func" >&5
19794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19795if eval "test \"\${$as_ac_var+set}\" = set"; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797else
19798 cat >conftest.$ac_ext <<_ACEOF
19799/* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
19804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19806#define $ac_func innocuous_$ac_func
19807
19808/* System header to define __stub macros and hopefully few prototypes,
19809 which can conflict with char $ac_func (); below.
19810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19811 <limits.h> exists even on freestanding compilers. */
19812
19813#ifdef __STDC__
19814# include <limits.h>
19815#else
19816# include <assert.h>
19817#endif
19818
19819#undef $ac_func
19820
19821/* Override any gcc2 internal prototype to avoid an error. */
19822#ifdef __cplusplus
19823extern "C"
19824{
19825#endif
19826/* We use char because int might match the return type of a gcc2
19827 builtin and then its argument prototype would still apply. */
19828char $ac_func ();
19829/* The GNU C library defines this for functions which it implements
19830 to always fail with ENOSYS. Some functions are actually named
19831 something starting with __ and the normal name is an alias. */
19832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19833choke me
19834#else
19835char (*f) () = $ac_func;
19836#endif
19837#ifdef __cplusplus
19838}
19839#endif
19840
19841int
19842main ()
19843{
19844return f != $ac_func;
19845 ;
19846 return 0;
19847}
19848_ACEOF
19849rm -f conftest.$ac_objext conftest$ac_exeext
19850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19851 (eval $ac_link) 2>conftest.er1
19852 ac_status=$?
19853 grep -v '^ *+' conftest.er1 >conftest.err
19854 rm -f conftest.er1
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } &&
19858 { ac_try='test -z "$ac_c_werror_flag"
19859 || test ! -s conftest.err'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest$ac_exeext'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 eval "$as_ac_var=yes"
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876eval "$as_ac_var=no"
19877fi
19878rm -f conftest.err conftest.$ac_objext \
19879 conftest$ac_exeext conftest.$ac_ext
19880fi
19881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19883if test `eval echo '${'$as_ac_var'}'` = yes; then
19884 cat >>confdefs.h <<_ACEOF
19885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19886_ACEOF
19887
19888fi
19889done
19890
19891
19892
19893# Check whether --with-random or --without-random was given.
19894if test "${with_random+set}" = set; then
19895 withval="$with_random"
19896 random="$withval"
19897else
19898 random="y"
19899fi;
19900
19901case "$random" in
19902/*)
19903 ;;
19904y*|1*)
19905 echo "$as_me:$LINENO: checking for random source" >&5
19906echo $ECHO_N "checking for random source... $ECHO_C" >&6
19907if test "${userdb_cv_RANDOM+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909else
19910 if test -c /dev/urandom
19911 then
19912 userdb_cv_RANDOM=/dev/urandom
19913 else
19914 if test -c /dev/random
19915 then
19916 userdb_cv_RANDOM=/dev/random
19917 else
19918 userdb_cv_RANDOM="none"
19919 fi
19920 fi
19921
19922fi
19923echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5
19924echo "${ECHO_T}$userdb_cv_RANDOM" >&6
19925 random="$userdb_cv_RANDOM"
19926 ;;
19927*)
19928 random="none"
19929 ;;
19930esac
19931
19932if test "$random" != "none"
19933then
19934
19935cat >>confdefs.h <<_ACEOF
19936#define RANDOM "$random"
19937_ACEOF
19938
19939fi
19940
19941
19942
19943if test -d ${srcdir}/../docbook; then
19944 HAVE_SGML_TRUE=
19945 HAVE_SGML_FALSE='#'
19946else
19947 HAVE_SGML_TRUE='#'
19948 HAVE_SGML_FALSE=
19949fi
19950
19951
19952 ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb vchkpw2userdb"
19953cat >confcache <<\_ACEOF
19954# This file is a shell script that caches the results of configure
19955# tests run on this system so they can be shared between configure
19956# scripts and configure runs, see configure's option --config-cache.
19957# It is not useful on other systems. If it contains results you don't
19958# want to keep, you may remove or edit it.
19959#
19960# config.status only pays attention to the cache file if you give it
19961# the --recheck option to rerun configure.
19962#
19963# `ac_cv_env_foo' variables (set or unset) will be overridden when
19964# loading this file, other *unset* `ac_cv_foo' will be assigned the
19965# following values.
19966
19967_ACEOF
19968
19969# The following way of writing the cache mishandles newlines in values,
19970# but we know of no workaround that is simple, portable, and efficient.
19971# So, don't put newlines in cache variables' values.
19972# Ultrix sh set writes to stderr and can't be redirected directly,
19973# and sets the high bit in the cache file unless we assign to the vars.
19974{
19975 (set) 2>&1 |
19976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19977 *ac_space=\ *)
19978 # `set' does not quote correctly, so add quotes (double-quote
19979 # substitution turns \\\\ into \\, and sed turns \\ into \).
19980 sed -n \
19981 "s/'/'\\\\''/g;
19982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19983 ;;
19984 *)
19985 # `set' quotes correctly as required by POSIX, so do not add quotes.
19986 sed -n \
19987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19988 ;;
19989 esac;
19990} |
19991 sed '
19992 t clear
19993 : clear
19994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19995 t end
19996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19997 : end' >>confcache
19998if diff $cache_file confcache >/dev/null 2>&1; then :; else
19999 if test -w $cache_file; then
20000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20001 cat confcache >$cache_file
20002 else
20003 echo "not updating unwritable cache $cache_file"
20004 fi
20005fi
20006rm -f confcache
20007
20008test "x$prefix" = xNONE && prefix=$ac_default_prefix
20009# Let make expand exec_prefix.
20010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20011
20012# VPATH may cause trouble with some makes, so we remove $(srcdir),
20013# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20014# trailing colons and then remove the whole line if VPATH becomes empty
20015# (actually we leave an empty line to preserve line numbers).
20016if test "x$srcdir" = x.; then
20017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20018s/:*\$(srcdir):*/:/;
20019s/:*\${srcdir}:*/:/;
20020s/:*@srcdir@:*/:/;
20021s/^\([^=]*=[ ]*\):*/\1/;
20022s/:*$//;
20023s/^[^=]*=[ ]*$//;
20024}'
20025fi
20026
20027# Transform confdefs.h into DEFS.
20028# Protect against shell expansion while executing Makefile rules.
20029# Protect against Makefile macro expansion.
20030#
20031# If the first sed substitution is executed (which looks for macros that
20032# take arguments), then we branch to the quote section. Otherwise,
20033# look for a macro that doesn't take arguments.
20034cat >confdef2opt.sed <<\_ACEOF
20035t clear
20036: clear
20037s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20038t quote
20039s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20040t quote
20041d
20042: quote
20043s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20044s,\[,\\&,g
20045s,\],\\&,g
20046s,\$,$$,g
20047p
20048_ACEOF
20049# We use echo to avoid assuming a particular line-breaking character.
20050# The extra dot is to prevent the shell from consuming trailing
20051# line-breaks from the sub-command output. A line-break within
20052# single-quotes doesn't work because, if this script is created in a
20053# platform that uses two characters for line-breaks (e.g., DOS), tr
20054# would break.
20055ac_LF_and_DOT=`echo; echo .`
20056DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20057rm -f confdef2opt.sed
20058
20059
20060ac_libobjs=
20061ac_ltlibobjs=
20062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20063 # 1. Remove the extension, and $U if already installed.
20064 ac_i=`echo "$ac_i" |
20065 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20066 # 2. Add them.
20067 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20068 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20069done
20070LIBOBJS=$ac_libobjs
20071
20072LTLIBOBJS=$ac_ltlibobjs
20073
20074
20075if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20076 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20077Usually this means the macro was only invoked conditionally." >&5
20078echo "$as_me: error: conditional \"AMDEP\" was never defined.
20079Usually this means the macro was only invoked conditionally." >&2;}
20080 { (exit 1); exit 1; }; }
20081fi
20082if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20083 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20084Usually this means the macro was only invoked conditionally." >&5
20085echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20086Usually this means the macro was only invoked conditionally." >&2;}
20087 { (exit 1); exit 1; }; }
20088fi
20089if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20090 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20091Usually this means the macro was only invoked conditionally." >&5
20092echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20093Usually this means the macro was only invoked conditionally." >&2;}
20094 { (exit 1); exit 1; }; }
20095fi
20096if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20097 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20098Usually this means the macro was only invoked conditionally." >&5
20099echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20100Usually this means the macro was only invoked conditionally." >&2;}
20101 { (exit 1); exit 1; }; }
20102fi
20103
20104: ${CONFIG_STATUS=./config.status}
20105ac_clean_files_save=$ac_clean_files
20106ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20107{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20108echo "$as_me: creating $CONFIG_STATUS" >&6;}
20109cat >$CONFIG_STATUS <<_ACEOF
20110#! $SHELL
20111# Generated by $as_me.
20112# Run this file to recreate the current configuration.
20113# Compiler output produced by configure, useful for debugging
20114# configure, is in config.log if it exists.
20115
20116debug=false
20117ac_cs_recheck=false
20118ac_cs_silent=false
20119SHELL=\${CONFIG_SHELL-$SHELL}
20120_ACEOF
20121
20122cat >>$CONFIG_STATUS <<\_ACEOF
20123## --------------------- ##
20124## M4sh Initialization. ##
20125## --------------------- ##
20126
20127# Be Bourne compatible
20128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20129 emulate sh
20130 NULLCMD=:
20131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20132 # is contrary to our usage. Disable this feature.
20133 alias -g '${1+"$@"}'='"$@"'
20134elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20135 set -o posix
20136fi
20137DUALCASE=1; export DUALCASE # for MKS sh
20138
20139# Support unset when possible.
20140if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20141 as_unset=unset
20142else
20143 as_unset=false
20144fi
20145
20146
20147# Work around bugs in pre-3.0 UWIN ksh.
20148$as_unset ENV MAIL MAILPATH
20149PS1='$ '
20150PS2='> '
20151PS4='+ '
20152
20153# NLS nuisances.
20154for as_var in \
20155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20157 LC_TELEPHONE LC_TIME
20158do
20159 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20160 eval $as_var=C; export $as_var
20161 else
20162 $as_unset $as_var
20163 fi
20164done
20165
20166# Required to use basename.
20167if expr a : '\(a\)' >/dev/null 2>&1; then
20168 as_expr=expr
20169else
20170 as_expr=false
20171fi
20172
20173if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20174 as_basename=basename
20175else
20176 as_basename=false
20177fi
20178
20179
20180# Name of the executable.
20181as_me=`$as_basename "$0" ||
20182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20183 X"$0" : 'X\(//\)$' \| \
20184 X"$0" : 'X\(/\)$' \| \
20185 . : '\(.\)' 2>/dev/null ||
20186echo X/"$0" |
20187 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20188 /^X\/\(\/\/\)$/{ s//\1/; q; }
20189 /^X\/\(\/\).*/{ s//\1/; q; }
20190 s/.*/./; q'`
20191
20192
20193# PATH needs CR, and LINENO needs CR and PATH.
20194# Avoid depending upon Character Ranges.
20195as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20196as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20197as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20198as_cr_digits='0123456789'
20199as_cr_alnum=$as_cr_Letters$as_cr_digits
20200
20201# The user is always right.
20202if test "${PATH_SEPARATOR+set}" != set; then
20203 echo "#! /bin/sh" >conf$$.sh
20204 echo "exit 0" >>conf$$.sh
20205 chmod +x conf$$.sh
20206 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20207 PATH_SEPARATOR=';'
20208 else
20209 PATH_SEPARATOR=:
20210 fi
20211 rm -f conf$$.sh
20212fi
20213
20214
20215 as_lineno_1=$LINENO
20216 as_lineno_2=$LINENO
20217 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20218 test "x$as_lineno_1" != "x$as_lineno_2" &&
20219 test "x$as_lineno_3" = "x$as_lineno_2" || {
20220 # Find who we are. Look in the path if we contain no path at all
20221 # relative or not.
20222 case $0 in
20223 *[\\/]* ) as_myself=$0 ;;
20224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225for as_dir in $PATH
20226do
20227 IFS=$as_save_IFS
20228 test -z "$as_dir" && as_dir=.
20229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20230done
20231
20232 ;;
20233 esac
20234 # We did not find ourselves, most probably we were run as `sh COMMAND'
20235 # in which case we are not to be found in the path.
20236 if test "x$as_myself" = x; then
20237 as_myself=$0
20238 fi
20239 if test ! -f "$as_myself"; then
20240 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20241echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20242 { (exit 1); exit 1; }; }
20243 fi
20244 case $CONFIG_SHELL in
20245 '')
20246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20247for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20248do
20249 IFS=$as_save_IFS
20250 test -z "$as_dir" && as_dir=.
20251 for as_base in sh bash ksh sh5; do
20252 case $as_dir in
20253 /*)
20254 if ("$as_dir/$as_base" -c '
20255 as_lineno_1=$LINENO
20256 as_lineno_2=$LINENO
20257 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20258 test "x$as_lineno_1" != "x$as_lineno_2" &&
20259 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20260 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20261 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20262 CONFIG_SHELL=$as_dir/$as_base
20263 export CONFIG_SHELL
20264 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20265 fi;;
20266 esac
20267 done
20268done
20269;;
20270 esac
20271
20272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20273 # uniformly replaced by the line number. The first 'sed' inserts a
20274 # line-number line before each line; the second 'sed' does the real
20275 # work. The second script uses 'N' to pair each line-number line
20276 # with the numbered line, and appends trailing '-' during
20277 # substitution so that $LINENO is not a special case at line end.
20278 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20279 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20280 sed '=' <$as_myself |
20281 sed '
20282 N
20283 s,$,-,
20284 : loop
20285 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20286 t loop
20287 s,-$,,
20288 s,^['$as_cr_digits']*\n,,
20289 ' >$as_me.lineno &&
20290 chmod +x $as_me.lineno ||
20291 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20292echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20293 { (exit 1); exit 1; }; }
20294
20295 # Don't try to exec as it changes $[0], causing all sort of problems
20296 # (the dirname of $[0] is not the place where we might find the
20297 # original and so on. Autoconf is especially sensible to this).
20298 . ./$as_me.lineno
20299 # Exit status is that of the last command.
20300 exit
20301}
20302
20303
20304case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20305 *c*,-n*) ECHO_N= ECHO_C='
20306' ECHO_T=' ' ;;
20307 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20308 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20309esac
20310
20311if expr a : '\(a\)' >/dev/null 2>&1; then
20312 as_expr=expr
20313else
20314 as_expr=false
20315fi
20316
20317rm -f conf$$ conf$$.exe conf$$.file
20318echo >conf$$.file
20319if ln -s conf$$.file conf$$ 2>/dev/null; then
20320 # We could just check for DJGPP; but this test a) works b) is more generic
20321 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20322 if test -f conf$$.exe; then
20323 # Don't use ln at all; we don't have any links
20324 as_ln_s='cp -p'
20325 else
20326 as_ln_s='ln -s'
20327 fi
20328elif ln conf$$.file conf$$ 2>/dev/null; then
20329 as_ln_s=ln
20330else
20331 as_ln_s='cp -p'
20332fi
20333rm -f conf$$ conf$$.exe conf$$.file
20334
20335if mkdir -p . 2>/dev/null; then
20336 as_mkdir_p=:
20337else
20338 test -d ./-p && rmdir ./-p
20339 as_mkdir_p=false
20340fi
20341
20342as_executable_p="test -f"
20343
20344# Sed expression to map a string onto a valid CPP name.
20345as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20346
20347# Sed expression to map a string onto a valid variable name.
20348as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20349
20350
20351# IFS
20352# We need space, tab and new line, in precisely that order.
20353as_nl='
20354'
20355IFS=" $as_nl"
20356
20357# CDPATH.
20358$as_unset CDPATH
20359
20360exec 6>&1
20361
20362# Open the log real soon, to keep \$[0] and so on meaningful, and to
20363# report actual input values of CONFIG_FILES etc. instead of their
20364# values after options handling. Logging --version etc. is OK.
20365exec 5>>config.log
20366{
20367 echo
20368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20369## Running $as_me. ##
20370_ASBOX
20371} >&5
20372cat >&5 <<_CSEOF
20373
20374This file was extended by libuserdb $as_me 0.10, which was
20375generated by GNU Autoconf 2.59. Invocation command line was
20376
20377 CONFIG_FILES = $CONFIG_FILES
20378 CONFIG_HEADERS = $CONFIG_HEADERS
20379 CONFIG_LINKS = $CONFIG_LINKS
20380 CONFIG_COMMANDS = $CONFIG_COMMANDS
20381 $ $0 $@
20382
20383_CSEOF
20384echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20385echo >&5
20386_ACEOF
20387
20388# Files that config.status was made for.
20389if test -n "$ac_config_files"; then
20390 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20391fi
20392
20393if test -n "$ac_config_headers"; then
20394 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20395fi
20396
20397if test -n "$ac_config_links"; then
20398 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20399fi
20400
20401if test -n "$ac_config_commands"; then
20402 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20403fi
20404
20405cat >>$CONFIG_STATUS <<\_ACEOF
20406
20407ac_cs_usage="\
20408\`$as_me' instantiates files from templates according to the
20409current configuration.
20410
20411Usage: $0 [OPTIONS] [FILE]...
20412
20413 -h, --help print this help, then exit
20414 -V, --version print version number, then exit
20415 -q, --quiet do not print progress messages
20416 -d, --debug don't remove temporary files
20417 --recheck update $as_me by reconfiguring in the same conditions
20418 --file=FILE[:TEMPLATE]
20419 instantiate the configuration file FILE
20420
20421Configuration files:
20422$config_files
20423
20424Configuration commands:
20425$config_commands
20426
20427Report bugs to <bug-autoconf@gnu.org>."
20428_ACEOF
20429
20430cat >>$CONFIG_STATUS <<_ACEOF
20431ac_cs_version="\\
20432libuserdb config.status 0.10
20433configured by $0, generated by GNU Autoconf 2.59,
20434 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20435
20436Copyright (C) 2003 Free Software Foundation, Inc.
20437This config.status script is free software; the Free Software Foundation
20438gives unlimited permission to copy, distribute and modify it."
20439srcdir=$srcdir
20440INSTALL="$INSTALL"
20441_ACEOF
20442
20443cat >>$CONFIG_STATUS <<\_ACEOF
20444# If no file are specified by the user, then we need to provide default
20445# value. By we need to know if files were specified by the user.
20446ac_need_defaults=:
20447while test $# != 0
20448do
20449 case $1 in
20450 --*=*)
20451 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20452 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20453 ac_shift=:
20454 ;;
20455 -*)
20456 ac_option=$1
20457 ac_optarg=$2
20458 ac_shift=shift
20459 ;;
20460 *) # This is not an option, so the user has probably given explicit
20461 # arguments.
20462 ac_option=$1
20463 ac_need_defaults=false;;
20464 esac
20465
20466 case $ac_option in
20467 # Handling of the options.
20468_ACEOF
20469cat >>$CONFIG_STATUS <<\_ACEOF
20470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20471 ac_cs_recheck=: ;;
20472 --version | --vers* | -V )
20473 echo "$ac_cs_version"; exit 0 ;;
20474 --he | --h)
20475 # Conflict between --help and --header
20476 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20477Try \`$0 --help' for more information." >&5
20478echo "$as_me: error: ambiguous option: $1
20479Try \`$0 --help' for more information." >&2;}
20480 { (exit 1); exit 1; }; };;
20481 --help | --hel | -h )
20482 echo "$ac_cs_usage"; exit 0 ;;
20483 --debug | --d* | -d )
20484 debug=: ;;
20485 --file | --fil | --fi | --f )
20486 $ac_shift
20487 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20488 ac_need_defaults=false;;
20489 --header | --heade | --head | --hea )
20490 $ac_shift
20491 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20492 ac_need_defaults=false;;
20493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20494 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20495 ac_cs_silent=: ;;
20496
20497 # This is an error.
20498 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20499Try \`$0 --help' for more information." >&5
20500echo "$as_me: error: unrecognized option: $1
20501Try \`$0 --help' for more information." >&2;}
20502 { (exit 1); exit 1; }; } ;;
20503
20504 *) ac_config_targets="$ac_config_targets $1" ;;
20505
20506 esac
20507 shift
20508done
20509
20510ac_configure_extra_args=
20511
20512if $ac_cs_silent; then
20513 exec 6>/dev/null
20514 ac_configure_extra_args="$ac_configure_extra_args --silent"
20515fi
20516
20517_ACEOF
20518cat >>$CONFIG_STATUS <<_ACEOF
20519if \$ac_cs_recheck; then
20520 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20521 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20522fi
20523
20524_ACEOF
20525
20526cat >>$CONFIG_STATUS <<_ACEOF
20527#
20528# INIT-COMMANDS section.
20529#
20530
20531AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20532
20533_ACEOF
20534
20535
20536
20537cat >>$CONFIG_STATUS <<\_ACEOF
20538for ac_config_target in $ac_config_targets
20539do
20540 case "$ac_config_target" in
20541 # Handling of arguments.
20542 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20543 "userdb.pl" ) CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
20544 "makeuserdb" ) CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
20545 "pw2userdb" ) CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
20546 "vchkpw2userdb" ) CONFIG_FILES="$CONFIG_FILES vchkpw2userdb" ;;
20547 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20548 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20549echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20550 { (exit 1); exit 1; }; };;
20551 esac
20552done
20553
20554# If the user did not use the arguments to specify the items to instantiate,
20555# then the envvar interface is used. Set only those that are not.
20556# We use the long form for the default assignment because of an extremely
20557# bizarre bug on SunOS 4.1.3.
20558if $ac_need_defaults; then
20559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20561fi
20562
20563# Have a temporary directory for convenience. Make it in the build tree
20564# simply because there is no reason to put it here, and in addition,
20565# creating and moving files from /tmp can sometimes cause problems.
20566# Create a temporary directory, and hook for its removal unless debugging.
20567$debug ||
20568{
20569 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20570 trap '{ (exit 1); exit 1; }' 1 2 13 15
20571}
20572
20573# Create a (secure) tmp directory for tmp files.
20574
20575{
20576 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20577 test -n "$tmp" && test -d "$tmp"
20578} ||
20579{
20580 tmp=./confstat$$-$RANDOM
20581 (umask 077 && mkdir $tmp)
20582} ||
20583{
20584 echo "$me: cannot create a temporary directory in ." >&2
20585 { (exit 1); exit 1; }
20586}
20587
20588_ACEOF
20589
20590cat >>$CONFIG_STATUS <<_ACEOF
20591
20592#
20593# CONFIG_FILES section.
20594#
20595
20596# No need to generate the scripts if there are no CONFIG_FILES.
20597# This happens for instance when ./config.status config.h
20598if test -n "\$CONFIG_FILES"; then
20599 # Protect against being on the right side of a sed subst in config.status.
20600 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20601 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20602s,@SHELL@,$SHELL,;t t
20603s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20604s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20605s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20606s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20607s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20608s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20609s,@exec_prefix@,$exec_prefix,;t t
20610s,@prefix@,$prefix,;t t
20611s,@program_transform_name@,$program_transform_name,;t t
20612s,@bindir@,$bindir,;t t
20613s,@sbindir@,$sbindir,;t t
20614s,@libexecdir@,$libexecdir,;t t
20615s,@datadir@,$datadir,;t t
20616s,@sysconfdir@,$sysconfdir,;t t
20617s,@sharedstatedir@,$sharedstatedir,;t t
20618s,@localstatedir@,$localstatedir,;t t
20619s,@libdir@,$libdir,;t t
20620s,@includedir@,$includedir,;t t
20621s,@oldincludedir@,$oldincludedir,;t t
20622s,@infodir@,$infodir,;t t
20623s,@mandir@,$mandir,;t t
20624s,@build_alias@,$build_alias,;t t
20625s,@host_alias@,$host_alias,;t t
20626s,@target_alias@,$target_alias,;t t
20627s,@DEFS@,$DEFS,;t t
20628s,@ECHO_C@,$ECHO_C,;t t
20629s,@ECHO_N@,$ECHO_N,;t t
20630s,@ECHO_T@,$ECHO_T,;t t
20631s,@LIBS@,$LIBS,;t t
20632s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20633s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20634s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20635s,@CYGPATH_W@,$CYGPATH_W,;t t
20636s,@PACKAGE@,$PACKAGE,;t t
20637s,@VERSION@,$VERSION,;t t
20638s,@ACLOCAL@,$ACLOCAL,;t t
20639s,@AUTOCONF@,$AUTOCONF,;t t
20640s,@AUTOMAKE@,$AUTOMAKE,;t t
20641s,@AUTOHEADER@,$AUTOHEADER,;t t
20642s,@MAKEINFO@,$MAKEINFO,;t t
20643s,@install_sh@,$install_sh,;t t
20644s,@STRIP@,$STRIP,;t t
20645s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20646s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20647s,@mkdir_p@,$mkdir_p,;t t
20648s,@AWK@,$AWK,;t t
20649s,@SET_MAKE@,$SET_MAKE,;t t
20650s,@am__leading_dot@,$am__leading_dot,;t t
20651s,@AMTAR@,$AMTAR,;t t
20652s,@am__tar@,$am__tar,;t t
20653s,@am__untar@,$am__untar,;t t
20654s,@CC@,$CC,;t t
20655s,@CFLAGS@,$CFLAGS,;t t
20656s,@LDFLAGS@,$LDFLAGS,;t t
20657s,@CPPFLAGS@,$CPPFLAGS,;t t
20658s,@ac_ct_CC@,$ac_ct_CC,;t t
20659s,@EXEEXT@,$EXEEXT,;t t
20660s,@OBJEXT@,$OBJEXT,;t t
20661s,@DEPDIR@,$DEPDIR,;t t
20662s,@am__include@,$am__include,;t t
20663s,@am__quote@,$am__quote,;t t
20664s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20665s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20666s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20667s,@CCDEPMODE@,$CCDEPMODE,;t t
20668s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20669s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20670s,@LN_S@,$LN_S,;t t
20671s,@build@,$build,;t t
20672s,@build_cpu@,$build_cpu,;t t
20673s,@build_vendor@,$build_vendor,;t t
20674s,@build_os@,$build_os,;t t
20675s,@host@,$host,;t t
20676s,@host_cpu@,$host_cpu,;t t
20677s,@host_vendor@,$host_vendor,;t t
20678s,@host_os@,$host_os,;t t
20679s,@SED@,$SED,;t t
20680s,@EGREP@,$EGREP,;t t
20681s,@ECHO@,$ECHO,;t t
20682s,@AR@,$AR,;t t
20683s,@ac_ct_AR@,$ac_ct_AR,;t t
20684s,@RANLIB@,$RANLIB,;t t
20685s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20686s,@CPP@,$CPP,;t t
20687s,@CXX@,$CXX,;t t
20688s,@CXXFLAGS@,$CXXFLAGS,;t t
20689s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20690s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20691s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20692s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20693s,@CXXCPP@,$CXXCPP,;t t
20694s,@F77@,$F77,;t t
20695s,@FFLAGS@,$FFLAGS,;t t
20696s,@ac_ct_F77@,$ac_ct_F77,;t t
20697s,@LIBTOOL@,$LIBTOOL,;t t
20698s,@PERL@,$PERL,;t t
20699s,@userdb@,$userdb,;t t
20700s,@USERDB@,$USERDB,;t t
20701s,@userdbtmpdir@,$userdbtmpdir,;t t
20702s,@tmpdir@,$tmpdir,;t t
20703s,@makedat@,$makedat,;t t
20704s,@MD5LIB@,$MD5LIB,;t t
20705s,@SHA1LIB@,$SHA1LIB,;t t
20706s,@HMACLIB@,$HMACLIB,;t t
20707s,@CRYPTLIBS@,$CRYPTLIBS,;t t
20708s,@HAVE_SGML_TRUE@,$HAVE_SGML_TRUE,;t t
20709s,@HAVE_SGML_FALSE@,$HAVE_SGML_FALSE,;t t
20710s,@LIBOBJS@,$LIBOBJS,;t t
20711s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20712CEOF
20713
20714_ACEOF
20715
20716 cat >>$CONFIG_STATUS <<\_ACEOF
20717 # Split the substitutions into bite-sized pieces for seds with
20718 # small command number limits, like on Digital OSF/1 and HP-UX.
20719 ac_max_sed_lines=48
20720 ac_sed_frag=1 # Number of current file.
20721 ac_beg=1 # First line for current file.
20722 ac_end=$ac_max_sed_lines # Line after last line for current file.
20723 ac_more_lines=:
20724 ac_sed_cmds=
20725 while $ac_more_lines; do
20726 if test $ac_beg -gt 1; then
20727 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20728 else
20729 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20730 fi
20731 if test ! -s $tmp/subs.frag; then
20732 ac_more_lines=false
20733 else
20734 # The purpose of the label and of the branching condition is to
20735 # speed up the sed processing (if there are no `@' at all, there
20736 # is no need to browse any of the substitutions).
20737 # These are the two extra sed commands mentioned above.
20738 (echo ':t
20739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20740 if test -z "$ac_sed_cmds"; then
20741 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20742 else
20743 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20744 fi
20745 ac_sed_frag=`expr $ac_sed_frag + 1`
20746 ac_beg=$ac_end
20747 ac_end=`expr $ac_end + $ac_max_sed_lines`
20748 fi
20749 done
20750 if test -z "$ac_sed_cmds"; then
20751 ac_sed_cmds=cat
20752 fi
20753fi # test -n "$CONFIG_FILES"
20754
20755_ACEOF
20756cat >>$CONFIG_STATUS <<\_ACEOF
20757for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20759 case $ac_file in
20760 - | *:- | *:-:* ) # input from stdin
20761 cat >$tmp/stdin
20762 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20764 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20766 * ) ac_file_in=$ac_file.in ;;
20767 esac
20768
20769 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20770 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20771$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20772 X"$ac_file" : 'X\(//\)[^/]' \| \
20773 X"$ac_file" : 'X\(//\)$' \| \
20774 X"$ac_file" : 'X\(/\)' \| \
20775 . : '\(.\)' 2>/dev/null ||
20776echo X"$ac_file" |
20777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20779 /^X\(\/\/\)$/{ s//\1/; q; }
20780 /^X\(\/\).*/{ s//\1/; q; }
20781 s/.*/./; q'`
20782 { if $as_mkdir_p; then
20783 mkdir -p "$ac_dir"
20784 else
20785 as_dir="$ac_dir"
20786 as_dirs=
20787 while test ! -d "$as_dir"; do
20788 as_dirs="$as_dir $as_dirs"
20789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20790$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20791 X"$as_dir" : 'X\(//\)[^/]' \| \
20792 X"$as_dir" : 'X\(//\)$' \| \
20793 X"$as_dir" : 'X\(/\)' \| \
20794 . : '\(.\)' 2>/dev/null ||
20795echo X"$as_dir" |
20796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20798 /^X\(\/\/\)$/{ s//\1/; q; }
20799 /^X\(\/\).*/{ s//\1/; q; }
20800 s/.*/./; q'`
20801 done
20802 test ! -n "$as_dirs" || mkdir $as_dirs
20803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20804echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20805 { (exit 1); exit 1; }; }; }
20806
20807 ac_builddir=.
20808
20809if test "$ac_dir" != .; then
20810 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20811 # A "../" for each directory in $ac_dir_suffix.
20812 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20813else
20814 ac_dir_suffix= ac_top_builddir=
20815fi
20816
20817case $srcdir in
20818 .) # No --srcdir option. We are building in place.
20819 ac_srcdir=.
20820 if test -z "$ac_top_builddir"; then
20821 ac_top_srcdir=.
20822 else
20823 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20824 fi ;;
20825 [\\/]* | ?:[\\/]* ) # Absolute path.
20826 ac_srcdir=$srcdir$ac_dir_suffix;
20827 ac_top_srcdir=$srcdir ;;
20828 *) # Relative path.
20829 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20830 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20831esac
20832
20833# Do not use `cd foo && pwd` to compute absolute paths, because
20834# the directories may not exist.
20835case `pwd` in
20836.) ac_abs_builddir="$ac_dir";;
20837*)
20838 case "$ac_dir" in
20839 .) ac_abs_builddir=`pwd`;;
20840 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20841 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20842 esac;;
20843esac
20844case $ac_abs_builddir in
20845.) ac_abs_top_builddir=${ac_top_builddir}.;;
20846*)
20847 case ${ac_top_builddir}. in
20848 .) ac_abs_top_builddir=$ac_abs_builddir;;
20849 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20850 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20851 esac;;
20852esac
20853case $ac_abs_builddir in
20854.) ac_abs_srcdir=$ac_srcdir;;
20855*)
20856 case $ac_srcdir in
20857 .) ac_abs_srcdir=$ac_abs_builddir;;
20858 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20859 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20860 esac;;
20861esac
20862case $ac_abs_builddir in
20863.) ac_abs_top_srcdir=$ac_top_srcdir;;
20864*)
20865 case $ac_top_srcdir in
20866 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20867 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20868 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20869 esac;;
20870esac
20871
20872
20873 case $INSTALL in
20874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20875 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20876 esac
20877
20878 if test x"$ac_file" != x-; then
20879 { echo "$as_me:$LINENO: creating $ac_file" >&5
20880echo "$as_me: creating $ac_file" >&6;}
20881 rm -f "$ac_file"
20882 fi
20883 # Let's still pretend it is `configure' which instantiates (i.e., don't
20884 # use $as_me), people would be surprised to read:
20885 # /* config.h. Generated by config.status. */
20886 if test x"$ac_file" = x-; then
20887 configure_input=
20888 else
20889 configure_input="$ac_file. "
20890 fi
20891 configure_input=$configure_input"Generated from `echo $ac_file_in |
20892 sed 's,.*/,,'` by configure."
20893
20894 # First look for the input files in the build tree, otherwise in the
20895 # src tree.
20896 ac_file_inputs=`IFS=:
20897 for f in $ac_file_in; do
20898 case $f in
20899 -) echo $tmp/stdin ;;
20900 [\\/$]*)
20901 # Absolute (can't be DOS-style, as IFS=:)
20902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20903echo "$as_me: error: cannot find input file: $f" >&2;}
20904 { (exit 1); exit 1; }; }
20905 echo "$f";;
20906 *) # Relative
20907 if test -f "$f"; then
20908 # Build tree
20909 echo "$f"
20910 elif test -f "$srcdir/$f"; then
20911 # Source tree
20912 echo "$srcdir/$f"
20913 else
20914 # /dev/null tree
20915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20916echo "$as_me: error: cannot find input file: $f" >&2;}
20917 { (exit 1); exit 1; }; }
20918 fi;;
20919 esac
20920 done` || { (exit 1); exit 1; }
20921_ACEOF
20922cat >>$CONFIG_STATUS <<_ACEOF
20923 sed "$ac_vpsub
20924$extrasub
20925_ACEOF
20926cat >>$CONFIG_STATUS <<\_ACEOF
20927:t
20928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20929s,@configure_input@,$configure_input,;t t
20930s,@srcdir@,$ac_srcdir,;t t
20931s,@abs_srcdir@,$ac_abs_srcdir,;t t
20932s,@top_srcdir@,$ac_top_srcdir,;t t
20933s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20934s,@builddir@,$ac_builddir,;t t
20935s,@abs_builddir@,$ac_abs_builddir,;t t
20936s,@top_builddir@,$ac_top_builddir,;t t
20937s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20938s,@INSTALL@,$ac_INSTALL,;t t
20939" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20940 rm -f $tmp/stdin
20941 if test x"$ac_file" != x-; then
20942 mv $tmp/out $ac_file
20943 else
20944 cat $tmp/out
20945 rm -f $tmp/out
20946 fi
20947
20948done
20949_ACEOF
20950cat >>$CONFIG_STATUS <<\_ACEOF
20951
20952#
20953# CONFIG_COMMANDS section.
20954#
20955for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20956 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20957 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20958 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20959$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20960 X"$ac_dest" : 'X\(//\)[^/]' \| \
20961 X"$ac_dest" : 'X\(//\)$' \| \
20962 X"$ac_dest" : 'X\(/\)' \| \
20963 . : '\(.\)' 2>/dev/null ||
20964echo X"$ac_dest" |
20965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20967 /^X\(\/\/\)$/{ s//\1/; q; }
20968 /^X\(\/\).*/{ s//\1/; q; }
20969 s/.*/./; q'`
20970 { if $as_mkdir_p; then
20971 mkdir -p "$ac_dir"
20972 else
20973 as_dir="$ac_dir"
20974 as_dirs=
20975 while test ! -d "$as_dir"; do
20976 as_dirs="$as_dir $as_dirs"
20977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20978$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979 X"$as_dir" : 'X\(//\)[^/]' \| \
20980 X"$as_dir" : 'X\(//\)$' \| \
20981 X"$as_dir" : 'X\(/\)' \| \
20982 . : '\(.\)' 2>/dev/null ||
20983echo X"$as_dir" |
20984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20986 /^X\(\/\/\)$/{ s//\1/; q; }
20987 /^X\(\/\).*/{ s//\1/; q; }
20988 s/.*/./; q'`
20989 done
20990 test ! -n "$as_dirs" || mkdir $as_dirs
20991 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20992echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20993 { (exit 1); exit 1; }; }; }
20994
20995 ac_builddir=.
20996
20997if test "$ac_dir" != .; then
20998 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20999 # A "../" for each directory in $ac_dir_suffix.
21000 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21001else
21002 ac_dir_suffix= ac_top_builddir=
21003fi
21004
21005case $srcdir in
21006 .) # No --srcdir option. We are building in place.
21007 ac_srcdir=.
21008 if test -z "$ac_top_builddir"; then
21009 ac_top_srcdir=.
21010 else
21011 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21012 fi ;;
21013 [\\/]* | ?:[\\/]* ) # Absolute path.
21014 ac_srcdir=$srcdir$ac_dir_suffix;
21015 ac_top_srcdir=$srcdir ;;
21016 *) # Relative path.
21017 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21018 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21019esac
21020
21021# Do not use `cd foo && pwd` to compute absolute paths, because
21022# the directories may not exist.
21023case `pwd` in
21024.) ac_abs_builddir="$ac_dir";;
21025*)
21026 case "$ac_dir" in
21027 .) ac_abs_builddir=`pwd`;;
21028 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21029 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21030 esac;;
21031esac
21032case $ac_abs_builddir in
21033.) ac_abs_top_builddir=${ac_top_builddir}.;;
21034*)
21035 case ${ac_top_builddir}. in
21036 .) ac_abs_top_builddir=$ac_abs_builddir;;
21037 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21038 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21039 esac;;
21040esac
21041case $ac_abs_builddir in
21042.) ac_abs_srcdir=$ac_srcdir;;
21043*)
21044 case $ac_srcdir in
21045 .) ac_abs_srcdir=$ac_abs_builddir;;
21046 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21047 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21048 esac;;
21049esac
21050case $ac_abs_builddir in
21051.) ac_abs_top_srcdir=$ac_top_srcdir;;
21052*)
21053 case $ac_top_srcdir in
21054 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21055 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21056 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21057 esac;;
21058esac
21059
21060
21061 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21062echo "$as_me: executing $ac_dest commands" >&6;}
21063 case $ac_dest in
21064 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21065 # Strip MF so we end up with the name of the file.
21066 mf=`echo "$mf" | sed -e 's/:.*$//'`
21067 # Check whether this is an Automake generated Makefile or not.
21068 # We used to match only the files named `Makefile.in', but
21069 # some people rename them; so instead we look at the file content.
21070 # Grep'ing the first line is not enough: some people post-process
21071 # each Makefile.in and add a new line on top of each file to say so.
21072 # So let's grep whole file.
21073 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21074 dirpart=`(dirname "$mf") 2>/dev/null ||
21075$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076 X"$mf" : 'X\(//\)[^/]' \| \
21077 X"$mf" : 'X\(//\)$' \| \
21078 X"$mf" : 'X\(/\)' \| \
21079 . : '\(.\)' 2>/dev/null ||
21080echo X"$mf" |
21081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21083 /^X\(\/\/\)$/{ s//\1/; q; }
21084 /^X\(\/\).*/{ s//\1/; q; }
21085 s/.*/./; q'`
21086 else
21087 continue
21088 fi
21089 # Extract the definition of DEPDIR, am__include, and am__quote
21090 # from the Makefile without running `make'.
21091 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21092 test -z "$DEPDIR" && continue
21093 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21094 test -z "am__include" && continue
21095 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21096 # When using ansi2knr, U may be empty or an underscore; expand it
21097 U=`sed -n 's/^U = //p' < "$mf"`
21098 # Find all dependency output files, they are included files with
21099 # $(DEPDIR) in their names. We invoke sed twice because it is the
21100 # simplest approach to changing $(DEPDIR) to its actual value in the
21101 # expansion.
21102 for file in `sed -n "
21103 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21104 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21105 # Make sure the directory exists.
21106 test -f "$dirpart/$file" && continue
21107 fdir=`(dirname "$file") 2>/dev/null ||
21108$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21109 X"$file" : 'X\(//\)[^/]' \| \
21110 X"$file" : 'X\(//\)$' \| \
21111 X"$file" : 'X\(/\)' \| \
21112 . : '\(.\)' 2>/dev/null ||
21113echo X"$file" |
21114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21116 /^X\(\/\/\)$/{ s//\1/; q; }
21117 /^X\(\/\).*/{ s//\1/; q; }
21118 s/.*/./; q'`
21119 { if $as_mkdir_p; then
21120 mkdir -p $dirpart/$fdir
21121 else
21122 as_dir=$dirpart/$fdir
21123 as_dirs=
21124 while test ! -d "$as_dir"; do
21125 as_dirs="$as_dir $as_dirs"
21126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21128 X"$as_dir" : 'X\(//\)[^/]' \| \
21129 X"$as_dir" : 'X\(//\)$' \| \
21130 X"$as_dir" : 'X\(/\)' \| \
21131 . : '\(.\)' 2>/dev/null ||
21132echo X"$as_dir" |
21133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21135 /^X\(\/\/\)$/{ s//\1/; q; }
21136 /^X\(\/\).*/{ s//\1/; q; }
21137 s/.*/./; q'`
21138 done
21139 test ! -n "$as_dirs" || mkdir $as_dirs
21140 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21141echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21142 { (exit 1); exit 1; }; }; }
21143
21144 # echo "creating $dirpart/$file"
21145 echo '# dummy' > "$dirpart/$file"
21146 done
21147done
21148 ;;
21149 esac
21150done
21151_ACEOF
21152
21153cat >>$CONFIG_STATUS <<\_ACEOF
21154
21155{ (exit 0); exit 0; }
21156_ACEOF
21157chmod +x $CONFIG_STATUS
21158ac_clean_files=$ac_clean_files_save
21159
21160
21161# configure is writing to config.log, and then calls config.status.
21162# config.status does its own redirection, appending to config.log.
21163# Unfortunately, on DOS this fails, as config.log is still kept open
21164# by configure, so config.status won't be able to write to it; its
21165# output is simply discarded. So we exec the FD to /dev/null,
21166# effectively closing config.log, so it can be properly (re)opened and
21167# appended to by config.status. When coming back to configure, we
21168# need to make the FD available again.
21169if test "$no_create" != yes; then
21170 ac_cs_success=:
21171 ac_config_status_args=
21172 test "$silent" = yes &&
21173 ac_config_status_args="$ac_config_status_args --quiet"
21174 exec 5>/dev/null
21175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21176 exec 5>>config.log
21177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21178 # would make configure fail if this is the last instruction.
21179 $ac_cs_success || { (exit 1); exit 1; }
21180fi
21181