Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / makedat / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for makedat 0.60.
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='makedat'
425PACKAGE_TARNAME='makedat'
426PACKAGE_VERSION='0.60'
427PACKAGE_STRING='makedat 0.60'
428PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430ac_unique_file="makedatprog.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 PERL CAT 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 makedatprog_target dblibrary LIBGDBM LIBDB USE_GDBM_TRUE USE_GDBM_FALSE USE_DB_TRUE USE_DB_FALSE makedatprogpath 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 makedat 0.60 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 makedat 0.60:";;
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-makedatprog=filename Installed location and name of makedatprog
1050
1051Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <courier-users@lists.sourceforge.net>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1074 ac_popdir=`pwd`
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1077 ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084 ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088 .) # No --srcdir option. We are building in place.
1089 ac_srcdir=.
1090 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=.
1092 else
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 fi ;;
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1098 *) # Relative path.
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102
1103# Do not use `cd foo && pwd` to compute absolute paths, because
1104# the directories may not exist.
1105case `pwd` in
1106.) ac_abs_builddir="$ac_dir";;
1107*)
1108 case "$ac_dir" in
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_builddir=${ac_top_builddir}.;;
1116*)
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_srcdir=$ac_srcdir;;
1125*)
1126 case $ac_srcdir in
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_srcdir=$ac_top_srcdir;;
1134*)
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 esac;;
1140esac
1141
1142 cd $ac_dir
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1145 echo
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1148 echo
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1152 echo
1153 $ac_configure --help
1154 else
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 fi
1157 cd $ac_popdir
1158 done
1159fi
1160
1161test -n "$ac_init_help" && exit 0
1162if $ac_init_version; then
1163 cat <<\_ACEOF
1164makedat configure 0.60
1165generated by GNU Autoconf 2.59
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171 exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by makedat $as_me 0.60, which was
1179generated by GNU Autoconf 2.59. Invocation command line was
1180
1181 $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1269 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1273 ;;
1274 esac
1275 done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log. We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1297{
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310}
1311 echo
1312
1313 cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1358 ' 0
1359for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1411 fi
1412done
1413
1414if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1424 fi
1425else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1472 fi
1473done
1474if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515>confdefs.h # Kill PACKAGE_ macros
1516
1517
1518am__api_version="1.9"
1519ac_aux_dir=
1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544# Find a good install program. We prefer a C program (faster),
1545# so one script is as good as another. But avoid the broken or
1546# incompatible versions:
1547# SysV /etc/install, /usr/sbin/install
1548# SunOS /usr/etc/install
1549# IRIX /sbin/install
1550# AIX /bin/install
1551# AmigaOS /C/install, which installs bootblocks on floppy discs
1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555# OS/2's system install, which has a completely different semantic
1556# ./install, which can be erroneously created by make from ./install.sh.
1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559if test -z "$INSTALL"; then
1560if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 # Account for people who put trailing slashes in PATH elements.
1569case $as_dir/ in
1570 ./ | .// | /cC/* | \
1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573 /usr/ucb/* ) ;;
1574 *)
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1577 # by default.
1578 for ac_prog in ginstall scoinst install; do
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1584 :
1585 elif test $ac_prog = install &&
1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1588 :
1589 else
1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591 break 3
1592 fi
1593 fi
1594 done
1595 done
1596 ;;
1597esac
1598done
1599
1600
1601fi
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL=$ac_cv_path_install
1604 else
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL=$ac_install_sh
1610 fi
1611fi
1612echo "$as_me:$LINENO: result: $INSTALL" >&5
1613echo "${ECHO_T}$INSTALL" >&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625# Just in case
1626sleep 1
1627echo timestamp > conftest.file
1628# Do `set' in a subshell so we don't clobber the current shell's
1629# arguments. Must try -L first in case configure is actually a
1630# symlink; some systems play weird games with the mod time of symlinks
1631# (eg FreeBSD returns the mod time of the symlink's containing
1632# directory).
1633if (
1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1636 # -L didn't work.
1637 set X `ls -t $srcdir/configure conftest.file`
1638 fi
1639 rm -f conftest.file
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648alias in your environment" >&5
1649echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1652 fi
1653
1654 test "$2" = conftest.file
1655 )
1656then
1657 # Ok.
1658 :
1659else
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661Check your system clock" >&5
1662echo "$as_me: error: newly created file is older than distributed files!
1663Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668test "$program_prefix" != NONE &&
1669 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670# Use a double $ so make ignores it.
1671test "$program_suffix" != NONE &&
1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673# Double any \ or $. echo might interpret backslashes.
1674# By default was `s,x,x', remove it if useless.
1675cat <<\_ACEOF >conftest.sed
1676s/[\\$]/&&/g;s/;s,x,x,$//
1677_ACEOF
1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679rm conftest.sed
1680
1681# expand $ac_aux_dir to an absolute path
1682am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685# Use eval to expand $SHELL
1686if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1688else
1689 am_missing_run=
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692fi
1693
1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1699 # for two reasons:
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p='mkdir -p --'
1710else
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1714 # exists.
1715 for d in ./-p ./--version;
1716 do
1717 test -d $d && rmdir $d
1718 done
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1722 else
1723 mkdir_p='$(install_sh) -d'
1724 fi
1725fi
1726
1727for ac_prog in gawk mawk nawk awk
1728do
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1749 fi
1750done
1751done
1752
1753fi
1754fi
1755AWK=$ac_cv_prog_AWK
1756if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758echo "${ECHO_T}$AWK" >&6
1759else
1760 echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764 test -n "$AWK" && break
1765done
1766
1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 cat >conftest.make <<\_ACEOF
1774all:
1775 @echo 'ac_maketemp="$(MAKE)"'
1776_ACEOF
1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1781else
1782 eval ac_cv_prog_make_${ac_make}_set=no
1783fi
1784rm -f conftest.make
1785fi
1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789 SET_MAKE=
1790else
1791 echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1794fi
1795
1796rm -rf .tst 2>/dev/null
1797mkdir .tst 2>/dev/null
1798if test -d .tst; then
1799 am__leading_dot=.
1800else
1801 am__leading_dot=_
1802fi
1803rmdir .tst 2>/dev/null
1804
1805# test to see if srcdir already configured
1806if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1811fi
1812
1813# test whether we have cygpath
1814if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1817 else
1818 CYGPATH_W=echo
1819 fi
1820fi
1821
1822
1823# Define the identity of the package.
1824 PACKAGE='makedat'
1825 VERSION='0.60'
1826
1827
1828# Some tools Automake needs.
1829
1830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831
1832
1833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1834
1835
1836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837
1838
1839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1840
1841
1842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843
1844install_sh=${install_sh-"$am_aux_dir/install-sh"}
1845
1846# Installed binaries are usually stripped using `strip' when the user
1847# run `make install-strip'. However `strip' might not be the right
1848# tool to use in cross-compilation environments, therefore Automake
1849# will honor the `STRIP' environment variable to overrule this program.
1850if test "$cross_compiling" != no; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1853set dummy ${ac_tool_prefix}strip; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_STRIP+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 if test -n "$STRIP"; then
1860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873done
1874done
1875
1876fi
1877fi
1878STRIP=$ac_cv_prog_STRIP
1879if test -n "$STRIP"; then
1880 echo "$as_me:$LINENO: result: $STRIP" >&5
1881echo "${ECHO_T}$STRIP" >&6
1882else
1883 echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887fi
1888if test -z "$ac_cv_prog_STRIP"; then
1889 ac_ct_STRIP=$STRIP
1890 # Extract the first word of "strip", so it can be a program name with args.
1891set dummy strip; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897 if test -n "$ac_ct_STRIP"; then
1898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_STRIP="strip"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
1913
1914 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1915fi
1916fi
1917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1918if test -n "$ac_ct_STRIP"; then
1919 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1920echo "${ECHO_T}$ac_ct_STRIP" >&6
1921else
1922 echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926 STRIP=$ac_ct_STRIP
1927else
1928 STRIP="$ac_cv_prog_STRIP"
1929fi
1930
1931fi
1932INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1933
1934# We need awk for the "check" target. The system "awk" is bad on
1935# some platforms.
1936# Always define AMTAR for backward compatibility.
1937
1938AMTAR=${AMTAR-"${am_missing_run}tar"}
1939
1940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1941
1942
1943
1944
1945
1946LPATH="$PATH:/usr/local/bin"
1947 ac_config_headers="$ac_config_headers config.h"
1948
1949
1950ac_ext=c
1951ac_cpp='$CPP $CPPFLAGS'
1952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1957set dummy ${ac_tool_prefix}gcc; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1965else
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977done
1978done
1979
1980fi
1981fi
1982CC=$ac_cv_prog_CC
1983if test -n "$CC"; then
1984 echo "$as_me:$LINENO: result: $CC" >&5
1985echo "${ECHO_T}$CC" >&6
1986else
1987 echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6
1989fi
1990
1991fi
1992if test -z "$ac_cv_prog_CC"; then
1993 ac_ct_CC=$CC
1994 # Extract the first word of "gcc", so it can be a program name with args.
1995set dummy gcc; ac_word=$2
1996echo "$as_me:$LINENO: checking for $ac_word" >&5
1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003else
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CC="gcc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015done
2016done
2017
2018fi
2019fi
2020ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021if test -n "$ac_ct_CC"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023echo "${ECHO_T}$ac_ct_CC" >&6
2024else
2025 echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029 CC=$ac_ct_CC
2030else
2031 CC="$ac_cv_prog_CC"
2032fi
2033
2034if test -z "$CC"; then
2035 if test -n "$ac_tool_prefix"; then
2036 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2037set dummy ${ac_tool_prefix}cc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_CC="${ac_tool_prefix}cc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
2059
2060fi
2061fi
2062CC=$ac_cv_prog_CC
2063if test -n "$CC"; then
2064 echo "$as_me:$LINENO: result: $CC" >&5
2065echo "${ECHO_T}$CC" >&6
2066else
2067 echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071fi
2072if test -z "$ac_cv_prog_CC"; then
2073 ac_ct_CC=$CC
2074 # Extract the first word of "cc", so it can be a program name with args.
2075set dummy cc; ac_word=$2
2076echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 ac_cv_prog_ac_ct_CC="cc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
2097
2098fi
2099fi
2100ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101if test -n "$ac_ct_CC"; then
2102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103echo "${ECHO_T}$ac_ct_CC" >&6
2104else
2105 echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6
2107fi
2108
2109 CC=$ac_ct_CC
2110else
2111 CC="$ac_cv_prog_CC"
2112fi
2113
2114fi
2115if test -z "$CC"; then
2116 # Extract the first word of "cc", so it can be a program name with args.
2117set dummy cc; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 if test -n "$CC"; then
2124 ac_cv_prog_CC="$CC" # Let the user override the test.
2125else
2126 ac_prog_rejected=no
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2135 ac_prog_rejected=yes
2136 continue
2137 fi
2138 ac_cv_prog_CC="cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142done
2143done
2144
2145if test $ac_prog_rejected = yes; then
2146 # We found a bogon in the path, so make sure we never use it.
2147 set dummy $ac_cv_prog_CC
2148 shift
2149 if test $# != 0; then
2150 # We chose a different compiler from the bogus one.
2151 # However, it has the same basename, so the bogon will be chosen
2152 # first if we set CC to just the basename; use the full file name.
2153 shift
2154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2155 fi
2156fi
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
2161 echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6
2163else
2164 echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168fi
2169if test -z "$CC"; then
2170 if test -n "$ac_tool_prefix"; then
2171 for ac_prog in cl
2172 do
2173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2175echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194done
2195done
2196
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
2208 test -n "$CC" && break
2209 done
2210fi
2211if test -z "$CC"; then
2212 ac_ct_CC=$CC
2213 for ac_prog in cl
2214do
2215 # Extract the first word of "$ac_prog", so it can be a program name with args.
2216set dummy $ac_prog; ac_word=$2
2217echo "$as_me:$LINENO: checking for $ac_word" >&5
2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 if test -n "$ac_ct_CC"; then
2223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224else
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_ac_ct_CC="$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236done
2237done
2238
2239fi
2240fi
2241ac_ct_CC=$ac_cv_prog_ac_ct_CC
2242if test -n "$ac_ct_CC"; then
2243 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2244echo "${ECHO_T}$ac_ct_CC" >&6
2245else
2246 echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250 test -n "$ac_ct_CC" && break
2251done
2252
2253 CC=$ac_ct_CC
2254fi
2255
2256fi
2257
2258
2259test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: no acceptable C compiler found in \$PATH
2262See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2264
2265# Provide some information about the compiler.
2266echo "$as_me:$LINENO:" \
2267 "checking for C compiler version" >&5
2268ac_compiler=`set X $ac_compile; echo $2`
2269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2270 (eval $ac_compiler --version </dev/null >&5) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2275 (eval $ac_compiler -v </dev/null >&5) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2280 (eval $ac_compiler -V </dev/null >&5) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284
2285cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h. */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h. */
2291
2292int
2293main ()
2294{
2295
2296 ;
2297 return 0;
2298}
2299_ACEOF
2300ac_clean_files_save=$ac_clean_files
2301ac_clean_files="$ac_clean_files a.out a.exe b.out"
2302# Try to create an executable without -o first, disregard a.out.
2303# It will help us diagnose broken compilers, and finding out an intuition
2304# of exeext.
2305echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2306echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2307ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2308if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2309 (eval $ac_link_default) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 # Find the output, starting from the most likely. This scheme is
2314# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2315# resort.
2316
2317# Be careful to initialize this variable, since it used to be cached.
2318# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2319ac_cv_exeext=
2320# b.out is created by i960 compilers.
2321for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2322do
2323 test -f "$ac_file" || continue
2324 case $ac_file in
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2326 ;;
2327 conftest.$ac_ext )
2328 # This is the source file.
2329 ;;
2330 [ab].out )
2331 # We found the default executable, but exeext='' is most
2332 # certainly right.
2333 break;;
2334 *.* )
2335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336 # FIXME: I believe we export ac_cv_exeext for Libtool,
2337 # but it would be cool to find out if it's true. Does anybody
2338 # maintain Libtool? --akim.
2339 export ac_cv_exeext
2340 break;;
2341 * )
2342 break;;
2343 esac
2344done
2345else
2346 echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2350See \`config.log' for more details." >&5
2351echo "$as_me: error: C compiler cannot create executables
2352See \`config.log' for more details." >&2;}
2353 { (exit 77); exit 77; }; }
2354fi
2355
2356ac_exeext=$ac_cv_exeext
2357echo "$as_me:$LINENO: result: $ac_file" >&5
2358echo "${ECHO_T}$ac_file" >&6
2359
2360# Check the compiler produces executables we can run. If not, either
2361# the compiler is broken, or we cross compile.
2362echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2363echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2364# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2365# If not cross compiling, check that we can run a simple program.
2366if test "$cross_compiling" != yes; then
2367 if { ac_try='./$ac_file'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 cross_compiling=no
2374 else
2375 if test "$cross_compiling" = maybe; then
2376 cross_compiling=yes
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379If you meant to cross compile, use \`--host'.
2380See \`config.log' for more details." >&5
2381echo "$as_me: error: cannot run C compiled programs.
2382If you meant to cross compile, use \`--host'.
2383See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2385 fi
2386 fi
2387fi
2388echo "$as_me:$LINENO: result: yes" >&5
2389echo "${ECHO_T}yes" >&6
2390
2391rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392ac_clean_files=$ac_clean_files_save
2393# Check the compiler produces executables we can run. If not, either
2394# the compiler is broken, or we cross compile.
2395echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2397echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398echo "${ECHO_T}$cross_compiling" >&6
2399
2400echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2403 (eval $ac_link) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; then
2407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2408# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2409# work properly (i.e., refer to `conftest.exe'), while it won't with
2410# `rm'.
2411for ac_file in conftest.exe conftest conftest.*; do
2412 test -f "$ac_file" || continue
2413 case $ac_file in
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 export ac_cv_exeext
2417 break;;
2418 * ) break;;
2419 esac
2420done
2421else
2422 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2425See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427fi
2428
2429rm -f conftest$ac_cv_exeext
2430echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2431echo "${ECHO_T}$ac_cv_exeext" >&6
2432
2433rm -f conftest.$ac_ext
2434EXEEXT=$ac_cv_exeext
2435ac_exeext=$EXEEXT
2436echo "$as_me:$LINENO: checking for suffix of object files" >&5
2437echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2438if test "${ac_cv_objext+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
2447
2448int
2449main ()
2450{
2451
2452 ;
2453 return 0;
2454}
2455_ACEOF
2456rm -f conftest.o conftest.obj
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; then
2462 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2463 case $ac_file in
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2465 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2466 break;;
2467 esac
2468done
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2474See \`config.log' for more details." >&5
2475echo "$as_me: error: cannot compute suffix of object files: cannot compile
2476See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2478fi
2479
2480rm -f conftest.$ac_cv_objext conftest.$ac_ext
2481fi
2482echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2483echo "${ECHO_T}$ac_cv_objext" >&6
2484OBJEXT=$ac_cv_objext
2485ac_objext=$OBJEXT
2486echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2487echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2488if test "${ac_cv_c_compiler_gnu+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h. */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h. */
2497
2498int
2499main ()
2500{
2501#ifndef __GNUC__
2502 choke me
2503#endif
2504
2505 ;
2506 return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_compiler_gnu=yes
2532else
2533 echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536ac_compiler_gnu=no
2537fi
2538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539ac_cv_c_compiler_gnu=$ac_compiler_gnu
2540
2541fi
2542echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2543echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2544GCC=`test $ac_compiler_gnu = yes && echo yes`
2545ac_test_CFLAGS=${CFLAGS+set}
2546ac_save_CFLAGS=$CFLAGS
2547CFLAGS="-g"
2548echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2549echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2550if test "${ac_cv_prog_cc_g+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
2559
2560int
2561main ()
2562{
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_prog_cc_g=yes
2591else
2592 echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595ac_cv_prog_cc_g=no
2596fi
2597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2601if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
2606 else
2607 CFLAGS="-g"
2608 fi
2609else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2614 fi
2615fi
2616echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2617echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2618if test "${ac_cv_prog_cc_stdc+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 ac_cv_prog_cc_stdc=no
2622ac_save_CC=$CC
2623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637 char **p;
2638 int i;
2639{
2640 return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std1 is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std1. */
2659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661int test (int i, double x);
2662struct s1 {int (*f) (int a);};
2663struct s2 {int (*f) (double a);};
2664int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2665int argc;
2666char **argv;
2667int
2668main ()
2669{
2670return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675# Don't try gcc -ansi; that turns off useful extensions and
2676# breaks some systems' header files.
2677# AIX -qlanglvl=ansi
2678# Ultrix and OSF/1 -std1
2679# HP-UX 10.20 and later -Ae
2680# HP-UX older versions -Aa -D_HPUX_SOURCE
2681# SVR4 -Xc -D__EXTENSIONS__
2682for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683do
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -z "$ac_c_werror_flag"
2695 || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_prog_cc_stdc=$ac_arg
2708break
2709else
2710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713fi
2714rm -f conftest.err conftest.$ac_objext
2715done
2716rm -f conftest.$ac_ext conftest.$ac_objext
2717CC=$ac_save_CC
2718
2719fi
2720
2721case "x$ac_cv_prog_cc_stdc" in
2722 x|xno)
2723 echo "$as_me:$LINENO: result: none needed" >&5
2724echo "${ECHO_T}none needed" >&6 ;;
2725 *)
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2727echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2728 CC="$CC $ac_cv_prog_cc_stdc" ;;
2729esac
2730
2731# Some people use a C++ compiler to compile C. Since we use `exit',
2732# in C++ we need to declare it. In case someone uses the same compiler
2733# for both compiling C and C++ we need to have the C++ compiler decide
2734# the declaration of exit, since it's the most demanding environment.
2735cat >conftest.$ac_ext <<_ACEOF
2736#ifndef __cplusplus
2737 choke me
2738#endif
2739_ACEOF
2740rm -f conftest.$ac_objext
2741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 for ac_declaration in \
2763 '' \
2764 'extern "C" void std::exit (int) throw (); using std::exit;' \
2765 'extern "C" void std::exit (int); using std::exit;' \
2766 'extern "C" void exit (int) throw ();' \
2767 'extern "C" void exit (int);' \
2768 'void exit (int);'
2769do
2770 cat >conftest.$ac_ext <<_ACEOF
2771/* confdefs.h. */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h. */
2776$ac_declaration
2777#include <stdlib.h>
2778int
2779main ()
2780{
2781exit (42);
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext
2787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
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); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 :
2809else
2810 echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813continue
2814fi
2815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 cat >conftest.$ac_ext <<_ACEOF
2817/* confdefs.h. */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h. */
2822$ac_declaration
2823int
2824main ()
2825{
2826exit (42);
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext
2832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 break
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860done
2861rm -f conftest*
2862if test -n "$ac_declaration"; then
2863 echo '#ifdef __cplusplus' >>confdefs.h
2864 echo $ac_declaration >>confdefs.h
2865 echo '#endif' >>confdefs.h
2866fi
2867
2868else
2869 echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872fi
2873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2874ac_ext=c
2875ac_cpp='$CPP $CPPFLAGS'
2876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879DEPDIR="${am__leading_dot}deps"
2880
2881 ac_config_commands="$ac_config_commands depfiles"
2882
2883
2884am_make=${MAKE-make}
2885cat > confinc << 'END'
2886am__doit:
2887 @echo done
2888.PHONY: am__doit
2889END
2890# If we don't find an include directive, just comment out the code.
2891echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2892echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2893am__include="#"
2894am__quote=
2895_am_result=none
2896# First try GNU make style include.
2897echo "include confinc" > confmf
2898# We grep out `Entering directory' and `Leaving directory'
2899# messages which can occur if `w' ends up in MAKEFLAGS.
2900# In particular we don't look at `^make:' because GNU make might
2901# be invoked under some other name (usually "gmake"), in which
2902# case it prints its new name instead of `make'.
2903if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2904 am__include=include
2905 am__quote=
2906 _am_result=GNU
2907fi
2908# Now try BSD make style include.
2909if test "$am__include" = "#"; then
2910 echo '.include "confinc"' > confmf
2911 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2912 am__include=.include
2913 am__quote="\""
2914 _am_result=BSD
2915 fi
2916fi
2917
2918
2919echo "$as_me:$LINENO: result: $_am_result" >&5
2920echo "${ECHO_T}$_am_result" >&6
2921rm -f confinc confmf
2922
2923# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2924if test "${enable_dependency_tracking+set}" = set; then
2925 enableval="$enable_dependency_tracking"
2926
2927fi;
2928if test "x$enable_dependency_tracking" != xno; then
2929 am_depcomp="$ac_aux_dir/depcomp"
2930 AMDEPBACKSLASH='\'
2931fi
2932
2933
2934if test "x$enable_dependency_tracking" != xno; then
2935 AMDEP_TRUE=
2936 AMDEP_FALSE='#'
2937else
2938 AMDEP_TRUE='#'
2939 AMDEP_FALSE=
2940fi
2941
2942
2943
2944
2945depcc="$CC" am_compiler_list=
2946
2947echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2948echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2949if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951else
2952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2953 # We make a subdir and do the tests there. Otherwise we can end up
2954 # making bogus files that we don't know about and never remove. For
2955 # instance it was reported that on HP-UX the gcc test will end up
2956 # making a dummy file named `D' -- because `-MD' means `put the output
2957 # in D'.
2958 mkdir conftest.dir
2959 # Copy depcomp to subdir because otherwise we won't find it if we're
2960 # using a relative directory.
2961 cp "$am_depcomp" conftest.dir
2962 cd conftest.dir
2963 # We will build objects and dependencies in a subdirectory because
2964 # it helps to detect inapplicable dependency modes. For instance
2965 # both Tru64's cc and ICC support -MD to output dependencies as a
2966 # side effect of compilation, but ICC will put the dependencies in
2967 # the current directory while Tru64 will put them in the object
2968 # directory.
2969 mkdir sub
2970
2971 am_cv_CC_dependencies_compiler_type=none
2972 if test "$am_compiler_list" = ""; then
2973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2974 fi
2975 for depmode in $am_compiler_list; do
2976 # Setup a source with many dependencies, because some compilers
2977 # like to wrap large dependency lists on column 80 (with \), and
2978 # we should not choose a depcomp mode which is confused by this.
2979 #
2980 # We need to recreate these files for each test, as the compiler may
2981 # overwrite some of them when testing with obscure command lines.
2982 # This happens at least with the AIX C compiler.
2983 : > sub/conftest.c
2984 for i in 1 2 3 4 5 6; do
2985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2987 # Solaris 8's {/usr,}/bin/sh.
2988 touch sub/conftst$i.h
2989 done
2990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2991
2992 case $depmode in
2993 nosideeffect)
2994 # after this tag, mechanisms are not by side-effect, so they'll
2995 # only be used when explicitly requested
2996 if test "x$enable_dependency_tracking" = xyes; then
2997 continue
2998 else
2999 break
3000 fi
3001 ;;
3002 none) break ;;
3003 esac
3004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3005 # mode. It turns out that the SunPro C++ compiler does not properly
3006 # handle `-M -o', and we need to detect this.
3007 if depmode=$depmode \
3008 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3010 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3011 >/dev/null 2>conftest.err &&
3012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3013 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3015 # icc doesn't choke on unknown options, it will just issue warnings
3016 # or remarks (even with -Werror). So we grep stderr for any message
3017 # that says an option was ignored or not supported.
3018 # When given -MP, icc 7.0 and 7.1 complain thusly:
3019 # icc: Command line warning: ignoring option '-M'; no argument required
3020 # The diagnosis changed in icc 8.0:
3021 # icc: Command line remark: option '-MP' not supported
3022 if (grep 'ignoring option' conftest.err ||
3023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3024 am_cv_CC_dependencies_compiler_type=$depmode
3025 break
3026 fi
3027 fi
3028 done
3029
3030 cd ..
3031 rm -rf conftest.dir
3032else
3033 am_cv_CC_dependencies_compiler_type=none
3034fi
3035
3036fi
3037echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3038echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3039CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3040
3041
3042
3043if
3044 test "x$enable_dependency_tracking" != xno \
3045 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3046 am__fastdepCC_TRUE=
3047 am__fastdepCC_FALSE='#'
3048else
3049 am__fastdepCC_TRUE='#'
3050 am__fastdepCC_FALSE=
3051fi
3052
3053
3054# Find a good install program. We prefer a C program (faster),
3055# so one script is as good as another. But avoid the broken or
3056# incompatible versions:
3057# SysV /etc/install, /usr/sbin/install
3058# SunOS /usr/etc/install
3059# IRIX /sbin/install
3060# AIX /bin/install
3061# AmigaOS /C/install, which installs bootblocks on floppy discs
3062# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3063# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3064# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3065# OS/2's system install, which has a completely different semantic
3066# ./install, which can be erroneously created by make from ./install.sh.
3067echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3068echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3069if test -z "$INSTALL"; then
3070if test "${ac_cv_path_install+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 # Account for people who put trailing slashes in PATH elements.
3079case $as_dir/ in
3080 ./ | .// | /cC/* | \
3081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3082 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3083 /usr/ucb/* ) ;;
3084 *)
3085 # OSF1 and SCO ODT 3.0 have their own names for install.
3086 # Don't use installbsd from OSF since it installs stuff as root
3087 # by default.
3088 for ac_prog in ginstall scoinst install; do
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3091 if test $ac_prog = install &&
3092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093 # AIX install. It has an incompatible calling convention.
3094 :
3095 elif test $ac_prog = install &&
3096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097 # program-specific install script used by HP pwplus--don't use.
3098 :
3099 else
3100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3101 break 3
3102 fi
3103 fi
3104 done
3105 done
3106 ;;
3107esac
3108done
3109
3110
3111fi
3112 if test "${ac_cv_path_install+set}" = set; then
3113 INSTALL=$ac_cv_path_install
3114 else
3115 # As a last resort, use the slow shell script. We don't cache a
3116 # path for INSTALL within a source directory, because that will
3117 # break other packages using the cache if that directory is
3118 # removed, or if the path is relative.
3119 INSTALL=$ac_install_sh
3120 fi
3121fi
3122echo "$as_me:$LINENO: result: $INSTALL" >&5
3123echo "${ECHO_T}$INSTALL" >&6
3124
3125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3126# It thinks the first close brace ends the variable substitution.
3127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3128
3129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3130
3131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3132
3133echo "$as_me:$LINENO: checking whether ln -s works" >&5
3134echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3135LN_S=$as_ln_s
3136if test "$LN_S" = "ln -s"; then
3137 echo "$as_me:$LINENO: result: yes" >&5
3138echo "${ECHO_T}yes" >&6
3139else
3140 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3141echo "${ECHO_T}no, using $LN_S" >&6
3142fi
3143
3144for ac_prog in perl5 perl
3145do
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147set dummy $ac_prog; ac_word=$2
3148echo "$as_me:$LINENO: checking for $ac_word" >&5
3149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3150if test "${ac_cv_path_PERL+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152else
3153 case $PERL in
3154 [\\/]* | ?:[\\/]*)
3155 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3156 ;;
3157 *)
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $LPATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170done
3171
3172 ;;
3173esac
3174fi
3175PERL=$ac_cv_path_PERL
3176
3177if test -n "$PERL"; then
3178 echo "$as_me:$LINENO: result: $PERL" >&5
3179echo "${ECHO_T}$PERL" >&6
3180else
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184
3185 test -n "$PERL" && break
3186done
3187test -n "$PERL" || PERL="perl"
3188
3189
3190for ac_prog in cat
3191do
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193set dummy $ac_prog; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_path_CAT+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199 case $CAT in
3200 [\\/]* | ?:[\\/]*)
3201 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3202 ;;
3203 *)
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216done
3217
3218 ;;
3219esac
3220fi
3221CAT=$ac_cv_path_CAT
3222
3223if test -n "$CAT"; then
3224 echo "$as_me:$LINENO: result: $CAT" >&5
3225echo "${ECHO_T}$CAT" >&6
3226else
3227 echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6
3229fi
3230
3231 test -n "$CAT" && break
3232done
3233test -n "$CAT" || CAT="cat"
3234
3235
3236
3237# Check whether --enable-shared or --disable-shared was given.
3238if test "${enable_shared+set}" = set; then
3239 enableval="$enable_shared"
3240 p=${PACKAGE-default}
3241 case $enableval in
3242 yes) enable_shared=yes ;;
3243 no) enable_shared=no ;;
3244 *)
3245 enable_shared=no
3246 # Look at the argument we got. We use all the common list separators.
3247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3248 for pkg in $enableval; do
3249 IFS="$lt_save_ifs"
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3252 fi
3253 done
3254 IFS="$lt_save_ifs"
3255 ;;
3256 esac
3257else
3258 enable_shared=yes
3259fi;
3260
3261# Check whether --enable-static or --disable-static was given.
3262if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
3265 case $enableval in
3266 yes) enable_static=yes ;;
3267 no) enable_static=no ;;
3268 *)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3272 for pkg in $enableval; do
3273 IFS="$lt_save_ifs"
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3276 fi
3277 done
3278 IFS="$lt_save_ifs"
3279 ;;
3280 esac
3281else
3282 enable_static=yes
3283fi;
3284
3285# Check whether --enable-fast-install or --disable-fast-install was given.
3286if test "${enable_fast_install+set}" = set; then
3287 enableval="$enable_fast_install"
3288 p=${PACKAGE-default}
3289 case $enableval in
3290 yes) enable_fast_install=yes ;;
3291 no) enable_fast_install=no ;;
3292 *)
3293 enable_fast_install=no
3294 # Look at the argument we got. We use all the common list separators.
3295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296 for pkg in $enableval; do
3297 IFS="$lt_save_ifs"
3298 if test "X$pkg" = "X$p"; then
3299 enable_fast_install=yes
3300 fi
3301 done
3302 IFS="$lt_save_ifs"
3303 ;;
3304 esac
3305else
3306 enable_fast_install=yes
3307fi;
3308
3309# Make sure we can run config.sub.
3310$ac_config_sub sun4 >/dev/null 2>&1 ||
3311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3312echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3313 { (exit 1); exit 1; }; }
3314
3315echo "$as_me:$LINENO: checking build system type" >&5
3316echo $ECHO_N "checking build system type... $ECHO_C" >&6
3317if test "${ac_cv_build+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320 ac_cv_build_alias=$build_alias
3321test -z "$ac_cv_build_alias" &&
3322 ac_cv_build_alias=`$ac_config_guess`
3323test -z "$ac_cv_build_alias" &&
3324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3325echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3326 { (exit 1); exit 1; }; }
3327ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3329echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3330 { (exit 1); exit 1; }; }
3331
3332fi
3333echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3334echo "${ECHO_T}$ac_cv_build" >&6
3335build=$ac_cv_build
3336build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3337build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3338build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3339
3340
3341echo "$as_me:$LINENO: checking host system type" >&5
3342echo $ECHO_N "checking host system type... $ECHO_C" >&6
3343if test "${ac_cv_host+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346 ac_cv_host_alias=$host_alias
3347test -z "$ac_cv_host_alias" &&
3348 ac_cv_host_alias=$ac_cv_build_alias
3349ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3351echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3352 { (exit 1); exit 1; }; }
3353
3354fi
3355echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3356echo "${ECHO_T}$ac_cv_host" >&6
3357host=$ac_cv_host
3358host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3359host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3360host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3361
3362
3363echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3364echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3365if test "${lt_cv_path_SED+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368 # Loop through the user's path and test for sed and gsed.
3369# Then use that list of sed's as ones to test for truncation.
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for lt_ac_prog in sed gsed; do
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3378 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3379 fi
3380 done
3381 done
3382done
3383IFS=$as_save_IFS
3384lt_ac_max=0
3385lt_ac_count=0
3386# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3387# along with /bin/sed that truncates output.
3388for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3389 test ! -f $lt_ac_sed && continue
3390 cat /dev/null > conftest.in
3391 lt_ac_count=0
3392 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3393 # Check for GNU sed and select it if it is found.
3394 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3395 lt_cv_path_SED=$lt_ac_sed
3396 break
3397 fi
3398 while true; do
3399 cat conftest.in conftest.in >conftest.tmp
3400 mv conftest.tmp conftest.in
3401 cp conftest.in conftest.nl
3402 echo >>conftest.nl
3403 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3404 cmp -s conftest.out conftest.nl || break
3405 # 10000 chars as input seems more than enough
3406 test $lt_ac_count -gt 10 && break
3407 lt_ac_count=`expr $lt_ac_count + 1`
3408 if test $lt_ac_count -gt $lt_ac_max; then
3409 lt_ac_max=$lt_ac_count
3410 lt_cv_path_SED=$lt_ac_sed
3411 fi
3412 done
3413done
3414
3415fi
3416
3417SED=$lt_cv_path_SED
3418
3419echo "$as_me:$LINENO: result: $SED" >&5
3420echo "${ECHO_T}$SED" >&6
3421
3422echo "$as_me:$LINENO: checking for egrep" >&5
3423echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3424if test "${ac_cv_prog_egrep+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3428 then ac_cv_prog_egrep='grep -E'
3429 else ac_cv_prog_egrep='egrep'
3430 fi
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3433echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3434 EGREP=$ac_cv_prog_egrep
3435
3436
3437
3438# Check whether --with-gnu-ld or --without-gnu-ld was given.
3439if test "${with_gnu_ld+set}" = set; then
3440 withval="$with_gnu_ld"
3441 test "$withval" = no || with_gnu_ld=yes
3442else
3443 with_gnu_ld=no
3444fi;
3445ac_prog=ld
3446if test "$GCC" = yes; then
3447 # Check if gcc -print-prog-name=ld gives a path.
3448 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3449echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3450 case $host in
3451 *-*-mingw*)
3452 # gcc leaves a trailing carriage return which upsets mingw
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3454 *)
3455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3456 esac
3457 case $ac_prog in
3458 # Accept absolute paths.
3459 [\\/]* | ?:[\\/]*)
3460 re_direlt='/[^/][^/]*/\.\./'
3461 # Canonicalize the pathname of ld
3462 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3464 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3465 done
3466 test -z "$LD" && LD="$ac_prog"
3467 ;;
3468 "")
3469 # If it fails, then pretend we aren't using GCC.
3470 ac_prog=ld
3471 ;;
3472 *)
3473 # If it is relative, then search for the first ld in PATH.
3474 with_gnu_ld=unknown
3475 ;;
3476 esac
3477elif test "$with_gnu_ld" = yes; then
3478 echo "$as_me:$LINENO: checking for GNU ld" >&5
3479echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3480else
3481 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3482echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3483fi
3484if test "${lt_cv_path_LD+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 if test -z "$LD"; then
3488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3489 for ac_dir in $PATH; do
3490 IFS="$lt_save_ifs"
3491 test -z "$ac_dir" && ac_dir=.
3492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3493 lt_cv_path_LD="$ac_dir/$ac_prog"
3494 # Check to see if the program is GNU ld. I'd rather use --version,
3495 # but apparently some variants of GNU ld only accept -v.
3496 # Break only if it was the GNU/non-GNU ld that we prefer.
3497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3498 *GNU* | *'with BFD'*)
3499 test "$with_gnu_ld" != no && break
3500 ;;
3501 *)
3502 test "$with_gnu_ld" != yes && break
3503 ;;
3504 esac
3505 fi
3506 done
3507 IFS="$lt_save_ifs"
3508else
3509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3510fi
3511fi
3512
3513LD="$lt_cv_path_LD"
3514if test -n "$LD"; then
3515 echo "$as_me:$LINENO: result: $LD" >&5
3516echo "${ECHO_T}$LD" >&6
3517else
3518 echo "$as_me:$LINENO: result: no" >&5
3519echo "${ECHO_T}no" >&6
3520fi
3521test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3522echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3523 { (exit 1); exit 1; }; }
3524echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3525echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3526if test "${lt_cv_prog_gnu_ld+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3530case `$LD -v 2>&1 </dev/null` in
3531*GNU* | *'with BFD'*)
3532 lt_cv_prog_gnu_ld=yes
3533 ;;
3534*)
3535 lt_cv_prog_gnu_ld=no
3536 ;;
3537esac
3538fi
3539echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3540echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3541with_gnu_ld=$lt_cv_prog_gnu_ld
3542
3543
3544echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3545echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3546if test "${lt_cv_ld_reload_flag+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 lt_cv_ld_reload_flag='-r'
3550fi
3551echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3552echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3553reload_flag=$lt_cv_ld_reload_flag
3554case $reload_flag in
3555"" | " "*) ;;
3556*) reload_flag=" $reload_flag" ;;
3557esac
3558reload_cmds='$LD$reload_flag -o $output$reload_objs'
3559case $host_os in
3560 darwin*)
3561 if test "$GCC" = yes; then
3562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3563 else
3564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3565 fi
3566 ;;
3567esac
3568
3569echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3570echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3571if test "${lt_cv_path_NM+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574 if test -n "$NM"; then
3575 # Let the user override the test.
3576 lt_cv_path_NM="$NM"
3577else
3578 lt_nm_to_check="${ac_tool_prefix}nm"
3579 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3580 lt_nm_to_check="$lt_nm_to_check nm"
3581 fi
3582 for lt_tmp_nm in $lt_nm_to_check; do
3583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3584 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3585 IFS="$lt_save_ifs"
3586 test -z "$ac_dir" && ac_dir=.
3587 tmp_nm="$ac_dir/$lt_tmp_nm"
3588 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3589 # Check to see if the nm accepts a BSD-compat flag.
3590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3591 # nm: unknown option "B" ignored
3592 # Tru64's nm complains that /dev/null is an invalid object file
3593 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3594 */dev/null* | *'Invalid file or object type'*)
3595 lt_cv_path_NM="$tmp_nm -B"
3596 break
3597 ;;
3598 *)
3599 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3600 */dev/null*)
3601 lt_cv_path_NM="$tmp_nm -p"
3602 break
3603 ;;
3604 *)
3605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3606 continue # so that we can try to find one that supports BSD flags
3607 ;;
3608 esac
3609 ;;
3610 esac
3611 fi
3612 done
3613 IFS="$lt_save_ifs"
3614 done
3615 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3616fi
3617fi
3618echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3619echo "${ECHO_T}$lt_cv_path_NM" >&6
3620NM="$lt_cv_path_NM"
3621
3622echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3623echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3624if test "${lt_cv_deplibs_check_method+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
3627 lt_cv_file_magic_cmd='$MAGIC_CMD'
3628lt_cv_file_magic_test_file=
3629lt_cv_deplibs_check_method='unknown'
3630# Need to set the preceding variable on all platforms that support
3631# interlibrary dependencies.
3632# 'none' -- dependencies not supported.
3633# `unknown' -- same as none, but documents that we really don't know.
3634# 'pass_all' -- all dependencies passed with no checks.
3635# 'test_compile' -- check by making test program.
3636# 'file_magic [[regex]]' -- check by looking for files in library path
3637# which responds to the $file_magic_cmd with a given extended regex.
3638# If you have `file' or equivalent on your system and you're not sure
3639# whether `pass_all' will *always* work, you probably want this one.
3640
3641case $host_os in
3642aix4* | aix5*)
3643 lt_cv_deplibs_check_method=pass_all
3644 ;;
3645
3646beos*)
3647 lt_cv_deplibs_check_method=pass_all
3648 ;;
3649
3650bsdi[45]*)
3651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3652 lt_cv_file_magic_cmd='/usr/bin/file -L'
3653 lt_cv_file_magic_test_file=/shlib/libc.so
3654 ;;
3655
3656cygwin*)
3657 # func_win32_libid is a shell function defined in ltmain.sh
3658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3659 lt_cv_file_magic_cmd='func_win32_libid'
3660 ;;
3661
3662mingw* | pw32*)
3663 # Base MSYS/MinGW do not provide the 'file' command needed by
3664 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3665 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3666 lt_cv_file_magic_cmd='$OBJDUMP -f'
3667 ;;
3668
3669darwin* | rhapsody*)
3670 lt_cv_deplibs_check_method=pass_all
3671 ;;
3672
3673freebsd* | kfreebsd*-gnu | dragonfly*)
3674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3675 case $host_cpu in
3676 i*86 )
3677 # Not sure whether the presence of OpenBSD here was a mistake.
3678 # Let's accept both of them until this is cleared up.
3679 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3680 lt_cv_file_magic_cmd=/usr/bin/file
3681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3682 ;;
3683 esac
3684 else
3685 lt_cv_deplibs_check_method=pass_all
3686 fi
3687 ;;
3688
3689gnu*)
3690 lt_cv_deplibs_check_method=pass_all
3691 ;;
3692
3693hpux10.20* | hpux11*)
3694 lt_cv_file_magic_cmd=/usr/bin/file
3695 case $host_cpu in
3696 ia64*)
3697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3698 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3699 ;;
3700 hppa*64*)
3701 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]'
3702 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3703 ;;
3704 *)
3705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3706 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3707 ;;
3708 esac
3709 ;;
3710
3711interix3*)
3712 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3714 ;;
3715
3716irix5* | irix6* | nonstopux*)
3717 case $LD in
3718 *-32|*"-32 ") libmagic=32-bit;;
3719 *-n32|*"-n32 ") libmagic=N32;;
3720 *-64|*"-64 ") libmagic=64-bit;;
3721 *) libmagic=never-match;;
3722 esac
3723 lt_cv_deplibs_check_method=pass_all
3724 ;;
3725
3726# This must be Linux ELF.
3727linux*)
3728 lt_cv_deplibs_check_method=pass_all
3729 ;;
3730
3731netbsd*)
3732 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3734 else
3735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3736 fi
3737 ;;
3738
3739newos6*)
3740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3741 lt_cv_file_magic_cmd=/usr/bin/file
3742 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3743 ;;
3744
3745nto-qnx*)
3746 lt_cv_deplibs_check_method=unknown
3747 ;;
3748
3749openbsd*)
3750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3752 else
3753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3754 fi
3755 ;;
3756
3757osf3* | osf4* | osf5*)
3758 lt_cv_deplibs_check_method=pass_all
3759 ;;
3760
3761solaris*)
3762 lt_cv_deplibs_check_method=pass_all
3763 ;;
3764
3765sysv4 | sysv4.3*)
3766 case $host_vendor in
3767 motorola)
3768 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]'
3769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3770 ;;
3771 ncr)
3772 lt_cv_deplibs_check_method=pass_all
3773 ;;
3774 sequent)
3775 lt_cv_file_magic_cmd='/bin/file'
3776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3777 ;;
3778 sni)
3779 lt_cv_file_magic_cmd='/bin/file'
3780 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3781 lt_cv_file_magic_test_file=/lib/libc.so
3782 ;;
3783 siemens)
3784 lt_cv_deplibs_check_method=pass_all
3785 ;;
3786 pc)
3787 lt_cv_deplibs_check_method=pass_all
3788 ;;
3789 esac
3790 ;;
3791
3792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3793 lt_cv_deplibs_check_method=pass_all
3794 ;;
3795esac
3796
3797fi
3798echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3799echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3800file_magic_cmd=$lt_cv_file_magic_cmd
3801deplibs_check_method=$lt_cv_deplibs_check_method
3802test -z "$deplibs_check_method" && deplibs_check_method=unknown
3803
3804
3805
3806
3807# If no C compiler was specified, use CC.
3808LTCC=${LTCC-"$CC"}
3809
3810# If no C compiler flags were specified, use CFLAGS.
3811LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3812
3813# Allow CC to be a program name with arguments.
3814compiler=$CC
3815
3816
3817# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3818if test "${enable_libtool_lock+set}" = set; then
3819 enableval="$enable_libtool_lock"
3820
3821fi;
3822test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3823
3824# Some flags need to be propagated to the compiler or linker for good
3825# libtool support.
3826case $host in
3827ia64-*-hpux*)
3828 # Find out which ABI we are using.
3829 echo 'int i;' > conftest.$ac_ext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; then
3835 case `/usr/bin/file conftest.$ac_objext` in
3836 *ELF-32*)
3837 HPUX_IA64_MODE="32"
3838 ;;
3839 *ELF-64*)
3840 HPUX_IA64_MODE="64"
3841 ;;
3842 esac
3843 fi
3844 rm -rf conftest*
3845 ;;
3846*-*-irix6*)
3847 # Find out which ABI we are using.
3848 echo '#line 3848 "configure"' > conftest.$ac_ext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; then
3854 if test "$lt_cv_prog_gnu_ld" = yes; then
3855 case `/usr/bin/file conftest.$ac_objext` in
3856 *32-bit*)
3857 LD="${LD-ld} -melf32bsmip"
3858 ;;
3859 *N32*)
3860 LD="${LD-ld} -melf32bmipn32"
3861 ;;
3862 *64-bit*)
3863 LD="${LD-ld} -melf64bmip"
3864 ;;
3865 esac
3866 else
3867 case `/usr/bin/file conftest.$ac_objext` in
3868 *32-bit*)
3869 LD="${LD-ld} -32"
3870 ;;
3871 *N32*)
3872 LD="${LD-ld} -n32"
3873 ;;
3874 *64-bit*)
3875 LD="${LD-ld} -64"
3876 ;;
3877 esac
3878 fi
3879 fi
3880 rm -rf conftest*
3881 ;;
3882
3883x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3884 # Find out which ABI we are using.
3885 echo 'int i;' > conftest.$ac_ext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; then
3891 case `/usr/bin/file conftest.o` in
3892 *32-bit*)
3893 case $host in
3894 x86_64-*linux*)
3895 LD="${LD-ld} -m elf_i386"
3896 ;;
3897 ppc64-*linux*|powerpc64-*linux*)
3898 LD="${LD-ld} -m elf32ppclinux"
3899 ;;
3900 s390x-*linux*)
3901 LD="${LD-ld} -m elf_s390"
3902 ;;
3903 sparc64-*linux*)
3904 LD="${LD-ld} -m elf32_sparc"
3905 ;;
3906 esac
3907 ;;
3908 *64-bit*)
3909 case $host in
3910 x86_64-*linux*)
3911 LD="${LD-ld} -m elf_x86_64"
3912 ;;
3913 ppc*-*linux*|powerpc*-*linux*)
3914 LD="${LD-ld} -m elf64ppc"
3915 ;;
3916 s390*-*linux*)
3917 LD="${LD-ld} -m elf64_s390"
3918 ;;
3919 sparc*-*linux*)
3920 LD="${LD-ld} -m elf64_sparc"
3921 ;;
3922 esac
3923 ;;
3924 esac
3925 fi
3926 rm -rf conftest*
3927 ;;
3928
3929*-*-sco3.2v5*)
3930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3931 SAVE_CFLAGS="$CFLAGS"
3932 CFLAGS="$CFLAGS -belf"
3933 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3934echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3935if test "${lt_cv_cc_needs_belf+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944 cat >conftest.$ac_ext <<_ACEOF
3945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
3950
3951int
3952main ()
3953{
3954
3955 ;
3956 return 0;
3957}
3958_ACEOF
3959rm -f conftest.$ac_objext conftest$ac_exeext
3960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3961 (eval $ac_link) 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -z "$ac_c_werror_flag"
3969 || test ! -s conftest.err'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try='test -s conftest$ac_exeext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 lt_cv_cc_needs_belf=yes
3982else
3983 echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986lt_cv_cc_needs_belf=no
3987fi
3988rm -f conftest.err conftest.$ac_objext \
3989 conftest$ac_exeext conftest.$ac_ext
3990 ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996fi
3997echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3998echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4001 CFLAGS="$SAVE_CFLAGS"
4002 fi
4003 ;;
4004sparc*-*solaris*)
4005 # Find out which ABI we are using.
4006 echo 'int i;' > conftest.$ac_ext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; then
4012 case `/usr/bin/file conftest.o` in
4013 *64-bit*)
4014 case $lt_cv_prog_gnu_ld in
4015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4016 *) LD="${LD-ld} -64" ;;
4017 esac
4018 ;;
4019 esac
4020 fi
4021 rm -rf conftest*
4022 ;;
4023
4024
4025esac
4026
4027need_locks="$enable_libtool_lock"
4028
4029
4030ac_ext=c
4031ac_cpp='$CPP $CPPFLAGS'
4032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4036echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4037# On Suns, sometimes $CPP names a directory.
4038if test -n "$CPP" && test -d "$CPP"; then
4039 CPP=
4040fi
4041if test -z "$CPP"; then
4042 if test "${ac_cv_prog_CPP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 # Double quotes because CPP needs to be expanded
4046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4047 do
4048 ac_preproc_ok=false
4049for ac_c_preproc_warn_flag in '' yes
4050do
4051 # Use a header file that comes with gcc, so configuring glibc
4052 # with a fresh cross-compiler works.
4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054 # <limits.h> exists even on freestanding compilers.
4055 # On the NeXT, cc -E runs the code through the compiler's parser,
4056 # not just through cpp. "Syntax error" is here to catch this case.
4057 cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063#ifdef __STDC__
4064# include <limits.h>
4065#else
4066# include <assert.h>
4067#endif
4068 Syntax error
4069_ACEOF
4070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } >/dev/null; then
4078 if test -s conftest.err; then
4079 ac_cpp_err=$ac_c_preproc_warn_flag
4080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4081 else
4082 ac_cpp_err=
4083 fi
4084else
4085 ac_cpp_err=yes
4086fi
4087if test -z "$ac_cpp_err"; then
4088 :
4089else
4090 echo "$as_me: failed program was:" >&5
4091sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 # Broken: fails on valid input.
4094continue
4095fi
4096rm -f conftest.err conftest.$ac_ext
4097
4098 # OK, works on sane cases. Now check whether non-existent headers
4099 # can be detected and how.
4100 cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h. */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h. */
4106#include <ac_nonexistent.h>
4107_ACEOF
4108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null; then
4116 if test -s conftest.err; then
4117 ac_cpp_err=$ac_c_preproc_warn_flag
4118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4119 else
4120 ac_cpp_err=
4121 fi
4122else
4123 ac_cpp_err=yes
4124fi
4125if test -z "$ac_cpp_err"; then
4126 # Broken: success on invalid input.
4127continue
4128else
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 # Passes both tests.
4133ac_preproc_ok=:
4134break
4135fi
4136rm -f conftest.err conftest.$ac_ext
4137
4138done
4139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140rm -f conftest.err conftest.$ac_ext
4141if $ac_preproc_ok; then
4142 break
4143fi
4144
4145 done
4146 ac_cv_prog_CPP=$CPP
4147
4148fi
4149 CPP=$ac_cv_prog_CPP
4150else
4151 ac_cv_prog_CPP=$CPP
4152fi
4153echo "$as_me:$LINENO: result: $CPP" >&5
4154echo "${ECHO_T}$CPP" >&6
4155ac_preproc_ok=false
4156for ac_c_preproc_warn_flag in '' yes
4157do
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170#ifdef __STDC__
4171# include <limits.h>
4172#else
4173# include <assert.h>
4174#endif
4175 Syntax error
4176_ACEOF
4177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev/null; then
4185 if test -s conftest.err; then
4186 ac_cpp_err=$ac_c_preproc_warn_flag
4187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4188 else
4189 ac_cpp_err=
4190 fi
4191else
4192 ac_cpp_err=yes
4193fi
4194if test -z "$ac_cpp_err"; then
4195 :
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 # Broken: fails on valid input.
4201continue
4202fi
4203rm -f conftest.err conftest.$ac_ext
4204
4205 # OK, works on sane cases. Now check whether non-existent headers
4206 # can be detected and how.
4207 cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h. */
4213#include <ac_nonexistent.h>
4214_ACEOF
4215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } >/dev/null; then
4223 if test -s conftest.err; then
4224 ac_cpp_err=$ac_c_preproc_warn_flag
4225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4226 else
4227 ac_cpp_err=
4228 fi
4229else
4230 ac_cpp_err=yes
4231fi
4232if test -z "$ac_cpp_err"; then
4233 # Broken: success on invalid input.
4234continue
4235else
4236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 # Passes both tests.
4240ac_preproc_ok=:
4241break
4242fi
4243rm -f conftest.err conftest.$ac_ext
4244
4245done
4246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4247rm -f conftest.err conftest.$ac_ext
4248if $ac_preproc_ok; then
4249 :
4250else
4251 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4252See \`config.log' for more details." >&5
4253echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4254See \`config.log' for more details." >&2;}
4255 { (exit 1); exit 1; }; }
4256fi
4257
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
4264
4265echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4266echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4267if test "${ac_cv_header_stdc+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270 cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276#include <stdlib.h>
4277#include <stdarg.h>
4278#include <string.h>
4279#include <float.h>
4280
4281int
4282main ()
4283{
4284
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext
4290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_cv_header_stdc=yes
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316ac_cv_header_stdc=no
4317fi
4318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319
4320if test $ac_cv_header_stdc = yes; then
4321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322 cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
4328#include <string.h>
4329
4330_ACEOF
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "memchr" >/dev/null 2>&1; then
4333 :
4334else
4335 ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343 cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
4349#include <stdlib.h>
4350
4351_ACEOF
4352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353 $EGREP "free" >/dev/null 2>&1; then
4354 :
4355else
4356 ac_cv_header_stdc=no
4357fi
4358rm -f conftest*
4359
4360fi
4361
4362if test $ac_cv_header_stdc = yes; then
4363 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4364 if test "$cross_compiling" = yes; then
4365 :
4366else
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <ctype.h>
4374#if ((' ' & 0x0FF) == 0x020)
4375# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4376# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4377#else
4378# define ISLOWER(c) \
4379 (('a' <= (c) && (c) <= 'i') \
4380 || ('j' <= (c) && (c) <= 'r') \
4381 || ('s' <= (c) && (c) <= 'z'))
4382# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383#endif
4384
4385#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4386int
4387main ()
4388{
4389 int i;
4390 for (i = 0; i < 256; i++)
4391 if (XOR (islower (i), ISLOWER (i))
4392 || toupper (i) != TOUPPER (i))
4393 exit(2);
4394 exit (0);
4395}
4396_ACEOF
4397rm -f conftest$ac_exeext
4398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399 (eval $ac_link) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 :
4409else
4410 echo "$as_me: program exited with status $ac_status" >&5
4411echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414( exit $ac_status )
4415ac_cv_header_stdc=no
4416fi
4417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4418fi
4419fi
4420fi
4421echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4422echo "${ECHO_T}$ac_cv_header_stdc" >&6
4423if test $ac_cv_header_stdc = yes; then
4424
4425cat >>confdefs.h <<\_ACEOF
4426#define STDC_HEADERS 1
4427_ACEOF
4428
4429fi
4430
4431# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4442 inttypes.h stdint.h unistd.h
4443do
4444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4445echo "$as_me:$LINENO: checking for $ac_header" >&5
4446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4447if eval "test \"\${$as_ac_Header+set}\" = set"; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h. */
4452_ACEOF
4453cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h. */
4456$ac_includes_default
4457
4458#include <$ac_header>
4459_ACEOF
4460rm -f conftest.$ac_objext
4461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag"
4470 || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 eval "$as_ac_Header=yes"
4483else
4484 echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487eval "$as_ac_Header=no"
4488fi
4489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4490fi
4491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4493if test `eval echo '${'$as_ac_Header'}'` = yes; then
4494 cat >>confdefs.h <<_ACEOF
4495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4496_ACEOF
4497
4498fi
4499
4500done
4501
4502
4503
4504for ac_header in dlfcn.h
4505do
4506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4507if eval "test \"\${$as_ac_Header+set}\" = set"; then
4508 echo "$as_me:$LINENO: checking for $ac_header" >&5
4509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4510if eval "test \"\${$as_ac_Header+set}\" = set"; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512fi
4513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4515else
4516 # Is the header compilable?
4517echo "$as_me:$LINENO: checking $ac_header usability" >&5
4518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4519cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526#include <$ac_header>
4527_ACEOF
4528rm -f conftest.$ac_objext
4529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_header_compiler=yes
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555ac_header_compiler=no
4556fi
4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4559echo "${ECHO_T}$ac_header_compiler" >&6
4560
4561# Is the header present?
4562echo "$as_me:$LINENO: checking $ac_header presence" >&5
4563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4564cat >conftest.$ac_ext <<_ACEOF
4565/* confdefs.h. */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h. */
4570#include <$ac_header>
4571_ACEOF
4572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } >/dev/null; then
4580 if test -s conftest.err; then
4581 ac_cpp_err=$ac_c_preproc_warn_flag
4582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4583 else
4584 ac_cpp_err=
4585 fi
4586else
4587 ac_cpp_err=yes
4588fi
4589if test -z "$ac_cpp_err"; then
4590 ac_header_preproc=yes
4591else
4592 echo "$as_me: failed program was:" >&5
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 ac_header_preproc=no
4596fi
4597rm -f conftest.err conftest.$ac_ext
4598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4599echo "${ECHO_T}$ac_header_preproc" >&6
4600
4601# So? What about this header?
4602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4603 yes:no: )
4604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4608 ac_header_preproc=yes
4609 ;;
4610 no:yes:* )
4611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4623 (
4624 cat <<\_ASBOX
4625## -------------------------------------------------- ##
4626## Report this to courier-users@lists.sourceforge.net ##
4627## -------------------------------------------------- ##
4628_ASBOX
4629 ) |
4630 sed "s/^/$as_me: WARNING: /" >&2
4631 ;;
4632esac
4633echo "$as_me:$LINENO: checking for $ac_header" >&5
4634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 eval "$as_ac_Header=\$ac_header_preproc"
4639fi
4640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642
4643fi
4644if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645 cat >>confdefs.h <<_ACEOF
4646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647_ACEOF
4648
4649fi
4650
4651done
4652
4653ac_ext=cc
4654ac_cpp='$CXXCPP $CPPFLAGS'
4655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4658if test -n "$ac_tool_prefix"; then
4659 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4660 do
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_prog_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 if test -n "$CXX"; then
4669 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682done
4683done
4684
4685fi
4686fi
4687CXX=$ac_cv_prog_CXX
4688if test -n "$CXX"; then
4689 echo "$as_me:$LINENO: result: $CXX" >&5
4690echo "${ECHO_T}$CXX" >&6
4691else
4692 echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
4694fi
4695
4696 test -n "$CXX" && break
4697 done
4698fi
4699if test -z "$CXX"; then
4700 ac_ct_CXX=$CXX
4701 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4702do
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704set dummy $ac_prog; ac_word=$2
4705echo "$as_me:$LINENO: checking for $ac_word" >&5
4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710 if test -n "$ac_ct_CXX"; then
4711 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_CXX="$ac_prog"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724done
4725done
4726
4727fi
4728fi
4729ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4730if test -n "$ac_ct_CXX"; then
4731 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4732echo "${ECHO_T}$ac_ct_CXX" >&6
4733else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736fi
4737
4738 test -n "$ac_ct_CXX" && break
4739done
4740test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4741
4742 CXX=$ac_ct_CXX
4743fi
4744
4745
4746# Provide some information about the compiler.
4747echo "$as_me:$LINENO:" \
4748 "checking for C++ compiler version" >&5
4749ac_compiler=`set X $ac_compile; echo $2`
4750{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4751 (eval $ac_compiler --version </dev/null >&5) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }
4755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4756 (eval $ac_compiler -v </dev/null >&5) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }
4760{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4761 (eval $ac_compiler -V </dev/null >&5) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4765
4766echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4767echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4768if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771 cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h. */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781#ifndef __GNUC__
4782 choke me
4783#endif
4784
4785 ;
4786 return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext
4790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>conftest.er1
4792 ac_status=$?
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_cxx_werror_flag"
4799 || test ! -s conftest.err'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; } &&
4805 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4811 ac_compiler_gnu=yes
4812else
4813 echo "$as_me: failed program was:" >&5
4814sed 's/^/| /' conftest.$ac_ext >&5
4815
4816ac_compiler_gnu=no
4817fi
4818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4820
4821fi
4822echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4823echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4824GXX=`test $ac_compiler_gnu = yes && echo yes`
4825ac_test_CXXFLAGS=${CXXFLAGS+set}
4826ac_save_CXXFLAGS=$CXXFLAGS
4827CXXFLAGS="-g"
4828echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4829echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4830if test "${ac_cv_prog_cxx_g+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833 cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839
4840int
4841main ()
4842{
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_cxx_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_prog_cxx_g=yes
4871else
4872 echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875ac_cv_prog_cxx_g=no
4876fi
4877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4880echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4881if test "$ac_test_CXXFLAGS" = set; then
4882 CXXFLAGS=$ac_save_CXXFLAGS
4883elif test $ac_cv_prog_cxx_g = yes; then
4884 if test "$GXX" = yes; then
4885 CXXFLAGS="-g -O2"
4886 else
4887 CXXFLAGS="-g"
4888 fi
4889else
4890 if test "$GXX" = yes; then
4891 CXXFLAGS="-O2"
4892 else
4893 CXXFLAGS=
4894 fi
4895fi
4896for ac_declaration in \
4897 '' \
4898 'extern "C" void std::exit (int) throw (); using std::exit;' \
4899 'extern "C" void std::exit (int); using std::exit;' \
4900 'extern "C" void exit (int) throw ();' \
4901 'extern "C" void exit (int);' \
4902 'void exit (int);'
4903do
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910$ac_declaration
4911#include <stdlib.h>
4912int
4913main ()
4914{
4915exit (42);
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext
4921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_cxx_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 :
4943else
4944 echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
4947continue
4948fi
4949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4950 cat >conftest.$ac_ext <<_ACEOF
4951/* confdefs.h. */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h. */
4956$ac_declaration
4957int
4958main ()
4959{
4960exit (42);
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext
4966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_cxx_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 break
4988else
4989 echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992fi
4993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4994done
4995rm -f conftest*
4996if test -n "$ac_declaration"; then
4997 echo '#ifdef __cplusplus' >>confdefs.h
4998 echo $ac_declaration >>confdefs.h
4999 echo '#endif' >>confdefs.h
5000fi
5001
5002ac_ext=cc
5003ac_cpp='$CXXCPP $CPPFLAGS'
5004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007
5008depcc="$CXX" am_compiler_list=
5009
5010echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5011echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5012if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5016 # We make a subdir and do the tests there. Otherwise we can end up
5017 # making bogus files that we don't know about and never remove. For
5018 # instance it was reported that on HP-UX the gcc test will end up
5019 # making a dummy file named `D' -- because `-MD' means `put the output
5020 # in D'.
5021 mkdir conftest.dir
5022 # Copy depcomp to subdir because otherwise we won't find it if we're
5023 # using a relative directory.
5024 cp "$am_depcomp" conftest.dir
5025 cd conftest.dir
5026 # We will build objects and dependencies in a subdirectory because
5027 # it helps to detect inapplicable dependency modes. For instance
5028 # both Tru64's cc and ICC support -MD to output dependencies as a
5029 # side effect of compilation, but ICC will put the dependencies in
5030 # the current directory while Tru64 will put them in the object
5031 # directory.
5032 mkdir sub
5033
5034 am_cv_CXX_dependencies_compiler_type=none
5035 if test "$am_compiler_list" = ""; then
5036 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5037 fi
5038 for depmode in $am_compiler_list; do
5039 # Setup a source with many dependencies, because some compilers
5040 # like to wrap large dependency lists on column 80 (with \), and
5041 # we should not choose a depcomp mode which is confused by this.
5042 #
5043 # We need to recreate these files for each test, as the compiler may
5044 # overwrite some of them when testing with obscure command lines.
5045 # This happens at least with the AIX C compiler.
5046 : > sub/conftest.c
5047 for i in 1 2 3 4 5 6; do
5048 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5050 # Solaris 8's {/usr,}/bin/sh.
5051 touch sub/conftst$i.h
5052 done
5053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5054
5055 case $depmode in
5056 nosideeffect)
5057 # after this tag, mechanisms are not by side-effect, so they'll
5058 # only be used when explicitly requested
5059 if test "x$enable_dependency_tracking" = xyes; then
5060 continue
5061 else
5062 break
5063 fi
5064 ;;
5065 none) break ;;
5066 esac
5067 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5068 # mode. It turns out that the SunPro C++ compiler does not properly
5069 # handle `-M -o', and we need to detect this.
5070 if depmode=$depmode \
5071 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5073 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5074 >/dev/null 2>conftest.err &&
5075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5076 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5078 # icc doesn't choke on unknown options, it will just issue warnings
5079 # or remarks (even with -Werror). So we grep stderr for any message
5080 # that says an option was ignored or not supported.
5081 # When given -MP, icc 7.0 and 7.1 complain thusly:
5082 # icc: Command line warning: ignoring option '-M'; no argument required
5083 # The diagnosis changed in icc 8.0:
5084 # icc: Command line remark: option '-MP' not supported
5085 if (grep 'ignoring option' conftest.err ||
5086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5087 am_cv_CXX_dependencies_compiler_type=$depmode
5088 break
5089 fi
5090 fi
5091 done
5092
5093 cd ..
5094 rm -rf conftest.dir
5095else
5096 am_cv_CXX_dependencies_compiler_type=none
5097fi
5098
5099fi
5100echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5101echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5102CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5103
5104
5105
5106if
5107 test "x$enable_dependency_tracking" != xno \
5108 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5109 am__fastdepCXX_TRUE=
5110 am__fastdepCXX_FALSE='#'
5111else
5112 am__fastdepCXX_TRUE='#'
5113 am__fastdepCXX_FALSE=
5114fi
5115
5116
5117
5118
5119if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5120 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5121 (test "X$CXX" != "Xg++"))) ; then
5122 ac_ext=cc
5123ac_cpp='$CXXCPP $CPPFLAGS'
5124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5128echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5129if test -z "$CXXCPP"; then
5130 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 # Double quotes because CXXCPP needs to be expanded
5134 for CXXCPP in "$CXX -E" "/lib/cpp"
5135 do
5136 ac_preproc_ok=false
5137for ac_cxx_preproc_warn_flag in '' yes
5138do
5139 # Use a header file that comes with gcc, so configuring glibc
5140 # with a fresh cross-compiler works.
5141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142 # <limits.h> exists even on freestanding compilers.
5143 # On the NeXT, cc -E runs the code through the compiler's parser,
5144 # not just through cpp. "Syntax error" is here to catch this case.
5145 cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
5151#ifdef __STDC__
5152# include <limits.h>
5153#else
5154# include <assert.h>
5155#endif
5156 Syntax error
5157_ACEOF
5158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } >/dev/null; then
5166 if test -s conftest.err; then
5167 ac_cpp_err=$ac_cxx_preproc_warn_flag
5168 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5169 else
5170 ac_cpp_err=
5171 fi
5172else
5173 ac_cpp_err=yes
5174fi
5175if test -z "$ac_cpp_err"; then
5176 :
5177else
5178 echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 # Broken: fails on valid input.
5182continue
5183fi
5184rm -f conftest.err conftest.$ac_ext
5185
5186 # OK, works on sane cases. Now check whether non-existent headers
5187 # can be detected and how.
5188 cat >conftest.$ac_ext <<_ACEOF
5189/* confdefs.h. */
5190_ACEOF
5191cat confdefs.h >>conftest.$ac_ext
5192cat >>conftest.$ac_ext <<_ACEOF
5193/* end confdefs.h. */
5194#include <ac_nonexistent.h>
5195_ACEOF
5196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } >/dev/null; then
5204 if test -s conftest.err; then
5205 ac_cpp_err=$ac_cxx_preproc_warn_flag
5206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5207 else
5208 ac_cpp_err=
5209 fi
5210else
5211 ac_cpp_err=yes
5212fi
5213if test -z "$ac_cpp_err"; then
5214 # Broken: success on invalid input.
5215continue
5216else
5217 echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 # Passes both tests.
5221ac_preproc_ok=:
5222break
5223fi
5224rm -f conftest.err conftest.$ac_ext
5225
5226done
5227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5228rm -f conftest.err conftest.$ac_ext
5229if $ac_preproc_ok; then
5230 break
5231fi
5232
5233 done
5234 ac_cv_prog_CXXCPP=$CXXCPP
5235
5236fi
5237 CXXCPP=$ac_cv_prog_CXXCPP
5238else
5239 ac_cv_prog_CXXCPP=$CXXCPP
5240fi
5241echo "$as_me:$LINENO: result: $CXXCPP" >&5
5242echo "${ECHO_T}$CXXCPP" >&6
5243ac_preproc_ok=false
5244for ac_cxx_preproc_warn_flag in '' yes
5245do
5246 # Use a header file that comes with gcc, so configuring glibc
5247 # with a fresh cross-compiler works.
5248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5249 # <limits.h> exists even on freestanding compilers.
5250 # On the NeXT, cc -E runs the code through the compiler's parser,
5251 # not just through cpp. "Syntax error" is here to catch this case.
5252 cat >conftest.$ac_ext <<_ACEOF
5253/* confdefs.h. */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h. */
5258#ifdef __STDC__
5259# include <limits.h>
5260#else
5261# include <assert.h>
5262#endif
5263 Syntax error
5264_ACEOF
5265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } >/dev/null; then
5273 if test -s conftest.err; then
5274 ac_cpp_err=$ac_cxx_preproc_warn_flag
5275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5276 else
5277 ac_cpp_err=
5278 fi
5279else
5280 ac_cpp_err=yes
5281fi
5282if test -z "$ac_cpp_err"; then
5283 :
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 # Broken: fails on valid input.
5289continue
5290fi
5291rm -f conftest.err conftest.$ac_ext
5292
5293 # OK, works on sane cases. Now check whether non-existent headers
5294 # can be detected and how.
5295 cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h. */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h. */
5301#include <ac_nonexistent.h>
5302_ACEOF
5303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } >/dev/null; then
5311 if test -s conftest.err; then
5312 ac_cpp_err=$ac_cxx_preproc_warn_flag
5313 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5314 else
5315 ac_cpp_err=
5316 fi
5317else
5318 ac_cpp_err=yes
5319fi
5320if test -z "$ac_cpp_err"; then
5321 # Broken: success on invalid input.
5322continue
5323else
5324 echo "$as_me: failed program was:" >&5
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 # Passes both tests.
5328ac_preproc_ok=:
5329break
5330fi
5331rm -f conftest.err conftest.$ac_ext
5332
5333done
5334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5335rm -f conftest.err conftest.$ac_ext
5336if $ac_preproc_ok; then
5337 :
5338else
5339 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5340See \`config.log' for more details." >&5
5341echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5342See \`config.log' for more details." >&2;}
5343 { (exit 1); exit 1; }; }
5344fi
5345
5346ac_ext=cc
5347ac_cpp='$CXXCPP $CPPFLAGS'
5348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5351
5352fi
5353
5354
5355ac_ext=f
5356ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5357ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5359if test -n "$ac_tool_prefix"; then
5360 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5361 do
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366if test "${ac_cv_prog_F77+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 if test -n "$F77"; then
5370 ac_cv_prog_F77="$F77" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384done
5385
5386fi
5387fi
5388F77=$ac_cv_prog_F77
5389if test -n "$F77"; then
5390 echo "$as_me:$LINENO: result: $F77" >&5
5391echo "${ECHO_T}$F77" >&6
5392else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395fi
5396
5397 test -n "$F77" && break
5398 done
5399fi
5400if test -z "$F77"; then
5401 ac_ct_F77=$F77
5402 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5403do
5404 # Extract the first word of "$ac_prog", so it can be a program name with args.
5405set dummy $ac_prog; ac_word=$2
5406echo "$as_me:$LINENO: checking for $ac_word" >&5
5407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5408if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411 if test -n "$ac_ct_F77"; then
5412 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_prog_ac_ct_F77="$ac_prog"
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425done
5426done
5427
5428fi
5429fi
5430ac_ct_F77=$ac_cv_prog_ac_ct_F77
5431if test -n "$ac_ct_F77"; then
5432 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5433echo "${ECHO_T}$ac_ct_F77" >&6
5434else
5435 echo "$as_me:$LINENO: result: no" >&5
5436echo "${ECHO_T}no" >&6
5437fi
5438
5439 test -n "$ac_ct_F77" && break
5440done
5441
5442 F77=$ac_ct_F77
5443fi
5444
5445
5446# Provide some information about the compiler.
5447echo "$as_me:5447:" \
5448 "checking for Fortran 77 compiler version" >&5
5449ac_compiler=`set X $ac_compile; echo $2`
5450{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5451 (eval $ac_compiler --version </dev/null >&5) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }
5455{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5456 (eval $ac_compiler -v </dev/null >&5) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }
5460{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5461 (eval $ac_compiler -V </dev/null >&5) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }
5465rm -f a.out
5466
5467# If we don't use `.F' as extension, the preprocessor is not run on the
5468# input file. (Note that this only needs to work for GNU compilers.)
5469ac_save_ext=$ac_ext
5470ac_ext=F
5471echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5472echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5473if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 program main
5478#ifndef __GNUC__
5479 choke me
5480#endif
5481
5482 end
5483_ACEOF
5484rm -f conftest.$ac_objext
5485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_f77_werror_flag"
5494 || test ! -s conftest.err'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_compiler_gnu=yes
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511ac_compiler_gnu=no
5512fi
5513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5515
5516fi
5517echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5518echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5519ac_ext=$ac_save_ext
5520ac_test_FFLAGS=${FFLAGS+set}
5521ac_save_FFLAGS=$FFLAGS
5522FFLAGS=
5523echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5524echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5525if test "${ac_cv_prog_f77_g+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 FFLAGS=-g
5529cat >conftest.$ac_ext <<_ACEOF
5530 program main
5531
5532 end
5533_ACEOF
5534rm -f conftest.$ac_objext
5535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536 (eval $ac_compile) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_f77_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_prog_f77_g=yes
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561ac_cv_prog_f77_g=no
5562fi
5563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5564
5565fi
5566echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5567echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5568if test "$ac_test_FFLAGS" = set; then
5569 FFLAGS=$ac_save_FFLAGS
5570elif test $ac_cv_prog_f77_g = yes; then
5571 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5572 FFLAGS="-g -O2"
5573 else
5574 FFLAGS="-g"
5575 fi
5576else
5577 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5578 FFLAGS="-O2"
5579 else
5580 FFLAGS=
5581 fi
5582fi
5583
5584G77=`test $ac_compiler_gnu = yes && echo yes`
5585ac_ext=c
5586ac_cpp='$CPP $CPPFLAGS'
5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
5591
5592
5593# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5594
5595# find the maximum length of command line arguments
5596echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5597echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5598if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 i=0
5602 teststring="ABCD"
5603
5604 case $build_os in
5605 msdosdjgpp*)
5606 # On DJGPP, this test can blow up pretty badly due to problems in libc
5607 # (any single argument exceeding 2000 bytes causes a buffer overrun
5608 # during glob expansion). Even if it were fixed, the result of this
5609 # check would be larger than it should be.
5610 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5611 ;;
5612
5613 gnu*)
5614 # Under GNU Hurd, this test is not required because there is
5615 # no limit to the length of command line arguments.
5616 # Libtool will interpret -1 as no limit whatsoever
5617 lt_cv_sys_max_cmd_len=-1;
5618 ;;
5619
5620 cygwin* | mingw*)
5621 # On Win9x/ME, this test blows up -- it succeeds, but takes
5622 # about 5 minutes as the teststring grows exponentially.
5623 # Worse, since 9x/ME are not pre-emptively multitasking,
5624 # you end up with a "frozen" computer, even though with patience
5625 # the test eventually succeeds (with a max line length of 256k).
5626 # Instead, let's just punt: use the minimum linelength reported by
5627 # all of the supported platforms: 8192 (on NT/2K/XP).
5628 lt_cv_sys_max_cmd_len=8192;
5629 ;;
5630
5631 amigaos*)
5632 # On AmigaOS with pdksh, this test takes hours, literally.
5633 # So we just punt and use a minimum line length of 8192.
5634 lt_cv_sys_max_cmd_len=8192;
5635 ;;
5636
5637 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5638 # This has been around since 386BSD, at least. Likely further.
5639 if test -x /sbin/sysctl; then
5640 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5641 elif test -x /usr/sbin/sysctl; then
5642 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5643 else
5644 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5645 fi
5646 # And add a safety zone
5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5649 ;;
5650
5651 interix*)
5652 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5653 lt_cv_sys_max_cmd_len=196608
5654 ;;
5655
5656 osf*)
5657 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5658 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5659 # nice to cause kernel panics so lets avoid the loop below.
5660 # First set a reasonable default.
5661 lt_cv_sys_max_cmd_len=16384
5662 #
5663 if test -x /sbin/sysconfig; then
5664 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5665 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5666 esac
5667 fi
5668 ;;
5669 sco3.2v5*)
5670 lt_cv_sys_max_cmd_len=102400
5671 ;;
5672 sysv5* | sco5v6* | sysv4.2uw2*)
5673 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5674 if test -n "$kargmax"; then
5675 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5676 else
5677 lt_cv_sys_max_cmd_len=32768
5678 fi
5679 ;;
5680 *)
5681 # If test is not a shell built-in, we'll probably end up computing a
5682 # maximum length that is only half of the actual maximum length, but
5683 # we can't tell.
5684 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5685 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5686 = "XX$teststring") >/dev/null 2>&1 &&
5687 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5688 lt_cv_sys_max_cmd_len=$new_result &&
5689 test $i != 17 # 1/2 MB should be enough
5690 do
5691 i=`expr $i + 1`
5692 teststring=$teststring$teststring
5693 done
5694 teststring=
5695 # Add a significant safety factor because C++ compilers can tack on massive
5696 # amounts of additional arguments before passing them to the linker.
5697 # It appears as though 1/2 is a usable value.
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5699 ;;
5700 esac
5701
5702fi
5703
5704if test -n $lt_cv_sys_max_cmd_len ; then
5705 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5706echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5707else
5708 echo "$as_me:$LINENO: result: none" >&5
5709echo "${ECHO_T}none" >&6
5710fi
5711
5712
5713
5714
5715# Check for command to grab the raw symbol name followed by C symbol from nm.
5716echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5717echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5718if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721
5722# These are sane defaults that work on at least a few old systems.
5723# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5724
5725# Character class describing NM global symbol codes.
5726symcode='[BCDEGRST]'
5727
5728# Regexp to match symbols that can be accessed directly from C.
5729sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5730
5731# Transform an extracted symbol line into a proper C declaration
5732lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5733
5734# Transform an extracted symbol line into symbol name and symbol address
5735lt_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'"
5736
5737# Define system-specific variables.
5738case $host_os in
5739aix*)
5740 symcode='[BCDT]'
5741 ;;
5742cygwin* | mingw* | pw32*)
5743 symcode='[ABCDGISTW]'
5744 ;;
5745hpux*) # Its linker distinguishes data from code symbols
5746 if test "$host_cpu" = ia64; then
5747 symcode='[ABCDEGRST]'
5748 fi
5749 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5750 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'"
5751 ;;
5752linux*)
5753 if test "$host_cpu" = ia64; then
5754 symcode='[ABCDGIRSTW]'
5755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5756 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'"
5757 fi
5758 ;;
5759irix* | nonstopux*)
5760 symcode='[BCDEGRST]'
5761 ;;
5762osf*)
5763 symcode='[BCDEGQRST]'
5764 ;;
5765solaris*)
5766 symcode='[BDRT]'
5767 ;;
5768sco3.2v5*)
5769 symcode='[DT]'
5770 ;;
5771sysv4.2uw2*)
5772 symcode='[DT]'
5773 ;;
5774sysv5* | sco5v6* | unixware* | OpenUNIX*)
5775 symcode='[ABDT]'
5776 ;;
5777sysv4)
5778 symcode='[DFNSTU]'
5779 ;;
5780esac
5781
5782# Handle CRLF in mingw tool chain
5783opt_cr=
5784case $build_os in
5785mingw*)
5786 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5787 ;;
5788esac
5789
5790# If we're using GNU nm, then use its standard symbol codes.
5791case `$NM -V 2>&1` in
5792*GNU* | *'with BFD'*)
5793 symcode='[ABCDGIRSTW]' ;;
5794esac
5795
5796# Try without a prefix undercore, then with it.
5797for ac_symprfx in "" "_"; do
5798
5799 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5800 symxfrm="\\1 $ac_symprfx\\2 \\2"
5801
5802 # Write the raw and C identifiers.
5803 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5804
5805 # Check to see that the pipe works correctly.
5806 pipe_works=no
5807
5808 rm -f conftest*
5809 cat > conftest.$ac_ext <<EOF
5810#ifdef __cplusplus
5811extern "C" {
5812#endif
5813char nm_test_var;
5814void nm_test_func(){}
5815#ifdef __cplusplus
5816}
5817#endif
5818int main(){nm_test_var='a';nm_test_func();return(0);}
5819EOF
5820
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; then
5826 # Now try to grab the symbols.
5827 nlist=conftest.nm
5828 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5829 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && test -s "$nlist"; then
5833 # Try sorting and uniquifying the output.
5834 if sort "$nlist" | uniq > "$nlist"T; then
5835 mv -f "$nlist"T "$nlist"
5836 else
5837 rm -f "$nlist"T
5838 fi
5839
5840 # Make sure that we snagged all the symbols we need.
5841 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5842 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5843 cat <<EOF > conftest.$ac_ext
5844#ifdef __cplusplus
5845extern "C" {
5846#endif
5847
5848EOF
5849 # Now generate the symbol file.
5850 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5851
5852 cat <<EOF >> conftest.$ac_ext
5853#if defined (__STDC__) && __STDC__
5854# define lt_ptr_t void *
5855#else
5856# define lt_ptr_t char *
5857# define const
5858#endif
5859
5860/* The mapping between symbol names and symbols. */
5861const struct {
5862 const char *name;
5863 lt_ptr_t address;
5864}
5865lt_preloaded_symbols[] =
5866{
5867EOF
5868 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5869 cat <<\EOF >> conftest.$ac_ext
5870 {0, (lt_ptr_t) 0}
5871};
5872
5873#ifdef __cplusplus
5874}
5875#endif
5876EOF
5877 # Now try linking the two files.
5878 mv conftest.$ac_objext conftstm.$ac_objext
5879 lt_save_LIBS="$LIBS"
5880 lt_save_CFLAGS="$CFLAGS"
5881 LIBS="conftstm.$ac_objext"
5882 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5884 (eval $ac_link) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5888 pipe_works=yes
5889 fi
5890 LIBS="$lt_save_LIBS"
5891 CFLAGS="$lt_save_CFLAGS"
5892 else
5893 echo "cannot find nm_test_func in $nlist" >&5
5894 fi
5895 else
5896 echo "cannot find nm_test_var in $nlist" >&5
5897 fi
5898 else
5899 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5900 fi
5901 else
5902 echo "$progname: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5904 fi
5905 rm -f conftest* conftst*
5906
5907 # Do not use the global_symbol_pipe unless it works.
5908 if test "$pipe_works" = yes; then
5909 break
5910 else
5911 lt_cv_sys_global_symbol_pipe=
5912 fi
5913done
5914
5915fi
5916
5917if test -z "$lt_cv_sys_global_symbol_pipe"; then
5918 lt_cv_sys_global_symbol_to_cdecl=
5919fi
5920if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5921 echo "$as_me:$LINENO: result: failed" >&5
5922echo "${ECHO_T}failed" >&6
5923else
5924 echo "$as_me:$LINENO: result: ok" >&5
5925echo "${ECHO_T}ok" >&6
5926fi
5927
5928echo "$as_me:$LINENO: checking for objdir" >&5
5929echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5930if test "${lt_cv_objdir+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933 rm -f .libs 2>/dev/null
5934mkdir .libs 2>/dev/null
5935if test -d .libs; then
5936 lt_cv_objdir=.libs
5937else
5938 # MS-DOS does not allow filenames that begin with a dot.
5939 lt_cv_objdir=_libs
5940fi
5941rmdir .libs 2>/dev/null
5942fi
5943echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5944echo "${ECHO_T}$lt_cv_objdir" >&6
5945objdir=$lt_cv_objdir
5946
5947
5948
5949
5950
5951case $host_os in
5952aix3*)
5953 # AIX sometimes has problems with the GCC collect2 program. For some
5954 # reason, if we set the COLLECT_NAMES environment variable, the problems
5955 # vanish in a puff of smoke.
5956 if test "X${COLLECT_NAMES+set}" != Xset; then
5957 COLLECT_NAMES=
5958 export COLLECT_NAMES
5959 fi
5960 ;;
5961esac
5962
5963# Sed substitution that helps us do robust quoting. It backslashifies
5964# metacharacters that are still active within double-quoted strings.
5965Xsed='sed -e 1s/^X//'
5966sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5967
5968# Same as above, but do not quote variable references.
5969double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5970
5971# Sed substitution to delay expansion of an escaped shell variable in a
5972# double_quote_subst'ed string.
5973delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5974
5975# Sed substitution to avoid accidental globbing in evaled expressions
5976no_glob_subst='s/\*/\\\*/g'
5977
5978# Constants:
5979rm="rm -f"
5980
5981# Global variables:
5982default_ofile=libtool
5983can_build_shared=yes
5984
5985# All known linkers require a `.a' archive for static linking (except MSVC,
5986# which needs '.lib').
5987libext=a
5988ltmain="$ac_aux_dir/ltmain.sh"
5989ofile="$default_ofile"
5990with_gnu_ld="$lt_cv_prog_gnu_ld"
5991
5992if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5994set dummy ${ac_tool_prefix}ar; ac_word=$2
5995echo "$as_me:$LINENO: checking for $ac_word" >&5
5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997if test "${ac_cv_prog_AR+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 if test -n "$AR"; then
6001 ac_cv_prog_AR="$AR" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_AR="${ac_tool_prefix}ar"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014done
6015done
6016
6017fi
6018fi
6019AR=$ac_cv_prog_AR
6020if test -n "$AR"; then
6021 echo "$as_me:$LINENO: result: $AR" >&5
6022echo "${ECHO_T}$AR" >&6
6023else
6024 echo "$as_me:$LINENO: result: no" >&5
6025echo "${ECHO_T}no" >&6
6026fi
6027
6028fi
6029if test -z "$ac_cv_prog_AR"; then
6030 ac_ct_AR=$AR
6031 # Extract the first word of "ar", so it can be a program name with args.
6032set dummy ar; ac_word=$2
6033echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6035if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 if test -n "$ac_ct_AR"; then
6039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_ac_ct_AR="ar"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054
6055 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6056fi
6057fi
6058ac_ct_AR=$ac_cv_prog_ac_ct_AR
6059if test -n "$ac_ct_AR"; then
6060 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6061echo "${ECHO_T}$ac_ct_AR" >&6
6062else
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065fi
6066
6067 AR=$ac_ct_AR
6068else
6069 AR="$ac_cv_prog_AR"
6070fi
6071
6072if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6075echo "$as_me:$LINENO: checking for $ac_word" >&5
6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6077if test "${ac_cv_prog_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080 if test -n "$RANLIB"; then
6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094done
6095done
6096
6097fi
6098fi
6099RANLIB=$ac_cv_prog_RANLIB
6100if test -n "$RANLIB"; then
6101 echo "$as_me:$LINENO: result: $RANLIB" >&5
6102echo "${ECHO_T}$RANLIB" >&6
6103else
6104 echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6
6106fi
6107
6108fi
6109if test -z "$ac_cv_prog_RANLIB"; then
6110 ac_ct_RANLIB=$RANLIB
6111 # Extract the first word of "ranlib", so it can be a program name with args.
6112set dummy ranlib; ac_word=$2
6113echo "$as_me:$LINENO: checking for $ac_word" >&5
6114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118 if test -n "$ac_ct_RANLIB"; then
6119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_ac_ct_RANLIB="ranlib"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133done
6134
6135 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6136fi
6137fi
6138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6139if test -n "$ac_ct_RANLIB"; then
6140 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6141echo "${ECHO_T}$ac_ct_RANLIB" >&6
6142else
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145fi
6146
6147 RANLIB=$ac_ct_RANLIB
6148else
6149 RANLIB="$ac_cv_prog_RANLIB"
6150fi
6151
6152if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6154set dummy ${ac_tool_prefix}strip; ac_word=$2
6155echo "$as_me:$LINENO: checking for $ac_word" >&5
6156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6157if test "${ac_cv_prog_STRIP+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159else
6160 if test -n "$STRIP"; then
6161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174done
6175done
6176
6177fi
6178fi
6179STRIP=$ac_cv_prog_STRIP
6180if test -n "$STRIP"; then
6181 echo "$as_me:$LINENO: result: $STRIP" >&5
6182echo "${ECHO_T}$STRIP" >&6
6183else
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
6186fi
6187
6188fi
6189if test -z "$ac_cv_prog_STRIP"; then
6190 ac_ct_STRIP=$STRIP
6191 # Extract the first word of "strip", so it can be a program name with args.
6192set dummy strip; ac_word=$2
6193echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6195if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_ac_ct_STRIP="strip"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214
6215 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6216fi
6217fi
6218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219if test -n "$ac_ct_STRIP"; then
6220 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6221echo "${ECHO_T}$ac_ct_STRIP" >&6
6222else
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
6225fi
6226
6227 STRIP=$ac_ct_STRIP
6228else
6229 STRIP="$ac_cv_prog_STRIP"
6230fi
6231
6232
6233old_CC="$CC"
6234old_CFLAGS="$CFLAGS"
6235
6236# Set sane defaults for various variables
6237test -z "$AR" && AR=ar
6238test -z "$AR_FLAGS" && AR_FLAGS=cru
6239test -z "$AS" && AS=as
6240test -z "$CC" && CC=cc
6241test -z "$LTCC" && LTCC=$CC
6242test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6243test -z "$DLLTOOL" && DLLTOOL=dlltool
6244test -z "$LD" && LD=ld
6245test -z "$LN_S" && LN_S="ln -s"
6246test -z "$MAGIC_CMD" && MAGIC_CMD=file
6247test -z "$NM" && NM=nm
6248test -z "$SED" && SED=sed
6249test -z "$OBJDUMP" && OBJDUMP=objdump
6250test -z "$RANLIB" && RANLIB=:
6251test -z "$STRIP" && STRIP=:
6252test -z "$ac_objext" && ac_objext=o
6253
6254# Determine commands to create old-style static archives.
6255old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6256old_postinstall_cmds='chmod 644 $oldlib'
6257old_postuninstall_cmds=
6258
6259if test -n "$RANLIB"; then
6260 case $host_os in
6261 openbsd*)
6262 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6263 ;;
6264 *)
6265 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6266 ;;
6267 esac
6268 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6269fi
6270
6271for cc_temp in $compiler""; do
6272 case $cc_temp in
6273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6275 \-*) ;;
6276 *) break;;
6277 esac
6278done
6279cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6280
6281
6282# Only perform the check for file, if the check method requires it
6283case $deplibs_check_method in
6284file_magic*)
6285 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6286 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6287echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6288if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291 case $MAGIC_CMD in
6292[\\/*] | ?:[\\/]*)
6293 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6294 ;;
6295*)
6296 lt_save_MAGIC_CMD="$MAGIC_CMD"
6297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6298 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6299 for ac_dir in $ac_dummy; do
6300 IFS="$lt_save_ifs"
6301 test -z "$ac_dir" && ac_dir=.
6302 if test -f $ac_dir/${ac_tool_prefix}file; then
6303 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6304 if test -n "$file_magic_test_file"; then
6305 case $deplibs_check_method in
6306 "file_magic "*)
6307 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6310 $EGREP "$file_magic_regex" > /dev/null; then
6311 :
6312 else
6313 cat <<EOF 1>&2
6314
6315*** Warning: the command libtool uses to detect shared libraries,
6316*** $file_magic_cmd, produces output that libtool cannot recognize.
6317*** The result is that libtool may fail to recognize shared libraries
6318*** as such. This will affect the creation of libtool libraries that
6319*** depend on shared libraries, but programs linked with such libtool
6320*** libraries will work regardless of this problem. Nevertheless, you
6321*** may want to report the problem to your system manager and/or to
6322*** bug-libtool@gnu.org
6323
6324EOF
6325 fi ;;
6326 esac
6327 fi
6328 break
6329 fi
6330 done
6331 IFS="$lt_save_ifs"
6332 MAGIC_CMD="$lt_save_MAGIC_CMD"
6333 ;;
6334esac
6335fi
6336
6337MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6338if test -n "$MAGIC_CMD"; then
6339 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6340echo "${ECHO_T}$MAGIC_CMD" >&6
6341else
6342 echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6
6344fi
6345
6346if test -z "$lt_cv_path_MAGIC_CMD"; then
6347 if test -n "$ac_tool_prefix"; then
6348 echo "$as_me:$LINENO: checking for file" >&5
6349echo $ECHO_N "checking for file... $ECHO_C" >&6
6350if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353 case $MAGIC_CMD in
6354[\\/*] | ?:[\\/]*)
6355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6356 ;;
6357*)
6358 lt_save_MAGIC_CMD="$MAGIC_CMD"
6359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6360 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6361 for ac_dir in $ac_dummy; do
6362 IFS="$lt_save_ifs"
6363 test -z "$ac_dir" && ac_dir=.
6364 if test -f $ac_dir/file; then
6365 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6366 if test -n "$file_magic_test_file"; then
6367 case $deplibs_check_method in
6368 "file_magic "*)
6369 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6371 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6372 $EGREP "$file_magic_regex" > /dev/null; then
6373 :
6374 else
6375 cat <<EOF 1>&2
6376
6377*** Warning: the command libtool uses to detect shared libraries,
6378*** $file_magic_cmd, produces output that libtool cannot recognize.
6379*** The result is that libtool may fail to recognize shared libraries
6380*** as such. This will affect the creation of libtool libraries that
6381*** depend on shared libraries, but programs linked with such libtool
6382*** libraries will work regardless of this problem. Nevertheless, you
6383*** may want to report the problem to your system manager and/or to
6384*** bug-libtool@gnu.org
6385
6386EOF
6387 fi ;;
6388 esac
6389 fi
6390 break
6391 fi
6392 done
6393 IFS="$lt_save_ifs"
6394 MAGIC_CMD="$lt_save_MAGIC_CMD"
6395 ;;
6396esac
6397fi
6398
6399MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6400if test -n "$MAGIC_CMD"; then
6401 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6402echo "${ECHO_T}$MAGIC_CMD" >&6
6403else
6404 echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408 else
6409 MAGIC_CMD=:
6410 fi
6411fi
6412
6413 fi
6414 ;;
6415esac
6416
6417enable_dlopen=yes
6418enable_win32_dll=no
6419
6420# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6421if test "${enable_libtool_lock+set}" = set; then
6422 enableval="$enable_libtool_lock"
6423
6424fi;
6425test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6426
6427
6428# Check whether --with-pic or --without-pic was given.
6429if test "${with_pic+set}" = set; then
6430 withval="$with_pic"
6431 pic_mode="$withval"
6432else
6433 pic_mode=default
6434fi;
6435test -z "$pic_mode" && pic_mode=default
6436
6437# Use C for the default configuration in the libtool script
6438tagname=
6439lt_save_CC="$CC"
6440ac_ext=c
6441ac_cpp='$CPP $CPPFLAGS'
6442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445
6446
6447# Source file extension for C test sources.
6448ac_ext=c
6449
6450# Object file extension for compiled C test sources.
6451objext=o
6452objext=$objext
6453
6454# Code to be used in simple compile tests
6455lt_simple_compile_test_code="int some_variable = 0;\n"
6456
6457# Code to be used in simple link tests
6458lt_simple_link_test_code='int main(){return(0);}\n'
6459
6460
6461# If no C compiler was specified, use CC.
6462LTCC=${LTCC-"$CC"}
6463
6464# If no C compiler flags were specified, use CFLAGS.
6465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6466
6467# Allow CC to be a program name with arguments.
6468compiler=$CC
6469
6470
6471# save warnings/boilerplate of simple test code
6472ac_outfile=conftest.$ac_objext
6473printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6475_lt_compiler_boilerplate=`cat conftest.err`
6476$rm conftest*
6477
6478ac_outfile=conftest.$ac_objext
6479printf "$lt_simple_link_test_code" >conftest.$ac_ext
6480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6481_lt_linker_boilerplate=`cat conftest.err`
6482$rm conftest*
6483
6484
6485
6486lt_prog_compiler_no_builtin_flag=
6487
6488if test "$GCC" = yes; then
6489 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6490
6491
6492echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6493echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6494if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497 lt_cv_prog_compiler_rtti_exceptions=no
6498 ac_outfile=conftest.$ac_objext
6499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6500 lt_compiler_flag="-fno-rtti -fno-exceptions"
6501 # Insert the option either (1) after the last *FLAGS variable, or
6502 # (2) before a word containing "conftest.", or (3) at the end.
6503 # Note that $ac_compile itself does not contain backslashes and begins
6504 # with a dollar sign (not a hyphen), so the echo should work correctly.
6505 # The option is referenced via a variable to avoid confusing sed.
6506 lt_compile=`echo "$ac_compile" | $SED \
6507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6509 -e 's:$: $lt_compiler_flag:'`
6510 (eval echo "\"\$as_me:6510: $lt_compile\"" >&5)
6511 (eval "$lt_compile" 2>conftest.err)
6512 ac_status=$?
6513 cat conftest.err >&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 if (exit $ac_status) && test -s "$ac_outfile"; then
6516 # The compiler can only warn and ignore the option if not recognized
6517 # So say no if there are warnings other than the usual output.
6518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6521 lt_cv_prog_compiler_rtti_exceptions=yes
6522 fi
6523 fi
6524 $rm conftest*
6525
6526fi
6527echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6528echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6529
6530if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6531 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6532else
6533 :
6534fi
6535
6536fi
6537
6538lt_prog_compiler_wl=
6539lt_prog_compiler_pic=
6540lt_prog_compiler_static=
6541
6542echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6543echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6544
6545 if test "$GCC" = yes; then
6546 lt_prog_compiler_wl='-Wl,'
6547 lt_prog_compiler_static='-static'
6548
6549 case $host_os in
6550 aix*)
6551 # All AIX code is PIC.
6552 if test "$host_cpu" = ia64; then
6553 # AIX 5 now supports IA64 processor
6554 lt_prog_compiler_static='-Bstatic'
6555 fi
6556 ;;
6557
6558 amigaos*)
6559 # FIXME: we need at least 68020 code to build shared libraries, but
6560 # adding the `-m68020' flag to GCC prevents building anything better,
6561 # like `-m68040'.
6562 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6563 ;;
6564
6565 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6566 # PIC is the default for these OSes.
6567 ;;
6568
6569 mingw* | pw32* | os2*)
6570 # This hack is so that the source file can tell whether it is being
6571 # built for inclusion in a dll (and should export symbols for example).
6572 lt_prog_compiler_pic='-DDLL_EXPORT'
6573 ;;
6574
6575 darwin* | rhapsody*)
6576 # PIC is the default on this platform
6577 # Common symbols not allowed in MH_DYLIB files
6578 lt_prog_compiler_pic='-fno-common'
6579 ;;
6580
6581 interix3*)
6582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6583 # Instead, we relocate shared libraries at runtime.
6584 ;;
6585
6586 msdosdjgpp*)
6587 # Just because we use GCC doesn't mean we suddenly get shared libraries
6588 # on systems that don't support them.
6589 lt_prog_compiler_can_build_shared=no
6590 enable_shared=no
6591 ;;
6592
6593 sysv4*MP*)
6594 if test -d /usr/nec; then
6595 lt_prog_compiler_pic=-Kconform_pic
6596 fi
6597 ;;
6598
6599 hpux*)
6600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6601 # not for PA HP-UX.
6602 case $host_cpu in
6603 hppa*64*|ia64*)
6604 # +Z the default
6605 ;;
6606 *)
6607 lt_prog_compiler_pic='-fPIC'
6608 ;;
6609 esac
6610 ;;
6611
6612 *)
6613 lt_prog_compiler_pic='-fPIC'
6614 ;;
6615 esac
6616 else
6617 # PORTME Check for flag to pass linker flags through the system compiler.
6618 case $host_os in
6619 aix*)
6620 lt_prog_compiler_wl='-Wl,'
6621 if test "$host_cpu" = ia64; then
6622 # AIX 5 now supports IA64 processor
6623 lt_prog_compiler_static='-Bstatic'
6624 else
6625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6626 fi
6627 ;;
6628 darwin*)
6629 # PIC is the default on this platform
6630 # Common symbols not allowed in MH_DYLIB files
6631 case $cc_basename in
6632 xlc*)
6633 lt_prog_compiler_pic='-qnocommon'
6634 lt_prog_compiler_wl='-Wl,'
6635 ;;
6636 esac
6637 ;;
6638
6639 mingw* | pw32* | os2*)
6640 # This hack is so that the source file can tell whether it is being
6641 # built for inclusion in a dll (and should export symbols for example).
6642 lt_prog_compiler_pic='-DDLL_EXPORT'
6643 ;;
6644
6645 hpux9* | hpux10* | hpux11*)
6646 lt_prog_compiler_wl='-Wl,'
6647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6648 # not for PA HP-UX.
6649 case $host_cpu in
6650 hppa*64*|ia64*)
6651 # +Z the default
6652 ;;
6653 *)
6654 lt_prog_compiler_pic='+Z'
6655 ;;
6656 esac
6657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6658 lt_prog_compiler_static='${wl}-a ${wl}archive'
6659 ;;
6660
6661 irix5* | irix6* | nonstopux*)
6662 lt_prog_compiler_wl='-Wl,'
6663 # PIC (with -KPIC) is the default.
6664 lt_prog_compiler_static='-non_shared'
6665 ;;
6666
6667 newsos6)
6668 lt_prog_compiler_pic='-KPIC'
6669 lt_prog_compiler_static='-Bstatic'
6670 ;;
6671
6672 linux*)
6673 case $cc_basename in
6674 icc* | ecc*)
6675 lt_prog_compiler_wl='-Wl,'
6676 lt_prog_compiler_pic='-KPIC'
6677 lt_prog_compiler_static='-static'
6678 ;;
6679 pgcc* | pgf77* | pgf90* | pgf95*)
6680 # Portland Group compilers (*not* the Pentium gcc compiler,
6681 # which looks to be a dead project)
6682 lt_prog_compiler_wl='-Wl,'
6683 lt_prog_compiler_pic='-fpic'
6684 lt_prog_compiler_static='-Bstatic'
6685 ;;
6686 ccc*)
6687 lt_prog_compiler_wl='-Wl,'
6688 # All Alpha code is PIC.
6689 lt_prog_compiler_static='-non_shared'
6690 ;;
6691 esac
6692 ;;
6693
6694 osf3* | osf4* | osf5*)
6695 lt_prog_compiler_wl='-Wl,'
6696 # All OSF/1 code is PIC.
6697 lt_prog_compiler_static='-non_shared'
6698 ;;
6699
6700 solaris*)
6701 lt_prog_compiler_pic='-KPIC'
6702 lt_prog_compiler_static='-Bstatic'
6703 case $cc_basename in
6704 f77* | f90* | f95*)
6705 lt_prog_compiler_wl='-Qoption ld ';;
6706 *)
6707 lt_prog_compiler_wl='-Wl,';;
6708 esac
6709 ;;
6710
6711 sunos4*)
6712 lt_prog_compiler_wl='-Qoption ld '
6713 lt_prog_compiler_pic='-PIC'
6714 lt_prog_compiler_static='-Bstatic'
6715 ;;
6716
6717 sysv4 | sysv4.2uw2* | sysv4.3*)
6718 lt_prog_compiler_wl='-Wl,'
6719 lt_prog_compiler_pic='-KPIC'
6720 lt_prog_compiler_static='-Bstatic'
6721 ;;
6722
6723 sysv4*MP*)
6724 if test -d /usr/nec ;then
6725 lt_prog_compiler_pic='-Kconform_pic'
6726 lt_prog_compiler_static='-Bstatic'
6727 fi
6728 ;;
6729
6730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6731 lt_prog_compiler_wl='-Wl,'
6732 lt_prog_compiler_pic='-KPIC'
6733 lt_prog_compiler_static='-Bstatic'
6734 ;;
6735
6736 unicos*)
6737 lt_prog_compiler_wl='-Wl,'
6738 lt_prog_compiler_can_build_shared=no
6739 ;;
6740
6741 uts4*)
6742 lt_prog_compiler_pic='-pic'
6743 lt_prog_compiler_static='-Bstatic'
6744 ;;
6745
6746 *)
6747 lt_prog_compiler_can_build_shared=no
6748 ;;
6749 esac
6750 fi
6751
6752echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6753echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6754
6755#
6756# Check to make sure the PIC flag actually works.
6757#
6758if test -n "$lt_prog_compiler_pic"; then
6759
6760echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6761echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6762if test "${lt_prog_compiler_pic_works+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764else
6765 lt_prog_compiler_pic_works=no
6766 ac_outfile=conftest.$ac_objext
6767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6768 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6769 # Insert the option either (1) after the last *FLAGS variable, or
6770 # (2) before a word containing "conftest.", or (3) at the end.
6771 # Note that $ac_compile itself does not contain backslashes and begins
6772 # with a dollar sign (not a hyphen), so the echo should work correctly.
6773 # The option is referenced via a variable to avoid confusing sed.
6774 lt_compile=`echo "$ac_compile" | $SED \
6775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6777 -e 's:$: $lt_compiler_flag:'`
6778 (eval echo "\"\$as_me:6778: $lt_compile\"" >&5)
6779 (eval "$lt_compile" 2>conftest.err)
6780 ac_status=$?
6781 cat conftest.err >&5
6782 echo "$as_me:6782: \$? = $ac_status" >&5
6783 if (exit $ac_status) && test -s "$ac_outfile"; then
6784 # The compiler can only warn and ignore the option if not recognized
6785 # So say no if there are warnings other than the usual output.
6786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6789 lt_prog_compiler_pic_works=yes
6790 fi
6791 fi
6792 $rm conftest*
6793
6794fi
6795echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6796echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6797
6798if test x"$lt_prog_compiler_pic_works" = xyes; then
6799 case $lt_prog_compiler_pic in
6800 "" | " "*) ;;
6801 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6802 esac
6803else
6804 lt_prog_compiler_pic=
6805 lt_prog_compiler_can_build_shared=no
6806fi
6807
6808fi
6809case $host_os in
6810 # For platforms which do not support PIC, -DPIC is meaningless:
6811 *djgpp*)
6812 lt_prog_compiler_pic=
6813 ;;
6814 *)
6815 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6816 ;;
6817esac
6818
6819#
6820# Check to make sure the static flag actually works.
6821#
6822wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6823echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6824echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6825if test "${lt_prog_compiler_static_works+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828 lt_prog_compiler_static_works=no
6829 save_LDFLAGS="$LDFLAGS"
6830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6831 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6833 # The linker can only warn and ignore the option if not recognized
6834 # So say no if there are warnings
6835 if test -s conftest.err; then
6836 # Append any errors to the config.log.
6837 cat conftest.err 1>&5
6838 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6840 if diff conftest.exp conftest.er2 >/dev/null; then
6841 lt_prog_compiler_static_works=yes
6842 fi
6843 else
6844 lt_prog_compiler_static_works=yes
6845 fi
6846 fi
6847 $rm conftest*
6848 LDFLAGS="$save_LDFLAGS"
6849
6850fi
6851echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6852echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6853
6854if test x"$lt_prog_compiler_static_works" = xyes; then
6855 :
6856else
6857 lt_prog_compiler_static=
6858fi
6859
6860
6861echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6862echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6863if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 lt_cv_prog_compiler_c_o=no
6867 $rm -r conftest 2>/dev/null
6868 mkdir conftest
6869 cd conftest
6870 mkdir out
6871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6872
6873 lt_compiler_flag="-o out/conftest2.$ac_objext"
6874 # Insert the option either (1) after the last *FLAGS variable, or
6875 # (2) before a word containing "conftest.", or (3) at the end.
6876 # Note that $ac_compile itself does not contain backslashes and begins
6877 # with a dollar sign (not a hyphen), so the echo should work correctly.
6878 lt_compile=`echo "$ac_compile" | $SED \
6879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6881 -e 's:$: $lt_compiler_flag:'`
6882 (eval echo "\"\$as_me:6882: $lt_compile\"" >&5)
6883 (eval "$lt_compile" 2>out/conftest.err)
6884 ac_status=$?
6885 cat out/conftest.err >&5
6886 echo "$as_me:6886: \$? = $ac_status" >&5
6887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6888 then
6889 # The compiler can only warn and ignore the option if not recognized
6890 # So say no if there are warnings
6891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6894 lt_cv_prog_compiler_c_o=yes
6895 fi
6896 fi
6897 chmod u+w . 2>&5
6898 $rm conftest*
6899 # SGI C++ compiler will create directory out/ii_files/ for
6900 # template instantiation
6901 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6902 $rm out/* && rmdir out
6903 cd ..
6904 rmdir conftest
6905 $rm conftest*
6906
6907fi
6908echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6909echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6910
6911
6912hard_links="nottested"
6913if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6914 # do not overwrite the value of need_locks provided by the user
6915 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6916echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6917 hard_links=yes
6918 $rm conftest*
6919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6920 touch conftest.a
6921 ln conftest.a conftest.b 2>&5 || hard_links=no
6922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6923 echo "$as_me:$LINENO: result: $hard_links" >&5
6924echo "${ECHO_T}$hard_links" >&6
6925 if test "$hard_links" = no; then
6926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6927echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6928 need_locks=warn
6929 fi
6930else
6931 need_locks=no
6932fi
6933
6934echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6935echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6936
6937 runpath_var=
6938 allow_undefined_flag=
6939 enable_shared_with_static_runtimes=no
6940 archive_cmds=
6941 archive_expsym_cmds=
6942 old_archive_From_new_cmds=
6943 old_archive_from_expsyms_cmds=
6944 export_dynamic_flag_spec=
6945 whole_archive_flag_spec=
6946 thread_safe_flag_spec=
6947 hardcode_libdir_flag_spec=
6948 hardcode_libdir_flag_spec_ld=
6949 hardcode_libdir_separator=
6950 hardcode_direct=no
6951 hardcode_minus_L=no
6952 hardcode_shlibpath_var=unsupported
6953 link_all_deplibs=unknown
6954 hardcode_automatic=no
6955 module_cmds=
6956 module_expsym_cmds=
6957 always_export_symbols=no
6958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6959 # include_expsyms should be a list of space-separated symbols to be *always*
6960 # included in the symbol list
6961 include_expsyms=
6962 # exclude_expsyms can be an extended regexp of symbols to exclude
6963 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6965 # as well as any symbol that contains `d'.
6966 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6968 # platforms (ab)use it in PIC code, but their linkers get confused if
6969 # the symbol is explicitly referenced. Since portable code cannot
6970 # rely on this symbol name, it's probably fine to never include it in
6971 # preloaded symbol tables.
6972 extract_expsyms_cmds=
6973 # Just being paranoid about ensuring that cc_basename is set.
6974 for cc_temp in $compiler""; do
6975 case $cc_temp in
6976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6978 \-*) ;;
6979 *) break;;
6980 esac
6981done
6982cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6983
6984 case $host_os in
6985 cygwin* | mingw* | pw32*)
6986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6987 # When not using gcc, we currently assume that we are using
6988 # Microsoft Visual C++.
6989 if test "$GCC" != yes; then
6990 with_gnu_ld=no
6991 fi
6992 ;;
6993 interix*)
6994 # we just hope/assume this is gcc and not c89 (= MSVC++)
6995 with_gnu_ld=yes
6996 ;;
6997 openbsd*)
6998 with_gnu_ld=no
6999 ;;
7000 esac
7001
7002 ld_shlibs=yes
7003 if test "$with_gnu_ld" = yes; then
7004 # If archive_cmds runs LD, not CC, wlarc should be empty
7005 wlarc='${wl}'
7006
7007 # Set some defaults for GNU ld with shared library support. These
7008 # are reset later if shared libraries are not supported. Putting them
7009 # here allows them to be overridden if necessary.
7010 runpath_var=LD_RUN_PATH
7011 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7012 export_dynamic_flag_spec='${wl}--export-dynamic'
7013 # ancient GNU ld didn't support --whole-archive et. al.
7014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7015 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7016 else
7017 whole_archive_flag_spec=
7018 fi
7019 supports_anon_versioning=no
7020 case `$LD -v 2>/dev/null` in
7021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7024 *\ 2.11.*) ;; # other 2.11 versions
7025 *) supports_anon_versioning=yes ;;
7026 esac
7027
7028 # See if GNU ld supports shared libraries.
7029 case $host_os in
7030 aix3* | aix4* | aix5*)
7031 # On AIX/PPC, the GNU linker is very broken
7032 if test "$host_cpu" != ia64; then
7033 ld_shlibs=no
7034 cat <<EOF 1>&2
7035
7036*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7037*** to be unable to reliably create shared libraries on AIX.
7038*** Therefore, libtool is disabling shared libraries support. If you
7039*** really care for shared libraries, you may want to modify your PATH
7040*** so that a non-GNU linker is found, and then restart.
7041
7042EOF
7043 fi
7044 ;;
7045
7046 amigaos*)
7047 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)'
7048 hardcode_libdir_flag_spec='-L$libdir'
7049 hardcode_minus_L=yes
7050
7051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7052 # that the semantics of dynamic libraries on AmigaOS, at least up
7053 # to version 4, is to share data among multiple programs linked
7054 # with the same dynamic library. Since this doesn't match the
7055 # behavior of shared libraries on other platforms, we can't use
7056 # them.
7057 ld_shlibs=no
7058 ;;
7059
7060 beos*)
7061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062 allow_undefined_flag=unsupported
7063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7064 # support --undefined. This deserves some investigation. FIXME
7065 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7066 else
7067 ld_shlibs=no
7068 fi
7069 ;;
7070
7071 cygwin* | mingw* | pw32*)
7072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7073 # as there is no search path for DLLs.
7074 hardcode_libdir_flag_spec='-L$libdir'
7075 allow_undefined_flag=unsupported
7076 always_export_symbols=no
7077 enable_shared_with_static_runtimes=yes
7078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7079
7080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7082 # If the export-symbols file already is a .def file (1st line
7083 # is EXPORTS), use it as is; otherwise, prepend...
7084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7085 cp $export_symbols $output_objdir/$soname.def;
7086 else
7087 echo EXPORTS > $output_objdir/$soname.def;
7088 cat $export_symbols >> $output_objdir/$soname.def;
7089 fi~
7090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7091 else
7092 ld_shlibs=no
7093 fi
7094 ;;
7095
7096 interix3*)
7097 hardcode_direct=no
7098 hardcode_shlibpath_var=no
7099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7100 export_dynamic_flag_spec='${wl}-E'
7101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7102 # Instead, shared libraries are loaded at an image base (0x10000000 by
7103 # default) and relocated if they conflict, which is a slow very memory
7104 # consuming and fragmenting process. To avoid this, we pick a random,
7105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7108 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'
7109 ;;
7110
7111 linux*)
7112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7113 tmp_addflag=
7114 case $cc_basename,$host_cpu in
7115 pgcc*) # Portland Group C compiler
7116 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'
7117 tmp_addflag=' $pic_flag'
7118 ;;
7119 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7120 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'
7121 tmp_addflag=' $pic_flag -Mnomain' ;;
7122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7123 tmp_addflag=' -i_dynamic' ;;
7124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7125 tmp_addflag=' -i_dynamic -nofor_main' ;;
7126 ifc* | ifort*) # Intel Fortran compiler
7127 tmp_addflag=' -nofor_main' ;;
7128 esac
7129 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7130
7131 if test $supports_anon_versioning = yes; then
7132 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7134 $echo "local: *; };" >> $output_objdir/$libname.ver~
7135 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7136 fi
7137 else
7138 ld_shlibs=no
7139 fi
7140 ;;
7141
7142 netbsd*)
7143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7144 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7145 wlarc=
7146 else
7147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7149 fi
7150 ;;
7151
7152 solaris*)
7153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7154 ld_shlibs=no
7155 cat <<EOF 1>&2
7156
7157*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7158*** create shared libraries on Solaris systems. Therefore, libtool
7159*** is disabling shared libraries support. We urge you to upgrade GNU
7160*** binutils to release 2.9.1 or newer. Another option is to modify
7161*** your PATH or compiler configuration so that the native linker is
7162*** used, and then restart.
7163
7164EOF
7165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7168 else
7169 ld_shlibs=no
7170 fi
7171 ;;
7172
7173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7174 case `$LD -v 2>&1` in
7175 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7176 ld_shlibs=no
7177 cat <<_LT_EOF 1>&2
7178
7179*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7180*** reliably create shared libraries on SCO systems. Therefore, libtool
7181*** is disabling shared libraries support. We urge you to upgrade GNU
7182*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7183*** your PATH or compiler configuration so that the native linker is
7184*** used, and then restart.
7185
7186_LT_EOF
7187 ;;
7188 *)
7189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7190 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7193 else
7194 ld_shlibs=no
7195 fi
7196 ;;
7197 esac
7198 ;;
7199
7200 sunos4*)
7201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7202 wlarc=
7203 hardcode_direct=yes
7204 hardcode_shlibpath_var=no
7205 ;;
7206
7207 *)
7208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7211 else
7212 ld_shlibs=no
7213 fi
7214 ;;
7215 esac
7216
7217 if test "$ld_shlibs" = no; then
7218 runpath_var=
7219 hardcode_libdir_flag_spec=
7220 export_dynamic_flag_spec=
7221 whole_archive_flag_spec=
7222 fi
7223 else
7224 # PORTME fill in a description of your system's linker (not GNU ld)
7225 case $host_os in
7226 aix3*)
7227 allow_undefined_flag=unsupported
7228 always_export_symbols=yes
7229 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'
7230 # Note: this linker hardcodes the directories in LIBPATH if there
7231 # are no directories specified by -L.
7232 hardcode_minus_L=yes
7233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7234 # Neither direct hardcoding nor static linking is supported with a
7235 # broken collect2.
7236 hardcode_direct=unsupported
7237 fi
7238 ;;
7239
7240 aix4* | aix5*)
7241 if test "$host_cpu" = ia64; then
7242 # On IA64, the linker does run time linking by default, so we don't
7243 # have to do anything special.
7244 aix_use_runtimelinking=no
7245 exp_sym_flag='-Bexport'
7246 no_entry_flag=""
7247 else
7248 # If we're using GNU nm, then we don't want the "-C" option.
7249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7251 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'
7252 else
7253 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'
7254 fi
7255 aix_use_runtimelinking=no
7256
7257 # Test if we are trying to use run time linking or normal
7258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7259 # need to do runtime linking.
7260 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7261 for ld_flag in $LDFLAGS; do
7262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7263 aix_use_runtimelinking=yes
7264 break
7265 fi
7266 done
7267 ;;
7268 esac
7269
7270 exp_sym_flag='-bexport'
7271 no_entry_flag='-bnoentry'
7272 fi
7273
7274 # When large executables or shared objects are built, AIX ld can
7275 # have problems creating the table of contents. If linking a library
7276 # or program results in "error TOC overflow" add -mminimal-toc to
7277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7279
7280 archive_cmds=''
7281 hardcode_direct=yes
7282 hardcode_libdir_separator=':'
7283 link_all_deplibs=yes
7284
7285 if test "$GCC" = yes; then
7286 case $host_os in aix4.[012]|aix4.[012].*)
7287 # We only want to do this on AIX 4.2 and lower, the check
7288 # below for broken collect2 doesn't work under 4.3+
7289 collect2name=`${CC} -print-prog-name=collect2`
7290 if test -f "$collect2name" && \
7291 strings "$collect2name" | grep resolve_lib_name >/dev/null
7292 then
7293 # We have reworked collect2
7294 hardcode_direct=yes
7295 else
7296 # We have old collect2
7297 hardcode_direct=unsupported
7298 # It fails to find uninstalled libraries when the uninstalled
7299 # path is not listed in the libpath. Setting hardcode_minus_L
7300 # to unsupported forces relinking
7301 hardcode_minus_L=yes
7302 hardcode_libdir_flag_spec='-L$libdir'
7303 hardcode_libdir_separator=
7304 fi
7305 ;;
7306 esac
7307 shared_flag='-shared'
7308 if test "$aix_use_runtimelinking" = yes; then
7309 shared_flag="$shared_flag "'${wl}-G'
7310 fi
7311 else
7312 # not using gcc
7313 if test "$host_cpu" = ia64; then
7314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7315 # chokes on -Wl,-G. The following line is correct:
7316 shared_flag='-G'
7317 else
7318 if test "$aix_use_runtimelinking" = yes; then
7319 shared_flag='${wl}-G'
7320 else
7321 shared_flag='${wl}-bM:SRE'
7322 fi
7323 fi
7324 fi
7325
7326 # It seems that -bexpall does not export symbols beginning with
7327 # underscore (_), so it is better to generate a list of symbols to export.
7328 always_export_symbols=yes
7329 if test "$aix_use_runtimelinking" = yes; then
7330 # Warning - without using the other runtime loading flags (-brtl),
7331 # -berok will link without error, but may produce a broken library.
7332 allow_undefined_flag='-berok'
7333 # Determine the default libpath from the value encoded in an empty executable.
7334 cat >conftest.$ac_ext <<_ACEOF
7335/* confdefs.h. */
7336_ACEOF
7337cat confdefs.h >>conftest.$ac_ext
7338cat >>conftest.$ac_ext <<_ACEOF
7339/* end confdefs.h. */
7340
7341int
7342main ()
7343{
7344
7345 ;
7346 return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext conftest$ac_exeext
7350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371
7372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7373}'`
7374# Check for a 64-bit object if we didn't find anything.
7375if 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; }
7376}'`; fi
7377else
7378 echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381fi
7382rm -f conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7385
7386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7387 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"
7388 else
7389 if test "$host_cpu" = ia64; then
7390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7391 allow_undefined_flag="-z nodefs"
7392 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"
7393 else
7394 # Determine the default libpath from the value encoded in an empty executable.
7395 cat >conftest.$ac_ext <<_ACEOF
7396/* confdefs.h. */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h. */
7401
7402int
7403main ()
7404{
7405
7406 ;
7407 return 0;
7408}
7409_ACEOF
7410rm -f conftest.$ac_objext conftest$ac_exeext
7411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412 (eval $ac_link) 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -z "$ac_c_werror_flag"
7420 || test ! -s conftest.err'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; } &&
7426 { ac_try='test -s conftest$ac_exeext'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432
7433aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7434}'`
7435# Check for a 64-bit object if we didn't find anything.
7436if 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; }
7437}'`; fi
7438else
7439 echo "$as_me: failed program was:" >&5
7440sed 's/^/| /' conftest.$ac_ext >&5
7441
7442fi
7443rm -f conftest.err conftest.$ac_objext \
7444 conftest$ac_exeext conftest.$ac_ext
7445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7446
7447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7448 # Warning - without using the other run time loading flags,
7449 # -berok will link without error, but may produce a broken library.
7450 no_undefined_flag=' ${wl}-bernotok'
7451 allow_undefined_flag=' ${wl}-berok'
7452 # Exported symbols can be pulled into shared objects from archives
7453 whole_archive_flag_spec='$convenience'
7454 archive_cmds_need_lc=yes
7455 # This is similar to how AIX traditionally builds its shared libraries.
7456 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'
7457 fi
7458 fi
7459 ;;
7460
7461 amigaos*)
7462 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)'
7463 hardcode_libdir_flag_spec='-L$libdir'
7464 hardcode_minus_L=yes
7465 # see comment about different semantics on the GNU ld section
7466 ld_shlibs=no
7467 ;;
7468
7469 bsdi[45]*)
7470 export_dynamic_flag_spec=-rdynamic
7471 ;;
7472
7473 cygwin* | mingw* | pw32*)
7474 # When not using gcc, we currently assume that we are using
7475 # Microsoft Visual C++.
7476 # hardcode_libdir_flag_spec is actually meaningless, as there is
7477 # no search path for DLLs.
7478 hardcode_libdir_flag_spec=' '
7479 allow_undefined_flag=unsupported
7480 # Tell ltmain to make .lib files, not .a files.
7481 libext=lib
7482 # Tell ltmain to make .dll files, not .so files.
7483 shrext_cmds=".dll"
7484 # FIXME: Setting linknames here is a bad hack.
7485 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7486 # The linker will automatically build a .lib file if we build a DLL.
7487 old_archive_From_new_cmds='true'
7488 # FIXME: Should let the user specify the lib program.
7489 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7490 fix_srcfile_path='`cygpath -w "$srcfile"`'
7491 enable_shared_with_static_runtimes=yes
7492 ;;
7493
7494 darwin* | rhapsody*)
7495 case $host_os in
7496 rhapsody* | darwin1.[012])
7497 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7498 ;;
7499 *) # Darwin 1.3 on
7500 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7501 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7502 else
7503 case ${MACOSX_DEPLOYMENT_TARGET} in
7504 10.[012])
7505 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7506 ;;
7507 10.*)
7508 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7509 ;;
7510 esac
7511 fi
7512 ;;
7513 esac
7514 archive_cmds_need_lc=no
7515 hardcode_direct=no
7516 hardcode_automatic=yes
7517 hardcode_shlibpath_var=unsupported
7518 whole_archive_flag_spec=''
7519 link_all_deplibs=yes
7520 if test "$GCC" = yes ; then
7521 output_verbose_link_cmd='echo'
7522 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7523 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7524 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7525 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}'
7526 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}'
7527 else
7528 case $cc_basename in
7529 xlc*)
7530 output_verbose_link_cmd='echo'
7531 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7532 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7533 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7534 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}'
7535 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}'
7536 ;;
7537 *)
7538 ld_shlibs=no
7539 ;;
7540 esac
7541 fi
7542 ;;
7543
7544 dgux*)
7545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_libdir_flag_spec='-L$libdir'
7547 hardcode_shlibpath_var=no
7548 ;;
7549
7550 freebsd1*)
7551 ld_shlibs=no
7552 ;;
7553
7554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7555 # support. Future versions do this automatically, but an explicit c++rt0.o
7556 # does not break anything, and helps significantly (at the cost of a little
7557 # extra space).
7558 freebsd2.2*)
7559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7560 hardcode_libdir_flag_spec='-R$libdir'
7561 hardcode_direct=yes
7562 hardcode_shlibpath_var=no
7563 ;;
7564
7565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7566 freebsd2*)
7567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7568 hardcode_direct=yes
7569 hardcode_minus_L=yes
7570 hardcode_shlibpath_var=no
7571 ;;
7572
7573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7574 freebsd* | kfreebsd*-gnu | dragonfly*)
7575 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7576 hardcode_libdir_flag_spec='-R$libdir'
7577 hardcode_direct=yes
7578 hardcode_shlibpath_var=no
7579 ;;
7580
7581 hpux9*)
7582 if test "$GCC" = yes; then
7583 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'
7584 else
7585 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'
7586 fi
7587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7588 hardcode_libdir_separator=:
7589 hardcode_direct=yes
7590
7591 # hardcode_minus_L: Not really in the search PATH,
7592 # but as the default location of the library.
7593 hardcode_minus_L=yes
7594 export_dynamic_flag_spec='${wl}-E'
7595 ;;
7596
7597 hpux10*)
7598 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7600 else
7601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7602 fi
7603 if test "$with_gnu_ld" = no; then
7604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7605 hardcode_libdir_separator=:
7606
7607 hardcode_direct=yes
7608 export_dynamic_flag_spec='${wl}-E'
7609
7610 # hardcode_minus_L: Not really in the search PATH,
7611 # but as the default location of the library.
7612 hardcode_minus_L=yes
7613 fi
7614 ;;
7615
7616 hpux11*)
7617 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7618 case $host_cpu in
7619 hppa*64*)
7620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7621 ;;
7622 ia64*)
7623 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7624 ;;
7625 *)
7626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7627 ;;
7628 esac
7629 else
7630 case $host_cpu in
7631 hppa*64*)
7632 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7633 ;;
7634 ia64*)
7635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7636 ;;
7637 *)
7638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7639 ;;
7640 esac
7641 fi
7642 if test "$with_gnu_ld" = no; then
7643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7644 hardcode_libdir_separator=:
7645
7646 case $host_cpu in
7647 hppa*64*|ia64*)
7648 hardcode_libdir_flag_spec_ld='+b $libdir'
7649 hardcode_direct=no
7650 hardcode_shlibpath_var=no
7651 ;;
7652 *)
7653 hardcode_direct=yes
7654 export_dynamic_flag_spec='${wl}-E'
7655
7656 # hardcode_minus_L: Not really in the search PATH,
7657 # but as the default location of the library.
7658 hardcode_minus_L=yes
7659 ;;
7660 esac
7661 fi
7662 ;;
7663
7664 irix5* | irix6* | nonstopux*)
7665 if test "$GCC" = yes; then
7666 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'
7667 else
7668 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'
7669 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7670 fi
7671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7672 hardcode_libdir_separator=:
7673 link_all_deplibs=yes
7674 ;;
7675
7676 netbsd*)
7677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7679 else
7680 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7681 fi
7682 hardcode_libdir_flag_spec='-R$libdir'
7683 hardcode_direct=yes
7684 hardcode_shlibpath_var=no
7685 ;;
7686
7687 newsos6)
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_direct=yes
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 hardcode_libdir_separator=:
7692 hardcode_shlibpath_var=no
7693 ;;
7694
7695 openbsd*)
7696 hardcode_direct=yes
7697 hardcode_shlibpath_var=no
7698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7702 export_dynamic_flag_spec='${wl}-E'
7703 else
7704 case $host_os in
7705 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_libdir_flag_spec='-R$libdir'
7708 ;;
7709 *)
7710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7712 ;;
7713 esac
7714 fi
7715 ;;
7716
7717 os2*)
7718 hardcode_libdir_flag_spec='-L$libdir'
7719 hardcode_minus_L=yes
7720 allow_undefined_flag=unsupported
7721 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'
7722 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7723 ;;
7724
7725 osf3*)
7726 if test "$GCC" = yes; then
7727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7728 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'
7729 else
7730 allow_undefined_flag=' -expect_unresolved \*'
7731 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'
7732 fi
7733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7734 hardcode_libdir_separator=:
7735 ;;
7736
7737 osf4* | osf5*) # as osf3* with the addition of -msym flag
7738 if test "$GCC" = yes; then
7739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7740 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'
7741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7742 else
7743 allow_undefined_flag=' -expect_unresolved \*'
7744 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'
7745 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7746 $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'
7747
7748 # Both c and cxx compiler support -rpath directly
7749 hardcode_libdir_flag_spec='-rpath $libdir'
7750 fi
7751 hardcode_libdir_separator=:
7752 ;;
7753
7754 solaris*)
7755 no_undefined_flag=' -z text'
7756 if test "$GCC" = yes; then
7757 wlarc='${wl}'
7758 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7759 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7760 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7761 else
7762 wlarc=''
7763 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7766 fi
7767 hardcode_libdir_flag_spec='-R$libdir'
7768 hardcode_shlibpath_var=no
7769 case $host_os in
7770 solaris2.[0-5] | solaris2.[0-5].*) ;;
7771 *)
7772 # The compiler driver will combine linker options so we
7773 # cannot just pass the convience library names through
7774 # without $wl, iff we do not link with $LD.
7775 # Luckily, gcc supports the same syntax we need for Sun Studio.
7776 # Supported since Solaris 2.6 (maybe 2.5.1?)
7777 case $wlarc in
7778 '')
7779 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7780 *)
7781 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' ;;
7782 esac ;;
7783 esac
7784 link_all_deplibs=yes
7785 ;;
7786
7787 sunos4*)
7788 if test "x$host_vendor" = xsequent; then
7789 # Use $CC to link under sequent, because it throws in some extra .o
7790 # files that make .init and .fini sections work.
7791 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7792 else
7793 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7794 fi
7795 hardcode_libdir_flag_spec='-L$libdir'
7796 hardcode_direct=yes
7797 hardcode_minus_L=yes
7798 hardcode_shlibpath_var=no
7799 ;;
7800
7801 sysv4)
7802 case $host_vendor in
7803 sni)
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_direct=yes # is this really true???
7806 ;;
7807 siemens)
7808 ## LD is ld it makes a PLAMLIB
7809 ## CC just makes a GrossModule.
7810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7811 reload_cmds='$CC -r -o $output$reload_objs'
7812 hardcode_direct=no
7813 ;;
7814 motorola)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7817 ;;
7818 esac
7819 runpath_var='LD_RUN_PATH'
7820 hardcode_shlibpath_var=no
7821 ;;
7822
7823 sysv4.3*)
7824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_shlibpath_var=no
7826 export_dynamic_flag_spec='-Bexport'
7827 ;;
7828
7829 sysv4*MP*)
7830 if test -d /usr/nec; then
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_shlibpath_var=no
7833 runpath_var=LD_RUN_PATH
7834 hardcode_runpath_var=yes
7835 ld_shlibs=yes
7836 fi
7837 ;;
7838
7839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7840 no_undefined_flag='${wl}-z,text'
7841 archive_cmds_need_lc=no
7842 hardcode_shlibpath_var=no
7843 runpath_var='LD_RUN_PATH'
7844
7845 if test "$GCC" = yes; then
7846 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7848 else
7849 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7851 fi
7852 ;;
7853
7854 sysv5* | sco3.2v5* | sco5v6*)
7855 # Note: We can NOT use -z defs as we might desire, because we do not
7856 # link with -lc, and that would cause any symbols used from libc to
7857 # always be unresolved, which means just about no library would
7858 # ever link correctly. If we're not using GNU ld we use -z text
7859 # though, which does catch some bad symbols but isn't as heavy-handed
7860 # as -z defs.
7861 no_undefined_flag='${wl}-z,text'
7862 allow_undefined_flag='${wl}-z,nodefs'
7863 archive_cmds_need_lc=no
7864 hardcode_shlibpath_var=no
7865 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7866 hardcode_libdir_separator=':'
7867 link_all_deplibs=yes
7868 export_dynamic_flag_spec='${wl}-Bexport'
7869 runpath_var='LD_RUN_PATH'
7870
7871 if test "$GCC" = yes; then
7872 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7874 else
7875 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7877 fi
7878 ;;
7879
7880 uts4*)
7881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_shlibpath_var=no
7884 ;;
7885
7886 *)
7887 ld_shlibs=no
7888 ;;
7889 esac
7890 fi
7891
7892echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7893echo "${ECHO_T}$ld_shlibs" >&6
7894test "$ld_shlibs" = no && can_build_shared=no
7895
7896#
7897# Do we need to explicitly link libc?
7898#
7899case "x$archive_cmds_need_lc" in
7900x|xyes)
7901 # Assume -lc should be added
7902 archive_cmds_need_lc=yes
7903
7904 if test "$enable_shared" = yes && test "$GCC" = yes; then
7905 case $archive_cmds in
7906 *'~'*)
7907 # FIXME: we may have to deal with multi-command sequences.
7908 ;;
7909 '$CC '*)
7910 # Test whether the compiler implicitly links with -lc since on some
7911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7912 # to ld, don't add -lc before -lgcc.
7913 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7914echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7915 $rm conftest*
7916 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7917
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } 2>conftest.err; then
7923 soname=conftest
7924 lib=conftest
7925 libobjs=conftest.$ac_objext
7926 deplibs=
7927 wl=$lt_prog_compiler_wl
7928 pic_flag=$lt_prog_compiler_pic
7929 compiler_flags=-v
7930 linker_flags=-v
7931 verstring=
7932 output_objdir=.
7933 libname=conftest
7934 lt_save_allow_undefined_flag=$allow_undefined_flag
7935 allow_undefined_flag=
7936 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7937 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }
7941 then
7942 archive_cmds_need_lc=no
7943 else
7944 archive_cmds_need_lc=yes
7945 fi
7946 allow_undefined_flag=$lt_save_allow_undefined_flag
7947 else
7948 cat conftest.err 1>&5
7949 fi
7950 $rm conftest*
7951 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7952echo "${ECHO_T}$archive_cmds_need_lc" >&6
7953 ;;
7954 esac
7955 fi
7956 ;;
7957esac
7958
7959echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7960echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7961library_names_spec=
7962libname_spec='lib$name'
7963soname_spec=
7964shrext_cmds=".so"
7965postinstall_cmds=
7966postuninstall_cmds=
7967finish_cmds=
7968finish_eval=
7969shlibpath_var=
7970shlibpath_overrides_runpath=unknown
7971version_type=none
7972dynamic_linker="$host_os ld.so"
7973sys_lib_dlsearch_path_spec="/lib /usr/lib"
7974if test "$GCC" = yes; then
7975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7976 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7977 # if the path contains ";" then we assume it to be the separator
7978 # otherwise default to the standard path separator (i.e. ":") - it is
7979 # assumed that no part of a normal pathname contains ";" but that should
7980 # okay in the real world where ";" in dirpaths is itself problematic.
7981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7982 else
7983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7984 fi
7985else
7986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7987fi
7988need_lib_prefix=unknown
7989hardcode_into_libs=no
7990
7991# when you set need_version to no, make sure it does not cause -set_version
7992# flags to be left without arguments
7993need_version=unknown
7994
7995case $host_os in
7996aix3*)
7997 version_type=linux
7998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7999 shlibpath_var=LIBPATH
8000
8001 # AIX 3 has no versioning support, so we append a major version to the name.
8002 soname_spec='${libname}${release}${shared_ext}$major'
8003 ;;
8004
8005aix4* | aix5*)
8006 version_type=linux
8007 need_lib_prefix=no
8008 need_version=no
8009 hardcode_into_libs=yes
8010 if test "$host_cpu" = ia64; then
8011 # AIX 5 supports IA64
8012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 else
8015 # With GCC up to 2.95.x, collect2 would create an import file
8016 # for dependence libraries. The import file would start with
8017 # the line `#! .'. This would cause the generated library to
8018 # depend on `.', always an invalid library. This was fixed in
8019 # development snapshots of GCC prior to 3.0.
8020 case $host_os in
8021 aix4 | aix4.[01] | aix4.[01].*)
8022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8023 echo ' yes '
8024 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8025 :
8026 else
8027 can_build_shared=no
8028 fi
8029 ;;
8030 esac
8031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8032 # soname into executable. Probably we can add versioning support to
8033 # collect2, so additional links can be useful in future.
8034 if test "$aix_use_runtimelinking" = yes; then
8035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8036 # instead of lib<name>.a to let people know that these are not
8037 # typical AIX shared libraries.
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039 else
8040 # We preserve .a as extension for shared libraries through AIX4.2
8041 # and later when we are not doing run time linking.
8042 library_names_spec='${libname}${release}.a $libname.a'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 fi
8045 shlibpath_var=LIBPATH
8046 fi
8047 ;;
8048
8049amigaos*)
8050 library_names_spec='$libname.ixlibrary $libname.a'
8051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8052 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'
8053 ;;
8054
8055beos*)
8056 library_names_spec='${libname}${shared_ext}'
8057 dynamic_linker="$host_os ld.so"
8058 shlibpath_var=LIBRARY_PATH
8059 ;;
8060
8061bsdi[45]*)
8062 version_type=linux
8063 need_version=no
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8067 shlibpath_var=LD_LIBRARY_PATH
8068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8070 # the default ld.so.conf also contains /usr/contrib/lib and
8071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8072 # libtool to hard-code these into programs
8073 ;;
8074
8075cygwin* | mingw* | pw32*)
8076 version_type=windows
8077 shrext_cmds=".dll"
8078 need_version=no
8079 need_lib_prefix=no
8080
8081 case $GCC,$host_os in
8082 yes,cygwin* | yes,mingw* | yes,pw32*)
8083 library_names_spec='$libname.dll.a'
8084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8085 postinstall_cmds='base_file=`basename \${file}`~
8086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8087 dldir=$destdir/`dirname \$dlpath`~
8088 test -d \$dldir || mkdir -p \$dldir~
8089 $install_prog $dir/$dlname \$dldir/$dlname~
8090 chmod a+x \$dldir/$dlname'
8091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8092 dlpath=$dir/\$dldll~
8093 $rm \$dlpath'
8094 shlibpath_overrides_runpath=yes
8095
8096 case $host_os in
8097 cygwin*)
8098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8100 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8101 ;;
8102 mingw*)
8103 # MinGW DLLs use traditional 'lib' prefix
8104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8107 # It is most probably a Windows format PATH printed by
8108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8109 # path with ; separators, and with drive letters. We can handle the
8110 # drive letters (cygwin fileutils understands them), so leave them,
8111 # especially as we might pass files found there to a mingw objdump,
8112 # which wouldn't understand a cygwinified path. Ahh.
8113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8114 else
8115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8116 fi
8117 ;;
8118 pw32*)
8119 # pw32 DLLs use 'pw' prefix rather than 'lib'
8120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8121 ;;
8122 esac
8123 ;;
8124
8125 *)
8126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8127 ;;
8128 esac
8129 dynamic_linker='Win32 ld.exe'
8130 # FIXME: first we should search . and the directory the executable is in
8131 shlibpath_var=PATH
8132 ;;
8133
8134darwin* | rhapsody*)
8135 dynamic_linker="$host_os dyld"
8136 version_type=darwin
8137 need_lib_prefix=no
8138 need_version=no
8139 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8140 soname_spec='${libname}${release}${major}$shared_ext'
8141 shlibpath_overrides_runpath=yes
8142 shlibpath_var=DYLD_LIBRARY_PATH
8143 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8144 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8145 if test "$GCC" = yes; then
8146 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"`
8147 else
8148 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8149 fi
8150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8151 ;;
8152
8153dgux*)
8154 version_type=linux
8155 need_lib_prefix=no
8156 need_version=no
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8158 soname_spec='${libname}${release}${shared_ext}$major'
8159 shlibpath_var=LD_LIBRARY_PATH
8160 ;;
8161
8162freebsd1*)
8163 dynamic_linker=no
8164 ;;
8165
8166kfreebsd*-gnu)
8167 version_type=linux
8168 need_lib_prefix=no
8169 need_version=no
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8171 soname_spec='${libname}${release}${shared_ext}$major'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 shlibpath_overrides_runpath=no
8174 hardcode_into_libs=yes
8175 dynamic_linker='GNU ld.so'
8176 ;;
8177
8178freebsd* | dragonfly*)
8179 # DragonFly does not have aout. When/if they implement a new
8180 # versioning mechanism, adjust this.
8181 if test -x /usr/bin/objformat; then
8182 objformat=`/usr/bin/objformat`
8183 else
8184 case $host_os in
8185 freebsd[123]*) objformat=aout ;;
8186 *) objformat=elf ;;
8187 esac
8188 fi
8189 version_type=freebsd-$objformat
8190 case $version_type in
8191 freebsd-elf*)
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8193 need_version=no
8194 need_lib_prefix=no
8195 ;;
8196 freebsd-*)
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8198 need_version=yes
8199 ;;
8200 esac
8201 shlibpath_var=LD_LIBRARY_PATH
8202 case $host_os in
8203 freebsd2*)
8204 shlibpath_overrides_runpath=yes
8205 ;;
8206 freebsd3.[01]* | freebsdelf3.[01]*)
8207 shlibpath_overrides_runpath=yes
8208 hardcode_into_libs=yes
8209 ;;
8210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8212 shlibpath_overrides_runpath=no
8213 hardcode_into_libs=yes
8214 ;;
8215 freebsd*) # from 4.6 on
8216 shlibpath_overrides_runpath=yes
8217 hardcode_into_libs=yes
8218 ;;
8219 esac
8220 ;;
8221
8222gnu*)
8223 version_type=linux
8224 need_lib_prefix=no
8225 need_version=no
8226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8227 soname_spec='${libname}${release}${shared_ext}$major'
8228 shlibpath_var=LD_LIBRARY_PATH
8229 hardcode_into_libs=yes
8230 ;;
8231
8232hpux9* | hpux10* | hpux11*)
8233 # Give a soname corresponding to the major version so that dld.sl refuses to
8234 # link against other versions.
8235 version_type=sunos
8236 need_lib_prefix=no
8237 need_version=no
8238 case $host_cpu in
8239 ia64*)
8240 shrext_cmds='.so'
8241 hardcode_into_libs=yes
8242 dynamic_linker="$host_os dld.so"
8243 shlibpath_var=LD_LIBRARY_PATH
8244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 if test "X$HPUX_IA64_MODE" = X32; then
8248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8249 else
8250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8251 fi
8252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8253 ;;
8254 hppa*64*)
8255 shrext_cmds='.sl'
8256 hardcode_into_libs=yes
8257 dynamic_linker="$host_os dld.sl"
8258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8261 soname_spec='${libname}${release}${shared_ext}$major'
8262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8264 ;;
8265 *)
8266 shrext_cmds='.sl'
8267 dynamic_linker="$host_os dld.sl"
8268 shlibpath_var=SHLIB_PATH
8269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8271 soname_spec='${libname}${release}${shared_ext}$major'
8272 ;;
8273 esac
8274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8275 postinstall_cmds='chmod 555 $lib'
8276 ;;
8277
8278interix3*)
8279 version_type=linux
8280 need_lib_prefix=no
8281 need_version=no
8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8285 shlibpath_var=LD_LIBRARY_PATH
8286 shlibpath_overrides_runpath=no
8287 hardcode_into_libs=yes
8288 ;;
8289
8290irix5* | irix6* | nonstopux*)
8291 case $host_os in
8292 nonstopux*) version_type=nonstopux ;;
8293 *)
8294 if test "$lt_cv_prog_gnu_ld" = yes; then
8295 version_type=linux
8296 else
8297 version_type=irix
8298 fi ;;
8299 esac
8300 need_lib_prefix=no
8301 need_version=no
8302 soname_spec='${libname}${release}${shared_ext}$major'
8303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8304 case $host_os in
8305 irix5* | nonstopux*)
8306 libsuff= shlibsuff=
8307 ;;
8308 *)
8309 case $LD in # libtool.m4 will add one of these switches to LD
8310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8311 libsuff= shlibsuff= libmagic=32-bit;;
8312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8313 libsuff=32 shlibsuff=N32 libmagic=N32;;
8314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8316 *) libsuff= shlibsuff= libmagic=never-match;;
8317 esac
8318 ;;
8319 esac
8320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8321 shlibpath_overrides_runpath=no
8322 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8323 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8324 hardcode_into_libs=yes
8325 ;;
8326
8327# No shared lib support for Linux oldld, aout, or coff.
8328linux*oldld* | linux*aout* | linux*coff*)
8329 dynamic_linker=no
8330 ;;
8331
8332# This must be Linux ELF.
8333linux*)
8334 version_type=linux
8335 need_lib_prefix=no
8336 need_version=no
8337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8338 soname_spec='${libname}${release}${shared_ext}$major'
8339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8340 shlibpath_var=LD_LIBRARY_PATH
8341 shlibpath_overrides_runpath=no
8342 # This implies no fast_install, which is unacceptable.
8343 # Some rework will be needed to allow for fast_install
8344 # before this can be enabled.
8345 hardcode_into_libs=yes
8346
8347 # find out which ABI we are using
8348 libsuff=
8349 case "$host_cpu" in
8350 x86_64*|s390x*|powerpc64*)
8351 echo '#line 8351 "configure"' > conftest.$ac_ext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8353 (eval $ac_compile) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; then
8357 case `/usr/bin/file conftest.$ac_objext` in
8358 *64-bit*)
8359 libsuff=64
8360 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8361 ;;
8362 esac
8363 fi
8364 rm -rf conftest*
8365 ;;
8366 esac
8367
8368 # Append ld.so.conf contents to the search path
8369 if test -f /etc/ld.so.conf; then
8370 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' ' '`
8371 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8372 fi
8373
8374 # We used to test for /lib/ld.so.1 and disable shared libraries on
8375 # powerpc, because MkLinux only supported shared libraries with the
8376 # GNU dynamic linker. Since this was broken with cross compilers,
8377 # most powerpc-linux boxes support dynamic linking these days and
8378 # people can always --disable-shared, the test was removed, and we
8379 # assume the GNU/Linux dynamic linker is in use.
8380 dynamic_linker='GNU/Linux ld.so'
8381 ;;
8382
8383knetbsd*-gnu)
8384 version_type=linux
8385 need_lib_prefix=no
8386 need_version=no
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 shlibpath_var=LD_LIBRARY_PATH
8390 shlibpath_overrides_runpath=no
8391 hardcode_into_libs=yes
8392 dynamic_linker='GNU ld.so'
8393 ;;
8394
8395netbsd*)
8396 version_type=sunos
8397 need_lib_prefix=no
8398 need_version=no
8399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8402 dynamic_linker='NetBSD (a.out) ld.so'
8403 else
8404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8405 soname_spec='${libname}${release}${shared_ext}$major'
8406 dynamic_linker='NetBSD ld.elf_so'
8407 fi
8408 shlibpath_var=LD_LIBRARY_PATH
8409 shlibpath_overrides_runpath=yes
8410 hardcode_into_libs=yes
8411 ;;
8412
8413newsos6)
8414 version_type=linux
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416 shlibpath_var=LD_LIBRARY_PATH
8417 shlibpath_overrides_runpath=yes
8418 ;;
8419
8420nto-qnx*)
8421 version_type=linux
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=yes
8428 ;;
8429
8430openbsd*)
8431 version_type=sunos
8432 sys_lib_dlsearch_path_spec="/usr/lib"
8433 need_lib_prefix=no
8434 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8435 case $host_os in
8436 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8437 *) need_version=no ;;
8438 esac
8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8441 shlibpath_var=LD_LIBRARY_PATH
8442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8443 case $host_os in
8444 openbsd2.[89] | openbsd2.[89].*)
8445 shlibpath_overrides_runpath=no
8446 ;;
8447 *)
8448 shlibpath_overrides_runpath=yes
8449 ;;
8450 esac
8451 else
8452 shlibpath_overrides_runpath=yes
8453 fi
8454 ;;
8455
8456os2*)
8457 libname_spec='$name'
8458 shrext_cmds=".dll"
8459 need_lib_prefix=no
8460 library_names_spec='$libname${shared_ext} $libname.a'
8461 dynamic_linker='OS/2 ld.exe'
8462 shlibpath_var=LIBPATH
8463 ;;
8464
8465osf3* | osf4* | osf5*)
8466 version_type=osf
8467 need_lib_prefix=no
8468 need_version=no
8469 soname_spec='${libname}${release}${shared_ext}$major'
8470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8471 shlibpath_var=LD_LIBRARY_PATH
8472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8473 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8474 ;;
8475
8476solaris*)
8477 version_type=linux
8478 need_lib_prefix=no
8479 need_version=no
8480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 shlibpath_var=LD_LIBRARY_PATH
8483 shlibpath_overrides_runpath=yes
8484 hardcode_into_libs=yes
8485 # ldd complains unless libraries are executable
8486 postinstall_cmds='chmod +x $lib'
8487 ;;
8488
8489sunos4*)
8490 version_type=sunos
8491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8493 shlibpath_var=LD_LIBRARY_PATH
8494 shlibpath_overrides_runpath=yes
8495 if test "$with_gnu_ld" = yes; then
8496 need_lib_prefix=no
8497 fi
8498 need_version=yes
8499 ;;
8500
8501sysv4 | sysv4.3*)
8502 version_type=linux
8503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8504 soname_spec='${libname}${release}${shared_ext}$major'
8505 shlibpath_var=LD_LIBRARY_PATH
8506 case $host_vendor in
8507 sni)
8508 shlibpath_overrides_runpath=no
8509 need_lib_prefix=no
8510 export_dynamic_flag_spec='${wl}-Blargedynsym'
8511 runpath_var=LD_RUN_PATH
8512 ;;
8513 siemens)
8514 need_lib_prefix=no
8515 ;;
8516 motorola)
8517 need_lib_prefix=no
8518 need_version=no
8519 shlibpath_overrides_runpath=no
8520 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8521 ;;
8522 esac
8523 ;;
8524
8525sysv4*MP*)
8526 if test -d /usr/nec ;then
8527 version_type=linux
8528 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8529 soname_spec='$libname${shared_ext}.$major'
8530 shlibpath_var=LD_LIBRARY_PATH
8531 fi
8532 ;;
8533
8534sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8535 version_type=freebsd-elf
8536 need_lib_prefix=no
8537 need_version=no
8538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8539 soname_spec='${libname}${release}${shared_ext}$major'
8540 shlibpath_var=LD_LIBRARY_PATH
8541 hardcode_into_libs=yes
8542 if test "$with_gnu_ld" = yes; then
8543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8544 shlibpath_overrides_runpath=no
8545 else
8546 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8547 shlibpath_overrides_runpath=yes
8548 case $host_os in
8549 sco3.2v5*)
8550 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8551 ;;
8552 esac
8553 fi
8554 sys_lib_dlsearch_path_spec='/usr/lib'
8555 ;;
8556
8557uts4*)
8558 version_type=linux
8559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 soname_spec='${libname}${release}${shared_ext}$major'
8561 shlibpath_var=LD_LIBRARY_PATH
8562 ;;
8563
8564*)
8565 dynamic_linker=no
8566 ;;
8567esac
8568echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8569echo "${ECHO_T}$dynamic_linker" >&6
8570test "$dynamic_linker" = no && can_build_shared=no
8571
8572variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8573if test "$GCC" = yes; then
8574 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8575fi
8576
8577echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8578echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8579hardcode_action=
8580if test -n "$hardcode_libdir_flag_spec" || \
8581 test -n "$runpath_var" || \
8582 test "X$hardcode_automatic" = "Xyes" ; then
8583
8584 # We can hardcode non-existant directories.
8585 if test "$hardcode_direct" != no &&
8586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8587 # have to relink, otherwise we might link with an installed library
8588 # when we should be linking with a yet-to-be-installed one
8589 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8590 test "$hardcode_minus_L" != no; then
8591 # Linking always hardcodes the temporary library directory.
8592 hardcode_action=relink
8593 else
8594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8595 hardcode_action=immediate
8596 fi
8597else
8598 # We cannot hardcode anything, or else we can only hardcode existing
8599 # directories.
8600 hardcode_action=unsupported
8601fi
8602echo "$as_me:$LINENO: result: $hardcode_action" >&5
8603echo "${ECHO_T}$hardcode_action" >&6
8604
8605if test "$hardcode_action" = relink; then
8606 # Fast installation is not supported
8607 enable_fast_install=no
8608elif test "$shlibpath_overrides_runpath" = yes ||
8609 test "$enable_shared" = no; then
8610 # Fast installation is not necessary
8611 enable_fast_install=needless
8612fi
8613
8614striplib=
8615old_striplib=
8616echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8617echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8618if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8619 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8620 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8621 echo "$as_me:$LINENO: result: yes" >&5
8622echo "${ECHO_T}yes" >&6
8623else
8624# FIXME - insert some real tests, host_os isn't really good enough
8625 case $host_os in
8626 darwin*)
8627 if test -n "$STRIP" ; then
8628 striplib="$STRIP -x"
8629 echo "$as_me:$LINENO: result: yes" >&5
8630echo "${ECHO_T}yes" >&6
8631 else
8632 echo "$as_me:$LINENO: result: no" >&5
8633echo "${ECHO_T}no" >&6
8634fi
8635 ;;
8636 *)
8637 echo "$as_me:$LINENO: result: no" >&5
8638echo "${ECHO_T}no" >&6
8639 ;;
8640 esac
8641fi
8642
8643if test "x$enable_dlopen" != xyes; then
8644 enable_dlopen=unknown
8645 enable_dlopen_self=unknown
8646 enable_dlopen_self_static=unknown
8647else
8648 lt_cv_dlopen=no
8649 lt_cv_dlopen_libs=
8650
8651 case $host_os in
8652 beos*)
8653 lt_cv_dlopen="load_add_on"
8654 lt_cv_dlopen_libs=
8655 lt_cv_dlopen_self=yes
8656 ;;
8657
8658 mingw* | pw32*)
8659 lt_cv_dlopen="LoadLibrary"
8660 lt_cv_dlopen_libs=
8661 ;;
8662
8663 cygwin*)
8664 lt_cv_dlopen="dlopen"
8665 lt_cv_dlopen_libs=
8666 ;;
8667
8668 darwin*)
8669 # if libdl is installed we need to link against it
8670 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8671echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8672if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674else
8675 ac_check_lib_save_LIBS=$LIBS
8676LIBS="-ldl $LIBS"
8677cat >conftest.$ac_ext <<_ACEOF
8678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
8683
8684/* Override any gcc2 internal prototype to avoid an error. */
8685#ifdef __cplusplus
8686extern "C"
8687#endif
8688/* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8690char dlopen ();
8691int
8692main ()
8693{
8694dlopen ();
8695 ;
8696 return 0;
8697}
8698_ACEOF
8699rm -f conftest.$ac_objext conftest$ac_exeext
8700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -z "$ac_c_werror_flag"
8709 || test ! -s conftest.err'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; } &&
8715 { ac_try='test -s conftest$ac_exeext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_lib_dl_dlopen=yes
8722else
8723 echo "$as_me: failed program was:" >&5
8724sed 's/^/| /' conftest.$ac_ext >&5
8725
8726ac_cv_lib_dl_dlopen=no
8727fi
8728rm -f conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8730LIBS=$ac_check_lib_save_LIBS
8731fi
8732echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8733echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8734if test $ac_cv_lib_dl_dlopen = yes; then
8735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8736else
8737
8738 lt_cv_dlopen="dyld"
8739 lt_cv_dlopen_libs=
8740 lt_cv_dlopen_self=yes
8741
8742fi
8743
8744 ;;
8745
8746 *)
8747 echo "$as_me:$LINENO: checking for shl_load" >&5
8748echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8749if test "${ac_cv_func_shl_load+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751else
8752 cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h. */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h. */
8758/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8760#define shl_load innocuous_shl_load
8761
8762/* System header to define __stub macros and hopefully few prototypes,
8763 which can conflict with char shl_load (); below.
8764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765 <limits.h> exists even on freestanding compilers. */
8766
8767#ifdef __STDC__
8768# include <limits.h>
8769#else
8770# include <assert.h>
8771#endif
8772
8773#undef shl_load
8774
8775/* Override any gcc2 internal prototype to avoid an error. */
8776#ifdef __cplusplus
8777extern "C"
8778{
8779#endif
8780/* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */
8782char shl_load ();
8783/* The GNU C library defines this for functions which it implements
8784 to always fail with ENOSYS. Some functions are actually named
8785 something starting with __ and the normal name is an alias. */
8786#if defined (__stub_shl_load) || defined (__stub___shl_load)
8787choke me
8788#else
8789char (*f) () = shl_load;
8790#endif
8791#ifdef __cplusplus
8792}
8793#endif
8794
8795int
8796main ()
8797{
8798return f != shl_load;
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext conftest$ac_exeext
8804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag"
8813 || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest$ac_exeext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_func_shl_load=yes
8826else
8827 echo "$as_me: failed program was:" >&5
8828sed 's/^/| /' conftest.$ac_ext >&5
8829
8830ac_cv_func_shl_load=no
8831fi
8832rm -f conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834fi
8835echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8836echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8837if test $ac_cv_func_shl_load = yes; then
8838 lt_cv_dlopen="shl_load"
8839else
8840 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8841echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8842if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845 ac_check_lib_save_LIBS=$LIBS
8846LIBS="-ldld $LIBS"
8847cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
8853
8854/* Override any gcc2 internal prototype to avoid an error. */
8855#ifdef __cplusplus
8856extern "C"
8857#endif
8858/* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860char shl_load ();
8861int
8862main ()
8863{
8864shl_load ();
8865 ;
8866 return 0;
8867}
8868_ACEOF
8869rm -f conftest.$ac_objext conftest$ac_exeext
8870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_dld_shl_load=yes
8892else
8893 echo "$as_me: failed program was:" >&5
8894sed 's/^/| /' conftest.$ac_ext >&5
8895
8896ac_cv_lib_dld_shl_load=no
8897fi
8898rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900LIBS=$ac_check_lib_save_LIBS
8901fi
8902echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8903echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8904if test $ac_cv_lib_dld_shl_load = yes; then
8905 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8906else
8907 echo "$as_me:$LINENO: checking for dlopen" >&5
8908echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8909if test "${ac_cv_func_dlopen+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911else
8912 cat >conftest.$ac_ext <<_ACEOF
8913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
8918/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8920#define dlopen innocuous_dlopen
8921
8922/* System header to define __stub macros and hopefully few prototypes,
8923 which can conflict with char dlopen (); below.
8924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8925 <limits.h> exists even on freestanding compilers. */
8926
8927#ifdef __STDC__
8928# include <limits.h>
8929#else
8930# include <assert.h>
8931#endif
8932
8933#undef dlopen
8934
8935/* Override any gcc2 internal prototype to avoid an error. */
8936#ifdef __cplusplus
8937extern "C"
8938{
8939#endif
8940/* We use char because int might match the return type of a gcc2
8941 builtin and then its argument prototype would still apply. */
8942char dlopen ();
8943/* The GNU C library defines this for functions which it implements
8944 to always fail with ENOSYS. Some functions are actually named
8945 something starting with __ and the normal name is an alias. */
8946#if defined (__stub_dlopen) || defined (__stub___dlopen)
8947choke me
8948#else
8949char (*f) () = dlopen;
8950#endif
8951#ifdef __cplusplus
8952}
8953#endif
8954
8955int
8956main ()
8957{
8958return f != dlopen;
8959 ;
8960 return 0;
8961}
8962_ACEOF
8963rm -f conftest.$ac_objext conftest$ac_exeext
8964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_func_dlopen=yes
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990ac_cv_func_dlopen=no
8991fi
8992rm -f conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994fi
8995echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8996echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8997if test $ac_cv_func_dlopen = yes; then
8998 lt_cv_dlopen="dlopen"
8999else
9000 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9001echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9002if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004else
9005 ac_check_lib_save_LIBS=$LIBS
9006LIBS="-ldl $LIBS"
9007cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h. */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
9012/* end confdefs.h. */
9013
9014/* Override any gcc2 internal prototype to avoid an error. */
9015#ifdef __cplusplus
9016extern "C"
9017#endif
9018/* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020char dlopen ();
9021int
9022main ()
9023{
9024dlopen ();
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext conftest$ac_exeext
9030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_lib_dl_dlopen=yes
9052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056ac_cv_lib_dl_dlopen=no
9057fi
9058rm -f conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060LIBS=$ac_check_lib_save_LIBS
9061fi
9062echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9063echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9064if test $ac_cv_lib_dl_dlopen = yes; then
9065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9066else
9067 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9068echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9069if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071else
9072 ac_check_lib_save_LIBS=$LIBS
9073LIBS="-lsvld $LIBS"
9074cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080
9081/* Override any gcc2 internal prototype to avoid an error. */
9082#ifdef __cplusplus
9083extern "C"
9084#endif
9085/* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9087char dlopen ();
9088int
9089main ()
9090{
9091dlopen ();
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096rm -f conftest.$ac_objext conftest$ac_exeext
9097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_lib_svld_dlopen=yes
9119else
9120 echo "$as_me: failed program was:" >&5
9121sed 's/^/| /' conftest.$ac_ext >&5
9122
9123ac_cv_lib_svld_dlopen=no
9124fi
9125rm -f conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127LIBS=$ac_check_lib_save_LIBS
9128fi
9129echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9130echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9131if test $ac_cv_lib_svld_dlopen = yes; then
9132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9133else
9134 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9135echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9136if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138else
9139 ac_check_lib_save_LIBS=$LIBS
9140LIBS="-ldld $LIBS"
9141cat >conftest.$ac_ext <<_ACEOF
9142/* confdefs.h. */
9143_ACEOF
9144cat confdefs.h >>conftest.$ac_ext
9145cat >>conftest.$ac_ext <<_ACEOF
9146/* end confdefs.h. */
9147
9148/* Override any gcc2 internal prototype to avoid an error. */
9149#ifdef __cplusplus
9150extern "C"
9151#endif
9152/* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */
9154char dld_link ();
9155int
9156main ()
9157{
9158dld_link ();
9159 ;
9160 return 0;
9161}
9162_ACEOF
9163rm -f conftest.$ac_objext conftest$ac_exeext
9164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag"
9173 || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_dld_dld_link=yes
9186else
9187 echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190ac_cv_lib_dld_dld_link=no
9191fi
9192rm -f conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194LIBS=$ac_check_lib_save_LIBS
9195fi
9196echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9197echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9198if test $ac_cv_lib_dld_dld_link = yes; then
9199 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9200fi
9201
9202
9203fi
9204
9205
9206fi
9207
9208
9209fi
9210
9211
9212fi
9213
9214
9215fi
9216
9217 ;;
9218 esac
9219
9220 if test "x$lt_cv_dlopen" != xno; then
9221 enable_dlopen=yes
9222 else
9223 enable_dlopen=no
9224 fi
9225
9226 case $lt_cv_dlopen in
9227 dlopen)
9228 save_CPPFLAGS="$CPPFLAGS"
9229 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9230
9231 save_LDFLAGS="$LDFLAGS"
9232 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9233
9234 save_LIBS="$LIBS"
9235 LIBS="$lt_cv_dlopen_libs $LIBS"
9236
9237 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9238echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9239if test "${lt_cv_dlopen_self+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242 if test "$cross_compiling" = yes; then :
9243 lt_cv_dlopen_self=cross
9244else
9245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9246 lt_status=$lt_dlunknown
9247 cat > conftest.$ac_ext <<EOF
9248#line 9248 "configure"
9249#include "confdefs.h"
9250
9251#if HAVE_DLFCN_H
9252#include <dlfcn.h>
9253#endif
9254
9255#include <stdio.h>
9256
9257#ifdef RTLD_GLOBAL
9258# define LT_DLGLOBAL RTLD_GLOBAL
9259#else
9260# ifdef DL_GLOBAL
9261# define LT_DLGLOBAL DL_GLOBAL
9262# else
9263# define LT_DLGLOBAL 0
9264# endif
9265#endif
9266
9267/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9268 find out it does not work in some platform. */
9269#ifndef LT_DLLAZY_OR_NOW
9270# ifdef RTLD_LAZY
9271# define LT_DLLAZY_OR_NOW RTLD_LAZY
9272# else
9273# ifdef DL_LAZY
9274# define LT_DLLAZY_OR_NOW DL_LAZY
9275# else
9276# ifdef RTLD_NOW
9277# define LT_DLLAZY_OR_NOW RTLD_NOW
9278# else
9279# ifdef DL_NOW
9280# define LT_DLLAZY_OR_NOW DL_NOW
9281# else
9282# define LT_DLLAZY_OR_NOW 0
9283# endif
9284# endif
9285# endif
9286# endif
9287#endif
9288
9289#ifdef __cplusplus
9290extern "C" void exit (int);
9291#endif
9292
9293void fnord() { int i=42;}
9294int main ()
9295{
9296 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9297 int status = $lt_dlunknown;
9298
9299 if (self)
9300 {
9301 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9302 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9303 /* dlclose (self); */
9304 }
9305 else
9306 puts (dlerror ());
9307
9308 exit (status);
9309}
9310EOF
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9316 (./conftest; exit; ) >&5 2>/dev/null
9317 lt_status=$?
9318 case x$lt_status in
9319 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9320 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9321 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9322 esac
9323 else :
9324 # compilation failed
9325 lt_cv_dlopen_self=no
9326 fi
9327fi
9328rm -fr conftest*
9329
9330
9331fi
9332echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9333echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9334
9335 if test "x$lt_cv_dlopen_self" = xyes; then
9336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9337 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9338echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9339if test "${lt_cv_dlopen_self_static+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342 if test "$cross_compiling" = yes; then :
9343 lt_cv_dlopen_self_static=cross
9344else
9345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9346 lt_status=$lt_dlunknown
9347 cat > conftest.$ac_ext <<EOF
9348#line 9348 "configure"
9349#include "confdefs.h"
9350
9351#if HAVE_DLFCN_H
9352#include <dlfcn.h>
9353#endif
9354
9355#include <stdio.h>
9356
9357#ifdef RTLD_GLOBAL
9358# define LT_DLGLOBAL RTLD_GLOBAL
9359#else
9360# ifdef DL_GLOBAL
9361# define LT_DLGLOBAL DL_GLOBAL
9362# else
9363# define LT_DLGLOBAL 0
9364# endif
9365#endif
9366
9367/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9368 find out it does not work in some platform. */
9369#ifndef LT_DLLAZY_OR_NOW
9370# ifdef RTLD_LAZY
9371# define LT_DLLAZY_OR_NOW RTLD_LAZY
9372# else
9373# ifdef DL_LAZY
9374# define LT_DLLAZY_OR_NOW DL_LAZY
9375# else
9376# ifdef RTLD_NOW
9377# define LT_DLLAZY_OR_NOW RTLD_NOW
9378# else
9379# ifdef DL_NOW
9380# define LT_DLLAZY_OR_NOW DL_NOW
9381# else
9382# define LT_DLLAZY_OR_NOW 0
9383# endif
9384# endif
9385# endif
9386# endif
9387#endif
9388
9389#ifdef __cplusplus
9390extern "C" void exit (int);
9391#endif
9392
9393void fnord() { int i=42;}
9394int main ()
9395{
9396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9397 int status = $lt_dlunknown;
9398
9399 if (self)
9400 {
9401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9402 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9403 /* dlclose (self); */
9404 }
9405 else
9406 puts (dlerror ());
9407
9408 exit (status);
9409}
9410EOF
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9416 (./conftest; exit; ) >&5 2>/dev/null
9417 lt_status=$?
9418 case x$lt_status in
9419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9422 esac
9423 else :
9424 # compilation failed
9425 lt_cv_dlopen_self_static=no
9426 fi
9427fi
9428rm -fr conftest*
9429
9430
9431fi
9432echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9433echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9434 fi
9435
9436 CPPFLAGS="$save_CPPFLAGS"
9437 LDFLAGS="$save_LDFLAGS"
9438 LIBS="$save_LIBS"
9439 ;;
9440 esac
9441
9442 case $lt_cv_dlopen_self in
9443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9444 *) enable_dlopen_self=unknown ;;
9445 esac
9446
9447 case $lt_cv_dlopen_self_static in
9448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9449 *) enable_dlopen_self_static=unknown ;;
9450 esac
9451fi
9452
9453
9454# Report which library types will actually be built
9455echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9456echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9457echo "$as_me:$LINENO: result: $can_build_shared" >&5
9458echo "${ECHO_T}$can_build_shared" >&6
9459
9460echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9461echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9462test "$can_build_shared" = "no" && enable_shared=no
9463
9464# On AIX, shared libraries and static libraries use the same namespace, and
9465# are all built from PIC.
9466case $host_os in
9467aix3*)
9468 test "$enable_shared" = yes && enable_static=no
9469 if test -n "$RANLIB"; then
9470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9471 postinstall_cmds='$RANLIB $lib'
9472 fi
9473 ;;
9474
9475aix4* | aix5*)
9476 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9477 test "$enable_shared" = yes && enable_static=no
9478 fi
9479 ;;
9480esac
9481echo "$as_me:$LINENO: result: $enable_shared" >&5
9482echo "${ECHO_T}$enable_shared" >&6
9483
9484echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9485echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9486# Make sure either enable_shared or enable_static is yes.
9487test "$enable_shared" = yes || enable_static=yes
9488echo "$as_me:$LINENO: result: $enable_static" >&5
9489echo "${ECHO_T}$enable_static" >&6
9490
9491# The else clause should only fire when bootstrapping the
9492# libtool distribution, otherwise you forgot to ship ltmain.sh
9493# with your package, and you will get complaints that there are
9494# no rules to generate ltmain.sh.
9495if test -f "$ltmain"; then
9496 # See if we are running on zsh, and set the options which allow our commands through
9497 # without removal of \ escapes.
9498 if test -n "${ZSH_VERSION+set}" ; then
9499 setopt NO_GLOB_SUBST
9500 fi
9501 # Now quote all the things that may contain metacharacters while being
9502 # careful not to overquote the AC_SUBSTed values. We take copies of the
9503 # variables and quote the copies for generation of the libtool script.
9504 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9505 SED SHELL STRIP \
9506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9508 deplibs_check_method reload_flag reload_cmds need_locks \
9509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9510 lt_cv_sys_global_symbol_to_c_name_address \
9511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9512 old_postinstall_cmds old_postuninstall_cmds \
9513 compiler \
9514 CC \
9515 LD \
9516 lt_prog_compiler_wl \
9517 lt_prog_compiler_pic \
9518 lt_prog_compiler_static \
9519 lt_prog_compiler_no_builtin_flag \
9520 export_dynamic_flag_spec \
9521 thread_safe_flag_spec \
9522 whole_archive_flag_spec \
9523 enable_shared_with_static_runtimes \
9524 old_archive_cmds \
9525 old_archive_from_new_cmds \
9526 predep_objects \
9527 postdep_objects \
9528 predeps \
9529 postdeps \
9530 compiler_lib_search_path \
9531 archive_cmds \
9532 archive_expsym_cmds \
9533 postinstall_cmds \
9534 postuninstall_cmds \
9535 old_archive_from_expsyms_cmds \
9536 allow_undefined_flag \
9537 no_undefined_flag \
9538 export_symbols_cmds \
9539 hardcode_libdir_flag_spec \
9540 hardcode_libdir_flag_spec_ld \
9541 hardcode_libdir_separator \
9542 hardcode_automatic \
9543 module_cmds \
9544 module_expsym_cmds \
9545 lt_cv_prog_compiler_c_o \
9546 exclude_expsyms \
9547 include_expsyms; do
9548
9549 case $var in
9550 old_archive_cmds | \
9551 old_archive_from_new_cmds | \
9552 archive_cmds | \
9553 archive_expsym_cmds | \
9554 module_cmds | \
9555 module_expsym_cmds | \
9556 old_archive_from_expsyms_cmds | \
9557 export_symbols_cmds | \
9558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9559 postinstall_cmds | postuninstall_cmds | \
9560 old_postinstall_cmds | old_postuninstall_cmds | \
9561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9562 # Double-quote double-evaled strings.
9563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9564 ;;
9565 *)
9566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9567 ;;
9568 esac
9569 done
9570
9571 case $lt_echo in
9572 *'\$0 --fallback-echo"')
9573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9574 ;;
9575 esac
9576
9577cfgfile="${ofile}T"
9578 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9579 $rm -f "$cfgfile"
9580 { echo "$as_me:$LINENO: creating $ofile" >&5
9581echo "$as_me: creating $ofile" >&6;}
9582
9583 cat <<__EOF__ >> "$cfgfile"
9584#! $SHELL
9585
9586# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9587# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9588# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9589#
9590# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9591# Free Software Foundation, Inc.
9592#
9593# This file is part of GNU Libtool:
9594# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9595#
9596# This program is free software; you can redistribute it and/or modify
9597# it under the terms of the GNU General Public License as published by
9598# the Free Software Foundation; either version 2 of the License, or
9599# (at your option) any later version.
9600#
9601# This program is distributed in the hope that it will be useful, but
9602# WITHOUT ANY WARRANTY; without even the implied warranty of
9603# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9604# General Public License for more details.
9605#
9606# You should have received a copy of the GNU General Public License
9607# along with this program; if not, write to the Free Software
9608# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9609#
9610# As a special exception to the GNU General Public License, if you
9611# distribute this file as part of a program that contains a
9612# configuration script generated by Autoconf, you may include it under
9613# the same distribution terms that you use for the rest of that program.
9614
9615# A sed program that does not truncate output.
9616SED=$lt_SED
9617
9618# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9619Xsed="$SED -e 1s/^X//"
9620
9621# The HP-UX ksh and POSIX shell print the target directory to stdout
9622# if CDPATH is set.
9623(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9624
9625# The names of the tagged configurations supported by this script.
9626available_tags=
9627
9628# ### BEGIN LIBTOOL CONFIG
9629
9630# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9631
9632# Shell to use when invoking shell scripts.
9633SHELL=$lt_SHELL
9634
9635# Whether or not to build shared libraries.
9636build_libtool_libs=$enable_shared
9637
9638# Whether or not to build static libraries.
9639build_old_libs=$enable_static
9640
9641# Whether or not to add -lc for building shared libraries.
9642build_libtool_need_lc=$archive_cmds_need_lc
9643
9644# Whether or not to disallow shared libs when runtime libs are static
9645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9646
9647# Whether or not to optimize for fast installation.
9648fast_install=$enable_fast_install
9649
9650# The host system.
9651host_alias=$host_alias
9652host=$host
9653host_os=$host_os
9654
9655# The build system.
9656build_alias=$build_alias
9657build=$build
9658build_os=$build_os
9659
9660# An echo program that does not interpret backslashes.
9661echo=$lt_echo
9662
9663# The archiver.
9664AR=$lt_AR
9665AR_FLAGS=$lt_AR_FLAGS
9666
9667# A C compiler.
9668LTCC=$lt_LTCC
9669
9670# LTCC compiler flags.
9671LTCFLAGS=$lt_LTCFLAGS
9672
9673# A language-specific compiler.
9674CC=$lt_compiler
9675
9676# Is the compiler the GNU C compiler?
9677with_gcc=$GCC
9678
9679gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9680gcc_ver=\`gcc -dumpversion\`
9681
9682# An ERE matcher.
9683EGREP=$lt_EGREP
9684
9685# The linker used to build libraries.
9686LD=$lt_LD
9687
9688# Whether we need hard or soft links.
9689LN_S=$lt_LN_S
9690
9691# A BSD-compatible nm program.
9692NM=$lt_NM
9693
9694# A symbol stripping program
9695STRIP=$lt_STRIP
9696
9697# Used to examine libraries when file_magic_cmd begins "file"
9698MAGIC_CMD=$MAGIC_CMD
9699
9700# Used on cygwin: DLL creation program.
9701DLLTOOL="$DLLTOOL"
9702
9703# Used on cygwin: object dumper.
9704OBJDUMP="$OBJDUMP"
9705
9706# Used on cygwin: assembler.
9707AS="$AS"
9708
9709# The name of the directory that contains temporary libtool files.
9710objdir=$objdir
9711
9712# How to create reloadable object files.
9713reload_flag=$lt_reload_flag
9714reload_cmds=$lt_reload_cmds
9715
9716# How to pass a linker flag through the compiler.
9717wl=$lt_lt_prog_compiler_wl
9718
9719# Object file suffix (normally "o").
9720objext="$ac_objext"
9721
9722# Old archive suffix (normally "a").
9723libext="$libext"
9724
9725# Shared library suffix (normally ".so").
9726shrext_cmds='$shrext_cmds'
9727
9728# Executable file suffix (normally "").
9729exeext="$exeext"
9730
9731# Additional compiler flags for building library objects.
9732pic_flag=$lt_lt_prog_compiler_pic
9733pic_mode=$pic_mode
9734
9735# What is the maximum length of a command?
9736max_cmd_len=$lt_cv_sys_max_cmd_len
9737
9738# Does compiler simultaneously support -c and -o options?
9739compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9740
9741# Must we lock files when doing compilation?
9742need_locks=$lt_need_locks
9743
9744# Do we need the lib prefix for modules?
9745need_lib_prefix=$need_lib_prefix
9746
9747# Do we need a version for libraries?
9748need_version=$need_version
9749
9750# Whether dlopen is supported.
9751dlopen_support=$enable_dlopen
9752
9753# Whether dlopen of programs is supported.
9754dlopen_self=$enable_dlopen_self
9755
9756# Whether dlopen of statically linked programs is supported.
9757dlopen_self_static=$enable_dlopen_self_static
9758
9759# Compiler flag to prevent dynamic linking.
9760link_static_flag=$lt_lt_prog_compiler_static
9761
9762# Compiler flag to turn off builtin functions.
9763no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9764
9765# Compiler flag to allow reflexive dlopens.
9766export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9767
9768# Compiler flag to generate shared objects directly from archives.
9769whole_archive_flag_spec=$lt_whole_archive_flag_spec
9770
9771# Compiler flag to generate thread-safe objects.
9772thread_safe_flag_spec=$lt_thread_safe_flag_spec
9773
9774# Library versioning type.
9775version_type=$version_type
9776
9777# Format of library name prefix.
9778libname_spec=$lt_libname_spec
9779
9780# List of archive names. First name is the real one, the rest are links.
9781# The last name is the one that the linker finds with -lNAME.
9782library_names_spec=$lt_library_names_spec
9783
9784# The coded name of the library, if different from the real name.
9785soname_spec=$lt_soname_spec
9786
9787# Commands used to build and install an old-style archive.
9788RANLIB=$lt_RANLIB
9789old_archive_cmds=$lt_old_archive_cmds
9790old_postinstall_cmds=$lt_old_postinstall_cmds
9791old_postuninstall_cmds=$lt_old_postuninstall_cmds
9792
9793# Create an old-style archive from a shared archive.
9794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9795
9796# Create a temporary old-style archive to link instead of a shared archive.
9797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9798
9799# Commands used to build and install a shared archive.
9800archive_cmds=$lt_archive_cmds
9801archive_expsym_cmds=$lt_archive_expsym_cmds
9802postinstall_cmds=$lt_postinstall_cmds
9803postuninstall_cmds=$lt_postuninstall_cmds
9804
9805# Commands used to build a loadable module (assumed same as above if empty)
9806module_cmds=$lt_module_cmds
9807module_expsym_cmds=$lt_module_expsym_cmds
9808
9809# Commands to strip libraries.
9810old_striplib=$lt_old_striplib
9811striplib=$lt_striplib
9812
9813# Dependencies to place before the objects being linked to create a
9814# shared library.
9815predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9816
9817# Dependencies to place after the objects being linked to create a
9818# shared library.
9819postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9820
9821# Dependencies to place before the objects being linked to create a
9822# shared library.
9823predeps=$lt_predeps
9824
9825# Dependencies to place after the objects being linked to create a
9826# shared library.
9827postdeps=$lt_postdeps
9828
9829# The library search path used internally by the compiler when linking
9830# a shared library.
9831compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9832
9833# Method to check whether dependent libraries are shared objects.
9834deplibs_check_method=$lt_deplibs_check_method
9835
9836# Command to use when deplibs_check_method == file_magic.
9837file_magic_cmd=$lt_file_magic_cmd
9838
9839# Flag that allows shared libraries with undefined symbols to be built.
9840allow_undefined_flag=$lt_allow_undefined_flag
9841
9842# Flag that forces no undefined symbols.
9843no_undefined_flag=$lt_no_undefined_flag
9844
9845# Commands used to finish a libtool library installation in a directory.
9846finish_cmds=$lt_finish_cmds
9847
9848# Same as above, but a single script fragment to be evaled but not shown.
9849finish_eval=$lt_finish_eval
9850
9851# Take the output of nm and produce a listing of raw symbols and C names.
9852global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9853
9854# Transform the output of nm in a proper C declaration
9855global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9856
9857# Transform the output of nm in a C name address pair
9858global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9859
9860# This is the shared library runtime path variable.
9861runpath_var=$runpath_var
9862
9863# This is the shared library path variable.
9864shlibpath_var=$shlibpath_var
9865
9866# Is shlibpath searched before the hard-coded library search path?
9867shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9868
9869# How to hardcode a shared library path into an executable.
9870hardcode_action=$hardcode_action
9871
9872# Whether we should hardcode library paths into libraries.
9873hardcode_into_libs=$hardcode_into_libs
9874
9875# Flag to hardcode \$libdir into a binary during linking.
9876# This must work even if \$libdir does not exist.
9877hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9878
9879# If ld is used when linking, flag to hardcode \$libdir into
9880# a binary during linking. This must work even if \$libdir does
9881# not exist.
9882hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9883
9884# Whether we need a single -rpath flag with a separated argument.
9885hardcode_libdir_separator=$lt_hardcode_libdir_separator
9886
9887# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9888# resulting binary.
9889hardcode_direct=$hardcode_direct
9890
9891# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9892# resulting binary.
9893hardcode_minus_L=$hardcode_minus_L
9894
9895# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9896# the resulting binary.
9897hardcode_shlibpath_var=$hardcode_shlibpath_var
9898
9899# Set to yes if building a shared library automatically hardcodes DIR into the library
9900# and all subsequent libraries and executables linked against it.
9901hardcode_automatic=$hardcode_automatic
9902
9903# Variables whose values should be saved in libtool wrapper scripts and
9904# restored at relink time.
9905variables_saved_for_relink="$variables_saved_for_relink"
9906
9907# Whether libtool must link a program against all its dependency libraries.
9908link_all_deplibs=$link_all_deplibs
9909
9910# Compile-time system search path for libraries
9911sys_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"\`
9912
9913# Run-time system search path for libraries
9914sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9915
9916# Fix the shell variable \$srcfile for the compiler.
9917fix_srcfile_path="$fix_srcfile_path"
9918
9919# Set to yes if exported symbols are required.
9920always_export_symbols=$always_export_symbols
9921
9922# The commands to list exported symbols.
9923export_symbols_cmds=$lt_export_symbols_cmds
9924
9925# The commands to extract the exported symbol list from a shared archive.
9926extract_expsyms_cmds=$lt_extract_expsyms_cmds
9927
9928# Symbols that should not be listed in the preloaded symbols.
9929exclude_expsyms=$lt_exclude_expsyms
9930
9931# Symbols that must always be exported.
9932include_expsyms=$lt_include_expsyms
9933
9934# ### END LIBTOOL CONFIG
9935
9936__EOF__
9937
9938
9939 case $host_os in
9940 aix3*)
9941 cat <<\EOF >> "$cfgfile"
9942
9943# AIX sometimes has problems with the GCC collect2 program. For some
9944# reason, if we set the COLLECT_NAMES environment variable, the problems
9945# vanish in a puff of smoke.
9946if test "X${COLLECT_NAMES+set}" != Xset; then
9947 COLLECT_NAMES=
9948 export COLLECT_NAMES
9949fi
9950EOF
9951 ;;
9952 esac
9953
9954 # We use sed instead of cat because bash on DJGPP gets confused if
9955 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9956 # text mode, it properly converts lines to CR/LF. This bash problem
9957 # is reportedly fixed, but why not run on old versions too?
9958 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9959
9960 mv -f "$cfgfile" "$ofile" || \
9961 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9962 chmod +x "$ofile"
9963
9964else
9965 # If there is no Makefile yet, we rely on a make rule to execute
9966 # `config.status --recheck' to rerun these tests and create the
9967 # libtool script then.
9968 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9969 if test -f "$ltmain_in"; then
9970 test -f Makefile && make "$ltmain"
9971 fi
9972fi
9973
9974
9975ac_ext=c
9976ac_cpp='$CPP $CPPFLAGS'
9977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979ac_compiler_gnu=$ac_cv_c_compiler_gnu
9980
9981CC="$lt_save_CC"
9982
9983
9984# Check whether --with-tags or --without-tags was given.
9985if test "${with_tags+set}" = set; then
9986 withval="$with_tags"
9987 tagnames="$withval"
9988fi;
9989
9990if test -f "$ltmain" && test -n "$tagnames"; then
9991 if test ! -f "${ofile}"; then
9992 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9993echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9994 fi
9995
9996 if test -z "$LTCC"; then
9997 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9998 if test -z "$LTCC"; then
9999 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10000echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10001 else
10002 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10003echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10004 fi
10005 fi
10006 if test -z "$LTCFLAGS"; then
10007 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10008 fi
10009
10010 # Extract list of available tagged configurations in $ofile.
10011 # Note that this assumes the entire list is on one line.
10012 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10013
10014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10015 for tagname in $tagnames; do
10016 IFS="$lt_save_ifs"
10017 # Check whether tagname contains only valid characters
10018 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10019 "") ;;
10020 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10021echo "$as_me: error: invalid tag name: $tagname" >&2;}
10022 { (exit 1); exit 1; }; }
10023 ;;
10024 esac
10025
10026 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10027 then
10028 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10029echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10030 { (exit 1); exit 1; }; }
10031 fi
10032
10033 # Update the list of available tags.
10034 if test -n "$tagname"; then
10035 echo appending configuration tag \"$tagname\" to $ofile
10036
10037 case $tagname in
10038 CXX)
10039 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10040 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10041 (test "X$CXX" != "Xg++"))) ; then
10042 ac_ext=cc
10043ac_cpp='$CXXCPP $CPPFLAGS'
10044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10047
10048
10049
10050
10051archive_cmds_need_lc_CXX=no
10052allow_undefined_flag_CXX=
10053always_export_symbols_CXX=no
10054archive_expsym_cmds_CXX=
10055export_dynamic_flag_spec_CXX=
10056hardcode_direct_CXX=no
10057hardcode_libdir_flag_spec_CXX=
10058hardcode_libdir_flag_spec_ld_CXX=
10059hardcode_libdir_separator_CXX=
10060hardcode_minus_L_CXX=no
10061hardcode_shlibpath_var_CXX=unsupported
10062hardcode_automatic_CXX=no
10063module_cmds_CXX=
10064module_expsym_cmds_CXX=
10065link_all_deplibs_CXX=unknown
10066old_archive_cmds_CXX=$old_archive_cmds
10067no_undefined_flag_CXX=
10068whole_archive_flag_spec_CXX=
10069enable_shared_with_static_runtimes_CXX=no
10070
10071# Dependencies to place before and after the object being linked:
10072predep_objects_CXX=
10073postdep_objects_CXX=
10074predeps_CXX=
10075postdeps_CXX=
10076compiler_lib_search_path_CXX=
10077
10078# Source file extension for C++ test sources.
10079ac_ext=cpp
10080
10081# Object file extension for compiled C++ test sources.
10082objext=o
10083objext_CXX=$objext
10084
10085# Code to be used in simple compile tests
10086lt_simple_compile_test_code="int some_variable = 0;\n"
10087
10088# Code to be used in simple link tests
10089lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10090
10091# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10092
10093# If no C compiler was specified, use CC.
10094LTCC=${LTCC-"$CC"}
10095
10096# If no C compiler flags were specified, use CFLAGS.
10097LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10098
10099# Allow CC to be a program name with arguments.
10100compiler=$CC
10101
10102
10103# save warnings/boilerplate of simple test code
10104ac_outfile=conftest.$ac_objext
10105printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10106eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10107_lt_compiler_boilerplate=`cat conftest.err`
10108$rm conftest*
10109
10110ac_outfile=conftest.$ac_objext
10111printf "$lt_simple_link_test_code" >conftest.$ac_ext
10112eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10113_lt_linker_boilerplate=`cat conftest.err`
10114$rm conftest*
10115
10116
10117# Allow CC to be a program name with arguments.
10118lt_save_CC=$CC
10119lt_save_LD=$LD
10120lt_save_GCC=$GCC
10121GCC=$GXX
10122lt_save_with_gnu_ld=$with_gnu_ld
10123lt_save_path_LD=$lt_cv_path_LD
10124if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10125 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10126else
10127 $as_unset lt_cv_prog_gnu_ld
10128fi
10129if test -n "${lt_cv_path_LDCXX+set}"; then
10130 lt_cv_path_LD=$lt_cv_path_LDCXX
10131else
10132 $as_unset lt_cv_path_LD
10133fi
10134test -z "${LDCXX+set}" || LD=$LDCXX
10135CC=${CXX-"c++"}
10136compiler=$CC
10137compiler_CXX=$CC
10138for cc_temp in $compiler""; do
10139 case $cc_temp in
10140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10142 \-*) ;;
10143 *) break;;
10144 esac
10145done
10146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10147
10148
10149# We don't want -fno-exception wen compiling C++ code, so set the
10150# no_builtin_flag separately
10151if test "$GXX" = yes; then
10152 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10153else
10154 lt_prog_compiler_no_builtin_flag_CXX=
10155fi
10156
10157if test "$GXX" = yes; then
10158 # Set up default GNU C++ configuration
10159
10160
10161# Check whether --with-gnu-ld or --without-gnu-ld was given.
10162if test "${with_gnu_ld+set}" = set; then
10163 withval="$with_gnu_ld"
10164 test "$withval" = no || with_gnu_ld=yes
10165else
10166 with_gnu_ld=no
10167fi;
10168ac_prog=ld
10169if test "$GCC" = yes; then
10170 # Check if gcc -print-prog-name=ld gives a path.
10171 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10172echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10173 case $host in
10174 *-*-mingw*)
10175 # gcc leaves a trailing carriage return which upsets mingw
10176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10177 *)
10178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10179 esac
10180 case $ac_prog in
10181 # Accept absolute paths.
10182 [\\/]* | ?:[\\/]*)
10183 re_direlt='/[^/][^/]*/\.\./'
10184 # Canonicalize the pathname of ld
10185 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10186 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10187 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10188 done
10189 test -z "$LD" && LD="$ac_prog"
10190 ;;
10191 "")
10192 # If it fails, then pretend we aren't using GCC.
10193 ac_prog=ld
10194 ;;
10195 *)
10196 # If it is relative, then search for the first ld in PATH.
10197 with_gnu_ld=unknown
10198 ;;
10199 esac
10200elif test "$with_gnu_ld" = yes; then
10201 echo "$as_me:$LINENO: checking for GNU ld" >&5
10202echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10203else
10204 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10205echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10206fi
10207if test "${lt_cv_path_LD+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10209else
10210 if test -z "$LD"; then
10211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10212 for ac_dir in $PATH; do
10213 IFS="$lt_save_ifs"
10214 test -z "$ac_dir" && ac_dir=.
10215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10216 lt_cv_path_LD="$ac_dir/$ac_prog"
10217 # Check to see if the program is GNU ld. I'd rather use --version,
10218 # but apparently some variants of GNU ld only accept -v.
10219 # Break only if it was the GNU/non-GNU ld that we prefer.
10220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10221 *GNU* | *'with BFD'*)
10222 test "$with_gnu_ld" != no && break
10223 ;;
10224 *)
10225 test "$with_gnu_ld" != yes && break
10226 ;;
10227 esac
10228 fi
10229 done
10230 IFS="$lt_save_ifs"
10231else
10232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10233fi
10234fi
10235
10236LD="$lt_cv_path_LD"
10237if test -n "$LD"; then
10238 echo "$as_me:$LINENO: result: $LD" >&5
10239echo "${ECHO_T}$LD" >&6
10240else
10241 echo "$as_me:$LINENO: result: no" >&5
10242echo "${ECHO_T}no" >&6
10243fi
10244test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10245echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10246 { (exit 1); exit 1; }; }
10247echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10248echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10249if test "${lt_cv_prog_gnu_ld+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10253case `$LD -v 2>&1 </dev/null` in
10254*GNU* | *'with BFD'*)
10255 lt_cv_prog_gnu_ld=yes
10256 ;;
10257*)
10258 lt_cv_prog_gnu_ld=no
10259 ;;
10260esac
10261fi
10262echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10263echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10264with_gnu_ld=$lt_cv_prog_gnu_ld
10265
10266
10267
10268 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10269 # archiving commands below assume that GNU ld is being used.
10270 if test "$with_gnu_ld" = yes; then
10271 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10272 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'
10273
10274 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10276
10277 # If archive_cmds runs LD, not CC, wlarc should be empty
10278 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10279 # investigate it a little bit more. (MM)
10280 wlarc='${wl}'
10281
10282 # ancient GNU ld didn't support --whole-archive et. al.
10283 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10284 grep 'no-whole-archive' > /dev/null; then
10285 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10286 else
10287 whole_archive_flag_spec_CXX=
10288 fi
10289 else
10290 with_gnu_ld=no
10291 wlarc=
10292
10293 # A generic and very simple default shared library creation
10294 # command for GNU C++ for the case where it uses the native
10295 # linker, instead of GNU ld. If possible, this setting should
10296 # overridden to take advantage of the native linker features on
10297 # the platform it is being used on.
10298 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10299 fi
10300
10301 # Commands to make compiler produce verbose output that lists
10302 # what "hidden" libraries, object files and flags are used when
10303 # linking a shared library.
10304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10305
10306else
10307 GXX=no
10308 with_gnu_ld=no
10309 wlarc=
10310fi
10311
10312# PORTME: fill in a description of your system's C++ link characteristics
10313echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10315ld_shlibs_CXX=yes
10316case $host_os in
10317 aix3*)
10318 # FIXME: insert proper C++ library support
10319 ld_shlibs_CXX=no
10320 ;;
10321 aix4* | aix5*)
10322 if test "$host_cpu" = ia64; then
10323 # On IA64, the linker does run time linking by default, so we don't
10324 # have to do anything special.
10325 aix_use_runtimelinking=no
10326 exp_sym_flag='-Bexport'
10327 no_entry_flag=""
10328 else
10329 aix_use_runtimelinking=no
10330
10331 # Test if we are trying to use run time linking or normal
10332 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10333 # need to do runtime linking.
10334 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10335 for ld_flag in $LDFLAGS; do
10336 case $ld_flag in
10337 *-brtl*)
10338 aix_use_runtimelinking=yes
10339 break
10340 ;;
10341 esac
10342 done
10343 ;;
10344 esac
10345
10346 exp_sym_flag='-bexport'
10347 no_entry_flag='-bnoentry'
10348 fi
10349
10350 # When large executables or shared objects are built, AIX ld can
10351 # have problems creating the table of contents. If linking a library
10352 # or program results in "error TOC overflow" add -mminimal-toc to
10353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10355
10356 archive_cmds_CXX=''
10357 hardcode_direct_CXX=yes
10358 hardcode_libdir_separator_CXX=':'
10359 link_all_deplibs_CXX=yes
10360
10361 if test "$GXX" = yes; then
10362 case $host_os in aix4.[012]|aix4.[012].*)
10363 # We only want to do this on AIX 4.2 and lower, the check
10364 # below for broken collect2 doesn't work under 4.3+
10365 collect2name=`${CC} -print-prog-name=collect2`
10366 if test -f "$collect2name" && \
10367 strings "$collect2name" | grep resolve_lib_name >/dev/null
10368 then
10369 # We have reworked collect2
10370 hardcode_direct_CXX=yes
10371 else
10372 # We have old collect2
10373 hardcode_direct_CXX=unsupported
10374 # It fails to find uninstalled libraries when the uninstalled
10375 # path is not listed in the libpath. Setting hardcode_minus_L
10376 # to unsupported forces relinking
10377 hardcode_minus_L_CXX=yes
10378 hardcode_libdir_flag_spec_CXX='-L$libdir'
10379 hardcode_libdir_separator_CXX=
10380 fi
10381 ;;
10382 esac
10383 shared_flag='-shared'
10384 if test "$aix_use_runtimelinking" = yes; then
10385 shared_flag="$shared_flag "'${wl}-G'
10386 fi
10387 else
10388 # not using gcc
10389 if test "$host_cpu" = ia64; then
10390 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10391 # chokes on -Wl,-G. The following line is correct:
10392 shared_flag='-G'
10393 else
10394 if test "$aix_use_runtimelinking" = yes; then
10395 shared_flag='${wl}-G'
10396 else
10397 shared_flag='${wl}-bM:SRE'
10398 fi
10399 fi
10400 fi
10401
10402 # It seems that -bexpall does not export symbols beginning with
10403 # underscore (_), so it is better to generate a list of symbols to export.
10404 always_export_symbols_CXX=yes
10405 if test "$aix_use_runtimelinking" = yes; then
10406 # Warning - without using the other runtime loading flags (-brtl),
10407 # -berok will link without error, but may produce a broken library.
10408 allow_undefined_flag_CXX='-berok'
10409 # Determine the default libpath from the value encoded in an empty executable.
10410 cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
10416
10417int
10418main ()
10419{
10420
10421 ;
10422 return 0;
10423}
10424_ACEOF
10425rm -f conftest.$ac_objext conftest$ac_exeext
10426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10427 (eval $ac_link) 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_cxx_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest$ac_exeext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447
10448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10449}'`
10450# Check for a 64-bit object if we didn't find anything.
10451if 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; }
10452}'`; fi
10453else
10454 echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
10457fi
10458rm -f conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10461
10462 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10463
10464 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"
10465 else
10466 if test "$host_cpu" = ia64; then
10467 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10468 allow_undefined_flag_CXX="-z nodefs"
10469 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"
10470 else
10471 # Determine the default libpath from the value encoded in an empty executable.
10472 cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h. */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h. */
10478
10479int
10480main ()
10481{
10482
10483 ;
10484 return 0;
10485}
10486_ACEOF
10487rm -f conftest.$ac_objext conftest$ac_exeext
10488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489 (eval $ac_link) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -z "$ac_cxx_werror_flag"
10497 || test ! -s conftest.err'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; } &&
10503 { ac_try='test -s conftest$ac_exeext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509
10510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10511}'`
10512# Check for a 64-bit object if we didn't find anything.
10513if 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; }
10514}'`; fi
10515else
10516 echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5
10518
10519fi
10520rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10523
10524 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10525 # Warning - without using the other run time loading flags,
10526 # -berok will link without error, but may produce a broken library.
10527 no_undefined_flag_CXX=' ${wl}-bernotok'
10528 allow_undefined_flag_CXX=' ${wl}-berok'
10529 # Exported symbols can be pulled into shared objects from archives
10530 whole_archive_flag_spec_CXX='$convenience'
10531 archive_cmds_need_lc_CXX=yes
10532 # This is similar to how AIX traditionally builds its shared libraries.
10533 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'
10534 fi
10535 fi
10536 ;;
10537
10538 beos*)
10539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10540 allow_undefined_flag_CXX=unsupported
10541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10542 # support --undefined. This deserves some investigation. FIXME
10543 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10544 else
10545 ld_shlibs_CXX=no
10546 fi
10547 ;;
10548
10549 chorus*)
10550 case $cc_basename in
10551 *)
10552 # FIXME: insert proper C++ library support
10553 ld_shlibs_CXX=no
10554 ;;
10555 esac
10556 ;;
10557
10558 cygwin* | mingw* | pw32*)
10559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10560 # as there is no search path for DLLs.
10561 hardcode_libdir_flag_spec_CXX='-L$libdir'
10562 allow_undefined_flag_CXX=unsupported
10563 always_export_symbols_CXX=no
10564 enable_shared_with_static_runtimes_CXX=yes
10565
10566 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10567 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'
10568 # If the export-symbols file already is a .def file (1st line
10569 # is EXPORTS), use it as is; otherwise, prepend...
10570 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10571 cp $export_symbols $output_objdir/$soname.def;
10572 else
10573 echo EXPORTS > $output_objdir/$soname.def;
10574 cat $export_symbols >> $output_objdir/$soname.def;
10575 fi~
10576 $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'
10577 else
10578 ld_shlibs_CXX=no
10579 fi
10580 ;;
10581 darwin* | rhapsody*)
10582 case $host_os in
10583 rhapsody* | darwin1.[012])
10584 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10585 ;;
10586 *) # Darwin 1.3 on
10587 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10588 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10589 else
10590 case ${MACOSX_DEPLOYMENT_TARGET} in
10591 10.[012])
10592 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10593 ;;
10594 10.*)
10595 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10596 ;;
10597 esac
10598 fi
10599 ;;
10600 esac
10601 archive_cmds_need_lc_CXX=no
10602 hardcode_direct_CXX=no
10603 hardcode_automatic_CXX=yes
10604 hardcode_shlibpath_var_CXX=unsupported
10605 whole_archive_flag_spec_CXX=''
10606 link_all_deplibs_CXX=yes
10607
10608 if test "$GXX" = yes ; then
10609 lt_int_apple_cc_single_mod=no
10610 output_verbose_link_cmd='echo'
10611 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10612 lt_int_apple_cc_single_mod=yes
10613 fi
10614 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10615 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10616 else
10617 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'
10618 fi
10619 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10621 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10622 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}'
10623 else
10624 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}'
10625 fi
10626 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}'
10627 else
10628 case $cc_basename in
10629 xlc*)
10630 output_verbose_link_cmd='echo'
10631 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'
10632 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10634 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}'
10635 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}'
10636 ;;
10637 *)
10638 ld_shlibs_CXX=no
10639 ;;
10640 esac
10641 fi
10642 ;;
10643
10644 dgux*)
10645 case $cc_basename in
10646 ec++*)
10647 # FIXME: insert proper C++ library support
10648 ld_shlibs_CXX=no
10649 ;;
10650 ghcx*)
10651 # Green Hills C++ Compiler
10652 # FIXME: insert proper C++ library support
10653 ld_shlibs_CXX=no
10654 ;;
10655 *)
10656 # FIXME: insert proper C++ library support
10657 ld_shlibs_CXX=no
10658 ;;
10659 esac
10660 ;;
10661 freebsd[12]*)
10662 # C++ shared libraries reported to be fairly broken before switch to ELF
10663 ld_shlibs_CXX=no
10664 ;;
10665 freebsd-elf*)
10666 archive_cmds_need_lc_CXX=no
10667 ;;
10668 freebsd* | kfreebsd*-gnu | dragonfly*)
10669 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10670 # conventions
10671 ld_shlibs_CXX=yes
10672 ;;
10673 gnu*)
10674 ;;
10675 hpux9*)
10676 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10677 hardcode_libdir_separator_CXX=:
10678 export_dynamic_flag_spec_CXX='${wl}-E'
10679 hardcode_direct_CXX=yes
10680 hardcode_minus_L_CXX=yes # Not in the search PATH,
10681 # but as the default
10682 # location of the library.
10683
10684 case $cc_basename in
10685 CC*)
10686 # FIXME: insert proper C++ library support
10687 ld_shlibs_CXX=no
10688 ;;
10689 aCC*)
10690 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'
10691 # Commands to make compiler produce verbose output that lists
10692 # what "hidden" libraries, object files and flags are used when
10693 # linking a shared library.
10694 #
10695 # There doesn't appear to be a way to prevent this compiler from
10696 # explicitly linking system object files so we need to strip them
10697 # from the output so that they don't get included in the library
10698 # dependencies.
10699 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'
10700 ;;
10701 *)
10702 if test "$GXX" = yes; then
10703 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'
10704 else
10705 # FIXME: insert proper C++ library support
10706 ld_shlibs_CXX=no
10707 fi
10708 ;;
10709 esac
10710 ;;
10711 hpux10*|hpux11*)
10712 if test $with_gnu_ld = no; then
10713 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10714 hardcode_libdir_separator_CXX=:
10715
10716 case $host_cpu in
10717 hppa*64*|ia64*)
10718 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10719 ;;
10720 *)
10721 export_dynamic_flag_spec_CXX='${wl}-E'
10722 ;;
10723 esac
10724 fi
10725 case $host_cpu in
10726 hppa*64*|ia64*)
10727 hardcode_direct_CXX=no
10728 hardcode_shlibpath_var_CXX=no
10729 ;;
10730 *)
10731 hardcode_direct_CXX=yes
10732 hardcode_minus_L_CXX=yes # Not in the search PATH,
10733 # but as the default
10734 # location of the library.
10735 ;;
10736 esac
10737
10738 case $cc_basename in
10739 CC*)
10740 # FIXME: insert proper C++ library support
10741 ld_shlibs_CXX=no
10742 ;;
10743 aCC*)
10744 case $host_cpu in
10745 hppa*64*)
10746 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10747 ;;
10748 ia64*)
10749 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10750 ;;
10751 *)
10752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10753 ;;
10754 esac
10755 # Commands to make compiler produce verbose output that lists
10756 # what "hidden" libraries, object files and flags are used when
10757 # linking a shared library.
10758 #
10759 # There doesn't appear to be a way to prevent this compiler from
10760 # explicitly linking system object files so we need to strip them
10761 # from the output so that they don't get included in the library
10762 # dependencies.
10763 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'
10764 ;;
10765 *)
10766 if test "$GXX" = yes; then
10767 if test $with_gnu_ld = no; then
10768 case $host_cpu in
10769 hppa*64*)
10770 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10771 ;;
10772 ia64*)
10773 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10774 ;;
10775 *)
10776 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'
10777 ;;
10778 esac
10779 fi
10780 else
10781 # FIXME: insert proper C++ library support
10782 ld_shlibs_CXX=no
10783 fi
10784 ;;
10785 esac
10786 ;;
10787 interix3*)
10788 hardcode_direct_CXX=no
10789 hardcode_shlibpath_var_CXX=no
10790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10791 export_dynamic_flag_spec_CXX='${wl}-E'
10792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10793 # Instead, shared libraries are loaded at an image base (0x10000000 by
10794 # default) and relocated if they conflict, which is a slow very memory
10795 # consuming and fragmenting process. To avoid this, we pick a random,
10796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10798 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'
10799 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'
10800 ;;
10801 irix5* | irix6*)
10802 case $cc_basename in
10803 CC*)
10804 # SGI C++
10805 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'
10806
10807 # Archives containing C++ object files must be created using
10808 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10809 # necessary to make sure instantiated templates are included
10810 # in the archive.
10811 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10812 ;;
10813 *)
10814 if test "$GXX" = yes; then
10815 if test "$with_gnu_ld" = no; then
10816 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'
10817 else
10818 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'
10819 fi
10820 fi
10821 link_all_deplibs_CXX=yes
10822 ;;
10823 esac
10824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator_CXX=:
10826 ;;
10827 linux*)
10828 case $cc_basename in
10829 KCC*)
10830 # Kuck and Associates, Inc. (KAI) C++ Compiler
10831
10832 # KCC will only create a shared library if the output file
10833 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10834 # to its proper name (with version) after linking.
10835 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'
10836 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'
10837 # Commands to make compiler produce verbose output that lists
10838 # what "hidden" libraries, object files and flags are used when
10839 # linking a shared library.
10840 #
10841 # There doesn't appear to be a way to prevent this compiler from
10842 # explicitly linking system object files so we need to strip them
10843 # from the output so that they don't get included in the library
10844 # dependencies.
10845 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'
10846
10847 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10849
10850 # Archives containing C++ object files must be created using
10851 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10852 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10853 ;;
10854 icpc*)
10855 # Intel C++
10856 with_gnu_ld=yes
10857 # version 8.0 and above of icpc choke on multiply defined symbols
10858 # if we add $predep_objects and $postdep_objects, however 7.1 and
10859 # earlier do not add the objects themselves.
10860 case `$CC -V 2>&1` in
10861 *"Version 7."*)
10862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863 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'
10864 ;;
10865 *) # Version 8.0 or newer
10866 tmp_idyn=
10867 case $host_cpu in
10868 ia64*) tmp_idyn=' -i_dynamic';;
10869 esac
10870 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871 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'
10872 ;;
10873 esac
10874 archive_cmds_need_lc_CXX=no
10875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10877 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10878 ;;
10879 pgCC*)
10880 # Portland Group C++ compiler
10881 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10882 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'
10883
10884 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10886 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'
10887 ;;
10888 cxx*)
10889 # Compaq C++
10890 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891 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'
10892
10893 runpath_var=LD_RUN_PATH
10894 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10895 hardcode_libdir_separator_CXX=:
10896
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10900 #
10901 # There doesn't appear to be a way to prevent this compiler from
10902 # explicitly linking system object files so we need to strip them
10903 # from the output so that they don't get included in the library
10904 # dependencies.
10905 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'
10906 ;;
10907 esac
10908 ;;
10909 lynxos*)
10910 # FIXME: insert proper C++ library support
10911 ld_shlibs_CXX=no
10912 ;;
10913 m88k*)
10914 # FIXME: insert proper C++ library support
10915 ld_shlibs_CXX=no
10916 ;;
10917 mvs*)
10918 case $cc_basename in
10919 cxx*)
10920 # FIXME: insert proper C++ library support
10921 ld_shlibs_CXX=no
10922 ;;
10923 *)
10924 # FIXME: insert proper C++ library support
10925 ld_shlibs_CXX=no
10926 ;;
10927 esac
10928 ;;
10929 netbsd*)
10930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10931 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10932 wlarc=
10933 hardcode_libdir_flag_spec_CXX='-R$libdir'
10934 hardcode_direct_CXX=yes
10935 hardcode_shlibpath_var_CXX=no
10936 fi
10937 # Workaround some broken pre-1.5 toolchains
10938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10939 ;;
10940 openbsd2*)
10941 # C++ shared libraries are fairly broken
10942 ld_shlibs_CXX=no
10943 ;;
10944 openbsd*)
10945 hardcode_direct_CXX=yes
10946 hardcode_shlibpath_var_CXX=no
10947 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10949 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10950 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10951 export_dynamic_flag_spec_CXX='${wl}-E'
10952 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10953 fi
10954 output_verbose_link_cmd='echo'
10955 ;;
10956 osf3*)
10957 case $cc_basename in
10958 KCC*)
10959 # Kuck and Associates, Inc. (KAI) C++ Compiler
10960
10961 # KCC will only create a shared library if the output file
10962 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10963 # to its proper name (with version) after linking.
10964 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'
10965
10966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10967 hardcode_libdir_separator_CXX=:
10968
10969 # Archives containing C++ object files must be created using
10970 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10971 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10972
10973 ;;
10974 RCC*)
10975 # Rational C++ 2.4.1
10976 # FIXME: insert proper C++ library support
10977 ld_shlibs_CXX=no
10978 ;;
10979 cxx*)
10980 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10981 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'
10982
10983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10984 hardcode_libdir_separator_CXX=:
10985
10986 # Commands to make compiler produce verbose output that lists
10987 # what "hidden" libraries, object files and flags are used when
10988 # linking a shared library.
10989 #
10990 # There doesn't appear to be a way to prevent this compiler from
10991 # explicitly linking system object files so we need to strip them
10992 # from the output so that they don't get included in the library
10993 # dependencies.
10994 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'
10995 ;;
10996 *)
10997 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10998 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10999 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'
11000
11001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11002 hardcode_libdir_separator_CXX=:
11003
11004 # Commands to make compiler produce verbose output that lists
11005 # what "hidden" libraries, object files and flags are used when
11006 # linking a shared library.
11007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11008
11009 else
11010 # FIXME: insert proper C++ library support
11011 ld_shlibs_CXX=no
11012 fi
11013 ;;
11014 esac
11015 ;;
11016 osf4* | osf5*)
11017 case $cc_basename in
11018 KCC*)
11019 # Kuck and Associates, Inc. (KAI) C++ Compiler
11020
11021 # KCC will only create a shared library if the output file
11022 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11023 # to its proper name (with version) after linking.
11024 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'
11025
11026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11027 hardcode_libdir_separator_CXX=:
11028
11029 # Archives containing C++ object files must be created using
11030 # the KAI C++ compiler.
11031 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11032 ;;
11033 RCC*)
11034 # Rational C++ 2.4.1
11035 # FIXME: insert proper C++ library support
11036 ld_shlibs_CXX=no
11037 ;;
11038 cxx*)
11039 allow_undefined_flag_CXX=' -expect_unresolved \*'
11040 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'
11041 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11042 echo "-hidden">> $lib.exp~
11043 $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~
11044 $rm $lib.exp'
11045
11046 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11047 hardcode_libdir_separator_CXX=:
11048
11049 # Commands to make compiler produce verbose output that lists
11050 # what "hidden" libraries, object files and flags are used when
11051 # linking a shared library.
11052 #
11053 # There doesn't appear to be a way to prevent this compiler from
11054 # explicitly linking system object files so we need to strip them
11055 # from the output so that they don't get included in the library
11056 # dependencies.
11057 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'
11058 ;;
11059 *)
11060 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11061 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11062 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'
11063
11064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11065 hardcode_libdir_separator_CXX=:
11066
11067 # Commands to make compiler produce verbose output that lists
11068 # what "hidden" libraries, object files and flags are used when
11069 # linking a shared library.
11070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11071
11072 else
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11075 fi
11076 ;;
11077 esac
11078 ;;
11079 psos*)
11080 # FIXME: insert proper C++ library support
11081 ld_shlibs_CXX=no
11082 ;;
11083 sunos4*)
11084 case $cc_basename in
11085 CC*)
11086 # Sun C++ 4.x
11087 # FIXME: insert proper C++ library support
11088 ld_shlibs_CXX=no
11089 ;;
11090 lcc*)
11091 # Lucid
11092 # FIXME: insert proper C++ library support
11093 ld_shlibs_CXX=no
11094 ;;
11095 *)
11096 # FIXME: insert proper C++ library support
11097 ld_shlibs_CXX=no
11098 ;;
11099 esac
11100 ;;
11101 solaris*)
11102 case $cc_basename in
11103 CC*)
11104 # Sun C++ 4.2, 5.x and Centerline C++
11105 archive_cmds_need_lc_CXX=yes
11106 no_undefined_flag_CXX=' -zdefs'
11107 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11110
11111 hardcode_libdir_flag_spec_CXX='-R$libdir'
11112 hardcode_shlibpath_var_CXX=no
11113 case $host_os in
11114 solaris2.[0-5] | solaris2.[0-5].*) ;;
11115 *)
11116 # The C++ compiler is used as linker so we must use $wl
11117 # flag to pass the commands to the underlying system
11118 # linker. We must also pass each convience library through
11119 # to the system linker between allextract/defaultextract.
11120 # The C++ compiler will combine linker options so we
11121 # cannot just pass the convience library names through
11122 # without $wl.
11123 # Supported since Solaris 2.6 (maybe 2.5.1?)
11124 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'
11125 ;;
11126 esac
11127 link_all_deplibs_CXX=yes
11128
11129 output_verbose_link_cmd='echo'
11130
11131 # Archives containing C++ object files must be created using
11132 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11133 # necessary to make sure instantiated templates are included
11134 # in the archive.
11135 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11136 ;;
11137 gcx*)
11138 # Green Hills C++ Compiler
11139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11140
11141 # The C++ compiler must be used to create the archive.
11142 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11143 ;;
11144 *)
11145 # GNU C++ compiler with Solaris linker
11146 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11147 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11148 if $CC --version | grep -v '^2\.7' > /dev/null; then
11149 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11150 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11151 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11152
11153 # Commands to make compiler produce verbose output that lists
11154 # what "hidden" libraries, object files and flags are used when
11155 # linking a shared library.
11156 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11157 else
11158 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11159 # platform.
11160 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11161 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11162 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11163
11164 # Commands to make compiler produce verbose output that lists
11165 # what "hidden" libraries, object files and flags are used when
11166 # linking a shared library.
11167 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11168 fi
11169
11170 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11171 fi
11172 ;;
11173 esac
11174 ;;
11175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11176 no_undefined_flag_CXX='${wl}-z,text'
11177 archive_cmds_need_lc_CXX=no
11178 hardcode_shlibpath_var_CXX=no
11179 runpath_var='LD_RUN_PATH'
11180
11181 case $cc_basename in
11182 CC*)
11183 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 ;;
11186 *)
11187 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11188 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 ;;
11190 esac
11191 ;;
11192 sysv5* | sco3.2v5* | sco5v6*)
11193 # Note: We can NOT use -z defs as we might desire, because we do not
11194 # link with -lc, and that would cause any symbols used from libc to
11195 # always be unresolved, which means just about no library would
11196 # ever link correctly. If we're not using GNU ld we use -z text
11197 # though, which does catch some bad symbols but isn't as heavy-handed
11198 # as -z defs.
11199 # For security reasons, it is highly recommended that you always
11200 # use absolute paths for naming shared libraries, and exclude the
11201 # DT_RUNPATH tag from executables and libraries. But doing so
11202 # requires that you compile everything twice, which is a pain.
11203 # So that behaviour is only enabled if SCOABSPATH is set to a
11204 # non-empty value in the environment. Most likely only useful for
11205 # creating official distributions of packages.
11206 # This is a hack until libtool officially supports absolute path
11207 # names for shared libraries.
11208 no_undefined_flag_CXX='${wl}-z,text'
11209 allow_undefined_flag_CXX='${wl}-z,nodefs'
11210 archive_cmds_need_lc_CXX=no
11211 hardcode_shlibpath_var_CXX=no
11212 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11213 hardcode_libdir_separator_CXX=':'
11214 link_all_deplibs_CXX=yes
11215 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11216 runpath_var='LD_RUN_PATH'
11217
11218 case $cc_basename in
11219 CC*)
11220 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11221 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 ;;
11223 *)
11224 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 ;;
11227 esac
11228 ;;
11229 tandem*)
11230 case $cc_basename in
11231 NCC*)
11232 # NonStop-UX NCC 3.20
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11235 ;;
11236 *)
11237 # FIXME: insert proper C++ library support
11238 ld_shlibs_CXX=no
11239 ;;
11240 esac
11241 ;;
11242 vxworks*)
11243 # FIXME: insert proper C++ library support
11244 ld_shlibs_CXX=no
11245 ;;
11246 *)
11247 # FIXME: insert proper C++ library support
11248 ld_shlibs_CXX=no
11249 ;;
11250esac
11251echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11252echo "${ECHO_T}$ld_shlibs_CXX" >&6
11253test "$ld_shlibs_CXX" = no && can_build_shared=no
11254
11255GCC_CXX="$GXX"
11256LD_CXX="$LD"
11257
11258
11259cat > conftest.$ac_ext <<EOF
11260class Foo
11261{
11262public:
11263 Foo (void) { a = 0; }
11264private:
11265 int a;
11266};
11267EOF
11268
11269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; then
11274 # Parse the compiler output and extract the necessary
11275 # objects, libraries and library flags.
11276
11277 # Sentinel used to keep track of whether or not we are before
11278 # the conftest object file.
11279 pre_test_object_deps_done=no
11280
11281 # The `*' in the case matches for architectures that use `case' in
11282 # $output_verbose_cmd can trigger glob expansion during the loop
11283 # eval without this substitution.
11284 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11285
11286 for p in `eval $output_verbose_link_cmd`; do
11287 case $p in
11288
11289 -L* | -R* | -l*)
11290 # Some compilers place space between "-{L,R}" and the path.
11291 # Remove the space.
11292 if test $p = "-L" \
11293 || test $p = "-R"; then
11294 prev=$p
11295 continue
11296 else
11297 prev=
11298 fi
11299
11300 if test "$pre_test_object_deps_done" = no; then
11301 case $p in
11302 -L* | -R*)
11303 # Internal compiler library paths should come after those
11304 # provided the user. The postdeps already come after the
11305 # user supplied libs so there is no need to process them.
11306 if test -z "$compiler_lib_search_path_CXX"; then
11307 compiler_lib_search_path_CXX="${prev}${p}"
11308 else
11309 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11310 fi
11311 ;;
11312 # The "-l" case would never come before the object being
11313 # linked, so don't bother handling this case.
11314 esac
11315 else
11316 if test -z "$postdeps_CXX"; then
11317 postdeps_CXX="${prev}${p}"
11318 else
11319 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11320 fi
11321 fi
11322 ;;
11323
11324 *.$objext)
11325 # This assumes that the test object file only shows up
11326 # once in the compiler output.
11327 if test "$p" = "conftest.$objext"; then
11328 pre_test_object_deps_done=yes
11329 continue
11330 fi
11331
11332 if test "$pre_test_object_deps_done" = no; then
11333 if test -z "$predep_objects_CXX"; then
11334 predep_objects_CXX="$p"
11335 else
11336 predep_objects_CXX="$predep_objects_CXX $p"
11337 fi
11338 else
11339 if test -z "$postdep_objects_CXX"; then
11340 postdep_objects_CXX="$p"
11341 else
11342 postdep_objects_CXX="$postdep_objects_CXX $p"
11343 fi
11344 fi
11345 ;;
11346
11347 *) ;; # Ignore the rest.
11348
11349 esac
11350 done
11351
11352 # Clean up.
11353 rm -f a.out a.exe
11354else
11355 echo "libtool.m4: error: problem compiling CXX test program"
11356fi
11357
11358$rm -f confest.$objext
11359
11360# PORTME: override above test on systems where it is broken
11361case $host_os in
11362interix3*)
11363 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11364 # hack all around it, let's just trust "g++" to DTRT.
11365 predep_objects_CXX=
11366 postdep_objects_CXX=
11367 postdeps_CXX=
11368 ;;
11369
11370solaris*)
11371 case $cc_basename in
11372 CC*)
11373 # Adding this requires a known-good setup of shared libraries for
11374 # Sun compiler versions before 5.6, else PIC objects from an old
11375 # archive will be linked into the output, leading to subtle bugs.
11376 postdeps_CXX='-lCstd -lCrun'
11377 ;;
11378 esac
11379 ;;
11380esac
11381
11382
11383case " $postdeps_CXX " in
11384*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11385esac
11386
11387lt_prog_compiler_wl_CXX=
11388lt_prog_compiler_pic_CXX=
11389lt_prog_compiler_static_CXX=
11390
11391echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11392echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11393
11394 # C++ specific cases for pic, static, wl, etc.
11395 if test "$GXX" = yes; then
11396 lt_prog_compiler_wl_CXX='-Wl,'
11397 lt_prog_compiler_static_CXX='-static'
11398
11399 case $host_os in
11400 aix*)
11401 # All AIX code is PIC.
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 now supports IA64 processor
11404 lt_prog_compiler_static_CXX='-Bstatic'
11405 fi
11406 ;;
11407 amigaos*)
11408 # FIXME: we need at least 68020 code to build shared libraries, but
11409 # adding the `-m68020' flag to GCC prevents building anything better,
11410 # like `-m68040'.
11411 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11412 ;;
11413 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11414 # PIC is the default for these OSes.
11415 ;;
11416 mingw* | os2* | pw32*)
11417 # This hack is so that the source file can tell whether it is being
11418 # built for inclusion in a dll (and should export symbols for example).
11419 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11420 ;;
11421 darwin* | rhapsody*)
11422 # PIC is the default on this platform
11423 # Common symbols not allowed in MH_DYLIB files
11424 lt_prog_compiler_pic_CXX='-fno-common'
11425 ;;
11426 *djgpp*)
11427 # DJGPP does not support shared libraries at all
11428 lt_prog_compiler_pic_CXX=
11429 ;;
11430 interix3*)
11431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11432 # Instead, we relocate shared libraries at runtime.
11433 ;;
11434 sysv4*MP*)
11435 if test -d /usr/nec; then
11436 lt_prog_compiler_pic_CXX=-Kconform_pic
11437 fi
11438 ;;
11439 hpux*)
11440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11441 # not for PA HP-UX.
11442 case $host_cpu in
11443 hppa*64*|ia64*)
11444 ;;
11445 *)
11446 lt_prog_compiler_pic_CXX='-fPIC'
11447 ;;
11448 esac
11449 ;;
11450 *)
11451 lt_prog_compiler_pic_CXX='-fPIC'
11452 ;;
11453 esac
11454 else
11455 case $host_os in
11456 aix4* | aix5*)
11457 # All AIX code is PIC.
11458 if test "$host_cpu" = ia64; then
11459 # AIX 5 now supports IA64 processor
11460 lt_prog_compiler_static_CXX='-Bstatic'
11461 else
11462 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11463 fi
11464 ;;
11465 chorus*)
11466 case $cc_basename in
11467 cxch68*)
11468 # Green Hills C++ Compiler
11469 # _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"
11470 ;;
11471 esac
11472 ;;
11473 darwin*)
11474 # PIC is the default on this platform
11475 # Common symbols not allowed in MH_DYLIB files
11476 case $cc_basename in
11477 xlc*)
11478 lt_prog_compiler_pic_CXX='-qnocommon'
11479 lt_prog_compiler_wl_CXX='-Wl,'
11480 ;;
11481 esac
11482 ;;
11483 dgux*)
11484 case $cc_basename in
11485 ec++*)
11486 lt_prog_compiler_pic_CXX='-KPIC'
11487 ;;
11488 ghcx*)
11489 # Green Hills C++ Compiler
11490 lt_prog_compiler_pic_CXX='-pic'
11491 ;;
11492 *)
11493 ;;
11494 esac
11495 ;;
11496 freebsd* | kfreebsd*-gnu | dragonfly*)
11497 # FreeBSD uses GNU C++
11498 ;;
11499 hpux9* | hpux10* | hpux11*)
11500 case $cc_basename in
11501 CC*)
11502 lt_prog_compiler_wl_CXX='-Wl,'
11503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11504 if test "$host_cpu" != ia64; then
11505 lt_prog_compiler_pic_CXX='+Z'
11506 fi
11507 ;;
11508 aCC*)
11509 lt_prog_compiler_wl_CXX='-Wl,'
11510 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11511 case $host_cpu in
11512 hppa*64*|ia64*)
11513 # +Z the default
11514 ;;
11515 *)
11516 lt_prog_compiler_pic_CXX='+Z'
11517 ;;
11518 esac
11519 ;;
11520 *)
11521 ;;
11522 esac
11523 ;;
11524 interix*)
11525 # This is c89, which is MS Visual C++ (no shared libs)
11526 # Anyone wants to do a port?
11527 ;;
11528 irix5* | irix6* | nonstopux*)
11529 case $cc_basename in
11530 CC*)
11531 lt_prog_compiler_wl_CXX='-Wl,'
11532 lt_prog_compiler_static_CXX='-non_shared'
11533 # CC pic flag -KPIC is the default.
11534 ;;
11535 *)
11536 ;;
11537 esac
11538 ;;
11539 linux*)
11540 case $cc_basename in
11541 KCC*)
11542 # KAI C++ Compiler
11543 lt_prog_compiler_wl_CXX='--backend -Wl,'
11544 lt_prog_compiler_pic_CXX='-fPIC'
11545 ;;
11546 icpc* | ecpc*)
11547 # Intel C++
11548 lt_prog_compiler_wl_CXX='-Wl,'
11549 lt_prog_compiler_pic_CXX='-KPIC'
11550 lt_prog_compiler_static_CXX='-static'
11551 ;;
11552 pgCC*)
11553 # Portland Group C++ compiler.
11554 lt_prog_compiler_wl_CXX='-Wl,'
11555 lt_prog_compiler_pic_CXX='-fpic'
11556 lt_prog_compiler_static_CXX='-Bstatic'
11557 ;;
11558 cxx*)
11559 # Compaq C++
11560 # Make sure the PIC flag is empty. It appears that all Alpha
11561 # Linux and Compaq Tru64 Unix objects are PIC.
11562 lt_prog_compiler_pic_CXX=
11563 lt_prog_compiler_static_CXX='-non_shared'
11564 ;;
11565 *)
11566 ;;
11567 esac
11568 ;;
11569 lynxos*)
11570 ;;
11571 m88k*)
11572 ;;
11573 mvs*)
11574 case $cc_basename in
11575 cxx*)
11576 lt_prog_compiler_pic_CXX='-W c,exportall'
11577 ;;
11578 *)
11579 ;;
11580 esac
11581 ;;
11582 netbsd*)
11583 ;;
11584 osf3* | osf4* | osf5*)
11585 case $cc_basename in
11586 KCC*)
11587 lt_prog_compiler_wl_CXX='--backend -Wl,'
11588 ;;
11589 RCC*)
11590 # Rational C++ 2.4.1
11591 lt_prog_compiler_pic_CXX='-pic'
11592 ;;
11593 cxx*)
11594 # Digital/Compaq C++
11595 lt_prog_compiler_wl_CXX='-Wl,'
11596 # Make sure the PIC flag is empty. It appears that all Alpha
11597 # Linux and Compaq Tru64 Unix objects are PIC.
11598 lt_prog_compiler_pic_CXX=
11599 lt_prog_compiler_static_CXX='-non_shared'
11600 ;;
11601 *)
11602 ;;
11603 esac
11604 ;;
11605 psos*)
11606 ;;
11607 solaris*)
11608 case $cc_basename in
11609 CC*)
11610 # Sun C++ 4.2, 5.x and Centerline C++
11611 lt_prog_compiler_pic_CXX='-KPIC'
11612 lt_prog_compiler_static_CXX='-Bstatic'
11613 lt_prog_compiler_wl_CXX='-Qoption ld '
11614 ;;
11615 gcx*)
11616 # Green Hills C++ Compiler
11617 lt_prog_compiler_pic_CXX='-PIC'
11618 ;;
11619 *)
11620 ;;
11621 esac
11622 ;;
11623 sunos4*)
11624 case $cc_basename in
11625 CC*)
11626 # Sun C++ 4.x
11627 lt_prog_compiler_pic_CXX='-pic'
11628 lt_prog_compiler_static_CXX='-Bstatic'
11629 ;;
11630 lcc*)
11631 # Lucid
11632 lt_prog_compiler_pic_CXX='-pic'
11633 ;;
11634 *)
11635 ;;
11636 esac
11637 ;;
11638 tandem*)
11639 case $cc_basename in
11640 NCC*)
11641 # NonStop-UX NCC 3.20
11642 lt_prog_compiler_pic_CXX='-KPIC'
11643 ;;
11644 *)
11645 ;;
11646 esac
11647 ;;
11648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11649 case $cc_basename in
11650 CC*)
11651 lt_prog_compiler_wl_CXX='-Wl,'
11652 lt_prog_compiler_pic_CXX='-KPIC'
11653 lt_prog_compiler_static_CXX='-Bstatic'
11654 ;;
11655 esac
11656 ;;
11657 vxworks*)
11658 ;;
11659 *)
11660 lt_prog_compiler_can_build_shared_CXX=no
11661 ;;
11662 esac
11663 fi
11664
11665echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11666echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11667
11668#
11669# Check to make sure the PIC flag actually works.
11670#
11671if test -n "$lt_prog_compiler_pic_CXX"; then
11672
11673echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11674echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11675if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 lt_prog_compiler_pic_works_CXX=no
11679 ac_outfile=conftest.$ac_objext
11680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11681 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11682 # Insert the option either (1) after the last *FLAGS variable, or
11683 # (2) before a word containing "conftest.", or (3) at the end.
11684 # Note that $ac_compile itself does not contain backslashes and begins
11685 # with a dollar sign (not a hyphen), so the echo should work correctly.
11686 # The option is referenced via a variable to avoid confusing sed.
11687 lt_compile=`echo "$ac_compile" | $SED \
11688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11690 -e 's:$: $lt_compiler_flag:'`
11691 (eval echo "\"\$as_me:11691: $lt_compile\"" >&5)
11692 (eval "$lt_compile" 2>conftest.err)
11693 ac_status=$?
11694 cat conftest.err >&5
11695 echo "$as_me:11695: \$? = $ac_status" >&5
11696 if (exit $ac_status) && test -s "$ac_outfile"; then
11697 # The compiler can only warn and ignore the option if not recognized
11698 # So say no if there are warnings other than the usual output.
11699 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11702 lt_prog_compiler_pic_works_CXX=yes
11703 fi
11704 fi
11705 $rm conftest*
11706
11707fi
11708echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11709echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11710
11711if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11712 case $lt_prog_compiler_pic_CXX in
11713 "" | " "*) ;;
11714 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11715 esac
11716else
11717 lt_prog_compiler_pic_CXX=
11718 lt_prog_compiler_can_build_shared_CXX=no
11719fi
11720
11721fi
11722case $host_os in
11723 # For platforms which do not support PIC, -DPIC is meaningless:
11724 *djgpp*)
11725 lt_prog_compiler_pic_CXX=
11726 ;;
11727 *)
11728 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11729 ;;
11730esac
11731
11732#
11733# Check to make sure the static flag actually works.
11734#
11735wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11736echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11737echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11738if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740else
11741 lt_prog_compiler_static_works_CXX=no
11742 save_LDFLAGS="$LDFLAGS"
11743 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11744 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11746 # The linker can only warn and ignore the option if not recognized
11747 # So say no if there are warnings
11748 if test -s conftest.err; then
11749 # Append any errors to the config.log.
11750 cat conftest.err 1>&5
11751 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11753 if diff conftest.exp conftest.er2 >/dev/null; then
11754 lt_prog_compiler_static_works_CXX=yes
11755 fi
11756 else
11757 lt_prog_compiler_static_works_CXX=yes
11758 fi
11759 fi
11760 $rm conftest*
11761 LDFLAGS="$save_LDFLAGS"
11762
11763fi
11764echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11765echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11766
11767if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11768 :
11769else
11770 lt_prog_compiler_static_CXX=
11771fi
11772
11773
11774echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11776if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778else
11779 lt_cv_prog_compiler_c_o_CXX=no
11780 $rm -r conftest 2>/dev/null
11781 mkdir conftest
11782 cd conftest
11783 mkdir out
11784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11785
11786 lt_compiler_flag="-o out/conftest2.$ac_objext"
11787 # Insert the option either (1) after the last *FLAGS variable, or
11788 # (2) before a word containing "conftest.", or (3) at the end.
11789 # Note that $ac_compile itself does not contain backslashes and begins
11790 # with a dollar sign (not a hyphen), so the echo should work correctly.
11791 lt_compile=`echo "$ac_compile" | $SED \
11792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11794 -e 's:$: $lt_compiler_flag:'`
11795 (eval echo "\"\$as_me:11795: $lt_compile\"" >&5)
11796 (eval "$lt_compile" 2>out/conftest.err)
11797 ac_status=$?
11798 cat out/conftest.err >&5
11799 echo "$as_me:11799: \$? = $ac_status" >&5
11800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11801 then
11802 # The compiler can only warn and ignore the option if not recognized
11803 # So say no if there are warnings
11804 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11807 lt_cv_prog_compiler_c_o_CXX=yes
11808 fi
11809 fi
11810 chmod u+w . 2>&5
11811 $rm conftest*
11812 # SGI C++ compiler will create directory out/ii_files/ for
11813 # template instantiation
11814 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11815 $rm out/* && rmdir out
11816 cd ..
11817 rmdir conftest
11818 $rm conftest*
11819
11820fi
11821echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11822echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11823
11824
11825hard_links="nottested"
11826if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11827 # do not overwrite the value of need_locks provided by the user
11828 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11829echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11830 hard_links=yes
11831 $rm conftest*
11832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11833 touch conftest.a
11834 ln conftest.a conftest.b 2>&5 || hard_links=no
11835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11836 echo "$as_me:$LINENO: result: $hard_links" >&5
11837echo "${ECHO_T}$hard_links" >&6
11838 if test "$hard_links" = no; then
11839 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11840echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11841 need_locks=warn
11842 fi
11843else
11844 need_locks=no
11845fi
11846
11847echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11848echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11849
11850 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11851 case $host_os in
11852 aix4* | aix5*)
11853 # If we're using GNU nm, then we don't want the "-C" option.
11854 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11855 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11856 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'
11857 else
11858 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'
11859 fi
11860 ;;
11861 pw32*)
11862 export_symbols_cmds_CXX="$ltdll_cmds"
11863 ;;
11864 cygwin* | mingw*)
11865 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'
11866 ;;
11867 *)
11868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11869 ;;
11870 esac
11871
11872echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11873echo "${ECHO_T}$ld_shlibs_CXX" >&6
11874test "$ld_shlibs_CXX" = no && can_build_shared=no
11875
11876#
11877# Do we need to explicitly link libc?
11878#
11879case "x$archive_cmds_need_lc_CXX" in
11880x|xyes)
11881 # Assume -lc should be added
11882 archive_cmds_need_lc_CXX=yes
11883
11884 if test "$enable_shared" = yes && test "$GCC" = yes; then
11885 case $archive_cmds_CXX in
11886 *'~'*)
11887 # FIXME: we may have to deal with multi-command sequences.
11888 ;;
11889 '$CC '*)
11890 # Test whether the compiler implicitly links with -lc since on some
11891 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11892 # to ld, don't add -lc before -lgcc.
11893 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11894echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11895 $rm conftest*
11896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11897
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } 2>conftest.err; then
11903 soname=conftest
11904 lib=conftest
11905 libobjs=conftest.$ac_objext
11906 deplibs=
11907 wl=$lt_prog_compiler_wl_CXX
11908 pic_flag=$lt_prog_compiler_pic_CXX
11909 compiler_flags=-v
11910 linker_flags=-v
11911 verstring=
11912 output_objdir=.
11913 libname=conftest
11914 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11915 allow_undefined_flag_CXX=
11916 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11917 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }
11921 then
11922 archive_cmds_need_lc_CXX=no
11923 else
11924 archive_cmds_need_lc_CXX=yes
11925 fi
11926 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11927 else
11928 cat conftest.err 1>&5
11929 fi
11930 $rm conftest*
11931 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11932echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11933 ;;
11934 esac
11935 fi
11936 ;;
11937esac
11938
11939echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11940echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11941library_names_spec=
11942libname_spec='lib$name'
11943soname_spec=
11944shrext_cmds=".so"
11945postinstall_cmds=
11946postuninstall_cmds=
11947finish_cmds=
11948finish_eval=
11949shlibpath_var=
11950shlibpath_overrides_runpath=unknown
11951version_type=none
11952dynamic_linker="$host_os ld.so"
11953sys_lib_dlsearch_path_spec="/lib /usr/lib"
11954if test "$GCC" = yes; then
11955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11956 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11957 # if the path contains ";" then we assume it to be the separator
11958 # otherwise default to the standard path separator (i.e. ":") - it is
11959 # assumed that no part of a normal pathname contains ";" but that should
11960 # okay in the real world where ";" in dirpaths is itself problematic.
11961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11962 else
11963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11964 fi
11965else
11966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11967fi
11968need_lib_prefix=unknown
11969hardcode_into_libs=no
11970
11971# when you set need_version to no, make sure it does not cause -set_version
11972# flags to be left without arguments
11973need_version=unknown
11974
11975case $host_os in
11976aix3*)
11977 version_type=linux
11978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11979 shlibpath_var=LIBPATH
11980
11981 # AIX 3 has no versioning support, so we append a major version to the name.
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 ;;
11984
11985aix4* | aix5*)
11986 version_type=linux
11987 need_lib_prefix=no
11988 need_version=no
11989 hardcode_into_libs=yes
11990 if test "$host_cpu" = ia64; then
11991 # AIX 5 supports IA64
11992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 else
11995 # With GCC up to 2.95.x, collect2 would create an import file
11996 # for dependence libraries. The import file would start with
11997 # the line `#! .'. This would cause the generated library to
11998 # depend on `.', always an invalid library. This was fixed in
11999 # development snapshots of GCC prior to 3.0.
12000 case $host_os in
12001 aix4 | aix4.[01] | aix4.[01].*)
12002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12003 echo ' yes '
12004 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12005 :
12006 else
12007 can_build_shared=no
12008 fi
12009 ;;
12010 esac
12011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12012 # soname into executable. Probably we can add versioning support to
12013 # collect2, so additional links can be useful in future.
12014 if test "$aix_use_runtimelinking" = yes; then
12015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12016 # instead of lib<name>.a to let people know that these are not
12017 # typical AIX shared libraries.
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12019 else
12020 # We preserve .a as extension for shared libraries through AIX4.2
12021 # and later when we are not doing run time linking.
12022 library_names_spec='${libname}${release}.a $libname.a'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 fi
12025 shlibpath_var=LIBPATH
12026 fi
12027 ;;
12028
12029amigaos*)
12030 library_names_spec='$libname.ixlibrary $libname.a'
12031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12032 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'
12033 ;;
12034
12035beos*)
12036 library_names_spec='${libname}${shared_ext}'
12037 dynamic_linker="$host_os ld.so"
12038 shlibpath_var=LIBRARY_PATH
12039 ;;
12040
12041bsdi[45]*)
12042 version_type=linux
12043 need_version=no
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12049 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12050 # the default ld.so.conf also contains /usr/contrib/lib and
12051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12052 # libtool to hard-code these into programs
12053 ;;
12054
12055cygwin* | mingw* | pw32*)
12056 version_type=windows
12057 shrext_cmds=".dll"
12058 need_version=no
12059 need_lib_prefix=no
12060
12061 case $GCC,$host_os in
12062 yes,cygwin* | yes,mingw* | yes,pw32*)
12063 library_names_spec='$libname.dll.a'
12064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12065 postinstall_cmds='base_file=`basename \${file}`~
12066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12067 dldir=$destdir/`dirname \$dlpath`~
12068 test -d \$dldir || mkdir -p \$dldir~
12069 $install_prog $dir/$dlname \$dldir/$dlname~
12070 chmod a+x \$dldir/$dlname'
12071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12072 dlpath=$dir/\$dldll~
12073 $rm \$dlpath'
12074 shlibpath_overrides_runpath=yes
12075
12076 case $host_os in
12077 cygwin*)
12078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12080 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12081 ;;
12082 mingw*)
12083 # MinGW DLLs use traditional 'lib' prefix
12084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12087 # It is most probably a Windows format PATH printed by
12088 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12089 # path with ; separators, and with drive letters. We can handle the
12090 # drive letters (cygwin fileutils understands them), so leave them,
12091 # especially as we might pass files found there to a mingw objdump,
12092 # which wouldn't understand a cygwinified path. Ahh.
12093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12094 else
12095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12096 fi
12097 ;;
12098 pw32*)
12099 # pw32 DLLs use 'pw' prefix rather than 'lib'
12100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12101 ;;
12102 esac
12103 ;;
12104
12105 *)
12106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12107 ;;
12108 esac
12109 dynamic_linker='Win32 ld.exe'
12110 # FIXME: first we should search . and the directory the executable is in
12111 shlibpath_var=PATH
12112 ;;
12113
12114darwin* | rhapsody*)
12115 dynamic_linker="$host_os dyld"
12116 version_type=darwin
12117 need_lib_prefix=no
12118 need_version=no
12119 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12120 soname_spec='${libname}${release}${major}$shared_ext'
12121 shlibpath_overrides_runpath=yes
12122 shlibpath_var=DYLD_LIBRARY_PATH
12123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12124 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12125 if test "$GCC" = yes; then
12126 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"`
12127 else
12128 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12129 fi
12130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12131 ;;
12132
12133dgux*)
12134 version_type=linux
12135 need_lib_prefix=no
12136 need_version=no
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 ;;
12141
12142freebsd1*)
12143 dynamic_linker=no
12144 ;;
12145
12146kfreebsd*-gnu)
12147 version_type=linux
12148 need_lib_prefix=no
12149 need_version=no
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=no
12154 hardcode_into_libs=yes
12155 dynamic_linker='GNU ld.so'
12156 ;;
12157
12158freebsd* | dragonfly*)
12159 # DragonFly does not have aout. When/if they implement a new
12160 # versioning mechanism, adjust this.
12161 if test -x /usr/bin/objformat; then
12162 objformat=`/usr/bin/objformat`
12163 else
12164 case $host_os in
12165 freebsd[123]*) objformat=aout ;;
12166 *) objformat=elf ;;
12167 esac
12168 fi
12169 version_type=freebsd-$objformat
12170 case $version_type in
12171 freebsd-elf*)
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12173 need_version=no
12174 need_lib_prefix=no
12175 ;;
12176 freebsd-*)
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12178 need_version=yes
12179 ;;
12180 esac
12181 shlibpath_var=LD_LIBRARY_PATH
12182 case $host_os in
12183 freebsd2*)
12184 shlibpath_overrides_runpath=yes
12185 ;;
12186 freebsd3.[01]* | freebsdelf3.[01]*)
12187 shlibpath_overrides_runpath=yes
12188 hardcode_into_libs=yes
12189 ;;
12190 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12191 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12192 shlibpath_overrides_runpath=no
12193 hardcode_into_libs=yes
12194 ;;
12195 freebsd*) # from 4.6 on
12196 shlibpath_overrides_runpath=yes
12197 hardcode_into_libs=yes
12198 ;;
12199 esac
12200 ;;
12201
12202gnu*)
12203 version_type=linux
12204 need_lib_prefix=no
12205 need_version=no
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12207 soname_spec='${libname}${release}${shared_ext}$major'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 hardcode_into_libs=yes
12210 ;;
12211
12212hpux9* | hpux10* | hpux11*)
12213 # Give a soname corresponding to the major version so that dld.sl refuses to
12214 # link against other versions.
12215 version_type=sunos
12216 need_lib_prefix=no
12217 need_version=no
12218 case $host_cpu in
12219 ia64*)
12220 shrext_cmds='.so'
12221 hardcode_into_libs=yes
12222 dynamic_linker="$host_os dld.so"
12223 shlibpath_var=LD_LIBRARY_PATH
12224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12226 soname_spec='${libname}${release}${shared_ext}$major'
12227 if test "X$HPUX_IA64_MODE" = X32; then
12228 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12229 else
12230 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12231 fi
12232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12233 ;;
12234 hppa*64*)
12235 shrext_cmds='.sl'
12236 hardcode_into_libs=yes
12237 dynamic_linker="$host_os dld.sl"
12238 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12244 ;;
12245 *)
12246 shrext_cmds='.sl'
12247 dynamic_linker="$host_os dld.sl"
12248 shlibpath_var=SHLIB_PATH
12249 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 ;;
12253 esac
12254 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12255 postinstall_cmds='chmod 555 $lib'
12256 ;;
12257
12258interix3*)
12259 version_type=linux
12260 need_lib_prefix=no
12261 need_version=no
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=no
12267 hardcode_into_libs=yes
12268 ;;
12269
12270irix5* | irix6* | nonstopux*)
12271 case $host_os in
12272 nonstopux*) version_type=nonstopux ;;
12273 *)
12274 if test "$lt_cv_prog_gnu_ld" = yes; then
12275 version_type=linux
12276 else
12277 version_type=irix
12278 fi ;;
12279 esac
12280 need_lib_prefix=no
12281 need_version=no
12282 soname_spec='${libname}${release}${shared_ext}$major'
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12284 case $host_os in
12285 irix5* | nonstopux*)
12286 libsuff= shlibsuff=
12287 ;;
12288 *)
12289 case $LD in # libtool.m4 will add one of these switches to LD
12290 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12291 libsuff= shlibsuff= libmagic=32-bit;;
12292 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12293 libsuff=32 shlibsuff=N32 libmagic=N32;;
12294 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12295 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12296 *) libsuff= shlibsuff= libmagic=never-match;;
12297 esac
12298 ;;
12299 esac
12300 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12301 shlibpath_overrides_runpath=no
12302 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12303 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12304 hardcode_into_libs=yes
12305 ;;
12306
12307# No shared lib support for Linux oldld, aout, or coff.
12308linux*oldld* | linux*aout* | linux*coff*)
12309 dynamic_linker=no
12310 ;;
12311
12312# This must be Linux ELF.
12313linux*)
12314 version_type=linux
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318 soname_spec='${libname}${release}${shared_ext}$major'
12319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=no
12322 # This implies no fast_install, which is unacceptable.
12323 # Some rework will be needed to allow for fast_install
12324 # before this can be enabled.
12325 hardcode_into_libs=yes
12326
12327 # find out which ABI we are using
12328 libsuff=
12329 case "$host_cpu" in
12330 x86_64*|s390x*|powerpc64*)
12331 echo '#line 12331 "configure"' > conftest.$ac_ext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; then
12337 case `/usr/bin/file conftest.$ac_objext` in
12338 *64-bit*)
12339 libsuff=64
12340 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12341 ;;
12342 esac
12343 fi
12344 rm -rf conftest*
12345 ;;
12346 esac
12347
12348 # Append ld.so.conf contents to the search path
12349 if test -f /etc/ld.so.conf; then
12350 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' ' '`
12351 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12352 fi
12353
12354 # We used to test for /lib/ld.so.1 and disable shared libraries on
12355 # powerpc, because MkLinux only supported shared libraries with the
12356 # GNU dynamic linker. Since this was broken with cross compilers,
12357 # most powerpc-linux boxes support dynamic linking these days and
12358 # people can always --disable-shared, the test was removed, and we
12359 # assume the GNU/Linux dynamic linker is in use.
12360 dynamic_linker='GNU/Linux ld.so'
12361 ;;
12362
12363knetbsd*-gnu)
12364 version_type=linux
12365 need_lib_prefix=no
12366 need_version=no
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12368 soname_spec='${libname}${release}${shared_ext}$major'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath=no
12371 hardcode_into_libs=yes
12372 dynamic_linker='GNU ld.so'
12373 ;;
12374
12375netbsd*)
12376 version_type=sunos
12377 need_lib_prefix=no
12378 need_version=no
12379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12382 dynamic_linker='NetBSD (a.out) ld.so'
12383 else
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12385 soname_spec='${libname}${release}${shared_ext}$major'
12386 dynamic_linker='NetBSD ld.elf_so'
12387 fi
12388 shlibpath_var=LD_LIBRARY_PATH
12389 shlibpath_overrides_runpath=yes
12390 hardcode_into_libs=yes
12391 ;;
12392
12393newsos6)
12394 version_type=linux
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=yes
12398 ;;
12399
12400nto-qnx*)
12401 version_type=linux
12402 need_lib_prefix=no
12403 need_version=no
12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12405 soname_spec='${libname}${release}${shared_ext}$major'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=yes
12408 ;;
12409
12410openbsd*)
12411 version_type=sunos
12412 sys_lib_dlsearch_path_spec="/usr/lib"
12413 need_lib_prefix=no
12414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12415 case $host_os in
12416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12417 *) need_version=no ;;
12418 esac
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12423 case $host_os in
12424 openbsd2.[89] | openbsd2.[89].*)
12425 shlibpath_overrides_runpath=no
12426 ;;
12427 *)
12428 shlibpath_overrides_runpath=yes
12429 ;;
12430 esac
12431 else
12432 shlibpath_overrides_runpath=yes
12433 fi
12434 ;;
12435
12436os2*)
12437 libname_spec='$name'
12438 shrext_cmds=".dll"
12439 need_lib_prefix=no
12440 library_names_spec='$libname${shared_ext} $libname.a'
12441 dynamic_linker='OS/2 ld.exe'
12442 shlibpath_var=LIBPATH
12443 ;;
12444
12445osf3* | osf4* | osf5*)
12446 version_type=osf
12447 need_lib_prefix=no
12448 need_version=no
12449 soname_spec='${libname}${release}${shared_ext}$major'
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451 shlibpath_var=LD_LIBRARY_PATH
12452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12454 ;;
12455
12456solaris*)
12457 version_type=linux
12458 need_lib_prefix=no
12459 need_version=no
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461 soname_spec='${libname}${release}${shared_ext}$major'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath=yes
12464 hardcode_into_libs=yes
12465 # ldd complains unless libraries are executable
12466 postinstall_cmds='chmod +x $lib'
12467 ;;
12468
12469sunos4*)
12470 version_type=sunos
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 shlibpath_overrides_runpath=yes
12475 if test "$with_gnu_ld" = yes; then
12476 need_lib_prefix=no
12477 fi
12478 need_version=yes
12479 ;;
12480
12481sysv4 | sysv4.3*)
12482 version_type=linux
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 case $host_vendor in
12487 sni)
12488 shlibpath_overrides_runpath=no
12489 need_lib_prefix=no
12490 export_dynamic_flag_spec='${wl}-Blargedynsym'
12491 runpath_var=LD_RUN_PATH
12492 ;;
12493 siemens)
12494 need_lib_prefix=no
12495 ;;
12496 motorola)
12497 need_lib_prefix=no
12498 need_version=no
12499 shlibpath_overrides_runpath=no
12500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12501 ;;
12502 esac
12503 ;;
12504
12505sysv4*MP*)
12506 if test -d /usr/nec ;then
12507 version_type=linux
12508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12509 soname_spec='$libname${shared_ext}.$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 fi
12512 ;;
12513
12514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12515 version_type=freebsd-elf
12516 need_lib_prefix=no
12517 need_version=no
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 hardcode_into_libs=yes
12522 if test "$with_gnu_ld" = yes; then
12523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12524 shlibpath_overrides_runpath=no
12525 else
12526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12527 shlibpath_overrides_runpath=yes
12528 case $host_os in
12529 sco3.2v5*)
12530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12531 ;;
12532 esac
12533 fi
12534 sys_lib_dlsearch_path_spec='/usr/lib'
12535 ;;
12536
12537uts4*)
12538 version_type=linux
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540 soname_spec='${libname}${release}${shared_ext}$major'
12541 shlibpath_var=LD_LIBRARY_PATH
12542 ;;
12543
12544*)
12545 dynamic_linker=no
12546 ;;
12547esac
12548echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12549echo "${ECHO_T}$dynamic_linker" >&6
12550test "$dynamic_linker" = no && can_build_shared=no
12551
12552variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12553if test "$GCC" = yes; then
12554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12555fi
12556
12557echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12558echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12559hardcode_action_CXX=
12560if test -n "$hardcode_libdir_flag_spec_CXX" || \
12561 test -n "$runpath_var_CXX" || \
12562 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12563
12564 # We can hardcode non-existant directories.
12565 if test "$hardcode_direct_CXX" != no &&
12566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12567 # have to relink, otherwise we might link with an installed library
12568 # when we should be linking with a yet-to-be-installed one
12569 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12570 test "$hardcode_minus_L_CXX" != no; then
12571 # Linking always hardcodes the temporary library directory.
12572 hardcode_action_CXX=relink
12573 else
12574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12575 hardcode_action_CXX=immediate
12576 fi
12577else
12578 # We cannot hardcode anything, or else we can only hardcode existing
12579 # directories.
12580 hardcode_action_CXX=unsupported
12581fi
12582echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12583echo "${ECHO_T}$hardcode_action_CXX" >&6
12584
12585if test "$hardcode_action_CXX" = relink; then
12586 # Fast installation is not supported
12587 enable_fast_install=no
12588elif test "$shlibpath_overrides_runpath" = yes ||
12589 test "$enable_shared" = no; then
12590 # Fast installation is not necessary
12591 enable_fast_install=needless
12592fi
12593
12594
12595# The else clause should only fire when bootstrapping the
12596# libtool distribution, otherwise you forgot to ship ltmain.sh
12597# with your package, and you will get complaints that there are
12598# no rules to generate ltmain.sh.
12599if test -f "$ltmain"; then
12600 # See if we are running on zsh, and set the options which allow our commands through
12601 # without removal of \ escapes.
12602 if test -n "${ZSH_VERSION+set}" ; then
12603 setopt NO_GLOB_SUBST
12604 fi
12605 # Now quote all the things that may contain metacharacters while being
12606 # careful not to overquote the AC_SUBSTed values. We take copies of the
12607 # variables and quote the copies for generation of the libtool script.
12608 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12609 SED SHELL STRIP \
12610 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12611 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12612 deplibs_check_method reload_flag reload_cmds need_locks \
12613 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12614 lt_cv_sys_global_symbol_to_c_name_address \
12615 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12616 old_postinstall_cmds old_postuninstall_cmds \
12617 compiler_CXX \
12618 CC_CXX \
12619 LD_CXX \
12620 lt_prog_compiler_wl_CXX \
12621 lt_prog_compiler_pic_CXX \
12622 lt_prog_compiler_static_CXX \
12623 lt_prog_compiler_no_builtin_flag_CXX \
12624 export_dynamic_flag_spec_CXX \
12625 thread_safe_flag_spec_CXX \
12626 whole_archive_flag_spec_CXX \
12627 enable_shared_with_static_runtimes_CXX \
12628 old_archive_cmds_CXX \
12629 old_archive_from_new_cmds_CXX \
12630 predep_objects_CXX \
12631 postdep_objects_CXX \
12632 predeps_CXX \
12633 postdeps_CXX \
12634 compiler_lib_search_path_CXX \
12635 archive_cmds_CXX \
12636 archive_expsym_cmds_CXX \
12637 postinstall_cmds_CXX \
12638 postuninstall_cmds_CXX \
12639 old_archive_from_expsyms_cmds_CXX \
12640 allow_undefined_flag_CXX \
12641 no_undefined_flag_CXX \
12642 export_symbols_cmds_CXX \
12643 hardcode_libdir_flag_spec_CXX \
12644 hardcode_libdir_flag_spec_ld_CXX \
12645 hardcode_libdir_separator_CXX \
12646 hardcode_automatic_CXX \
12647 module_cmds_CXX \
12648 module_expsym_cmds_CXX \
12649 lt_cv_prog_compiler_c_o_CXX \
12650 exclude_expsyms_CXX \
12651 include_expsyms_CXX; do
12652
12653 case $var in
12654 old_archive_cmds_CXX | \
12655 old_archive_from_new_cmds_CXX | \
12656 archive_cmds_CXX | \
12657 archive_expsym_cmds_CXX | \
12658 module_cmds_CXX | \
12659 module_expsym_cmds_CXX | \
12660 old_archive_from_expsyms_cmds_CXX | \
12661 export_symbols_cmds_CXX | \
12662 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12663 postinstall_cmds | postuninstall_cmds | \
12664 old_postinstall_cmds | old_postuninstall_cmds | \
12665 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12666 # Double-quote double-evaled strings.
12667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12668 ;;
12669 *)
12670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12671 ;;
12672 esac
12673 done
12674
12675 case $lt_echo in
12676 *'\$0 --fallback-echo"')
12677 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12678 ;;
12679 esac
12680
12681cfgfile="$ofile"
12682
12683 cat <<__EOF__ >> "$cfgfile"
12684# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12685
12686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12687
12688# Shell to use when invoking shell scripts.
12689SHELL=$lt_SHELL
12690
12691# Whether or not to build shared libraries.
12692build_libtool_libs=$enable_shared
12693
12694# Whether or not to build static libraries.
12695build_old_libs=$enable_static
12696
12697# Whether or not to add -lc for building shared libraries.
12698build_libtool_need_lc=$archive_cmds_need_lc_CXX
12699
12700# Whether or not to disallow shared libs when runtime libs are static
12701allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12702
12703# Whether or not to optimize for fast installation.
12704fast_install=$enable_fast_install
12705
12706# The host system.
12707host_alias=$host_alias
12708host=$host
12709host_os=$host_os
12710
12711# The build system.
12712build_alias=$build_alias
12713build=$build
12714build_os=$build_os
12715
12716# An echo program that does not interpret backslashes.
12717echo=$lt_echo
12718
12719# The archiver.
12720AR=$lt_AR
12721AR_FLAGS=$lt_AR_FLAGS
12722
12723# A C compiler.
12724LTCC=$lt_LTCC
12725
12726# LTCC compiler flags.
12727LTCFLAGS=$lt_LTCFLAGS
12728
12729# A language-specific compiler.
12730CC=$lt_compiler_CXX
12731
12732# Is the compiler the GNU C compiler?
12733with_gcc=$GCC_CXX
12734
12735gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12736gcc_ver=\`gcc -dumpversion\`
12737
12738# An ERE matcher.
12739EGREP=$lt_EGREP
12740
12741# The linker used to build libraries.
12742LD=$lt_LD_CXX
12743
12744# Whether we need hard or soft links.
12745LN_S=$lt_LN_S
12746
12747# A BSD-compatible nm program.
12748NM=$lt_NM
12749
12750# A symbol stripping program
12751STRIP=$lt_STRIP
12752
12753# Used to examine libraries when file_magic_cmd begins "file"
12754MAGIC_CMD=$MAGIC_CMD
12755
12756# Used on cygwin: DLL creation program.
12757DLLTOOL="$DLLTOOL"
12758
12759# Used on cygwin: object dumper.
12760OBJDUMP="$OBJDUMP"
12761
12762# Used on cygwin: assembler.
12763AS="$AS"
12764
12765# The name of the directory that contains temporary libtool files.
12766objdir=$objdir
12767
12768# How to create reloadable object files.
12769reload_flag=$lt_reload_flag
12770reload_cmds=$lt_reload_cmds
12771
12772# How to pass a linker flag through the compiler.
12773wl=$lt_lt_prog_compiler_wl_CXX
12774
12775# Object file suffix (normally "o").
12776objext="$ac_objext"
12777
12778# Old archive suffix (normally "a").
12779libext="$libext"
12780
12781# Shared library suffix (normally ".so").
12782shrext_cmds='$shrext_cmds'
12783
12784# Executable file suffix (normally "").
12785exeext="$exeext"
12786
12787# Additional compiler flags for building library objects.
12788pic_flag=$lt_lt_prog_compiler_pic_CXX
12789pic_mode=$pic_mode
12790
12791# What is the maximum length of a command?
12792max_cmd_len=$lt_cv_sys_max_cmd_len
12793
12794# Does compiler simultaneously support -c and -o options?
12795compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12796
12797# Must we lock files when doing compilation?
12798need_locks=$lt_need_locks
12799
12800# Do we need the lib prefix for modules?
12801need_lib_prefix=$need_lib_prefix
12802
12803# Do we need a version for libraries?
12804need_version=$need_version
12805
12806# Whether dlopen is supported.
12807dlopen_support=$enable_dlopen
12808
12809# Whether dlopen of programs is supported.
12810dlopen_self=$enable_dlopen_self
12811
12812# Whether dlopen of statically linked programs is supported.
12813dlopen_self_static=$enable_dlopen_self_static
12814
12815# Compiler flag to prevent dynamic linking.
12816link_static_flag=$lt_lt_prog_compiler_static_CXX
12817
12818# Compiler flag to turn off builtin functions.
12819no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12820
12821# Compiler flag to allow reflexive dlopens.
12822export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12823
12824# Compiler flag to generate shared objects directly from archives.
12825whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12826
12827# Compiler flag to generate thread-safe objects.
12828thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12829
12830# Library versioning type.
12831version_type=$version_type
12832
12833# Format of library name prefix.
12834libname_spec=$lt_libname_spec
12835
12836# List of archive names. First name is the real one, the rest are links.
12837# The last name is the one that the linker finds with -lNAME.
12838library_names_spec=$lt_library_names_spec
12839
12840# The coded name of the library, if different from the real name.
12841soname_spec=$lt_soname_spec
12842
12843# Commands used to build and install an old-style archive.
12844RANLIB=$lt_RANLIB
12845old_archive_cmds=$lt_old_archive_cmds_CXX
12846old_postinstall_cmds=$lt_old_postinstall_cmds
12847old_postuninstall_cmds=$lt_old_postuninstall_cmds
12848
12849# Create an old-style archive from a shared archive.
12850old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12851
12852# Create a temporary old-style archive to link instead of a shared archive.
12853old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12854
12855# Commands used to build and install a shared archive.
12856archive_cmds=$lt_archive_cmds_CXX
12857archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12858postinstall_cmds=$lt_postinstall_cmds
12859postuninstall_cmds=$lt_postuninstall_cmds
12860
12861# Commands used to build a loadable module (assumed same as above if empty)
12862module_cmds=$lt_module_cmds_CXX
12863module_expsym_cmds=$lt_module_expsym_cmds_CXX
12864
12865# Commands to strip libraries.
12866old_striplib=$lt_old_striplib
12867striplib=$lt_striplib
12868
12869# Dependencies to place before the objects being linked to create a
12870# shared library.
12871predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12872
12873# Dependencies to place after the objects being linked to create a
12874# shared library.
12875postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12876
12877# Dependencies to place before the objects being linked to create a
12878# shared library.
12879predeps=$lt_predeps_CXX
12880
12881# Dependencies to place after the objects being linked to create a
12882# shared library.
12883postdeps=$lt_postdeps_CXX
12884
12885# The library search path used internally by the compiler when linking
12886# a shared library.
12887compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12888
12889# Method to check whether dependent libraries are shared objects.
12890deplibs_check_method=$lt_deplibs_check_method
12891
12892# Command to use when deplibs_check_method == file_magic.
12893file_magic_cmd=$lt_file_magic_cmd
12894
12895# Flag that allows shared libraries with undefined symbols to be built.
12896allow_undefined_flag=$lt_allow_undefined_flag_CXX
12897
12898# Flag that forces no undefined symbols.
12899no_undefined_flag=$lt_no_undefined_flag_CXX
12900
12901# Commands used to finish a libtool library installation in a directory.
12902finish_cmds=$lt_finish_cmds
12903
12904# Same as above, but a single script fragment to be evaled but not shown.
12905finish_eval=$lt_finish_eval
12906
12907# Take the output of nm and produce a listing of raw symbols and C names.
12908global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12909
12910# Transform the output of nm in a proper C declaration
12911global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12912
12913# Transform the output of nm in a C name address pair
12914global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12915
12916# This is the shared library runtime path variable.
12917runpath_var=$runpath_var
12918
12919# This is the shared library path variable.
12920shlibpath_var=$shlibpath_var
12921
12922# Is shlibpath searched before the hard-coded library search path?
12923shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12924
12925# How to hardcode a shared library path into an executable.
12926hardcode_action=$hardcode_action_CXX
12927
12928# Whether we should hardcode library paths into libraries.
12929hardcode_into_libs=$hardcode_into_libs
12930
12931# Flag to hardcode \$libdir into a binary during linking.
12932# This must work even if \$libdir does not exist.
12933hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12934
12935# If ld is used when linking, flag to hardcode \$libdir into
12936# a binary during linking. This must work even if \$libdir does
12937# not exist.
12938hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12939
12940# Whether we need a single -rpath flag with a separated argument.
12941hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12942
12943# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12944# resulting binary.
12945hardcode_direct=$hardcode_direct_CXX
12946
12947# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12948# resulting binary.
12949hardcode_minus_L=$hardcode_minus_L_CXX
12950
12951# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12952# the resulting binary.
12953hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12954
12955# Set to yes if building a shared library automatically hardcodes DIR into the library
12956# and all subsequent libraries and executables linked against it.
12957hardcode_automatic=$hardcode_automatic_CXX
12958
12959# Variables whose values should be saved in libtool wrapper scripts and
12960# restored at relink time.
12961variables_saved_for_relink="$variables_saved_for_relink"
12962
12963# Whether libtool must link a program against all its dependency libraries.
12964link_all_deplibs=$link_all_deplibs_CXX
12965
12966# Compile-time system search path for libraries
12967sys_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"\`
12968
12969# Run-time system search path for libraries
12970sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12971
12972# Fix the shell variable \$srcfile for the compiler.
12973fix_srcfile_path="$fix_srcfile_path_CXX"
12974
12975# Set to yes if exported symbols are required.
12976always_export_symbols=$always_export_symbols_CXX
12977
12978# The commands to list exported symbols.
12979export_symbols_cmds=$lt_export_symbols_cmds_CXX
12980
12981# The commands to extract the exported symbol list from a shared archive.
12982extract_expsyms_cmds=$lt_extract_expsyms_cmds
12983
12984# Symbols that should not be listed in the preloaded symbols.
12985exclude_expsyms=$lt_exclude_expsyms_CXX
12986
12987# Symbols that must always be exported.
12988include_expsyms=$lt_include_expsyms_CXX
12989
12990# ### END LIBTOOL TAG CONFIG: $tagname
12991
12992__EOF__
12993
12994
12995else
12996 # If there is no Makefile yet, we rely on a make rule to execute
12997 # `config.status --recheck' to rerun these tests and create the
12998 # libtool script then.
12999 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13000 if test -f "$ltmain_in"; then
13001 test -f Makefile && make "$ltmain"
13002 fi
13003fi
13004
13005
13006ac_ext=c
13007ac_cpp='$CPP $CPPFLAGS'
13008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13010ac_compiler_gnu=$ac_cv_c_compiler_gnu
13011
13012CC=$lt_save_CC
13013LDCXX=$LD
13014LD=$lt_save_LD
13015GCC=$lt_save_GCC
13016with_gnu_ldcxx=$with_gnu_ld
13017with_gnu_ld=$lt_save_with_gnu_ld
13018lt_cv_path_LDCXX=$lt_cv_path_LD
13019lt_cv_path_LD=$lt_save_path_LD
13020lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13021lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13022
13023 else
13024 tagname=""
13025 fi
13026 ;;
13027
13028 F77)
13029 if test -n "$F77" && test "X$F77" != "Xno"; then
13030
13031ac_ext=f
13032ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13033ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13035
13036
13037archive_cmds_need_lc_F77=no
13038allow_undefined_flag_F77=
13039always_export_symbols_F77=no
13040archive_expsym_cmds_F77=
13041export_dynamic_flag_spec_F77=
13042hardcode_direct_F77=no
13043hardcode_libdir_flag_spec_F77=
13044hardcode_libdir_flag_spec_ld_F77=
13045hardcode_libdir_separator_F77=
13046hardcode_minus_L_F77=no
13047hardcode_automatic_F77=no
13048module_cmds_F77=
13049module_expsym_cmds_F77=
13050link_all_deplibs_F77=unknown
13051old_archive_cmds_F77=$old_archive_cmds
13052no_undefined_flag_F77=
13053whole_archive_flag_spec_F77=
13054enable_shared_with_static_runtimes_F77=no
13055
13056# Source file extension for f77 test sources.
13057ac_ext=f
13058
13059# Object file extension for compiled f77 test sources.
13060objext=o
13061objext_F77=$objext
13062
13063# Code to be used in simple compile tests
13064lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13065
13066# Code to be used in simple link tests
13067lt_simple_link_test_code=" program t\n end\n"
13068
13069# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13070
13071# If no C compiler was specified, use CC.
13072LTCC=${LTCC-"$CC"}
13073
13074# If no C compiler flags were specified, use CFLAGS.
13075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13076
13077# Allow CC to be a program name with arguments.
13078compiler=$CC
13079
13080
13081# save warnings/boilerplate of simple test code
13082ac_outfile=conftest.$ac_objext
13083printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13085_lt_compiler_boilerplate=`cat conftest.err`
13086$rm conftest*
13087
13088ac_outfile=conftest.$ac_objext
13089printf "$lt_simple_link_test_code" >conftest.$ac_ext
13090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13091_lt_linker_boilerplate=`cat conftest.err`
13092$rm conftest*
13093
13094
13095# Allow CC to be a program name with arguments.
13096lt_save_CC="$CC"
13097CC=${F77-"f77"}
13098compiler=$CC
13099compiler_F77=$CC
13100for cc_temp in $compiler""; do
13101 case $cc_temp in
13102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13104 \-*) ;;
13105 *) break;;
13106 esac
13107done
13108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13109
13110
13111echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13112echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13113echo "$as_me:$LINENO: result: $can_build_shared" >&5
13114echo "${ECHO_T}$can_build_shared" >&6
13115
13116echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13117echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13118test "$can_build_shared" = "no" && enable_shared=no
13119
13120# On AIX, shared libraries and static libraries use the same namespace, and
13121# are all built from PIC.
13122case $host_os in
13123aix3*)
13124 test "$enable_shared" = yes && enable_static=no
13125 if test -n "$RANLIB"; then
13126 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13127 postinstall_cmds='$RANLIB $lib'
13128 fi
13129 ;;
13130aix4* | aix5*)
13131 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13132 test "$enable_shared" = yes && enable_static=no
13133 fi
13134 ;;
13135esac
13136echo "$as_me:$LINENO: result: $enable_shared" >&5
13137echo "${ECHO_T}$enable_shared" >&6
13138
13139echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13140echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13141# Make sure either enable_shared or enable_static is yes.
13142test "$enable_shared" = yes || enable_static=yes
13143echo "$as_me:$LINENO: result: $enable_static" >&5
13144echo "${ECHO_T}$enable_static" >&6
13145
13146GCC_F77="$G77"
13147LD_F77="$LD"
13148
13149lt_prog_compiler_wl_F77=
13150lt_prog_compiler_pic_F77=
13151lt_prog_compiler_static_F77=
13152
13153echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13154echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13155
13156 if test "$GCC" = yes; then
13157 lt_prog_compiler_wl_F77='-Wl,'
13158 lt_prog_compiler_static_F77='-static'
13159
13160 case $host_os in
13161 aix*)
13162 # All AIX code is PIC.
13163 if test "$host_cpu" = ia64; then
13164 # AIX 5 now supports IA64 processor
13165 lt_prog_compiler_static_F77='-Bstatic'
13166 fi
13167 ;;
13168
13169 amigaos*)
13170 # FIXME: we need at least 68020 code to build shared libraries, but
13171 # adding the `-m68020' flag to GCC prevents building anything better,
13172 # like `-m68040'.
13173 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13174 ;;
13175
13176 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13177 # PIC is the default for these OSes.
13178 ;;
13179
13180 mingw* | pw32* | os2*)
13181 # This hack is so that the source file can tell whether it is being
13182 # built for inclusion in a dll (and should export symbols for example).
13183 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13184 ;;
13185
13186 darwin* | rhapsody*)
13187 # PIC is the default on this platform
13188 # Common symbols not allowed in MH_DYLIB files
13189 lt_prog_compiler_pic_F77='-fno-common'
13190 ;;
13191
13192 interix3*)
13193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13194 # Instead, we relocate shared libraries at runtime.
13195 ;;
13196
13197 msdosdjgpp*)
13198 # Just because we use GCC doesn't mean we suddenly get shared libraries
13199 # on systems that don't support them.
13200 lt_prog_compiler_can_build_shared_F77=no
13201 enable_shared=no
13202 ;;
13203
13204 sysv4*MP*)
13205 if test -d /usr/nec; then
13206 lt_prog_compiler_pic_F77=-Kconform_pic
13207 fi
13208 ;;
13209
13210 hpux*)
13211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13212 # not for PA HP-UX.
13213 case $host_cpu in
13214 hppa*64*|ia64*)
13215 # +Z the default
13216 ;;
13217 *)
13218 lt_prog_compiler_pic_F77='-fPIC'
13219 ;;
13220 esac
13221 ;;
13222
13223 *)
13224 lt_prog_compiler_pic_F77='-fPIC'
13225 ;;
13226 esac
13227 else
13228 # PORTME Check for flag to pass linker flags through the system compiler.
13229 case $host_os in
13230 aix*)
13231 lt_prog_compiler_wl_F77='-Wl,'
13232 if test "$host_cpu" = ia64; then
13233 # AIX 5 now supports IA64 processor
13234 lt_prog_compiler_static_F77='-Bstatic'
13235 else
13236 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13237 fi
13238 ;;
13239 darwin*)
13240 # PIC is the default on this platform
13241 # Common symbols not allowed in MH_DYLIB files
13242 case $cc_basename in
13243 xlc*)
13244 lt_prog_compiler_pic_F77='-qnocommon'
13245 lt_prog_compiler_wl_F77='-Wl,'
13246 ;;
13247 esac
13248 ;;
13249
13250 mingw* | pw32* | os2*)
13251 # This hack is so that the source file can tell whether it is being
13252 # built for inclusion in a dll (and should export symbols for example).
13253 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13254 ;;
13255
13256 hpux9* | hpux10* | hpux11*)
13257 lt_prog_compiler_wl_F77='-Wl,'
13258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13259 # not for PA HP-UX.
13260 case $host_cpu in
13261 hppa*64*|ia64*)
13262 # +Z the default
13263 ;;
13264 *)
13265 lt_prog_compiler_pic_F77='+Z'
13266 ;;
13267 esac
13268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13269 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13270 ;;
13271
13272 irix5* | irix6* | nonstopux*)
13273 lt_prog_compiler_wl_F77='-Wl,'
13274 # PIC (with -KPIC) is the default.
13275 lt_prog_compiler_static_F77='-non_shared'
13276 ;;
13277
13278 newsos6)
13279 lt_prog_compiler_pic_F77='-KPIC'
13280 lt_prog_compiler_static_F77='-Bstatic'
13281 ;;
13282
13283 linux*)
13284 case $cc_basename in
13285 icc* | ecc*)
13286 lt_prog_compiler_wl_F77='-Wl,'
13287 lt_prog_compiler_pic_F77='-KPIC'
13288 lt_prog_compiler_static_F77='-static'
13289 ;;
13290 pgcc* | pgf77* | pgf90* | pgf95*)
13291 # Portland Group compilers (*not* the Pentium gcc compiler,
13292 # which looks to be a dead project)
13293 lt_prog_compiler_wl_F77='-Wl,'
13294 lt_prog_compiler_pic_F77='-fpic'
13295 lt_prog_compiler_static_F77='-Bstatic'
13296 ;;
13297 ccc*)
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 # All Alpha code is PIC.
13300 lt_prog_compiler_static_F77='-non_shared'
13301 ;;
13302 esac
13303 ;;
13304
13305 osf3* | osf4* | osf5*)
13306 lt_prog_compiler_wl_F77='-Wl,'
13307 # All OSF/1 code is PIC.
13308 lt_prog_compiler_static_F77='-non_shared'
13309 ;;
13310
13311 solaris*)
13312 lt_prog_compiler_pic_F77='-KPIC'
13313 lt_prog_compiler_static_F77='-Bstatic'
13314 case $cc_basename in
13315 f77* | f90* | f95*)
13316 lt_prog_compiler_wl_F77='-Qoption ld ';;
13317 *)
13318 lt_prog_compiler_wl_F77='-Wl,';;
13319 esac
13320 ;;
13321
13322 sunos4*)
13323 lt_prog_compiler_wl_F77='-Qoption ld '
13324 lt_prog_compiler_pic_F77='-PIC'
13325 lt_prog_compiler_static_F77='-Bstatic'
13326 ;;
13327
13328 sysv4 | sysv4.2uw2* | sysv4.3*)
13329 lt_prog_compiler_wl_F77='-Wl,'
13330 lt_prog_compiler_pic_F77='-KPIC'
13331 lt_prog_compiler_static_F77='-Bstatic'
13332 ;;
13333
13334 sysv4*MP*)
13335 if test -d /usr/nec ;then
13336 lt_prog_compiler_pic_F77='-Kconform_pic'
13337 lt_prog_compiler_static_F77='-Bstatic'
13338 fi
13339 ;;
13340
13341 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13342 lt_prog_compiler_wl_F77='-Wl,'
13343 lt_prog_compiler_pic_F77='-KPIC'
13344 lt_prog_compiler_static_F77='-Bstatic'
13345 ;;
13346
13347 unicos*)
13348 lt_prog_compiler_wl_F77='-Wl,'
13349 lt_prog_compiler_can_build_shared_F77=no
13350 ;;
13351
13352 uts4*)
13353 lt_prog_compiler_pic_F77='-pic'
13354 lt_prog_compiler_static_F77='-Bstatic'
13355 ;;
13356
13357 *)
13358 lt_prog_compiler_can_build_shared_F77=no
13359 ;;
13360 esac
13361 fi
13362
13363echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13364echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13365
13366#
13367# Check to make sure the PIC flag actually works.
13368#
13369if test -n "$lt_prog_compiler_pic_F77"; then
13370
13371echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13372echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13373if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375else
13376 lt_prog_compiler_pic_works_F77=no
13377 ac_outfile=conftest.$ac_objext
13378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13379 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13380 # Insert the option either (1) after the last *FLAGS variable, or
13381 # (2) before a word containing "conftest.", or (3) at the end.
13382 # Note that $ac_compile itself does not contain backslashes and begins
13383 # with a dollar sign (not a hyphen), so the echo should work correctly.
13384 # The option is referenced via a variable to avoid confusing sed.
13385 lt_compile=`echo "$ac_compile" | $SED \
13386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13388 -e 's:$: $lt_compiler_flag:'`
13389 (eval echo "\"\$as_me:13389: $lt_compile\"" >&5)
13390 (eval "$lt_compile" 2>conftest.err)
13391 ac_status=$?
13392 cat conftest.err >&5
13393 echo "$as_me:13393: \$? = $ac_status" >&5
13394 if (exit $ac_status) && test -s "$ac_outfile"; then
13395 # The compiler can only warn and ignore the option if not recognized
13396 # So say no if there are warnings other than the usual output.
13397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13400 lt_prog_compiler_pic_works_F77=yes
13401 fi
13402 fi
13403 $rm conftest*
13404
13405fi
13406echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13407echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13408
13409if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13410 case $lt_prog_compiler_pic_F77 in
13411 "" | " "*) ;;
13412 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13413 esac
13414else
13415 lt_prog_compiler_pic_F77=
13416 lt_prog_compiler_can_build_shared_F77=no
13417fi
13418
13419fi
13420case $host_os in
13421 # For platforms which do not support PIC, -DPIC is meaningless:
13422 *djgpp*)
13423 lt_prog_compiler_pic_F77=
13424 ;;
13425 *)
13426 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13427 ;;
13428esac
13429
13430#
13431# Check to make sure the static flag actually works.
13432#
13433wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13434echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13435echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13436if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438else
13439 lt_prog_compiler_static_works_F77=no
13440 save_LDFLAGS="$LDFLAGS"
13441 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13442 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13444 # The linker can only warn and ignore the option if not recognized
13445 # So say no if there are warnings
13446 if test -s conftest.err; then
13447 # Append any errors to the config.log.
13448 cat conftest.err 1>&5
13449 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13451 if diff conftest.exp conftest.er2 >/dev/null; then
13452 lt_prog_compiler_static_works_F77=yes
13453 fi
13454 else
13455 lt_prog_compiler_static_works_F77=yes
13456 fi
13457 fi
13458 $rm conftest*
13459 LDFLAGS="$save_LDFLAGS"
13460
13461fi
13462echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13463echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13464
13465if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13466 :
13467else
13468 lt_prog_compiler_static_F77=
13469fi
13470
13471
13472echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13473echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13474if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476else
13477 lt_cv_prog_compiler_c_o_F77=no
13478 $rm -r conftest 2>/dev/null
13479 mkdir conftest
13480 cd conftest
13481 mkdir out
13482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13483
13484 lt_compiler_flag="-o out/conftest2.$ac_objext"
13485 # Insert the option either (1) after the last *FLAGS variable, or
13486 # (2) before a word containing "conftest.", or (3) at the end.
13487 # Note that $ac_compile itself does not contain backslashes and begins
13488 # with a dollar sign (not a hyphen), so the echo should work correctly.
13489 lt_compile=`echo "$ac_compile" | $SED \
13490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13492 -e 's:$: $lt_compiler_flag:'`
13493 (eval echo "\"\$as_me:13493: $lt_compile\"" >&5)
13494 (eval "$lt_compile" 2>out/conftest.err)
13495 ac_status=$?
13496 cat out/conftest.err >&5
13497 echo "$as_me:13497: \$? = $ac_status" >&5
13498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13499 then
13500 # The compiler can only warn and ignore the option if not recognized
13501 # So say no if there are warnings
13502 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13505 lt_cv_prog_compiler_c_o_F77=yes
13506 fi
13507 fi
13508 chmod u+w . 2>&5
13509 $rm conftest*
13510 # SGI C++ compiler will create directory out/ii_files/ for
13511 # template instantiation
13512 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13513 $rm out/* && rmdir out
13514 cd ..
13515 rmdir conftest
13516 $rm conftest*
13517
13518fi
13519echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13520echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13521
13522
13523hard_links="nottested"
13524if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13525 # do not overwrite the value of need_locks provided by the user
13526 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13527echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13528 hard_links=yes
13529 $rm conftest*
13530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13531 touch conftest.a
13532 ln conftest.a conftest.b 2>&5 || hard_links=no
13533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13534 echo "$as_me:$LINENO: result: $hard_links" >&5
13535echo "${ECHO_T}$hard_links" >&6
13536 if test "$hard_links" = no; then
13537 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13538echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13539 need_locks=warn
13540 fi
13541else
13542 need_locks=no
13543fi
13544
13545echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13546echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13547
13548 runpath_var=
13549 allow_undefined_flag_F77=
13550 enable_shared_with_static_runtimes_F77=no
13551 archive_cmds_F77=
13552 archive_expsym_cmds_F77=
13553 old_archive_From_new_cmds_F77=
13554 old_archive_from_expsyms_cmds_F77=
13555 export_dynamic_flag_spec_F77=
13556 whole_archive_flag_spec_F77=
13557 thread_safe_flag_spec_F77=
13558 hardcode_libdir_flag_spec_F77=
13559 hardcode_libdir_flag_spec_ld_F77=
13560 hardcode_libdir_separator_F77=
13561 hardcode_direct_F77=no
13562 hardcode_minus_L_F77=no
13563 hardcode_shlibpath_var_F77=unsupported
13564 link_all_deplibs_F77=unknown
13565 hardcode_automatic_F77=no
13566 module_cmds_F77=
13567 module_expsym_cmds_F77=
13568 always_export_symbols_F77=no
13569 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13570 # include_expsyms should be a list of space-separated symbols to be *always*
13571 # included in the symbol list
13572 include_expsyms_F77=
13573 # exclude_expsyms can be an extended regexp of symbols to exclude
13574 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13575 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13576 # as well as any symbol that contains `d'.
13577 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13578 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13579 # platforms (ab)use it in PIC code, but their linkers get confused if
13580 # the symbol is explicitly referenced. Since portable code cannot
13581 # rely on this symbol name, it's probably fine to never include it in
13582 # preloaded symbol tables.
13583 extract_expsyms_cmds=
13584 # Just being paranoid about ensuring that cc_basename is set.
13585 for cc_temp in $compiler""; do
13586 case $cc_temp in
13587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13589 \-*) ;;
13590 *) break;;
13591 esac
13592done
13593cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13594
13595 case $host_os in
13596 cygwin* | mingw* | pw32*)
13597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13598 # When not using gcc, we currently assume that we are using
13599 # Microsoft Visual C++.
13600 if test "$GCC" != yes; then
13601 with_gnu_ld=no
13602 fi
13603 ;;
13604 interix*)
13605 # we just hope/assume this is gcc and not c89 (= MSVC++)
13606 with_gnu_ld=yes
13607 ;;
13608 openbsd*)
13609 with_gnu_ld=no
13610 ;;
13611 esac
13612
13613 ld_shlibs_F77=yes
13614 if test "$with_gnu_ld" = yes; then
13615 # If archive_cmds runs LD, not CC, wlarc should be empty
13616 wlarc='${wl}'
13617
13618 # Set some defaults for GNU ld with shared library support. These
13619 # are reset later if shared libraries are not supported. Putting them
13620 # here allows them to be overridden if necessary.
13621 runpath_var=LD_RUN_PATH
13622 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13623 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13624 # ancient GNU ld didn't support --whole-archive et. al.
13625 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13626 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13627 else
13628 whole_archive_flag_spec_F77=
13629 fi
13630 supports_anon_versioning=no
13631 case `$LD -v 2>/dev/null` in
13632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13635 *\ 2.11.*) ;; # other 2.11 versions
13636 *) supports_anon_versioning=yes ;;
13637 esac
13638
13639 # See if GNU ld supports shared libraries.
13640 case $host_os in
13641 aix3* | aix4* | aix5*)
13642 # On AIX/PPC, the GNU linker is very broken
13643 if test "$host_cpu" != ia64; then
13644 ld_shlibs_F77=no
13645 cat <<EOF 1>&2
13646
13647*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13648*** to be unable to reliably create shared libraries on AIX.
13649*** Therefore, libtool is disabling shared libraries support. If you
13650*** really care for shared libraries, you may want to modify your PATH
13651*** so that a non-GNU linker is found, and then restart.
13652
13653EOF
13654 fi
13655 ;;
13656
13657 amigaos*)
13658 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)'
13659 hardcode_libdir_flag_spec_F77='-L$libdir'
13660 hardcode_minus_L_F77=yes
13661
13662 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13663 # that the semantics of dynamic libraries on AmigaOS, at least up
13664 # to version 4, is to share data among multiple programs linked
13665 # with the same dynamic library. Since this doesn't match the
13666 # behavior of shared libraries on other platforms, we can't use
13667 # them.
13668 ld_shlibs_F77=no
13669 ;;
13670
13671 beos*)
13672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673 allow_undefined_flag_F77=unsupported
13674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13675 # support --undefined. This deserves some investigation. FIXME
13676 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13677 else
13678 ld_shlibs_F77=no
13679 fi
13680 ;;
13681
13682 cygwin* | mingw* | pw32*)
13683 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13684 # as there is no search path for DLLs.
13685 hardcode_libdir_flag_spec_F77='-L$libdir'
13686 allow_undefined_flag_F77=unsupported
13687 always_export_symbols_F77=no
13688 enable_shared_with_static_runtimes_F77=yes
13689 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13690
13691 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13692 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13693 # If the export-symbols file already is a .def file (1st line
13694 # is EXPORTS), use it as is; otherwise, prepend...
13695 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13696 cp $export_symbols $output_objdir/$soname.def;
13697 else
13698 echo EXPORTS > $output_objdir/$soname.def;
13699 cat $export_symbols >> $output_objdir/$soname.def;
13700 fi~
13701 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13702 else
13703 ld_shlibs_F77=no
13704 fi
13705 ;;
13706
13707 interix3*)
13708 hardcode_direct_F77=no
13709 hardcode_shlibpath_var_F77=no
13710 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13711 export_dynamic_flag_spec_F77='${wl}-E'
13712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13713 # Instead, shared libraries are loaded at an image base (0x10000000 by
13714 # default) and relocated if they conflict, which is a slow very memory
13715 # consuming and fragmenting process. To avoid this, we pick a random,
13716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13717 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13718 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'
13719 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'
13720 ;;
13721
13722 linux*)
13723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13724 tmp_addflag=
13725 case $cc_basename,$host_cpu in
13726 pgcc*) # Portland Group C compiler
13727 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'
13728 tmp_addflag=' $pic_flag'
13729 ;;
13730 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13731 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'
13732 tmp_addflag=' $pic_flag -Mnomain' ;;
13733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13734 tmp_addflag=' -i_dynamic' ;;
13735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13736 tmp_addflag=' -i_dynamic -nofor_main' ;;
13737 ifc* | ifort*) # Intel Fortran compiler
13738 tmp_addflag=' -nofor_main' ;;
13739 esac
13740 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13741
13742 if test $supports_anon_versioning = yes; then
13743 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13745 $echo "local: *; };" >> $output_objdir/$libname.ver~
13746 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13747 fi
13748 else
13749 ld_shlibs_F77=no
13750 fi
13751 ;;
13752
13753 netbsd*)
13754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13755 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13756 wlarc=
13757 else
13758 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13760 fi
13761 ;;
13762
13763 solaris*)
13764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13765 ld_shlibs_F77=no
13766 cat <<EOF 1>&2
13767
13768*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13769*** create shared libraries on Solaris systems. Therefore, libtool
13770*** is disabling shared libraries support. We urge you to upgrade GNU
13771*** binutils to release 2.9.1 or newer. Another option is to modify
13772*** your PATH or compiler configuration so that the native linker is
13773*** used, and then restart.
13774
13775EOF
13776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13779 else
13780 ld_shlibs_F77=no
13781 fi
13782 ;;
13783
13784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13785 case `$LD -v 2>&1` in
13786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13787 ld_shlibs_F77=no
13788 cat <<_LT_EOF 1>&2
13789
13790*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13791*** reliably create shared libraries on SCO systems. Therefore, libtool
13792*** is disabling shared libraries support. We urge you to upgrade GNU
13793*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13794*** your PATH or compiler configuration so that the native linker is
13795*** used, and then restart.
13796
13797_LT_EOF
13798 ;;
13799 *)
13800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13801 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13802 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13803 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13804 else
13805 ld_shlibs_F77=no
13806 fi
13807 ;;
13808 esac
13809 ;;
13810
13811 sunos4*)
13812 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13813 wlarc=
13814 hardcode_direct_F77=yes
13815 hardcode_shlibpath_var_F77=no
13816 ;;
13817
13818 *)
13819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13820 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13821 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13822 else
13823 ld_shlibs_F77=no
13824 fi
13825 ;;
13826 esac
13827
13828 if test "$ld_shlibs_F77" = no; then
13829 runpath_var=
13830 hardcode_libdir_flag_spec_F77=
13831 export_dynamic_flag_spec_F77=
13832 whole_archive_flag_spec_F77=
13833 fi
13834 else
13835 # PORTME fill in a description of your system's linker (not GNU ld)
13836 case $host_os in
13837 aix3*)
13838 allow_undefined_flag_F77=unsupported
13839 always_export_symbols_F77=yes
13840 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'
13841 # Note: this linker hardcodes the directories in LIBPATH if there
13842 # are no directories specified by -L.
13843 hardcode_minus_L_F77=yes
13844 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13845 # Neither direct hardcoding nor static linking is supported with a
13846 # broken collect2.
13847 hardcode_direct_F77=unsupported
13848 fi
13849 ;;
13850
13851 aix4* | aix5*)
13852 if test "$host_cpu" = ia64; then
13853 # On IA64, the linker does run time linking by default, so we don't
13854 # have to do anything special.
13855 aix_use_runtimelinking=no
13856 exp_sym_flag='-Bexport'
13857 no_entry_flag=""
13858 else
13859 # If we're using GNU nm, then we don't want the "-C" option.
13860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13862 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'
13863 else
13864 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'
13865 fi
13866 aix_use_runtimelinking=no
13867
13868 # Test if we are trying to use run time linking or normal
13869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13870 # need to do runtime linking.
13871 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13872 for ld_flag in $LDFLAGS; do
13873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13874 aix_use_runtimelinking=yes
13875 break
13876 fi
13877 done
13878 ;;
13879 esac
13880
13881 exp_sym_flag='-bexport'
13882 no_entry_flag='-bnoentry'
13883 fi
13884
13885 # When large executables or shared objects are built, AIX ld can
13886 # have problems creating the table of contents. If linking a library
13887 # or program results in "error TOC overflow" add -mminimal-toc to
13888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13890
13891 archive_cmds_F77=''
13892 hardcode_direct_F77=yes
13893 hardcode_libdir_separator_F77=':'
13894 link_all_deplibs_F77=yes
13895
13896 if test "$GCC" = yes; then
13897 case $host_os in aix4.[012]|aix4.[012].*)
13898 # We only want to do this on AIX 4.2 and lower, the check
13899 # below for broken collect2 doesn't work under 4.3+
13900 collect2name=`${CC} -print-prog-name=collect2`
13901 if test -f "$collect2name" && \
13902 strings "$collect2name" | grep resolve_lib_name >/dev/null
13903 then
13904 # We have reworked collect2
13905 hardcode_direct_F77=yes
13906 else
13907 # We have old collect2
13908 hardcode_direct_F77=unsupported
13909 # It fails to find uninstalled libraries when the uninstalled
13910 # path is not listed in the libpath. Setting hardcode_minus_L
13911 # to unsupported forces relinking
13912 hardcode_minus_L_F77=yes
13913 hardcode_libdir_flag_spec_F77='-L$libdir'
13914 hardcode_libdir_separator_F77=
13915 fi
13916 ;;
13917 esac
13918 shared_flag='-shared'
13919 if test "$aix_use_runtimelinking" = yes; then
13920 shared_flag="$shared_flag "'${wl}-G'
13921 fi
13922 else
13923 # not using gcc
13924 if test "$host_cpu" = ia64; then
13925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13926 # chokes on -Wl,-G. The following line is correct:
13927 shared_flag='-G'
13928 else
13929 if test "$aix_use_runtimelinking" = yes; then
13930 shared_flag='${wl}-G'
13931 else
13932 shared_flag='${wl}-bM:SRE'
13933 fi
13934 fi
13935 fi
13936
13937 # It seems that -bexpall does not export symbols beginning with
13938 # underscore (_), so it is better to generate a list of symbols to export.
13939 always_export_symbols_F77=yes
13940 if test "$aix_use_runtimelinking" = yes; then
13941 # Warning - without using the other runtime loading flags (-brtl),
13942 # -berok will link without error, but may produce a broken library.
13943 allow_undefined_flag_F77='-berok'
13944 # Determine the default libpath from the value encoded in an empty executable.
13945 cat >conftest.$ac_ext <<_ACEOF
13946 program main
13947
13948 end
13949_ACEOF
13950rm -f conftest.$ac_objext conftest$ac_exeext
13951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13952 (eval $ac_link) 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -z "$ac_f77_werror_flag"
13960 || test ! -s conftest.err'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest$ac_exeext'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972
13973aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13974}'`
13975# Check for a 64-bit object if we didn't find anything.
13976if 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; }
13977}'`; fi
13978else
13979 echo "$as_me: failed program was:" >&5
13980sed 's/^/| /' conftest.$ac_ext >&5
13981
13982fi
13983rm -f conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13986
13987 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13988 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"
13989 else
13990 if test "$host_cpu" = ia64; then
13991 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13992 allow_undefined_flag_F77="-z nodefs"
13993 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"
13994 else
13995 # Determine the default libpath from the value encoded in an empty executable.
13996 cat >conftest.$ac_ext <<_ACEOF
13997 program main
13998
13999 end
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_f77_werror_flag"
14011 || test ! -s conftest.err'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023
14024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14025}'`
14026# Check for a 64-bit object if we didn't find anything.
14027if 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; }
14028}'`; fi
14029else
14030 echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033fi
14034rm -f conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14037
14038 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14039 # Warning - without using the other run time loading flags,
14040 # -berok will link without error, but may produce a broken library.
14041 no_undefined_flag_F77=' ${wl}-bernotok'
14042 allow_undefined_flag_F77=' ${wl}-berok'
14043 # Exported symbols can be pulled into shared objects from archives
14044 whole_archive_flag_spec_F77='$convenience'
14045 archive_cmds_need_lc_F77=yes
14046 # This is similar to how AIX traditionally builds its shared libraries.
14047 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'
14048 fi
14049 fi
14050 ;;
14051
14052 amigaos*)
14053 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)'
14054 hardcode_libdir_flag_spec_F77='-L$libdir'
14055 hardcode_minus_L_F77=yes
14056 # see comment about different semantics on the GNU ld section
14057 ld_shlibs_F77=no
14058 ;;
14059
14060 bsdi[45]*)
14061 export_dynamic_flag_spec_F77=-rdynamic
14062 ;;
14063
14064 cygwin* | mingw* | pw32*)
14065 # When not using gcc, we currently assume that we are using
14066 # Microsoft Visual C++.
14067 # hardcode_libdir_flag_spec is actually meaningless, as there is
14068 # no search path for DLLs.
14069 hardcode_libdir_flag_spec_F77=' '
14070 allow_undefined_flag_F77=unsupported
14071 # Tell ltmain to make .lib files, not .a files.
14072 libext=lib
14073 # Tell ltmain to make .dll files, not .so files.
14074 shrext_cmds=".dll"
14075 # FIXME: Setting linknames here is a bad hack.
14076 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14077 # The linker will automatically build a .lib file if we build a DLL.
14078 old_archive_From_new_cmds_F77='true'
14079 # FIXME: Should let the user specify the lib program.
14080 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14081 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14082 enable_shared_with_static_runtimes_F77=yes
14083 ;;
14084
14085 darwin* | rhapsody*)
14086 case $host_os in
14087 rhapsody* | darwin1.[012])
14088 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14089 ;;
14090 *) # Darwin 1.3 on
14091 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14092 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14093 else
14094 case ${MACOSX_DEPLOYMENT_TARGET} in
14095 10.[012])
14096 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14097 ;;
14098 10.*)
14099 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14100 ;;
14101 esac
14102 fi
14103 ;;
14104 esac
14105 archive_cmds_need_lc_F77=no
14106 hardcode_direct_F77=no
14107 hardcode_automatic_F77=yes
14108 hardcode_shlibpath_var_F77=unsupported
14109 whole_archive_flag_spec_F77=''
14110 link_all_deplibs_F77=yes
14111 if test "$GCC" = yes ; then
14112 output_verbose_link_cmd='echo'
14113 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14114 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14116 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}'
14117 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}'
14118 else
14119 case $cc_basename in
14120 xlc*)
14121 output_verbose_link_cmd='echo'
14122 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14123 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14124 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14125 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}'
14126 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}'
14127 ;;
14128 *)
14129 ld_shlibs_F77=no
14130 ;;
14131 esac
14132 fi
14133 ;;
14134
14135 dgux*)
14136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_libdir_flag_spec_F77='-L$libdir'
14138 hardcode_shlibpath_var_F77=no
14139 ;;
14140
14141 freebsd1*)
14142 ld_shlibs_F77=no
14143 ;;
14144
14145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14146 # support. Future versions do this automatically, but an explicit c++rt0.o
14147 # does not break anything, and helps significantly (at the cost of a little
14148 # extra space).
14149 freebsd2.2*)
14150 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14151 hardcode_libdir_flag_spec_F77='-R$libdir'
14152 hardcode_direct_F77=yes
14153 hardcode_shlibpath_var_F77=no
14154 ;;
14155
14156 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14157 freebsd2*)
14158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14159 hardcode_direct_F77=yes
14160 hardcode_minus_L_F77=yes
14161 hardcode_shlibpath_var_F77=no
14162 ;;
14163
14164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14165 freebsd* | kfreebsd*-gnu | dragonfly*)
14166 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14167 hardcode_libdir_flag_spec_F77='-R$libdir'
14168 hardcode_direct_F77=yes
14169 hardcode_shlibpath_var_F77=no
14170 ;;
14171
14172 hpux9*)
14173 if test "$GCC" = yes; then
14174 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'
14175 else
14176 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'
14177 fi
14178 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14179 hardcode_libdir_separator_F77=:
14180 hardcode_direct_F77=yes
14181
14182 # hardcode_minus_L: Not really in the search PATH,
14183 # but as the default location of the library.
14184 hardcode_minus_L_F77=yes
14185 export_dynamic_flag_spec_F77='${wl}-E'
14186 ;;
14187
14188 hpux10*)
14189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14190 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14191 else
14192 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14193 fi
14194 if test "$with_gnu_ld" = no; then
14195 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14196 hardcode_libdir_separator_F77=:
14197
14198 hardcode_direct_F77=yes
14199 export_dynamic_flag_spec_F77='${wl}-E'
14200
14201 # hardcode_minus_L: Not really in the search PATH,
14202 # but as the default location of the library.
14203 hardcode_minus_L_F77=yes
14204 fi
14205 ;;
14206
14207 hpux11*)
14208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14209 case $host_cpu in
14210 hppa*64*)
14211 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 ;;
14213 ia64*)
14214 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14215 ;;
14216 *)
14217 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14218 ;;
14219 esac
14220 else
14221 case $host_cpu in
14222 hppa*64*)
14223 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14224 ;;
14225 ia64*)
14226 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14227 ;;
14228 *)
14229 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14230 ;;
14231 esac
14232 fi
14233 if test "$with_gnu_ld" = no; then
14234 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14235 hardcode_libdir_separator_F77=:
14236
14237 case $host_cpu in
14238 hppa*64*|ia64*)
14239 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14240 hardcode_direct_F77=no
14241 hardcode_shlibpath_var_F77=no
14242 ;;
14243 *)
14244 hardcode_direct_F77=yes
14245 export_dynamic_flag_spec_F77='${wl}-E'
14246
14247 # hardcode_minus_L: Not really in the search PATH,
14248 # but as the default location of the library.
14249 hardcode_minus_L_F77=yes
14250 ;;
14251 esac
14252 fi
14253 ;;
14254
14255 irix5* | irix6* | nonstopux*)
14256 if test "$GCC" = yes; then
14257 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'
14258 else
14259 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'
14260 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14261 fi
14262 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14263 hardcode_libdir_separator_F77=:
14264 link_all_deplibs_F77=yes
14265 ;;
14266
14267 netbsd*)
14268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14270 else
14271 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14272 fi
14273 hardcode_libdir_flag_spec_F77='-R$libdir'
14274 hardcode_direct_F77=yes
14275 hardcode_shlibpath_var_F77=no
14276 ;;
14277
14278 newsos6)
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_direct_F77=yes
14281 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14282 hardcode_libdir_separator_F77=:
14283 hardcode_shlibpath_var_F77=no
14284 ;;
14285
14286 openbsd*)
14287 hardcode_direct_F77=yes
14288 hardcode_shlibpath_var_F77=no
14289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14290 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14291 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14292 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14293 export_dynamic_flag_spec_F77='${wl}-E'
14294 else
14295 case $host_os in
14296 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14297 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_libdir_flag_spec_F77='-R$libdir'
14299 ;;
14300 *)
14301 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14303 ;;
14304 esac
14305 fi
14306 ;;
14307
14308 os2*)
14309 hardcode_libdir_flag_spec_F77='-L$libdir'
14310 hardcode_minus_L_F77=yes
14311 allow_undefined_flag_F77=unsupported
14312 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'
14313 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14314 ;;
14315
14316 osf3*)
14317 if test "$GCC" = yes; then
14318 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14319 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'
14320 else
14321 allow_undefined_flag_F77=' -expect_unresolved \*'
14322 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'
14323 fi
14324 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14325 hardcode_libdir_separator_F77=:
14326 ;;
14327
14328 osf4* | osf5*) # as osf3* with the addition of -msym flag
14329 if test "$GCC" = yes; then
14330 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14331 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'
14332 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14333 else
14334 allow_undefined_flag_F77=' -expect_unresolved \*'
14335 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'
14336 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~
14337 $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'
14338
14339 # Both c and cxx compiler support -rpath directly
14340 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14341 fi
14342 hardcode_libdir_separator_F77=:
14343 ;;
14344
14345 solaris*)
14346 no_undefined_flag_F77=' -z text'
14347 if test "$GCC" = yes; then
14348 wlarc='${wl}'
14349 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14351 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14352 else
14353 wlarc=''
14354 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14355 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14357 fi
14358 hardcode_libdir_flag_spec_F77='-R$libdir'
14359 hardcode_shlibpath_var_F77=no
14360 case $host_os in
14361 solaris2.[0-5] | solaris2.[0-5].*) ;;
14362 *)
14363 # The compiler driver will combine linker options so we
14364 # cannot just pass the convience library names through
14365 # without $wl, iff we do not link with $LD.
14366 # Luckily, gcc supports the same syntax we need for Sun Studio.
14367 # Supported since Solaris 2.6 (maybe 2.5.1?)
14368 case $wlarc in
14369 '')
14370 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14371 *)
14372 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' ;;
14373 esac ;;
14374 esac
14375 link_all_deplibs_F77=yes
14376 ;;
14377
14378 sunos4*)
14379 if test "x$host_vendor" = xsequent; then
14380 # Use $CC to link under sequent, because it throws in some extra .o
14381 # files that make .init and .fini sections work.
14382 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14383 else
14384 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14385 fi
14386 hardcode_libdir_flag_spec_F77='-L$libdir'
14387 hardcode_direct_F77=yes
14388 hardcode_minus_L_F77=yes
14389 hardcode_shlibpath_var_F77=no
14390 ;;
14391
14392 sysv4)
14393 case $host_vendor in
14394 sni)
14395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14396 hardcode_direct_F77=yes # is this really true???
14397 ;;
14398 siemens)
14399 ## LD is ld it makes a PLAMLIB
14400 ## CC just makes a GrossModule.
14401 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14402 reload_cmds_F77='$CC -r -o $output$reload_objs'
14403 hardcode_direct_F77=no
14404 ;;
14405 motorola)
14406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14408 ;;
14409 esac
14410 runpath_var='LD_RUN_PATH'
14411 hardcode_shlibpath_var_F77=no
14412 ;;
14413
14414 sysv4.3*)
14415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416 hardcode_shlibpath_var_F77=no
14417 export_dynamic_flag_spec_F77='-Bexport'
14418 ;;
14419
14420 sysv4*MP*)
14421 if test -d /usr/nec; then
14422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_shlibpath_var_F77=no
14424 runpath_var=LD_RUN_PATH
14425 hardcode_runpath_var=yes
14426 ld_shlibs_F77=yes
14427 fi
14428 ;;
14429
14430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14431 no_undefined_flag_F77='${wl}-z,text'
14432 archive_cmds_need_lc_F77=no
14433 hardcode_shlibpath_var_F77=no
14434 runpath_var='LD_RUN_PATH'
14435
14436 if test "$GCC" = yes; then
14437 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14438 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14439 else
14440 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14441 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14442 fi
14443 ;;
14444
14445 sysv5* | sco3.2v5* | sco5v6*)
14446 # Note: We can NOT use -z defs as we might desire, because we do not
14447 # link with -lc, and that would cause any symbols used from libc to
14448 # always be unresolved, which means just about no library would
14449 # ever link correctly. If we're not using GNU ld we use -z text
14450 # though, which does catch some bad symbols but isn't as heavy-handed
14451 # as -z defs.
14452 no_undefined_flag_F77='${wl}-z,text'
14453 allow_undefined_flag_F77='${wl}-z,nodefs'
14454 archive_cmds_need_lc_F77=no
14455 hardcode_shlibpath_var_F77=no
14456 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14457 hardcode_libdir_separator_F77=':'
14458 link_all_deplibs_F77=yes
14459 export_dynamic_flag_spec_F77='${wl}-Bexport'
14460 runpath_var='LD_RUN_PATH'
14461
14462 if test "$GCC" = yes; then
14463 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14464 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14465 else
14466 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14467 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14468 fi
14469 ;;
14470
14471 uts4*)
14472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_libdir_flag_spec_F77='-L$libdir'
14474 hardcode_shlibpath_var_F77=no
14475 ;;
14476
14477 *)
14478 ld_shlibs_F77=no
14479 ;;
14480 esac
14481 fi
14482
14483echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14484echo "${ECHO_T}$ld_shlibs_F77" >&6
14485test "$ld_shlibs_F77" = no && can_build_shared=no
14486
14487#
14488# Do we need to explicitly link libc?
14489#
14490case "x$archive_cmds_need_lc_F77" in
14491x|xyes)
14492 # Assume -lc should be added
14493 archive_cmds_need_lc_F77=yes
14494
14495 if test "$enable_shared" = yes && test "$GCC" = yes; then
14496 case $archive_cmds_F77 in
14497 *'~'*)
14498 # FIXME: we may have to deal with multi-command sequences.
14499 ;;
14500 '$CC '*)
14501 # Test whether the compiler implicitly links with -lc since on some
14502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14503 # to ld, don't add -lc before -lgcc.
14504 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14505echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14506 $rm conftest*
14507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14508
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } 2>conftest.err; then
14514 soname=conftest
14515 lib=conftest
14516 libobjs=conftest.$ac_objext
14517 deplibs=
14518 wl=$lt_prog_compiler_wl_F77
14519 pic_flag=$lt_prog_compiler_pic_F77
14520 compiler_flags=-v
14521 linker_flags=-v
14522 verstring=
14523 output_objdir=.
14524 libname=conftest
14525 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14526 allow_undefined_flag_F77=
14527 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14528 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }
14532 then
14533 archive_cmds_need_lc_F77=no
14534 else
14535 archive_cmds_need_lc_F77=yes
14536 fi
14537 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14538 else
14539 cat conftest.err 1>&5
14540 fi
14541 $rm conftest*
14542 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14543echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14544 ;;
14545 esac
14546 fi
14547 ;;
14548esac
14549
14550echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14551echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14552library_names_spec=
14553libname_spec='lib$name'
14554soname_spec=
14555shrext_cmds=".so"
14556postinstall_cmds=
14557postuninstall_cmds=
14558finish_cmds=
14559finish_eval=
14560shlibpath_var=
14561shlibpath_overrides_runpath=unknown
14562version_type=none
14563dynamic_linker="$host_os ld.so"
14564sys_lib_dlsearch_path_spec="/lib /usr/lib"
14565if test "$GCC" = yes; then
14566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14568 # if the path contains ";" then we assume it to be the separator
14569 # otherwise default to the standard path separator (i.e. ":") - it is
14570 # assumed that no part of a normal pathname contains ";" but that should
14571 # okay in the real world where ";" in dirpaths is itself problematic.
14572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14573 else
14574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14575 fi
14576else
14577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14578fi
14579need_lib_prefix=unknown
14580hardcode_into_libs=no
14581
14582# when you set need_version to no, make sure it does not cause -set_version
14583# flags to be left without arguments
14584need_version=unknown
14585
14586case $host_os in
14587aix3*)
14588 version_type=linux
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14590 shlibpath_var=LIBPATH
14591
14592 # AIX 3 has no versioning support, so we append a major version to the name.
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 ;;
14595
14596aix4* | aix5*)
14597 version_type=linux
14598 need_lib_prefix=no
14599 need_version=no
14600 hardcode_into_libs=yes
14601 if test "$host_cpu" = ia64; then
14602 # AIX 5 supports IA64
14603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 else
14606 # With GCC up to 2.95.x, collect2 would create an import file
14607 # for dependence libraries. The import file would start with
14608 # the line `#! .'. This would cause the generated library to
14609 # depend on `.', always an invalid library. This was fixed in
14610 # development snapshots of GCC prior to 3.0.
14611 case $host_os in
14612 aix4 | aix4.[01] | aix4.[01].*)
14613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14614 echo ' yes '
14615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14616 :
14617 else
14618 can_build_shared=no
14619 fi
14620 ;;
14621 esac
14622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14623 # soname into executable. Probably we can add versioning support to
14624 # collect2, so additional links can be useful in future.
14625 if test "$aix_use_runtimelinking" = yes; then
14626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14627 # instead of lib<name>.a to let people know that these are not
14628 # typical AIX shared libraries.
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 else
14631 # We preserve .a as extension for shared libraries through AIX4.2
14632 # and later when we are not doing run time linking.
14633 library_names_spec='${libname}${release}.a $libname.a'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 fi
14636 shlibpath_var=LIBPATH
14637 fi
14638 ;;
14639
14640amigaos*)
14641 library_names_spec='$libname.ixlibrary $libname.a'
14642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14643 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'
14644 ;;
14645
14646beos*)
14647 library_names_spec='${libname}${shared_ext}'
14648 dynamic_linker="$host_os ld.so"
14649 shlibpath_var=LIBRARY_PATH
14650 ;;
14651
14652bsdi[45]*)
14653 version_type=linux
14654 need_version=no
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14661 # the default ld.so.conf also contains /usr/contrib/lib and
14662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14663 # libtool to hard-code these into programs
14664 ;;
14665
14666cygwin* | mingw* | pw32*)
14667 version_type=windows
14668 shrext_cmds=".dll"
14669 need_version=no
14670 need_lib_prefix=no
14671
14672 case $GCC,$host_os in
14673 yes,cygwin* | yes,mingw* | yes,pw32*)
14674 library_names_spec='$libname.dll.a'
14675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14676 postinstall_cmds='base_file=`basename \${file}`~
14677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14678 dldir=$destdir/`dirname \$dlpath`~
14679 test -d \$dldir || mkdir -p \$dldir~
14680 $install_prog $dir/$dlname \$dldir/$dlname~
14681 chmod a+x \$dldir/$dlname'
14682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14683 dlpath=$dir/\$dldll~
14684 $rm \$dlpath'
14685 shlibpath_overrides_runpath=yes
14686
14687 case $host_os in
14688 cygwin*)
14689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14691 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14692 ;;
14693 mingw*)
14694 # MinGW DLLs use traditional 'lib' prefix
14695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14698 # It is most probably a Windows format PATH printed by
14699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14700 # path with ; separators, and with drive letters. We can handle the
14701 # drive letters (cygwin fileutils understands them), so leave them,
14702 # especially as we might pass files found there to a mingw objdump,
14703 # which wouldn't understand a cygwinified path. Ahh.
14704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14705 else
14706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14707 fi
14708 ;;
14709 pw32*)
14710 # pw32 DLLs use 'pw' prefix rather than 'lib'
14711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14712 ;;
14713 esac
14714 ;;
14715
14716 *)
14717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14718 ;;
14719 esac
14720 dynamic_linker='Win32 ld.exe'
14721 # FIXME: first we should search . and the directory the executable is in
14722 shlibpath_var=PATH
14723 ;;
14724
14725darwin* | rhapsody*)
14726 dynamic_linker="$host_os dyld"
14727 version_type=darwin
14728 need_lib_prefix=no
14729 need_version=no
14730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14731 soname_spec='${libname}${release}${major}$shared_ext'
14732 shlibpath_overrides_runpath=yes
14733 shlibpath_var=DYLD_LIBRARY_PATH
14734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14735 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14736 if test "$GCC" = yes; then
14737 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"`
14738 else
14739 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14740 fi
14741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14742 ;;
14743
14744dgux*)
14745 version_type=linux
14746 need_lib_prefix=no
14747 need_version=no
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 ;;
14752
14753freebsd1*)
14754 dynamic_linker=no
14755 ;;
14756
14757kfreebsd*-gnu)
14758 version_type=linux
14759 need_lib_prefix=no
14760 need_version=no
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 hardcode_into_libs=yes
14766 dynamic_linker='GNU ld.so'
14767 ;;
14768
14769freebsd* | dragonfly*)
14770 # DragonFly does not have aout. When/if they implement a new
14771 # versioning mechanism, adjust this.
14772 if test -x /usr/bin/objformat; then
14773 objformat=`/usr/bin/objformat`
14774 else
14775 case $host_os in
14776 freebsd[123]*) objformat=aout ;;
14777 *) objformat=elf ;;
14778 esac
14779 fi
14780 version_type=freebsd-$objformat
14781 case $version_type in
14782 freebsd-elf*)
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14784 need_version=no
14785 need_lib_prefix=no
14786 ;;
14787 freebsd-*)
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14789 need_version=yes
14790 ;;
14791 esac
14792 shlibpath_var=LD_LIBRARY_PATH
14793 case $host_os in
14794 freebsd2*)
14795 shlibpath_overrides_runpath=yes
14796 ;;
14797 freebsd3.[01]* | freebsdelf3.[01]*)
14798 shlibpath_overrides_runpath=yes
14799 hardcode_into_libs=yes
14800 ;;
14801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14803 shlibpath_overrides_runpath=no
14804 hardcode_into_libs=yes
14805 ;;
14806 freebsd*) # from 4.6 on
14807 shlibpath_overrides_runpath=yes
14808 hardcode_into_libs=yes
14809 ;;
14810 esac
14811 ;;
14812
14813gnu*)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 hardcode_into_libs=yes
14821 ;;
14822
14823hpux9* | hpux10* | hpux11*)
14824 # Give a soname corresponding to the major version so that dld.sl refuses to
14825 # link against other versions.
14826 version_type=sunos
14827 need_lib_prefix=no
14828 need_version=no
14829 case $host_cpu in
14830 ia64*)
14831 shrext_cmds='.so'
14832 hardcode_into_libs=yes
14833 dynamic_linker="$host_os dld.so"
14834 shlibpath_var=LD_LIBRARY_PATH
14835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 if test "X$HPUX_IA64_MODE" = X32; then
14839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14840 else
14841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14842 fi
14843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14844 ;;
14845 hppa*64*)
14846 shrext_cmds='.sl'
14847 hardcode_into_libs=yes
14848 dynamic_linker="$host_os dld.sl"
14849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14855 ;;
14856 *)
14857 shrext_cmds='.sl'
14858 dynamic_linker="$host_os dld.sl"
14859 shlibpath_var=SHLIB_PATH
14860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 ;;
14864 esac
14865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14866 postinstall_cmds='chmod 555 $lib'
14867 ;;
14868
14869interix3*)
14870 version_type=linux
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=no
14878 hardcode_into_libs=yes
14879 ;;
14880
14881irix5* | irix6* | nonstopux*)
14882 case $host_os in
14883 nonstopux*) version_type=nonstopux ;;
14884 *)
14885 if test "$lt_cv_prog_gnu_ld" = yes; then
14886 version_type=linux
14887 else
14888 version_type=irix
14889 fi ;;
14890 esac
14891 need_lib_prefix=no
14892 need_version=no
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14895 case $host_os in
14896 irix5* | nonstopux*)
14897 libsuff= shlibsuff=
14898 ;;
14899 *)
14900 case $LD in # libtool.m4 will add one of these switches to LD
14901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14902 libsuff= shlibsuff= libmagic=32-bit;;
14903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14904 libsuff=32 shlibsuff=N32 libmagic=N32;;
14905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14907 *) libsuff= shlibsuff= libmagic=never-match;;
14908 esac
14909 ;;
14910 esac
14911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14912 shlibpath_overrides_runpath=no
14913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14915 hardcode_into_libs=yes
14916 ;;
14917
14918# No shared lib support for Linux oldld, aout, or coff.
14919linux*oldld* | linux*aout* | linux*coff*)
14920 dynamic_linker=no
14921 ;;
14922
14923# This must be Linux ELF.
14924linux*)
14925 version_type=linux
14926 need_lib_prefix=no
14927 need_version=no
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=no
14933 # This implies no fast_install, which is unacceptable.
14934 # Some rework will be needed to allow for fast_install
14935 # before this can be enabled.
14936 hardcode_into_libs=yes
14937
14938 # find out which ABI we are using
14939 libsuff=
14940 case "$host_cpu" in
14941 x86_64*|s390x*|powerpc64*)
14942 echo '#line 14942 "configure"' > conftest.$ac_ext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; then
14948 case `/usr/bin/file conftest.$ac_objext` in
14949 *64-bit*)
14950 libsuff=64
14951 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14952 ;;
14953 esac
14954 fi
14955 rm -rf conftest*
14956 ;;
14957 esac
14958
14959 # Append ld.so.conf contents to the search path
14960 if test -f /etc/ld.so.conf; then
14961 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' ' '`
14962 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14963 fi
14964
14965 # We used to test for /lib/ld.so.1 and disable shared libraries on
14966 # powerpc, because MkLinux only supported shared libraries with the
14967 # GNU dynamic linker. Since this was broken with cross compilers,
14968 # most powerpc-linux boxes support dynamic linking these days and
14969 # people can always --disable-shared, the test was removed, and we
14970 # assume the GNU/Linux dynamic linker is in use.
14971 dynamic_linker='GNU/Linux ld.so'
14972 ;;
14973
14974knetbsd*-gnu)
14975 version_type=linux
14976 need_lib_prefix=no
14977 need_version=no
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 shlibpath_var=LD_LIBRARY_PATH
14981 shlibpath_overrides_runpath=no
14982 hardcode_into_libs=yes
14983 dynamic_linker='GNU ld.so'
14984 ;;
14985
14986netbsd*)
14987 version_type=sunos
14988 need_lib_prefix=no
14989 need_version=no
14990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14993 dynamic_linker='NetBSD (a.out) ld.so'
14994 else
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 dynamic_linker='NetBSD ld.elf_so'
14998 fi
14999 shlibpath_var=LD_LIBRARY_PATH
15000 shlibpath_overrides_runpath=yes
15001 hardcode_into_libs=yes
15002 ;;
15003
15004newsos6)
15005 version_type=linux
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath=yes
15009 ;;
15010
15011nto-qnx*)
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=yes
15019 ;;
15020
15021openbsd*)
15022 version_type=sunos
15023 sys_lib_dlsearch_path_spec="/usr/lib"
15024 need_lib_prefix=no
15025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15026 case $host_os in
15027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15028 *) need_version=no ;;
15029 esac
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15034 case $host_os in
15035 openbsd2.[89] | openbsd2.[89].*)
15036 shlibpath_overrides_runpath=no
15037 ;;
15038 *)
15039 shlibpath_overrides_runpath=yes
15040 ;;
15041 esac
15042 else
15043 shlibpath_overrides_runpath=yes
15044 fi
15045 ;;
15046
15047os2*)
15048 libname_spec='$name'
15049 shrext_cmds=".dll"
15050 need_lib_prefix=no
15051 library_names_spec='$libname${shared_ext} $libname.a'
15052 dynamic_linker='OS/2 ld.exe'
15053 shlibpath_var=LIBPATH
15054 ;;
15055
15056osf3* | osf4* | osf5*)
15057 version_type=osf
15058 need_lib_prefix=no
15059 need_version=no
15060 soname_spec='${libname}${release}${shared_ext}$major'
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062 shlibpath_var=LD_LIBRARY_PATH
15063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15065 ;;
15066
15067solaris*)
15068 version_type=linux
15069 need_lib_prefix=no
15070 need_version=no
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 shlibpath_var=LD_LIBRARY_PATH
15074 shlibpath_overrides_runpath=yes
15075 hardcode_into_libs=yes
15076 # ldd complains unless libraries are executable
15077 postinstall_cmds='chmod +x $lib'
15078 ;;
15079
15080sunos4*)
15081 version_type=sunos
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=yes
15086 if test "$with_gnu_ld" = yes; then
15087 need_lib_prefix=no
15088 fi
15089 need_version=yes
15090 ;;
15091
15092sysv4 | sysv4.3*)
15093 version_type=linux
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15097 case $host_vendor in
15098 sni)
15099 shlibpath_overrides_runpath=no
15100 need_lib_prefix=no
15101 export_dynamic_flag_spec='${wl}-Blargedynsym'
15102 runpath_var=LD_RUN_PATH
15103 ;;
15104 siemens)
15105 need_lib_prefix=no
15106 ;;
15107 motorola)
15108 need_lib_prefix=no
15109 need_version=no
15110 shlibpath_overrides_runpath=no
15111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15112 ;;
15113 esac
15114 ;;
15115
15116sysv4*MP*)
15117 if test -d /usr/nec ;then
15118 version_type=linux
15119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15120 soname_spec='$libname${shared_ext}.$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 fi
15123 ;;
15124
15125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15126 version_type=freebsd-elf
15127 need_lib_prefix=no
15128 need_version=no
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 hardcode_into_libs=yes
15133 if test "$with_gnu_ld" = yes; then
15134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15135 shlibpath_overrides_runpath=no
15136 else
15137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15138 shlibpath_overrides_runpath=yes
15139 case $host_os in
15140 sco3.2v5*)
15141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15142 ;;
15143 esac
15144 fi
15145 sys_lib_dlsearch_path_spec='/usr/lib'
15146 ;;
15147
15148uts4*)
15149 version_type=linux
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 ;;
15154
15155*)
15156 dynamic_linker=no
15157 ;;
15158esac
15159echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15160echo "${ECHO_T}$dynamic_linker" >&6
15161test "$dynamic_linker" = no && can_build_shared=no
15162
15163variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15164if test "$GCC" = yes; then
15165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15166fi
15167
15168echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15169echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15170hardcode_action_F77=
15171if test -n "$hardcode_libdir_flag_spec_F77" || \
15172 test -n "$runpath_var_F77" || \
15173 test "X$hardcode_automatic_F77" = "Xyes" ; then
15174
15175 # We can hardcode non-existant directories.
15176 if test "$hardcode_direct_F77" != no &&
15177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15178 # have to relink, otherwise we might link with an installed library
15179 # when we should be linking with a yet-to-be-installed one
15180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15181 test "$hardcode_minus_L_F77" != no; then
15182 # Linking always hardcodes the temporary library directory.
15183 hardcode_action_F77=relink
15184 else
15185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15186 hardcode_action_F77=immediate
15187 fi
15188else
15189 # We cannot hardcode anything, or else we can only hardcode existing
15190 # directories.
15191 hardcode_action_F77=unsupported
15192fi
15193echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15194echo "${ECHO_T}$hardcode_action_F77" >&6
15195
15196if test "$hardcode_action_F77" = relink; then
15197 # Fast installation is not supported
15198 enable_fast_install=no
15199elif test "$shlibpath_overrides_runpath" = yes ||
15200 test "$enable_shared" = no; then
15201 # Fast installation is not necessary
15202 enable_fast_install=needless
15203fi
15204
15205
15206# The else clause should only fire when bootstrapping the
15207# libtool distribution, otherwise you forgot to ship ltmain.sh
15208# with your package, and you will get complaints that there are
15209# no rules to generate ltmain.sh.
15210if test -f "$ltmain"; then
15211 # See if we are running on zsh, and set the options which allow our commands through
15212 # without removal of \ escapes.
15213 if test -n "${ZSH_VERSION+set}" ; then
15214 setopt NO_GLOB_SUBST
15215 fi
15216 # Now quote all the things that may contain metacharacters while being
15217 # careful not to overquote the AC_SUBSTed values. We take copies of the
15218 # variables and quote the copies for generation of the libtool script.
15219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15220 SED SHELL STRIP \
15221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15223 deplibs_check_method reload_flag reload_cmds need_locks \
15224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15225 lt_cv_sys_global_symbol_to_c_name_address \
15226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15227 old_postinstall_cmds old_postuninstall_cmds \
15228 compiler_F77 \
15229 CC_F77 \
15230 LD_F77 \
15231 lt_prog_compiler_wl_F77 \
15232 lt_prog_compiler_pic_F77 \
15233 lt_prog_compiler_static_F77 \
15234 lt_prog_compiler_no_builtin_flag_F77 \
15235 export_dynamic_flag_spec_F77 \
15236 thread_safe_flag_spec_F77 \
15237 whole_archive_flag_spec_F77 \
15238 enable_shared_with_static_runtimes_F77 \
15239 old_archive_cmds_F77 \
15240 old_archive_from_new_cmds_F77 \
15241 predep_objects_F77 \
15242 postdep_objects_F77 \
15243 predeps_F77 \
15244 postdeps_F77 \
15245 compiler_lib_search_path_F77 \
15246 archive_cmds_F77 \
15247 archive_expsym_cmds_F77 \
15248 postinstall_cmds_F77 \
15249 postuninstall_cmds_F77 \
15250 old_archive_from_expsyms_cmds_F77 \
15251 allow_undefined_flag_F77 \
15252 no_undefined_flag_F77 \
15253 export_symbols_cmds_F77 \
15254 hardcode_libdir_flag_spec_F77 \
15255 hardcode_libdir_flag_spec_ld_F77 \
15256 hardcode_libdir_separator_F77 \
15257 hardcode_automatic_F77 \
15258 module_cmds_F77 \
15259 module_expsym_cmds_F77 \
15260 lt_cv_prog_compiler_c_o_F77 \
15261 exclude_expsyms_F77 \
15262 include_expsyms_F77; do
15263
15264 case $var in
15265 old_archive_cmds_F77 | \
15266 old_archive_from_new_cmds_F77 | \
15267 archive_cmds_F77 | \
15268 archive_expsym_cmds_F77 | \
15269 module_cmds_F77 | \
15270 module_expsym_cmds_F77 | \
15271 old_archive_from_expsyms_cmds_F77 | \
15272 export_symbols_cmds_F77 | \
15273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15274 postinstall_cmds | postuninstall_cmds | \
15275 old_postinstall_cmds | old_postuninstall_cmds | \
15276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15277 # Double-quote double-evaled strings.
15278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15279 ;;
15280 *)
15281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15282 ;;
15283 esac
15284 done
15285
15286 case $lt_echo in
15287 *'\$0 --fallback-echo"')
15288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15289 ;;
15290 esac
15291
15292cfgfile="$ofile"
15293
15294 cat <<__EOF__ >> "$cfgfile"
15295# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15296
15297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15298
15299# Shell to use when invoking shell scripts.
15300SHELL=$lt_SHELL
15301
15302# Whether or not to build shared libraries.
15303build_libtool_libs=$enable_shared
15304
15305# Whether or not to build static libraries.
15306build_old_libs=$enable_static
15307
15308# Whether or not to add -lc for building shared libraries.
15309build_libtool_need_lc=$archive_cmds_need_lc_F77
15310
15311# Whether or not to disallow shared libs when runtime libs are static
15312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15313
15314# Whether or not to optimize for fast installation.
15315fast_install=$enable_fast_install
15316
15317# The host system.
15318host_alias=$host_alias
15319host=$host
15320host_os=$host_os
15321
15322# The build system.
15323build_alias=$build_alias
15324build=$build
15325build_os=$build_os
15326
15327# An echo program that does not interpret backslashes.
15328echo=$lt_echo
15329
15330# The archiver.
15331AR=$lt_AR
15332AR_FLAGS=$lt_AR_FLAGS
15333
15334# A C compiler.
15335LTCC=$lt_LTCC
15336
15337# LTCC compiler flags.
15338LTCFLAGS=$lt_LTCFLAGS
15339
15340# A language-specific compiler.
15341CC=$lt_compiler_F77
15342
15343# Is the compiler the GNU C compiler?
15344with_gcc=$GCC_F77
15345
15346gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15347gcc_ver=\`gcc -dumpversion\`
15348
15349# An ERE matcher.
15350EGREP=$lt_EGREP
15351
15352# The linker used to build libraries.
15353LD=$lt_LD_F77
15354
15355# Whether we need hard or soft links.
15356LN_S=$lt_LN_S
15357
15358# A BSD-compatible nm program.
15359NM=$lt_NM
15360
15361# A symbol stripping program
15362STRIP=$lt_STRIP
15363
15364# Used to examine libraries when file_magic_cmd begins "file"
15365MAGIC_CMD=$MAGIC_CMD
15366
15367# Used on cygwin: DLL creation program.
15368DLLTOOL="$DLLTOOL"
15369
15370# Used on cygwin: object dumper.
15371OBJDUMP="$OBJDUMP"
15372
15373# Used on cygwin: assembler.
15374AS="$AS"
15375
15376# The name of the directory that contains temporary libtool files.
15377objdir=$objdir
15378
15379# How to create reloadable object files.
15380reload_flag=$lt_reload_flag
15381reload_cmds=$lt_reload_cmds
15382
15383# How to pass a linker flag through the compiler.
15384wl=$lt_lt_prog_compiler_wl_F77
15385
15386# Object file suffix (normally "o").
15387objext="$ac_objext"
15388
15389# Old archive suffix (normally "a").
15390libext="$libext"
15391
15392# Shared library suffix (normally ".so").
15393shrext_cmds='$shrext_cmds'
15394
15395# Executable file suffix (normally "").
15396exeext="$exeext"
15397
15398# Additional compiler flags for building library objects.
15399pic_flag=$lt_lt_prog_compiler_pic_F77
15400pic_mode=$pic_mode
15401
15402# What is the maximum length of a command?
15403max_cmd_len=$lt_cv_sys_max_cmd_len
15404
15405# Does compiler simultaneously support -c and -o options?
15406compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15407
15408# Must we lock files when doing compilation?
15409need_locks=$lt_need_locks
15410
15411# Do we need the lib prefix for modules?
15412need_lib_prefix=$need_lib_prefix
15413
15414# Do we need a version for libraries?
15415need_version=$need_version
15416
15417# Whether dlopen is supported.
15418dlopen_support=$enable_dlopen
15419
15420# Whether dlopen of programs is supported.
15421dlopen_self=$enable_dlopen_self
15422
15423# Whether dlopen of statically linked programs is supported.
15424dlopen_self_static=$enable_dlopen_self_static
15425
15426# Compiler flag to prevent dynamic linking.
15427link_static_flag=$lt_lt_prog_compiler_static_F77
15428
15429# Compiler flag to turn off builtin functions.
15430no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15431
15432# Compiler flag to allow reflexive dlopens.
15433export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15434
15435# Compiler flag to generate shared objects directly from archives.
15436whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15437
15438# Compiler flag to generate thread-safe objects.
15439thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15440
15441# Library versioning type.
15442version_type=$version_type
15443
15444# Format of library name prefix.
15445libname_spec=$lt_libname_spec
15446
15447# List of archive names. First name is the real one, the rest are links.
15448# The last name is the one that the linker finds with -lNAME.
15449library_names_spec=$lt_library_names_spec
15450
15451# The coded name of the library, if different from the real name.
15452soname_spec=$lt_soname_spec
15453
15454# Commands used to build and install an old-style archive.
15455RANLIB=$lt_RANLIB
15456old_archive_cmds=$lt_old_archive_cmds_F77
15457old_postinstall_cmds=$lt_old_postinstall_cmds
15458old_postuninstall_cmds=$lt_old_postuninstall_cmds
15459
15460# Create an old-style archive from a shared archive.
15461old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15462
15463# Create a temporary old-style archive to link instead of a shared archive.
15464old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15465
15466# Commands used to build and install a shared archive.
15467archive_cmds=$lt_archive_cmds_F77
15468archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15469postinstall_cmds=$lt_postinstall_cmds
15470postuninstall_cmds=$lt_postuninstall_cmds
15471
15472# Commands used to build a loadable module (assumed same as above if empty)
15473module_cmds=$lt_module_cmds_F77
15474module_expsym_cmds=$lt_module_expsym_cmds_F77
15475
15476# Commands to strip libraries.
15477old_striplib=$lt_old_striplib
15478striplib=$lt_striplib
15479
15480# Dependencies to place before the objects being linked to create a
15481# shared library.
15482predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15483
15484# Dependencies to place after the objects being linked to create a
15485# shared library.
15486postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15487
15488# Dependencies to place before the objects being linked to create a
15489# shared library.
15490predeps=$lt_predeps_F77
15491
15492# Dependencies to place after the objects being linked to create a
15493# shared library.
15494postdeps=$lt_postdeps_F77
15495
15496# The library search path used internally by the compiler when linking
15497# a shared library.
15498compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15499
15500# Method to check whether dependent libraries are shared objects.
15501deplibs_check_method=$lt_deplibs_check_method
15502
15503# Command to use when deplibs_check_method == file_magic.
15504file_magic_cmd=$lt_file_magic_cmd
15505
15506# Flag that allows shared libraries with undefined symbols to be built.
15507allow_undefined_flag=$lt_allow_undefined_flag_F77
15508
15509# Flag that forces no undefined symbols.
15510no_undefined_flag=$lt_no_undefined_flag_F77
15511
15512# Commands used to finish a libtool library installation in a directory.
15513finish_cmds=$lt_finish_cmds
15514
15515# Same as above, but a single script fragment to be evaled but not shown.
15516finish_eval=$lt_finish_eval
15517
15518# Take the output of nm and produce a listing of raw symbols and C names.
15519global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15520
15521# Transform the output of nm in a proper C declaration
15522global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15523
15524# Transform the output of nm in a C name address pair
15525global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15526
15527# This is the shared library runtime path variable.
15528runpath_var=$runpath_var
15529
15530# This is the shared library path variable.
15531shlibpath_var=$shlibpath_var
15532
15533# Is shlibpath searched before the hard-coded library search path?
15534shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15535
15536# How to hardcode a shared library path into an executable.
15537hardcode_action=$hardcode_action_F77
15538
15539# Whether we should hardcode library paths into libraries.
15540hardcode_into_libs=$hardcode_into_libs
15541
15542# Flag to hardcode \$libdir into a binary during linking.
15543# This must work even if \$libdir does not exist.
15544hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15545
15546# If ld is used when linking, flag to hardcode \$libdir into
15547# a binary during linking. This must work even if \$libdir does
15548# not exist.
15549hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15550
15551# Whether we need a single -rpath flag with a separated argument.
15552hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15553
15554# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15555# resulting binary.
15556hardcode_direct=$hardcode_direct_F77
15557
15558# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15559# resulting binary.
15560hardcode_minus_L=$hardcode_minus_L_F77
15561
15562# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15563# the resulting binary.
15564hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15565
15566# Set to yes if building a shared library automatically hardcodes DIR into the library
15567# and all subsequent libraries and executables linked against it.
15568hardcode_automatic=$hardcode_automatic_F77
15569
15570# Variables whose values should be saved in libtool wrapper scripts and
15571# restored at relink time.
15572variables_saved_for_relink="$variables_saved_for_relink"
15573
15574# Whether libtool must link a program against all its dependency libraries.
15575link_all_deplibs=$link_all_deplibs_F77
15576
15577# Compile-time system search path for libraries
15578sys_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"\`
15579
15580# Run-time system search path for libraries
15581sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15582
15583# Fix the shell variable \$srcfile for the compiler.
15584fix_srcfile_path="$fix_srcfile_path_F77"
15585
15586# Set to yes if exported symbols are required.
15587always_export_symbols=$always_export_symbols_F77
15588
15589# The commands to list exported symbols.
15590export_symbols_cmds=$lt_export_symbols_cmds_F77
15591
15592# The commands to extract the exported symbol list from a shared archive.
15593extract_expsyms_cmds=$lt_extract_expsyms_cmds
15594
15595# Symbols that should not be listed in the preloaded symbols.
15596exclude_expsyms=$lt_exclude_expsyms_F77
15597
15598# Symbols that must always be exported.
15599include_expsyms=$lt_include_expsyms_F77
15600
15601# ### END LIBTOOL TAG CONFIG: $tagname
15602
15603__EOF__
15604
15605
15606else
15607 # If there is no Makefile yet, we rely on a make rule to execute
15608 # `config.status --recheck' to rerun these tests and create the
15609 # libtool script then.
15610 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15611 if test -f "$ltmain_in"; then
15612 test -f Makefile && make "$ltmain"
15613 fi
15614fi
15615
15616
15617ac_ext=c
15618ac_cpp='$CPP $CPPFLAGS'
15619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15621ac_compiler_gnu=$ac_cv_c_compiler_gnu
15622
15623CC="$lt_save_CC"
15624
15625 else
15626 tagname=""
15627 fi
15628 ;;
15629
15630 GCJ)
15631 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15632
15633
15634
15635# Source file extension for Java test sources.
15636ac_ext=java
15637
15638# Object file extension for compiled Java test sources.
15639objext=o
15640objext_GCJ=$objext
15641
15642# Code to be used in simple compile tests
15643lt_simple_compile_test_code="class foo {}\n"
15644
15645# Code to be used in simple link tests
15646lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15647
15648# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15649
15650# If no C compiler was specified, use CC.
15651LTCC=${LTCC-"$CC"}
15652
15653# If no C compiler flags were specified, use CFLAGS.
15654LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15655
15656# Allow CC to be a program name with arguments.
15657compiler=$CC
15658
15659
15660# save warnings/boilerplate of simple test code
15661ac_outfile=conftest.$ac_objext
15662printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15663eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15664_lt_compiler_boilerplate=`cat conftest.err`
15665$rm conftest*
15666
15667ac_outfile=conftest.$ac_objext
15668printf "$lt_simple_link_test_code" >conftest.$ac_ext
15669eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15670_lt_linker_boilerplate=`cat conftest.err`
15671$rm conftest*
15672
15673
15674# Allow CC to be a program name with arguments.
15675lt_save_CC="$CC"
15676CC=${GCJ-"gcj"}
15677compiler=$CC
15678compiler_GCJ=$CC
15679for cc_temp in $compiler""; do
15680 case $cc_temp in
15681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15683 \-*) ;;
15684 *) break;;
15685 esac
15686done
15687cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15688
15689
15690# GCJ did not exist at the time GCC didn't implicitly link libc in.
15691archive_cmds_need_lc_GCJ=no
15692
15693old_archive_cmds_GCJ=$old_archive_cmds
15694
15695
15696lt_prog_compiler_no_builtin_flag_GCJ=
15697
15698if test "$GCC" = yes; then
15699 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15700
15701
15702echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15703echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15704if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706else
15707 lt_cv_prog_compiler_rtti_exceptions=no
15708 ac_outfile=conftest.$ac_objext
15709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15710 lt_compiler_flag="-fno-rtti -fno-exceptions"
15711 # Insert the option either (1) after the last *FLAGS variable, or
15712 # (2) before a word containing "conftest.", or (3) at the end.
15713 # Note that $ac_compile itself does not contain backslashes and begins
15714 # with a dollar sign (not a hyphen), so the echo should work correctly.
15715 # The option is referenced via a variable to avoid confusing sed.
15716 lt_compile=`echo "$ac_compile" | $SED \
15717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15719 -e 's:$: $lt_compiler_flag:'`
15720 (eval echo "\"\$as_me:15720: $lt_compile\"" >&5)
15721 (eval "$lt_compile" 2>conftest.err)
15722 ac_status=$?
15723 cat conftest.err >&5
15724 echo "$as_me:15724: \$? = $ac_status" >&5
15725 if (exit $ac_status) && test -s "$ac_outfile"; then
15726 # The compiler can only warn and ignore the option if not recognized
15727 # So say no if there are warnings other than the usual output.
15728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15731 lt_cv_prog_compiler_rtti_exceptions=yes
15732 fi
15733 fi
15734 $rm conftest*
15735
15736fi
15737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15738echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15739
15740if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15741 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15742else
15743 :
15744fi
15745
15746fi
15747
15748lt_prog_compiler_wl_GCJ=
15749lt_prog_compiler_pic_GCJ=
15750lt_prog_compiler_static_GCJ=
15751
15752echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15753echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15754
15755 if test "$GCC" = yes; then
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 lt_prog_compiler_static_GCJ='-static'
15758
15759 case $host_os in
15760 aix*)
15761 # All AIX code is PIC.
15762 if test "$host_cpu" = ia64; then
15763 # AIX 5 now supports IA64 processor
15764 lt_prog_compiler_static_GCJ='-Bstatic'
15765 fi
15766 ;;
15767
15768 amigaos*)
15769 # FIXME: we need at least 68020 code to build shared libraries, but
15770 # adding the `-m68020' flag to GCC prevents building anything better,
15771 # like `-m68040'.
15772 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15773 ;;
15774
15775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15776 # PIC is the default for these OSes.
15777 ;;
15778
15779 mingw* | pw32* | os2*)
15780 # This hack is so that the source file can tell whether it is being
15781 # built for inclusion in a dll (and should export symbols for example).
15782 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15783 ;;
15784
15785 darwin* | rhapsody*)
15786 # PIC is the default on this platform
15787 # Common symbols not allowed in MH_DYLIB files
15788 lt_prog_compiler_pic_GCJ='-fno-common'
15789 ;;
15790
15791 interix3*)
15792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15793 # Instead, we relocate shared libraries at runtime.
15794 ;;
15795
15796 msdosdjgpp*)
15797 # Just because we use GCC doesn't mean we suddenly get shared libraries
15798 # on systems that don't support them.
15799 lt_prog_compiler_can_build_shared_GCJ=no
15800 enable_shared=no
15801 ;;
15802
15803 sysv4*MP*)
15804 if test -d /usr/nec; then
15805 lt_prog_compiler_pic_GCJ=-Kconform_pic
15806 fi
15807 ;;
15808
15809 hpux*)
15810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15811 # not for PA HP-UX.
15812 case $host_cpu in
15813 hppa*64*|ia64*)
15814 # +Z the default
15815 ;;
15816 *)
15817 lt_prog_compiler_pic_GCJ='-fPIC'
15818 ;;
15819 esac
15820 ;;
15821
15822 *)
15823 lt_prog_compiler_pic_GCJ='-fPIC'
15824 ;;
15825 esac
15826 else
15827 # PORTME Check for flag to pass linker flags through the system compiler.
15828 case $host_os in
15829 aix*)
15830 lt_prog_compiler_wl_GCJ='-Wl,'
15831 if test "$host_cpu" = ia64; then
15832 # AIX 5 now supports IA64 processor
15833 lt_prog_compiler_static_GCJ='-Bstatic'
15834 else
15835 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15836 fi
15837 ;;
15838 darwin*)
15839 # PIC is the default on this platform
15840 # Common symbols not allowed in MH_DYLIB files
15841 case $cc_basename in
15842 xlc*)
15843 lt_prog_compiler_pic_GCJ='-qnocommon'
15844 lt_prog_compiler_wl_GCJ='-Wl,'
15845 ;;
15846 esac
15847 ;;
15848
15849 mingw* | pw32* | os2*)
15850 # This hack is so that the source file can tell whether it is being
15851 # built for inclusion in a dll (and should export symbols for example).
15852 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15853 ;;
15854
15855 hpux9* | hpux10* | hpux11*)
15856 lt_prog_compiler_wl_GCJ='-Wl,'
15857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15858 # not for PA HP-UX.
15859 case $host_cpu in
15860 hppa*64*|ia64*)
15861 # +Z the default
15862 ;;
15863 *)
15864 lt_prog_compiler_pic_GCJ='+Z'
15865 ;;
15866 esac
15867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15868 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15869 ;;
15870
15871 irix5* | irix6* | nonstopux*)
15872 lt_prog_compiler_wl_GCJ='-Wl,'
15873 # PIC (with -KPIC) is the default.
15874 lt_prog_compiler_static_GCJ='-non_shared'
15875 ;;
15876
15877 newsos6)
15878 lt_prog_compiler_pic_GCJ='-KPIC'
15879 lt_prog_compiler_static_GCJ='-Bstatic'
15880 ;;
15881
15882 linux*)
15883 case $cc_basename in
15884 icc* | ecc*)
15885 lt_prog_compiler_wl_GCJ='-Wl,'
15886 lt_prog_compiler_pic_GCJ='-KPIC'
15887 lt_prog_compiler_static_GCJ='-static'
15888 ;;
15889 pgcc* | pgf77* | pgf90* | pgf95*)
15890 # Portland Group compilers (*not* the Pentium gcc compiler,
15891 # which looks to be a dead project)
15892 lt_prog_compiler_wl_GCJ='-Wl,'
15893 lt_prog_compiler_pic_GCJ='-fpic'
15894 lt_prog_compiler_static_GCJ='-Bstatic'
15895 ;;
15896 ccc*)
15897 lt_prog_compiler_wl_GCJ='-Wl,'
15898 # All Alpha code is PIC.
15899 lt_prog_compiler_static_GCJ='-non_shared'
15900 ;;
15901 esac
15902 ;;
15903
15904 osf3* | osf4* | osf5*)
15905 lt_prog_compiler_wl_GCJ='-Wl,'
15906 # All OSF/1 code is PIC.
15907 lt_prog_compiler_static_GCJ='-non_shared'
15908 ;;
15909
15910 solaris*)
15911 lt_prog_compiler_pic_GCJ='-KPIC'
15912 lt_prog_compiler_static_GCJ='-Bstatic'
15913 case $cc_basename in
15914 f77* | f90* | f95*)
15915 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15916 *)
15917 lt_prog_compiler_wl_GCJ='-Wl,';;
15918 esac
15919 ;;
15920
15921 sunos4*)
15922 lt_prog_compiler_wl_GCJ='-Qoption ld '
15923 lt_prog_compiler_pic_GCJ='-PIC'
15924 lt_prog_compiler_static_GCJ='-Bstatic'
15925 ;;
15926
15927 sysv4 | sysv4.2uw2* | sysv4.3*)
15928 lt_prog_compiler_wl_GCJ='-Wl,'
15929 lt_prog_compiler_pic_GCJ='-KPIC'
15930 lt_prog_compiler_static_GCJ='-Bstatic'
15931 ;;
15932
15933 sysv4*MP*)
15934 if test -d /usr/nec ;then
15935 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15936 lt_prog_compiler_static_GCJ='-Bstatic'
15937 fi
15938 ;;
15939
15940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15941 lt_prog_compiler_wl_GCJ='-Wl,'
15942 lt_prog_compiler_pic_GCJ='-KPIC'
15943 lt_prog_compiler_static_GCJ='-Bstatic'
15944 ;;
15945
15946 unicos*)
15947 lt_prog_compiler_wl_GCJ='-Wl,'
15948 lt_prog_compiler_can_build_shared_GCJ=no
15949 ;;
15950
15951 uts4*)
15952 lt_prog_compiler_pic_GCJ='-pic'
15953 lt_prog_compiler_static_GCJ='-Bstatic'
15954 ;;
15955
15956 *)
15957 lt_prog_compiler_can_build_shared_GCJ=no
15958 ;;
15959 esac
15960 fi
15961
15962echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15963echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15964
15965#
15966# Check to make sure the PIC flag actually works.
15967#
15968if test -n "$lt_prog_compiler_pic_GCJ"; then
15969
15970echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15971echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15972if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15974else
15975 lt_prog_compiler_pic_works_GCJ=no
15976 ac_outfile=conftest.$ac_objext
15977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15978 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15979 # Insert the option either (1) after the last *FLAGS variable, or
15980 # (2) before a word containing "conftest.", or (3) at the end.
15981 # Note that $ac_compile itself does not contain backslashes and begins
15982 # with a dollar sign (not a hyphen), so the echo should work correctly.
15983 # The option is referenced via a variable to avoid confusing sed.
15984 lt_compile=`echo "$ac_compile" | $SED \
15985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15987 -e 's:$: $lt_compiler_flag:'`
15988 (eval echo "\"\$as_me:15988: $lt_compile\"" >&5)
15989 (eval "$lt_compile" 2>conftest.err)
15990 ac_status=$?
15991 cat conftest.err >&5
15992 echo "$as_me:15992: \$? = $ac_status" >&5
15993 if (exit $ac_status) && test -s "$ac_outfile"; then
15994 # The compiler can only warn and ignore the option if not recognized
15995 # So say no if there are warnings other than the usual output.
15996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15999 lt_prog_compiler_pic_works_GCJ=yes
16000 fi
16001 fi
16002 $rm conftest*
16003
16004fi
16005echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16006echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16007
16008if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16009 case $lt_prog_compiler_pic_GCJ in
16010 "" | " "*) ;;
16011 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16012 esac
16013else
16014 lt_prog_compiler_pic_GCJ=
16015 lt_prog_compiler_can_build_shared_GCJ=no
16016fi
16017
16018fi
16019case $host_os in
16020 # For platforms which do not support PIC, -DPIC is meaningless:
16021 *djgpp*)
16022 lt_prog_compiler_pic_GCJ=
16023 ;;
16024 *)
16025 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16026 ;;
16027esac
16028
16029#
16030# Check to make sure the static flag actually works.
16031#
16032wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16033echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16034echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16035if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037else
16038 lt_prog_compiler_static_works_GCJ=no
16039 save_LDFLAGS="$LDFLAGS"
16040 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16041 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16043 # The linker can only warn and ignore the option if not recognized
16044 # So say no if there are warnings
16045 if test -s conftest.err; then
16046 # Append any errors to the config.log.
16047 cat conftest.err 1>&5
16048 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16050 if diff conftest.exp conftest.er2 >/dev/null; then
16051 lt_prog_compiler_static_works_GCJ=yes
16052 fi
16053 else
16054 lt_prog_compiler_static_works_GCJ=yes
16055 fi
16056 fi
16057 $rm conftest*
16058 LDFLAGS="$save_LDFLAGS"
16059
16060fi
16061echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16062echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16063
16064if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16065 :
16066else
16067 lt_prog_compiler_static_GCJ=
16068fi
16069
16070
16071echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16072echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16073if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16075else
16076 lt_cv_prog_compiler_c_o_GCJ=no
16077 $rm -r conftest 2>/dev/null
16078 mkdir conftest
16079 cd conftest
16080 mkdir out
16081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16082
16083 lt_compiler_flag="-o out/conftest2.$ac_objext"
16084 # Insert the option either (1) after the last *FLAGS variable, or
16085 # (2) before a word containing "conftest.", or (3) at the end.
16086 # Note that $ac_compile itself does not contain backslashes and begins
16087 # with a dollar sign (not a hyphen), so the echo should work correctly.
16088 lt_compile=`echo "$ac_compile" | $SED \
16089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16091 -e 's:$: $lt_compiler_flag:'`
16092 (eval echo "\"\$as_me:16092: $lt_compile\"" >&5)
16093 (eval "$lt_compile" 2>out/conftest.err)
16094 ac_status=$?
16095 cat out/conftest.err >&5
16096 echo "$as_me:16096: \$? = $ac_status" >&5
16097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16098 then
16099 # The compiler can only warn and ignore the option if not recognized
16100 # So say no if there are warnings
16101 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16104 lt_cv_prog_compiler_c_o_GCJ=yes
16105 fi
16106 fi
16107 chmod u+w . 2>&5
16108 $rm conftest*
16109 # SGI C++ compiler will create directory out/ii_files/ for
16110 # template instantiation
16111 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16112 $rm out/* && rmdir out
16113 cd ..
16114 rmdir conftest
16115 $rm conftest*
16116
16117fi
16118echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16119echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16120
16121
16122hard_links="nottested"
16123if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16124 # do not overwrite the value of need_locks provided by the user
16125 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16126echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16127 hard_links=yes
16128 $rm conftest*
16129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16130 touch conftest.a
16131 ln conftest.a conftest.b 2>&5 || hard_links=no
16132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16133 echo "$as_me:$LINENO: result: $hard_links" >&5
16134echo "${ECHO_T}$hard_links" >&6
16135 if test "$hard_links" = no; then
16136 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16137echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16138 need_locks=warn
16139 fi
16140else
16141 need_locks=no
16142fi
16143
16144echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16145echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16146
16147 runpath_var=
16148 allow_undefined_flag_GCJ=
16149 enable_shared_with_static_runtimes_GCJ=no
16150 archive_cmds_GCJ=
16151 archive_expsym_cmds_GCJ=
16152 old_archive_From_new_cmds_GCJ=
16153 old_archive_from_expsyms_cmds_GCJ=
16154 export_dynamic_flag_spec_GCJ=
16155 whole_archive_flag_spec_GCJ=
16156 thread_safe_flag_spec_GCJ=
16157 hardcode_libdir_flag_spec_GCJ=
16158 hardcode_libdir_flag_spec_ld_GCJ=
16159 hardcode_libdir_separator_GCJ=
16160 hardcode_direct_GCJ=no
16161 hardcode_minus_L_GCJ=no
16162 hardcode_shlibpath_var_GCJ=unsupported
16163 link_all_deplibs_GCJ=unknown
16164 hardcode_automatic_GCJ=no
16165 module_cmds_GCJ=
16166 module_expsym_cmds_GCJ=
16167 always_export_symbols_GCJ=no
16168 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16169 # include_expsyms should be a list of space-separated symbols to be *always*
16170 # included in the symbol list
16171 include_expsyms_GCJ=
16172 # exclude_expsyms can be an extended regexp of symbols to exclude
16173 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16174 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16175 # as well as any symbol that contains `d'.
16176 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16178 # platforms (ab)use it in PIC code, but their linkers get confused if
16179 # the symbol is explicitly referenced. Since portable code cannot
16180 # rely on this symbol name, it's probably fine to never include it in
16181 # preloaded symbol tables.
16182 extract_expsyms_cmds=
16183 # Just being paranoid about ensuring that cc_basename is set.
16184 for cc_temp in $compiler""; do
16185 case $cc_temp in
16186 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16187 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16188 \-*) ;;
16189 *) break;;
16190 esac
16191done
16192cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16193
16194 case $host_os in
16195 cygwin* | mingw* | pw32*)
16196 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16197 # When not using gcc, we currently assume that we are using
16198 # Microsoft Visual C++.
16199 if test "$GCC" != yes; then
16200 with_gnu_ld=no
16201 fi
16202 ;;
16203 interix*)
16204 # we just hope/assume this is gcc and not c89 (= MSVC++)
16205 with_gnu_ld=yes
16206 ;;
16207 openbsd*)
16208 with_gnu_ld=no
16209 ;;
16210 esac
16211
16212 ld_shlibs_GCJ=yes
16213 if test "$with_gnu_ld" = yes; then
16214 # If archive_cmds runs LD, not CC, wlarc should be empty
16215 wlarc='${wl}'
16216
16217 # Set some defaults for GNU ld with shared library support. These
16218 # are reset later if shared libraries are not supported. Putting them
16219 # here allows them to be overridden if necessary.
16220 runpath_var=LD_RUN_PATH
16221 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16222 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16223 # ancient GNU ld didn't support --whole-archive et. al.
16224 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16225 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16226 else
16227 whole_archive_flag_spec_GCJ=
16228 fi
16229 supports_anon_versioning=no
16230 case `$LD -v 2>/dev/null` in
16231 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16232 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16233 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16234 *\ 2.11.*) ;; # other 2.11 versions
16235 *) supports_anon_versioning=yes ;;
16236 esac
16237
16238 # See if GNU ld supports shared libraries.
16239 case $host_os in
16240 aix3* | aix4* | aix5*)
16241 # On AIX/PPC, the GNU linker is very broken
16242 if test "$host_cpu" != ia64; then
16243 ld_shlibs_GCJ=no
16244 cat <<EOF 1>&2
16245
16246*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16247*** to be unable to reliably create shared libraries on AIX.
16248*** Therefore, libtool is disabling shared libraries support. If you
16249*** really care for shared libraries, you may want to modify your PATH
16250*** so that a non-GNU linker is found, and then restart.
16251
16252EOF
16253 fi
16254 ;;
16255
16256 amigaos*)
16257 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)'
16258 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16259 hardcode_minus_L_GCJ=yes
16260
16261 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16262 # that the semantics of dynamic libraries on AmigaOS, at least up
16263 # to version 4, is to share data among multiple programs linked
16264 # with the same dynamic library. Since this doesn't match the
16265 # behavior of shared libraries on other platforms, we can't use
16266 # them.
16267 ld_shlibs_GCJ=no
16268 ;;
16269
16270 beos*)
16271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16272 allow_undefined_flag_GCJ=unsupported
16273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16274 # support --undefined. This deserves some investigation. FIXME
16275 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16276 else
16277 ld_shlibs_GCJ=no
16278 fi
16279 ;;
16280
16281 cygwin* | mingw* | pw32*)
16282 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16283 # as there is no search path for DLLs.
16284 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16285 allow_undefined_flag_GCJ=unsupported
16286 always_export_symbols_GCJ=no
16287 enable_shared_with_static_runtimes_GCJ=yes
16288 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16289
16290 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16291 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16292 # If the export-symbols file already is a .def file (1st line
16293 # is EXPORTS), use it as is; otherwise, prepend...
16294 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16295 cp $export_symbols $output_objdir/$soname.def;
16296 else
16297 echo EXPORTS > $output_objdir/$soname.def;
16298 cat $export_symbols >> $output_objdir/$soname.def;
16299 fi~
16300 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16301 else
16302 ld_shlibs_GCJ=no
16303 fi
16304 ;;
16305
16306 interix3*)
16307 hardcode_direct_GCJ=no
16308 hardcode_shlibpath_var_GCJ=no
16309 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16310 export_dynamic_flag_spec_GCJ='${wl}-E'
16311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16312 # Instead, shared libraries are loaded at an image base (0x10000000 by
16313 # default) and relocated if they conflict, which is a slow very memory
16314 # consuming and fragmenting process. To avoid this, we pick a random,
16315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16317 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'
16318 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'
16319 ;;
16320
16321 linux*)
16322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16323 tmp_addflag=
16324 case $cc_basename,$host_cpu in
16325 pgcc*) # Portland Group C compiler
16326 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'
16327 tmp_addflag=' $pic_flag'
16328 ;;
16329 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16330 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'
16331 tmp_addflag=' $pic_flag -Mnomain' ;;
16332 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16333 tmp_addflag=' -i_dynamic' ;;
16334 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16335 tmp_addflag=' -i_dynamic -nofor_main' ;;
16336 ifc* | ifort*) # Intel Fortran compiler
16337 tmp_addflag=' -nofor_main' ;;
16338 esac
16339 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16340
16341 if test $supports_anon_versioning = yes; then
16342 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16344 $echo "local: *; };" >> $output_objdir/$libname.ver~
16345 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16346 fi
16347 else
16348 ld_shlibs_GCJ=no
16349 fi
16350 ;;
16351
16352 netbsd*)
16353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16354 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16355 wlarc=
16356 else
16357 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16358 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359 fi
16360 ;;
16361
16362 solaris*)
16363 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16364 ld_shlibs_GCJ=no
16365 cat <<EOF 1>&2
16366
16367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16368*** create shared libraries on Solaris systems. Therefore, libtool
16369*** is disabling shared libraries support. We urge you to upgrade GNU
16370*** binutils to release 2.9.1 or newer. Another option is to modify
16371*** your PATH or compiler configuration so that the native linker is
16372*** used, and then restart.
16373
16374EOF
16375 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16377 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16378 else
16379 ld_shlibs_GCJ=no
16380 fi
16381 ;;
16382
16383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16384 case `$LD -v 2>&1` in
16385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16386 ld_shlibs_GCJ=no
16387 cat <<_LT_EOF 1>&2
16388
16389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16390*** reliably create shared libraries on SCO systems. Therefore, libtool
16391*** is disabling shared libraries support. We urge you to upgrade GNU
16392*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16393*** your PATH or compiler configuration so that the native linker is
16394*** used, and then restart.
16395
16396_LT_EOF
16397 ;;
16398 *)
16399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16400 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16402 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16403 else
16404 ld_shlibs_GCJ=no
16405 fi
16406 ;;
16407 esac
16408 ;;
16409
16410 sunos4*)
16411 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16412 wlarc=
16413 hardcode_direct_GCJ=yes
16414 hardcode_shlibpath_var_GCJ=no
16415 ;;
16416
16417 *)
16418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16419 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16420 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16421 else
16422 ld_shlibs_GCJ=no
16423 fi
16424 ;;
16425 esac
16426
16427 if test "$ld_shlibs_GCJ" = no; then
16428 runpath_var=
16429 hardcode_libdir_flag_spec_GCJ=
16430 export_dynamic_flag_spec_GCJ=
16431 whole_archive_flag_spec_GCJ=
16432 fi
16433 else
16434 # PORTME fill in a description of your system's linker (not GNU ld)
16435 case $host_os in
16436 aix3*)
16437 allow_undefined_flag_GCJ=unsupported
16438 always_export_symbols_GCJ=yes
16439 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'
16440 # Note: this linker hardcodes the directories in LIBPATH if there
16441 # are no directories specified by -L.
16442 hardcode_minus_L_GCJ=yes
16443 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16444 # Neither direct hardcoding nor static linking is supported with a
16445 # broken collect2.
16446 hardcode_direct_GCJ=unsupported
16447 fi
16448 ;;
16449
16450 aix4* | aix5*)
16451 if test "$host_cpu" = ia64; then
16452 # On IA64, the linker does run time linking by default, so we don't
16453 # have to do anything special.
16454 aix_use_runtimelinking=no
16455 exp_sym_flag='-Bexport'
16456 no_entry_flag=""
16457 else
16458 # If we're using GNU nm, then we don't want the "-C" option.
16459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16461 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'
16462 else
16463 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'
16464 fi
16465 aix_use_runtimelinking=no
16466
16467 # Test if we are trying to use run time linking or normal
16468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16469 # need to do runtime linking.
16470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16471 for ld_flag in $LDFLAGS; do
16472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16473 aix_use_runtimelinking=yes
16474 break
16475 fi
16476 done
16477 ;;
16478 esac
16479
16480 exp_sym_flag='-bexport'
16481 no_entry_flag='-bnoentry'
16482 fi
16483
16484 # When large executables or shared objects are built, AIX ld can
16485 # have problems creating the table of contents. If linking a library
16486 # or program results in "error TOC overflow" add -mminimal-toc to
16487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16489
16490 archive_cmds_GCJ=''
16491 hardcode_direct_GCJ=yes
16492 hardcode_libdir_separator_GCJ=':'
16493 link_all_deplibs_GCJ=yes
16494
16495 if test "$GCC" = yes; then
16496 case $host_os in aix4.[012]|aix4.[012].*)
16497 # We only want to do this on AIX 4.2 and lower, the check
16498 # below for broken collect2 doesn't work under 4.3+
16499 collect2name=`${CC} -print-prog-name=collect2`
16500 if test -f "$collect2name" && \
16501 strings "$collect2name" | grep resolve_lib_name >/dev/null
16502 then
16503 # We have reworked collect2
16504 hardcode_direct_GCJ=yes
16505 else
16506 # We have old collect2
16507 hardcode_direct_GCJ=unsupported
16508 # It fails to find uninstalled libraries when the uninstalled
16509 # path is not listed in the libpath. Setting hardcode_minus_L
16510 # to unsupported forces relinking
16511 hardcode_minus_L_GCJ=yes
16512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16513 hardcode_libdir_separator_GCJ=
16514 fi
16515 ;;
16516 esac
16517 shared_flag='-shared'
16518 if test "$aix_use_runtimelinking" = yes; then
16519 shared_flag="$shared_flag "'${wl}-G'
16520 fi
16521 else
16522 # not using gcc
16523 if test "$host_cpu" = ia64; then
16524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16525 # chokes on -Wl,-G. The following line is correct:
16526 shared_flag='-G'
16527 else
16528 if test "$aix_use_runtimelinking" = yes; then
16529 shared_flag='${wl}-G'
16530 else
16531 shared_flag='${wl}-bM:SRE'
16532 fi
16533 fi
16534 fi
16535
16536 # It seems that -bexpall does not export symbols beginning with
16537 # underscore (_), so it is better to generate a list of symbols to export.
16538 always_export_symbols_GCJ=yes
16539 if test "$aix_use_runtimelinking" = yes; then
16540 # Warning - without using the other runtime loading flags (-brtl),
16541 # -berok will link without error, but may produce a broken library.
16542 allow_undefined_flag_GCJ='-berok'
16543 # Determine the default libpath from the value encoded in an empty executable.
16544 cat >conftest.$ac_ext <<_ACEOF
16545/* confdefs.h. */
16546_ACEOF
16547cat confdefs.h >>conftest.$ac_ext
16548cat >>conftest.$ac_ext <<_ACEOF
16549/* end confdefs.h. */
16550
16551int
16552main ()
16553{
16554
16555 ;
16556 return 0;
16557}
16558_ACEOF
16559rm -f conftest.$ac_objext conftest$ac_exeext
16560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16561 (eval $ac_link) 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag"
16569 || test ! -s conftest.err'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest$ac_exeext'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581
16582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16583}'`
16584# Check for a 64-bit object if we didn't find anything.
16585if 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; }
16586}'`; fi
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591fi
16592rm -f conftest.err conftest.$ac_objext \
16593 conftest$ac_exeext conftest.$ac_ext
16594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16595
16596 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16597 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"
16598 else
16599 if test "$host_cpu" = ia64; then
16600 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16601 allow_undefined_flag_GCJ="-z nodefs"
16602 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"
16603 else
16604 # Determine the default libpath from the value encoded in an empty executable.
16605 cat >conftest.$ac_ext <<_ACEOF
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
16611
16612int
16613main ()
16614{
16615
16616 ;
16617 return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext conftest$ac_exeext
16621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16622 (eval $ac_link) 2>conftest.er1
16623 ac_status=$?
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag"
16630 || test ! -s conftest.err'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; } &&
16636 { ac_try='test -s conftest$ac_exeext'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; }; then
16642
16643aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16644}'`
16645# Check for a 64-bit object if we didn't find anything.
16646if 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; }
16647}'`; fi
16648else
16649 echo "$as_me: failed program was:" >&5
16650sed 's/^/| /' conftest.$ac_ext >&5
16651
16652fi
16653rm -f conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16656
16657 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16658 # Warning - without using the other run time loading flags,
16659 # -berok will link without error, but may produce a broken library.
16660 no_undefined_flag_GCJ=' ${wl}-bernotok'
16661 allow_undefined_flag_GCJ=' ${wl}-berok'
16662 # Exported symbols can be pulled into shared objects from archives
16663 whole_archive_flag_spec_GCJ='$convenience'
16664 archive_cmds_need_lc_GCJ=yes
16665 # This is similar to how AIX traditionally builds its shared libraries.
16666 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'
16667 fi
16668 fi
16669 ;;
16670
16671 amigaos*)
16672 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)'
16673 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16674 hardcode_minus_L_GCJ=yes
16675 # see comment about different semantics on the GNU ld section
16676 ld_shlibs_GCJ=no
16677 ;;
16678
16679 bsdi[45]*)
16680 export_dynamic_flag_spec_GCJ=-rdynamic
16681 ;;
16682
16683 cygwin* | mingw* | pw32*)
16684 # When not using gcc, we currently assume that we are using
16685 # Microsoft Visual C++.
16686 # hardcode_libdir_flag_spec is actually meaningless, as there is
16687 # no search path for DLLs.
16688 hardcode_libdir_flag_spec_GCJ=' '
16689 allow_undefined_flag_GCJ=unsupported
16690 # Tell ltmain to make .lib files, not .a files.
16691 libext=lib
16692 # Tell ltmain to make .dll files, not .so files.
16693 shrext_cmds=".dll"
16694 # FIXME: Setting linknames here is a bad hack.
16695 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16696 # The linker will automatically build a .lib file if we build a DLL.
16697 old_archive_From_new_cmds_GCJ='true'
16698 # FIXME: Should let the user specify the lib program.
16699 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16700 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16701 enable_shared_with_static_runtimes_GCJ=yes
16702 ;;
16703
16704 darwin* | rhapsody*)
16705 case $host_os in
16706 rhapsody* | darwin1.[012])
16707 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16708 ;;
16709 *) # Darwin 1.3 on
16710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16711 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16712 else
16713 case ${MACOSX_DEPLOYMENT_TARGET} in
16714 10.[012])
16715 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16716 ;;
16717 10.*)
16718 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16719 ;;
16720 esac
16721 fi
16722 ;;
16723 esac
16724 archive_cmds_need_lc_GCJ=no
16725 hardcode_direct_GCJ=no
16726 hardcode_automatic_GCJ=yes
16727 hardcode_shlibpath_var_GCJ=unsupported
16728 whole_archive_flag_spec_GCJ=''
16729 link_all_deplibs_GCJ=yes
16730 if test "$GCC" = yes ; then
16731 output_verbose_link_cmd='echo'
16732 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16733 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16735 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}'
16736 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}'
16737 else
16738 case $cc_basename in
16739 xlc*)
16740 output_verbose_link_cmd='echo'
16741 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16742 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16743 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16744 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}'
16745 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}'
16746 ;;
16747 *)
16748 ld_shlibs_GCJ=no
16749 ;;
16750 esac
16751 fi
16752 ;;
16753
16754 dgux*)
16755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16757 hardcode_shlibpath_var_GCJ=no
16758 ;;
16759
16760 freebsd1*)
16761 ld_shlibs_GCJ=no
16762 ;;
16763
16764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16765 # support. Future versions do this automatically, but an explicit c++rt0.o
16766 # does not break anything, and helps significantly (at the cost of a little
16767 # extra space).
16768 freebsd2.2*)
16769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16770 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16771 hardcode_direct_GCJ=yes
16772 hardcode_shlibpath_var_GCJ=no
16773 ;;
16774
16775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16776 freebsd2*)
16777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_direct_GCJ=yes
16779 hardcode_minus_L_GCJ=yes
16780 hardcode_shlibpath_var_GCJ=no
16781 ;;
16782
16783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16784 freebsd* | kfreebsd*-gnu | dragonfly*)
16785 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16786 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16787 hardcode_direct_GCJ=yes
16788 hardcode_shlibpath_var_GCJ=no
16789 ;;
16790
16791 hpux9*)
16792 if test "$GCC" = yes; then
16793 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'
16794 else
16795 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'
16796 fi
16797 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16798 hardcode_libdir_separator_GCJ=:
16799 hardcode_direct_GCJ=yes
16800
16801 # hardcode_minus_L: Not really in the search PATH,
16802 # but as the default location of the library.
16803 hardcode_minus_L_GCJ=yes
16804 export_dynamic_flag_spec_GCJ='${wl}-E'
16805 ;;
16806
16807 hpux10*)
16808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16809 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16810 else
16811 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16812 fi
16813 if test "$with_gnu_ld" = no; then
16814 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16815 hardcode_libdir_separator_GCJ=:
16816
16817 hardcode_direct_GCJ=yes
16818 export_dynamic_flag_spec_GCJ='${wl}-E'
16819
16820 # hardcode_minus_L: Not really in the search PATH,
16821 # but as the default location of the library.
16822 hardcode_minus_L_GCJ=yes
16823 fi
16824 ;;
16825
16826 hpux11*)
16827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16828 case $host_cpu in
16829 hppa*64*)
16830 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16831 ;;
16832 ia64*)
16833 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16834 ;;
16835 *)
16836 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16837 ;;
16838 esac
16839 else
16840 case $host_cpu in
16841 hppa*64*)
16842 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16843 ;;
16844 ia64*)
16845 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16846 ;;
16847 *)
16848 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16849 ;;
16850 esac
16851 fi
16852 if test "$with_gnu_ld" = no; then
16853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16854 hardcode_libdir_separator_GCJ=:
16855
16856 case $host_cpu in
16857 hppa*64*|ia64*)
16858 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16859 hardcode_direct_GCJ=no
16860 hardcode_shlibpath_var_GCJ=no
16861 ;;
16862 *)
16863 hardcode_direct_GCJ=yes
16864 export_dynamic_flag_spec_GCJ='${wl}-E'
16865
16866 # hardcode_minus_L: Not really in the search PATH,
16867 # but as the default location of the library.
16868 hardcode_minus_L_GCJ=yes
16869 ;;
16870 esac
16871 fi
16872 ;;
16873
16874 irix5* | irix6* | nonstopux*)
16875 if test "$GCC" = yes; then
16876 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'
16877 else
16878 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'
16879 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16880 fi
16881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16882 hardcode_libdir_separator_GCJ=:
16883 link_all_deplibs_GCJ=yes
16884 ;;
16885
16886 netbsd*)
16887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16889 else
16890 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16891 fi
16892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16893 hardcode_direct_GCJ=yes
16894 hardcode_shlibpath_var_GCJ=no
16895 ;;
16896
16897 newsos6)
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_direct_GCJ=yes
16900 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16901 hardcode_libdir_separator_GCJ=:
16902 hardcode_shlibpath_var_GCJ=no
16903 ;;
16904
16905 openbsd*)
16906 hardcode_direct_GCJ=yes
16907 hardcode_shlibpath_var_GCJ=no
16908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16909 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16910 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 else
16914 case $host_os in
16915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16916 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16918 ;;
16919 *)
16920 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16922 ;;
16923 esac
16924 fi
16925 ;;
16926
16927 os2*)
16928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16929 hardcode_minus_L_GCJ=yes
16930 allow_undefined_flag_GCJ=unsupported
16931 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'
16932 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16933 ;;
16934
16935 osf3*)
16936 if test "$GCC" = yes; then
16937 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16938 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'
16939 else
16940 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16941 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'
16942 fi
16943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16944 hardcode_libdir_separator_GCJ=:
16945 ;;
16946
16947 osf4* | osf5*) # as osf3* with the addition of -msym flag
16948 if test "$GCC" = yes; then
16949 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16950 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'
16951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16952 else
16953 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16954 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'
16955 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~
16956 $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'
16957
16958 # Both c and cxx compiler support -rpath directly
16959 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16960 fi
16961 hardcode_libdir_separator_GCJ=:
16962 ;;
16963
16964 solaris*)
16965 no_undefined_flag_GCJ=' -z text'
16966 if test "$GCC" = yes; then
16967 wlarc='${wl}'
16968 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16969 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16970 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16971 else
16972 wlarc=''
16973 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16976 fi
16977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16978 hardcode_shlibpath_var_GCJ=no
16979 case $host_os in
16980 solaris2.[0-5] | solaris2.[0-5].*) ;;
16981 *)
16982 # The compiler driver will combine linker options so we
16983 # cannot just pass the convience library names through
16984 # without $wl, iff we do not link with $LD.
16985 # Luckily, gcc supports the same syntax we need for Sun Studio.
16986 # Supported since Solaris 2.6 (maybe 2.5.1?)
16987 case $wlarc in
16988 '')
16989 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16990 *)
16991 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' ;;
16992 esac ;;
16993 esac
16994 link_all_deplibs_GCJ=yes
16995 ;;
16996
16997 sunos4*)
16998 if test "x$host_vendor" = xsequent; then
16999 # Use $CC to link under sequent, because it throws in some extra .o
17000 # files that make .init and .fini sections work.
17001 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17002 else
17003 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17004 fi
17005 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17006 hardcode_direct_GCJ=yes
17007 hardcode_minus_L_GCJ=yes
17008 hardcode_shlibpath_var_GCJ=no
17009 ;;
17010
17011 sysv4)
17012 case $host_vendor in
17013 sni)
17014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_direct_GCJ=yes # is this really true???
17016 ;;
17017 siemens)
17018 ## LD is ld it makes a PLAMLIB
17019 ## CC just makes a GrossModule.
17020 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17021 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17022 hardcode_direct_GCJ=no
17023 ;;
17024 motorola)
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17027 ;;
17028 esac
17029 runpath_var='LD_RUN_PATH'
17030 hardcode_shlibpath_var_GCJ=no
17031 ;;
17032
17033 sysv4.3*)
17034 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17035 hardcode_shlibpath_var_GCJ=no
17036 export_dynamic_flag_spec_GCJ='-Bexport'
17037 ;;
17038
17039 sysv4*MP*)
17040 if test -d /usr/nec; then
17041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17042 hardcode_shlibpath_var_GCJ=no
17043 runpath_var=LD_RUN_PATH
17044 hardcode_runpath_var=yes
17045 ld_shlibs_GCJ=yes
17046 fi
17047 ;;
17048
17049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17050 no_undefined_flag_GCJ='${wl}-z,text'
17051 archive_cmds_need_lc_GCJ=no
17052 hardcode_shlibpath_var_GCJ=no
17053 runpath_var='LD_RUN_PATH'
17054
17055 if test "$GCC" = yes; then
17056 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 else
17059 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17060 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 fi
17062 ;;
17063
17064 sysv5* | sco3.2v5* | sco5v6*)
17065 # Note: We can NOT use -z defs as we might desire, because we do not
17066 # link with -lc, and that would cause any symbols used from libc to
17067 # always be unresolved, which means just about no library would
17068 # ever link correctly. If we're not using GNU ld we use -z text
17069 # though, which does catch some bad symbols but isn't as heavy-handed
17070 # as -z defs.
17071 no_undefined_flag_GCJ='${wl}-z,text'
17072 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17073 archive_cmds_need_lc_GCJ=no
17074 hardcode_shlibpath_var_GCJ=no
17075 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17076 hardcode_libdir_separator_GCJ=':'
17077 link_all_deplibs_GCJ=yes
17078 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17079 runpath_var='LD_RUN_PATH'
17080
17081 if test "$GCC" = yes; then
17082 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17083 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 else
17085 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17086 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 fi
17088 ;;
17089
17090 uts4*)
17091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17093 hardcode_shlibpath_var_GCJ=no
17094 ;;
17095
17096 *)
17097 ld_shlibs_GCJ=no
17098 ;;
17099 esac
17100 fi
17101
17102echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17103echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17104test "$ld_shlibs_GCJ" = no && can_build_shared=no
17105
17106#
17107# Do we need to explicitly link libc?
17108#
17109case "x$archive_cmds_need_lc_GCJ" in
17110x|xyes)
17111 # Assume -lc should be added
17112 archive_cmds_need_lc_GCJ=yes
17113
17114 if test "$enable_shared" = yes && test "$GCC" = yes; then
17115 case $archive_cmds_GCJ in
17116 *'~'*)
17117 # FIXME: we may have to deal with multi-command sequences.
17118 ;;
17119 '$CC '*)
17120 # Test whether the compiler implicitly links with -lc since on some
17121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17122 # to ld, don't add -lc before -lgcc.
17123 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17124echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17125 $rm conftest*
17126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17127
17128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17129 (eval $ac_compile) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } 2>conftest.err; then
17133 soname=conftest
17134 lib=conftest
17135 libobjs=conftest.$ac_objext
17136 deplibs=
17137 wl=$lt_prog_compiler_wl_GCJ
17138 pic_flag=$lt_prog_compiler_pic_GCJ
17139 compiler_flags=-v
17140 linker_flags=-v
17141 verstring=
17142 output_objdir=.
17143 libname=conftest
17144 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17145 allow_undefined_flag_GCJ=
17146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17147 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }
17151 then
17152 archive_cmds_need_lc_GCJ=no
17153 else
17154 archive_cmds_need_lc_GCJ=yes
17155 fi
17156 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17157 else
17158 cat conftest.err 1>&5
17159 fi
17160 $rm conftest*
17161 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17162echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17163 ;;
17164 esac
17165 fi
17166 ;;
17167esac
17168
17169echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17170echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17171library_names_spec=
17172libname_spec='lib$name'
17173soname_spec=
17174shrext_cmds=".so"
17175postinstall_cmds=
17176postuninstall_cmds=
17177finish_cmds=
17178finish_eval=
17179shlibpath_var=
17180shlibpath_overrides_runpath=unknown
17181version_type=none
17182dynamic_linker="$host_os ld.so"
17183sys_lib_dlsearch_path_spec="/lib /usr/lib"
17184if test "$GCC" = yes; then
17185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17186 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17187 # if the path contains ";" then we assume it to be the separator
17188 # otherwise default to the standard path separator (i.e. ":") - it is
17189 # assumed that no part of a normal pathname contains ";" but that should
17190 # okay in the real world where ";" in dirpaths is itself problematic.
17191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17192 else
17193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17194 fi
17195else
17196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17197fi
17198need_lib_prefix=unknown
17199hardcode_into_libs=no
17200
17201# when you set need_version to no, make sure it does not cause -set_version
17202# flags to be left without arguments
17203need_version=unknown
17204
17205case $host_os in
17206aix3*)
17207 version_type=linux
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17209 shlibpath_var=LIBPATH
17210
17211 # AIX 3 has no versioning support, so we append a major version to the name.
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 ;;
17214
17215aix4* | aix5*)
17216 version_type=linux
17217 need_lib_prefix=no
17218 need_version=no
17219 hardcode_into_libs=yes
17220 if test "$host_cpu" = ia64; then
17221 # AIX 5 supports IA64
17222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 else
17225 # With GCC up to 2.95.x, collect2 would create an import file
17226 # for dependence libraries. The import file would start with
17227 # the line `#! .'. This would cause the generated library to
17228 # depend on `.', always an invalid library. This was fixed in
17229 # development snapshots of GCC prior to 3.0.
17230 case $host_os in
17231 aix4 | aix4.[01] | aix4.[01].*)
17232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17233 echo ' yes '
17234 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17235 :
17236 else
17237 can_build_shared=no
17238 fi
17239 ;;
17240 esac
17241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17242 # soname into executable. Probably we can add versioning support to
17243 # collect2, so additional links can be useful in future.
17244 if test "$aix_use_runtimelinking" = yes; then
17245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17246 # instead of lib<name>.a to let people know that these are not
17247 # typical AIX shared libraries.
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 else
17250 # We preserve .a as extension for shared libraries through AIX4.2
17251 # and later when we are not doing run time linking.
17252 library_names_spec='${libname}${release}.a $libname.a'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 fi
17255 shlibpath_var=LIBPATH
17256 fi
17257 ;;
17258
17259amigaos*)
17260 library_names_spec='$libname.ixlibrary $libname.a'
17261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17262 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'
17263 ;;
17264
17265beos*)
17266 library_names_spec='${libname}${shared_ext}'
17267 dynamic_linker="$host_os ld.so"
17268 shlibpath_var=LIBRARY_PATH
17269 ;;
17270
17271bsdi[45]*)
17272 version_type=linux
17273 need_version=no
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17280 # the default ld.so.conf also contains /usr/contrib/lib and
17281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17282 # libtool to hard-code these into programs
17283 ;;
17284
17285cygwin* | mingw* | pw32*)
17286 version_type=windows
17287 shrext_cmds=".dll"
17288 need_version=no
17289 need_lib_prefix=no
17290
17291 case $GCC,$host_os in
17292 yes,cygwin* | yes,mingw* | yes,pw32*)
17293 library_names_spec='$libname.dll.a'
17294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17295 postinstall_cmds='base_file=`basename \${file}`~
17296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17297 dldir=$destdir/`dirname \$dlpath`~
17298 test -d \$dldir || mkdir -p \$dldir~
17299 $install_prog $dir/$dlname \$dldir/$dlname~
17300 chmod a+x \$dldir/$dlname'
17301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17302 dlpath=$dir/\$dldll~
17303 $rm \$dlpath'
17304 shlibpath_overrides_runpath=yes
17305
17306 case $host_os in
17307 cygwin*)
17308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17311 ;;
17312 mingw*)
17313 # MinGW DLLs use traditional 'lib' prefix
17314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17316 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17317 # It is most probably a Windows format PATH printed by
17318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17319 # path with ; separators, and with drive letters. We can handle the
17320 # drive letters (cygwin fileutils understands them), so leave them,
17321 # especially as we might pass files found there to a mingw objdump,
17322 # which wouldn't understand a cygwinified path. Ahh.
17323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17324 else
17325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17326 fi
17327 ;;
17328 pw32*)
17329 # pw32 DLLs use 'pw' prefix rather than 'lib'
17330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17331 ;;
17332 esac
17333 ;;
17334
17335 *)
17336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17337 ;;
17338 esac
17339 dynamic_linker='Win32 ld.exe'
17340 # FIXME: first we should search . and the directory the executable is in
17341 shlibpath_var=PATH
17342 ;;
17343
17344darwin* | rhapsody*)
17345 dynamic_linker="$host_os dyld"
17346 version_type=darwin
17347 need_lib_prefix=no
17348 need_version=no
17349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17350 soname_spec='${libname}${release}${major}$shared_ext'
17351 shlibpath_overrides_runpath=yes
17352 shlibpath_var=DYLD_LIBRARY_PATH
17353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17355 if test "$GCC" = yes; then
17356 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"`
17357 else
17358 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17359 fi
17360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17361 ;;
17362
17363dgux*)
17364 version_type=linux
17365 need_lib_prefix=no
17366 need_version=no
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 ;;
17371
17372freebsd1*)
17373 dynamic_linker=no
17374 ;;
17375
17376kfreebsd*-gnu)
17377 version_type=linux
17378 need_lib_prefix=no
17379 need_version=no
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=no
17384 hardcode_into_libs=yes
17385 dynamic_linker='GNU ld.so'
17386 ;;
17387
17388freebsd* | dragonfly*)
17389 # DragonFly does not have aout. When/if they implement a new
17390 # versioning mechanism, adjust this.
17391 if test -x /usr/bin/objformat; then
17392 objformat=`/usr/bin/objformat`
17393 else
17394 case $host_os in
17395 freebsd[123]*) objformat=aout ;;
17396 *) objformat=elf ;;
17397 esac
17398 fi
17399 version_type=freebsd-$objformat
17400 case $version_type in
17401 freebsd-elf*)
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17403 need_version=no
17404 need_lib_prefix=no
17405 ;;
17406 freebsd-*)
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17408 need_version=yes
17409 ;;
17410 esac
17411 shlibpath_var=LD_LIBRARY_PATH
17412 case $host_os in
17413 freebsd2*)
17414 shlibpath_overrides_runpath=yes
17415 ;;
17416 freebsd3.[01]* | freebsdelf3.[01]*)
17417 shlibpath_overrides_runpath=yes
17418 hardcode_into_libs=yes
17419 ;;
17420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17422 shlibpath_overrides_runpath=no
17423 hardcode_into_libs=yes
17424 ;;
17425 freebsd*) # from 4.6 on
17426 shlibpath_overrides_runpath=yes
17427 hardcode_into_libs=yes
17428 ;;
17429 esac
17430 ;;
17431
17432gnu*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 hardcode_into_libs=yes
17440 ;;
17441
17442hpux9* | hpux10* | hpux11*)
17443 # Give a soname corresponding to the major version so that dld.sl refuses to
17444 # link against other versions.
17445 version_type=sunos
17446 need_lib_prefix=no
17447 need_version=no
17448 case $host_cpu in
17449 ia64*)
17450 shrext_cmds='.so'
17451 hardcode_into_libs=yes
17452 dynamic_linker="$host_os dld.so"
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 soname_spec='${libname}${release}${shared_ext}$major'
17457 if test "X$HPUX_IA64_MODE" = X32; then
17458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17459 else
17460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17461 fi
17462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17463 ;;
17464 hppa*64*)
17465 shrext_cmds='.sl'
17466 hardcode_into_libs=yes
17467 dynamic_linker="$host_os dld.sl"
17468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17474 ;;
17475 *)
17476 shrext_cmds='.sl'
17477 dynamic_linker="$host_os dld.sl"
17478 shlibpath_var=SHLIB_PATH
17479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 ;;
17483 esac
17484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17485 postinstall_cmds='chmod 555 $lib'
17486 ;;
17487
17488interix3*)
17489 version_type=linux
17490 need_lib_prefix=no
17491 need_version=no
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=no
17497 hardcode_into_libs=yes
17498 ;;
17499
17500irix5* | irix6* | nonstopux*)
17501 case $host_os in
17502 nonstopux*) version_type=nonstopux ;;
17503 *)
17504 if test "$lt_cv_prog_gnu_ld" = yes; then
17505 version_type=linux
17506 else
17507 version_type=irix
17508 fi ;;
17509 esac
17510 need_lib_prefix=no
17511 need_version=no
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17514 case $host_os in
17515 irix5* | nonstopux*)
17516 libsuff= shlibsuff=
17517 ;;
17518 *)
17519 case $LD in # libtool.m4 will add one of these switches to LD
17520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17521 libsuff= shlibsuff= libmagic=32-bit;;
17522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17523 libsuff=32 shlibsuff=N32 libmagic=N32;;
17524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17526 *) libsuff= shlibsuff= libmagic=never-match;;
17527 esac
17528 ;;
17529 esac
17530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17531 shlibpath_overrides_runpath=no
17532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17534 hardcode_into_libs=yes
17535 ;;
17536
17537# No shared lib support for Linux oldld, aout, or coff.
17538linux*oldld* | linux*aout* | linux*coff*)
17539 dynamic_linker=no
17540 ;;
17541
17542# This must be Linux ELF.
17543linux*)
17544 version_type=linux
17545 need_lib_prefix=no
17546 need_version=no
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath=no
17552 # This implies no fast_install, which is unacceptable.
17553 # Some rework will be needed to allow for fast_install
17554 # before this can be enabled.
17555 hardcode_into_libs=yes
17556
17557 # find out which ABI we are using
17558 libsuff=
17559 case "$host_cpu" in
17560 x86_64*|s390x*|powerpc64*)
17561 echo '#line 17561 "configure"' > conftest.$ac_ext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563 (eval $ac_compile) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; then
17567 case `/usr/bin/file conftest.$ac_objext` in
17568 *64-bit*)
17569 libsuff=64
17570 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17571 ;;
17572 esac
17573 fi
17574 rm -rf conftest*
17575 ;;
17576 esac
17577
17578 # Append ld.so.conf contents to the search path
17579 if test -f /etc/ld.so.conf; then
17580 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' ' '`
17581 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17582 fi
17583
17584 # We used to test for /lib/ld.so.1 and disable shared libraries on
17585 # powerpc, because MkLinux only supported shared libraries with the
17586 # GNU dynamic linker. Since this was broken with cross compilers,
17587 # most powerpc-linux boxes support dynamic linking these days and
17588 # people can always --disable-shared, the test was removed, and we
17589 # assume the GNU/Linux dynamic linker is in use.
17590 dynamic_linker='GNU/Linux ld.so'
17591 ;;
17592
17593knetbsd*-gnu)
17594 version_type=linux
17595 need_lib_prefix=no
17596 need_version=no
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17598 soname_spec='${libname}${release}${shared_ext}$major'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 shlibpath_overrides_runpath=no
17601 hardcode_into_libs=yes
17602 dynamic_linker='GNU ld.so'
17603 ;;
17604
17605netbsd*)
17606 version_type=sunos
17607 need_lib_prefix=no
17608 need_version=no
17609 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17612 dynamic_linker='NetBSD (a.out) ld.so'
17613 else
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 dynamic_linker='NetBSD ld.elf_so'
17617 fi
17618 shlibpath_var=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath=yes
17620 hardcode_into_libs=yes
17621 ;;
17622
17623newsos6)
17624 version_type=linux
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17626 shlibpath_var=LD_LIBRARY_PATH
17627 shlibpath_overrides_runpath=yes
17628 ;;
17629
17630nto-qnx*)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=yes
17638 ;;
17639
17640openbsd*)
17641 version_type=sunos
17642 sys_lib_dlsearch_path_spec="/usr/lib"
17643 need_lib_prefix=no
17644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17645 case $host_os in
17646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17647 *) need_version=no ;;
17648 esac
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17653 case $host_os in
17654 openbsd2.[89] | openbsd2.[89].*)
17655 shlibpath_overrides_runpath=no
17656 ;;
17657 *)
17658 shlibpath_overrides_runpath=yes
17659 ;;
17660 esac
17661 else
17662 shlibpath_overrides_runpath=yes
17663 fi
17664 ;;
17665
17666os2*)
17667 libname_spec='$name'
17668 shrext_cmds=".dll"
17669 need_lib_prefix=no
17670 library_names_spec='$libname${shared_ext} $libname.a'
17671 dynamic_linker='OS/2 ld.exe'
17672 shlibpath_var=LIBPATH
17673 ;;
17674
17675osf3* | osf4* | osf5*)
17676 version_type=osf
17677 need_lib_prefix=no
17678 need_version=no
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17684 ;;
17685
17686solaris*)
17687 version_type=linux
17688 need_lib_prefix=no
17689 need_version=no
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 shlibpath_var=LD_LIBRARY_PATH
17693 shlibpath_overrides_runpath=yes
17694 hardcode_into_libs=yes
17695 # ldd complains unless libraries are executable
17696 postinstall_cmds='chmod +x $lib'
17697 ;;
17698
17699sunos4*)
17700 version_type=sunos
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=yes
17705 if test "$with_gnu_ld" = yes; then
17706 need_lib_prefix=no
17707 fi
17708 need_version=yes
17709 ;;
17710
17711sysv4 | sysv4.3*)
17712 version_type=linux
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 shlibpath_var=LD_LIBRARY_PATH
17716 case $host_vendor in
17717 sni)
17718 shlibpath_overrides_runpath=no
17719 need_lib_prefix=no
17720 export_dynamic_flag_spec='${wl}-Blargedynsym'
17721 runpath_var=LD_RUN_PATH
17722 ;;
17723 siemens)
17724 need_lib_prefix=no
17725 ;;
17726 motorola)
17727 need_lib_prefix=no
17728 need_version=no
17729 shlibpath_overrides_runpath=no
17730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17731 ;;
17732 esac
17733 ;;
17734
17735sysv4*MP*)
17736 if test -d /usr/nec ;then
17737 version_type=linux
17738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17739 soname_spec='$libname${shared_ext}.$major'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 fi
17742 ;;
17743
17744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17745 version_type=freebsd-elf
17746 need_lib_prefix=no
17747 need_version=no
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 shlibpath_var=LD_LIBRARY_PATH
17751 hardcode_into_libs=yes
17752 if test "$with_gnu_ld" = yes; then
17753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17754 shlibpath_overrides_runpath=no
17755 else
17756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17757 shlibpath_overrides_runpath=yes
17758 case $host_os in
17759 sco3.2v5*)
17760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17761 ;;
17762 esac
17763 fi
17764 sys_lib_dlsearch_path_spec='/usr/lib'
17765 ;;
17766
17767uts4*)
17768 version_type=linux
17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17770 soname_spec='${libname}${release}${shared_ext}$major'
17771 shlibpath_var=LD_LIBRARY_PATH
17772 ;;
17773
17774*)
17775 dynamic_linker=no
17776 ;;
17777esac
17778echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17779echo "${ECHO_T}$dynamic_linker" >&6
17780test "$dynamic_linker" = no && can_build_shared=no
17781
17782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17783if test "$GCC" = yes; then
17784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17785fi
17786
17787echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17788echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17789hardcode_action_GCJ=
17790if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17791 test -n "$runpath_var_GCJ" || \
17792 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17793
17794 # We can hardcode non-existant directories.
17795 if test "$hardcode_direct_GCJ" != no &&
17796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17797 # have to relink, otherwise we might link with an installed library
17798 # when we should be linking with a yet-to-be-installed one
17799 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17800 test "$hardcode_minus_L_GCJ" != no; then
17801 # Linking always hardcodes the temporary library directory.
17802 hardcode_action_GCJ=relink
17803 else
17804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17805 hardcode_action_GCJ=immediate
17806 fi
17807else
17808 # We cannot hardcode anything, or else we can only hardcode existing
17809 # directories.
17810 hardcode_action_GCJ=unsupported
17811fi
17812echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17813echo "${ECHO_T}$hardcode_action_GCJ" >&6
17814
17815if test "$hardcode_action_GCJ" = relink; then
17816 # Fast installation is not supported
17817 enable_fast_install=no
17818elif test "$shlibpath_overrides_runpath" = yes ||
17819 test "$enable_shared" = no; then
17820 # Fast installation is not necessary
17821 enable_fast_install=needless
17822fi
17823
17824
17825# The else clause should only fire when bootstrapping the
17826# libtool distribution, otherwise you forgot to ship ltmain.sh
17827# with your package, and you will get complaints that there are
17828# no rules to generate ltmain.sh.
17829if test -f "$ltmain"; then
17830 # See if we are running on zsh, and set the options which allow our commands through
17831 # without removal of \ escapes.
17832 if test -n "${ZSH_VERSION+set}" ; then
17833 setopt NO_GLOB_SUBST
17834 fi
17835 # Now quote all the things that may contain metacharacters while being
17836 # careful not to overquote the AC_SUBSTed values. We take copies of the
17837 # variables and quote the copies for generation of the libtool script.
17838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17839 SED SHELL STRIP \
17840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17842 deplibs_check_method reload_flag reload_cmds need_locks \
17843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17844 lt_cv_sys_global_symbol_to_c_name_address \
17845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17846 old_postinstall_cmds old_postuninstall_cmds \
17847 compiler_GCJ \
17848 CC_GCJ \
17849 LD_GCJ \
17850 lt_prog_compiler_wl_GCJ \
17851 lt_prog_compiler_pic_GCJ \
17852 lt_prog_compiler_static_GCJ \
17853 lt_prog_compiler_no_builtin_flag_GCJ \
17854 export_dynamic_flag_spec_GCJ \
17855 thread_safe_flag_spec_GCJ \
17856 whole_archive_flag_spec_GCJ \
17857 enable_shared_with_static_runtimes_GCJ \
17858 old_archive_cmds_GCJ \
17859 old_archive_from_new_cmds_GCJ \
17860 predep_objects_GCJ \
17861 postdep_objects_GCJ \
17862 predeps_GCJ \
17863 postdeps_GCJ \
17864 compiler_lib_search_path_GCJ \
17865 archive_cmds_GCJ \
17866 archive_expsym_cmds_GCJ \
17867 postinstall_cmds_GCJ \
17868 postuninstall_cmds_GCJ \
17869 old_archive_from_expsyms_cmds_GCJ \
17870 allow_undefined_flag_GCJ \
17871 no_undefined_flag_GCJ \
17872 export_symbols_cmds_GCJ \
17873 hardcode_libdir_flag_spec_GCJ \
17874 hardcode_libdir_flag_spec_ld_GCJ \
17875 hardcode_libdir_separator_GCJ \
17876 hardcode_automatic_GCJ \
17877 module_cmds_GCJ \
17878 module_expsym_cmds_GCJ \
17879 lt_cv_prog_compiler_c_o_GCJ \
17880 exclude_expsyms_GCJ \
17881 include_expsyms_GCJ; do
17882
17883 case $var in
17884 old_archive_cmds_GCJ | \
17885 old_archive_from_new_cmds_GCJ | \
17886 archive_cmds_GCJ | \
17887 archive_expsym_cmds_GCJ | \
17888 module_cmds_GCJ | \
17889 module_expsym_cmds_GCJ | \
17890 old_archive_from_expsyms_cmds_GCJ | \
17891 export_symbols_cmds_GCJ | \
17892 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17893 postinstall_cmds | postuninstall_cmds | \
17894 old_postinstall_cmds | old_postuninstall_cmds | \
17895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17896 # Double-quote double-evaled strings.
17897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17898 ;;
17899 *)
17900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17901 ;;
17902 esac
17903 done
17904
17905 case $lt_echo in
17906 *'\$0 --fallback-echo"')
17907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17908 ;;
17909 esac
17910
17911cfgfile="$ofile"
17912
17913 cat <<__EOF__ >> "$cfgfile"
17914# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17915
17916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17917
17918# Shell to use when invoking shell scripts.
17919SHELL=$lt_SHELL
17920
17921# Whether or not to build shared libraries.
17922build_libtool_libs=$enable_shared
17923
17924# Whether or not to build static libraries.
17925build_old_libs=$enable_static
17926
17927# Whether or not to add -lc for building shared libraries.
17928build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17929
17930# Whether or not to disallow shared libs when runtime libs are static
17931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17932
17933# Whether or not to optimize for fast installation.
17934fast_install=$enable_fast_install
17935
17936# The host system.
17937host_alias=$host_alias
17938host=$host
17939host_os=$host_os
17940
17941# The build system.
17942build_alias=$build_alias
17943build=$build
17944build_os=$build_os
17945
17946# An echo program that does not interpret backslashes.
17947echo=$lt_echo
17948
17949# The archiver.
17950AR=$lt_AR
17951AR_FLAGS=$lt_AR_FLAGS
17952
17953# A C compiler.
17954LTCC=$lt_LTCC
17955
17956# LTCC compiler flags.
17957LTCFLAGS=$lt_LTCFLAGS
17958
17959# A language-specific compiler.
17960CC=$lt_compiler_GCJ
17961
17962# Is the compiler the GNU C compiler?
17963with_gcc=$GCC_GCJ
17964
17965gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17966gcc_ver=\`gcc -dumpversion\`
17967
17968# An ERE matcher.
17969EGREP=$lt_EGREP
17970
17971# The linker used to build libraries.
17972LD=$lt_LD_GCJ
17973
17974# Whether we need hard or soft links.
17975LN_S=$lt_LN_S
17976
17977# A BSD-compatible nm program.
17978NM=$lt_NM
17979
17980# A symbol stripping program
17981STRIP=$lt_STRIP
17982
17983# Used to examine libraries when file_magic_cmd begins "file"
17984MAGIC_CMD=$MAGIC_CMD
17985
17986# Used on cygwin: DLL creation program.
17987DLLTOOL="$DLLTOOL"
17988
17989# Used on cygwin: object dumper.
17990OBJDUMP="$OBJDUMP"
17991
17992# Used on cygwin: assembler.
17993AS="$AS"
17994
17995# The name of the directory that contains temporary libtool files.
17996objdir=$objdir
17997
17998# How to create reloadable object files.
17999reload_flag=$lt_reload_flag
18000reload_cmds=$lt_reload_cmds
18001
18002# How to pass a linker flag through the compiler.
18003wl=$lt_lt_prog_compiler_wl_GCJ
18004
18005# Object file suffix (normally "o").
18006objext="$ac_objext"
18007
18008# Old archive suffix (normally "a").
18009libext="$libext"
18010
18011# Shared library suffix (normally ".so").
18012shrext_cmds='$shrext_cmds'
18013
18014# Executable file suffix (normally "").
18015exeext="$exeext"
18016
18017# Additional compiler flags for building library objects.
18018pic_flag=$lt_lt_prog_compiler_pic_GCJ
18019pic_mode=$pic_mode
18020
18021# What is the maximum length of a command?
18022max_cmd_len=$lt_cv_sys_max_cmd_len
18023
18024# Does compiler simultaneously support -c and -o options?
18025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18026
18027# Must we lock files when doing compilation?
18028need_locks=$lt_need_locks
18029
18030# Do we need the lib prefix for modules?
18031need_lib_prefix=$need_lib_prefix
18032
18033# Do we need a version for libraries?
18034need_version=$need_version
18035
18036# Whether dlopen is supported.
18037dlopen_support=$enable_dlopen
18038
18039# Whether dlopen of programs is supported.
18040dlopen_self=$enable_dlopen_self
18041
18042# Whether dlopen of statically linked programs is supported.
18043dlopen_self_static=$enable_dlopen_self_static
18044
18045# Compiler flag to prevent dynamic linking.
18046link_static_flag=$lt_lt_prog_compiler_static_GCJ
18047
18048# Compiler flag to turn off builtin functions.
18049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18050
18051# Compiler flag to allow reflexive dlopens.
18052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18053
18054# Compiler flag to generate shared objects directly from archives.
18055whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18056
18057# Compiler flag to generate thread-safe objects.
18058thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18059
18060# Library versioning type.
18061version_type=$version_type
18062
18063# Format of library name prefix.
18064libname_spec=$lt_libname_spec
18065
18066# List of archive names. First name is the real one, the rest are links.
18067# The last name is the one that the linker finds with -lNAME.
18068library_names_spec=$lt_library_names_spec
18069
18070# The coded name of the library, if different from the real name.
18071soname_spec=$lt_soname_spec
18072
18073# Commands used to build and install an old-style archive.
18074RANLIB=$lt_RANLIB
18075old_archive_cmds=$lt_old_archive_cmds_GCJ
18076old_postinstall_cmds=$lt_old_postinstall_cmds
18077old_postuninstall_cmds=$lt_old_postuninstall_cmds
18078
18079# Create an old-style archive from a shared archive.
18080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18081
18082# Create a temporary old-style archive to link instead of a shared archive.
18083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18084
18085# Commands used to build and install a shared archive.
18086archive_cmds=$lt_archive_cmds_GCJ
18087archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18088postinstall_cmds=$lt_postinstall_cmds
18089postuninstall_cmds=$lt_postuninstall_cmds
18090
18091# Commands used to build a loadable module (assumed same as above if empty)
18092module_cmds=$lt_module_cmds_GCJ
18093module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18094
18095# Commands to strip libraries.
18096old_striplib=$lt_old_striplib
18097striplib=$lt_striplib
18098
18099# Dependencies to place before the objects being linked to create a
18100# shared library.
18101predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18102
18103# Dependencies to place after the objects being linked to create a
18104# shared library.
18105postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18106
18107# Dependencies to place before the objects being linked to create a
18108# shared library.
18109predeps=$lt_predeps_GCJ
18110
18111# Dependencies to place after the objects being linked to create a
18112# shared library.
18113postdeps=$lt_postdeps_GCJ
18114
18115# The library search path used internally by the compiler when linking
18116# a shared library.
18117compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18118
18119# Method to check whether dependent libraries are shared objects.
18120deplibs_check_method=$lt_deplibs_check_method
18121
18122# Command to use when deplibs_check_method == file_magic.
18123file_magic_cmd=$lt_file_magic_cmd
18124
18125# Flag that allows shared libraries with undefined symbols to be built.
18126allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18127
18128# Flag that forces no undefined symbols.
18129no_undefined_flag=$lt_no_undefined_flag_GCJ
18130
18131# Commands used to finish a libtool library installation in a directory.
18132finish_cmds=$lt_finish_cmds
18133
18134# Same as above, but a single script fragment to be evaled but not shown.
18135finish_eval=$lt_finish_eval
18136
18137# Take the output of nm and produce a listing of raw symbols and C names.
18138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18139
18140# Transform the output of nm in a proper C declaration
18141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18142
18143# Transform the output of nm in a C name address pair
18144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18145
18146# This is the shared library runtime path variable.
18147runpath_var=$runpath_var
18148
18149# This is the shared library path variable.
18150shlibpath_var=$shlibpath_var
18151
18152# Is shlibpath searched before the hard-coded library search path?
18153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18154
18155# How to hardcode a shared library path into an executable.
18156hardcode_action=$hardcode_action_GCJ
18157
18158# Whether we should hardcode library paths into libraries.
18159hardcode_into_libs=$hardcode_into_libs
18160
18161# Flag to hardcode \$libdir into a binary during linking.
18162# This must work even if \$libdir does not exist.
18163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18164
18165# If ld is used when linking, flag to hardcode \$libdir into
18166# a binary during linking. This must work even if \$libdir does
18167# not exist.
18168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18169
18170# Whether we need a single -rpath flag with a separated argument.
18171hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18172
18173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18174# resulting binary.
18175hardcode_direct=$hardcode_direct_GCJ
18176
18177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18178# resulting binary.
18179hardcode_minus_L=$hardcode_minus_L_GCJ
18180
18181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18182# the resulting binary.
18183hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18184
18185# Set to yes if building a shared library automatically hardcodes DIR into the library
18186# and all subsequent libraries and executables linked against it.
18187hardcode_automatic=$hardcode_automatic_GCJ
18188
18189# Variables whose values should be saved in libtool wrapper scripts and
18190# restored at relink time.
18191variables_saved_for_relink="$variables_saved_for_relink"
18192
18193# Whether libtool must link a program against all its dependency libraries.
18194link_all_deplibs=$link_all_deplibs_GCJ
18195
18196# Compile-time system search path for libraries
18197sys_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"\`
18198
18199# Run-time system search path for libraries
18200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18201
18202# Fix the shell variable \$srcfile for the compiler.
18203fix_srcfile_path="$fix_srcfile_path_GCJ"
18204
18205# Set to yes if exported symbols are required.
18206always_export_symbols=$always_export_symbols_GCJ
18207
18208# The commands to list exported symbols.
18209export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18210
18211# The commands to extract the exported symbol list from a shared archive.
18212extract_expsyms_cmds=$lt_extract_expsyms_cmds
18213
18214# Symbols that should not be listed in the preloaded symbols.
18215exclude_expsyms=$lt_exclude_expsyms_GCJ
18216
18217# Symbols that must always be exported.
18218include_expsyms=$lt_include_expsyms_GCJ
18219
18220# ### END LIBTOOL TAG CONFIG: $tagname
18221
18222__EOF__
18223
18224
18225else
18226 # If there is no Makefile yet, we rely on a make rule to execute
18227 # `config.status --recheck' to rerun these tests and create the
18228 # libtool script then.
18229 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18230 if test -f "$ltmain_in"; then
18231 test -f Makefile && make "$ltmain"
18232 fi
18233fi
18234
18235
18236ac_ext=c
18237ac_cpp='$CPP $CPPFLAGS'
18238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240ac_compiler_gnu=$ac_cv_c_compiler_gnu
18241
18242CC="$lt_save_CC"
18243
18244 else
18245 tagname=""
18246 fi
18247 ;;
18248
18249 RC)
18250
18251
18252
18253# Source file extension for RC test sources.
18254ac_ext=rc
18255
18256# Object file extension for compiled RC test sources.
18257objext=o
18258objext_RC=$objext
18259
18260# Code to be used in simple compile tests
18261lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18262
18263# Code to be used in simple link tests
18264lt_simple_link_test_code="$lt_simple_compile_test_code"
18265
18266# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18267
18268# If no C compiler was specified, use CC.
18269LTCC=${LTCC-"$CC"}
18270
18271# If no C compiler flags were specified, use CFLAGS.
18272LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18273
18274# Allow CC to be a program name with arguments.
18275compiler=$CC
18276
18277
18278# save warnings/boilerplate of simple test code
18279ac_outfile=conftest.$ac_objext
18280printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18282_lt_compiler_boilerplate=`cat conftest.err`
18283$rm conftest*
18284
18285ac_outfile=conftest.$ac_objext
18286printf "$lt_simple_link_test_code" >conftest.$ac_ext
18287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18288_lt_linker_boilerplate=`cat conftest.err`
18289$rm conftest*
18290
18291
18292# Allow CC to be a program name with arguments.
18293lt_save_CC="$CC"
18294CC=${RC-"windres"}
18295compiler=$CC
18296compiler_RC=$CC
18297for cc_temp in $compiler""; do
18298 case $cc_temp in
18299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18301 \-*) ;;
18302 *) break;;
18303 esac
18304done
18305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18306
18307lt_cv_prog_compiler_c_o_RC=yes
18308
18309# The else clause should only fire when bootstrapping the
18310# libtool distribution, otherwise you forgot to ship ltmain.sh
18311# with your package, and you will get complaints that there are
18312# no rules to generate ltmain.sh.
18313if test -f "$ltmain"; then
18314 # See if we are running on zsh, and set the options which allow our commands through
18315 # without removal of \ escapes.
18316 if test -n "${ZSH_VERSION+set}" ; then
18317 setopt NO_GLOB_SUBST
18318 fi
18319 # Now quote all the things that may contain metacharacters while being
18320 # careful not to overquote the AC_SUBSTed values. We take copies of the
18321 # variables and quote the copies for generation of the libtool script.
18322 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18323 SED SHELL STRIP \
18324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18326 deplibs_check_method reload_flag reload_cmds need_locks \
18327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18328 lt_cv_sys_global_symbol_to_c_name_address \
18329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18330 old_postinstall_cmds old_postuninstall_cmds \
18331 compiler_RC \
18332 CC_RC \
18333 LD_RC \
18334 lt_prog_compiler_wl_RC \
18335 lt_prog_compiler_pic_RC \
18336 lt_prog_compiler_static_RC \
18337 lt_prog_compiler_no_builtin_flag_RC \
18338 export_dynamic_flag_spec_RC \
18339 thread_safe_flag_spec_RC \
18340 whole_archive_flag_spec_RC \
18341 enable_shared_with_static_runtimes_RC \
18342 old_archive_cmds_RC \
18343 old_archive_from_new_cmds_RC \
18344 predep_objects_RC \
18345 postdep_objects_RC \
18346 predeps_RC \
18347 postdeps_RC \
18348 compiler_lib_search_path_RC \
18349 archive_cmds_RC \
18350 archive_expsym_cmds_RC \
18351 postinstall_cmds_RC \
18352 postuninstall_cmds_RC \
18353 old_archive_from_expsyms_cmds_RC \
18354 allow_undefined_flag_RC \
18355 no_undefined_flag_RC \
18356 export_symbols_cmds_RC \
18357 hardcode_libdir_flag_spec_RC \
18358 hardcode_libdir_flag_spec_ld_RC \
18359 hardcode_libdir_separator_RC \
18360 hardcode_automatic_RC \
18361 module_cmds_RC \
18362 module_expsym_cmds_RC \
18363 lt_cv_prog_compiler_c_o_RC \
18364 exclude_expsyms_RC \
18365 include_expsyms_RC; do
18366
18367 case $var in
18368 old_archive_cmds_RC | \
18369 old_archive_from_new_cmds_RC | \
18370 archive_cmds_RC | \
18371 archive_expsym_cmds_RC | \
18372 module_cmds_RC | \
18373 module_expsym_cmds_RC | \
18374 old_archive_from_expsyms_cmds_RC | \
18375 export_symbols_cmds_RC | \
18376 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18377 postinstall_cmds | postuninstall_cmds | \
18378 old_postinstall_cmds | old_postuninstall_cmds | \
18379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18380 # Double-quote double-evaled strings.
18381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18382 ;;
18383 *)
18384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18385 ;;
18386 esac
18387 done
18388
18389 case $lt_echo in
18390 *'\$0 --fallback-echo"')
18391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18392 ;;
18393 esac
18394
18395cfgfile="$ofile"
18396
18397 cat <<__EOF__ >> "$cfgfile"
18398# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18399
18400# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18401
18402# Shell to use when invoking shell scripts.
18403SHELL=$lt_SHELL
18404
18405# Whether or not to build shared libraries.
18406build_libtool_libs=$enable_shared
18407
18408# Whether or not to build static libraries.
18409build_old_libs=$enable_static
18410
18411# Whether or not to add -lc for building shared libraries.
18412build_libtool_need_lc=$archive_cmds_need_lc_RC
18413
18414# Whether or not to disallow shared libs when runtime libs are static
18415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18416
18417# Whether or not to optimize for fast installation.
18418fast_install=$enable_fast_install
18419
18420# The host system.
18421host_alias=$host_alias
18422host=$host
18423host_os=$host_os
18424
18425# The build system.
18426build_alias=$build_alias
18427build=$build
18428build_os=$build_os
18429
18430# An echo program that does not interpret backslashes.
18431echo=$lt_echo
18432
18433# The archiver.
18434AR=$lt_AR
18435AR_FLAGS=$lt_AR_FLAGS
18436
18437# A C compiler.
18438LTCC=$lt_LTCC
18439
18440# LTCC compiler flags.
18441LTCFLAGS=$lt_LTCFLAGS
18442
18443# A language-specific compiler.
18444CC=$lt_compiler_RC
18445
18446# Is the compiler the GNU C compiler?
18447with_gcc=$GCC_RC
18448
18449gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18450gcc_ver=\`gcc -dumpversion\`
18451
18452# An ERE matcher.
18453EGREP=$lt_EGREP
18454
18455# The linker used to build libraries.
18456LD=$lt_LD_RC
18457
18458# Whether we need hard or soft links.
18459LN_S=$lt_LN_S
18460
18461# A BSD-compatible nm program.
18462NM=$lt_NM
18463
18464# A symbol stripping program
18465STRIP=$lt_STRIP
18466
18467# Used to examine libraries when file_magic_cmd begins "file"
18468MAGIC_CMD=$MAGIC_CMD
18469
18470# Used on cygwin: DLL creation program.
18471DLLTOOL="$DLLTOOL"
18472
18473# Used on cygwin: object dumper.
18474OBJDUMP="$OBJDUMP"
18475
18476# Used on cygwin: assembler.
18477AS="$AS"
18478
18479# The name of the directory that contains temporary libtool files.
18480objdir=$objdir
18481
18482# How to create reloadable object files.
18483reload_flag=$lt_reload_flag
18484reload_cmds=$lt_reload_cmds
18485
18486# How to pass a linker flag through the compiler.
18487wl=$lt_lt_prog_compiler_wl_RC
18488
18489# Object file suffix (normally "o").
18490objext="$ac_objext"
18491
18492# Old archive suffix (normally "a").
18493libext="$libext"
18494
18495# Shared library suffix (normally ".so").
18496shrext_cmds='$shrext_cmds'
18497
18498# Executable file suffix (normally "").
18499exeext="$exeext"
18500
18501# Additional compiler flags for building library objects.
18502pic_flag=$lt_lt_prog_compiler_pic_RC
18503pic_mode=$pic_mode
18504
18505# What is the maximum length of a command?
18506max_cmd_len=$lt_cv_sys_max_cmd_len
18507
18508# Does compiler simultaneously support -c and -o options?
18509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18510
18511# Must we lock files when doing compilation?
18512need_locks=$lt_need_locks
18513
18514# Do we need the lib prefix for modules?
18515need_lib_prefix=$need_lib_prefix
18516
18517# Do we need a version for libraries?
18518need_version=$need_version
18519
18520# Whether dlopen is supported.
18521dlopen_support=$enable_dlopen
18522
18523# Whether dlopen of programs is supported.
18524dlopen_self=$enable_dlopen_self
18525
18526# Whether dlopen of statically linked programs is supported.
18527dlopen_self_static=$enable_dlopen_self_static
18528
18529# Compiler flag to prevent dynamic linking.
18530link_static_flag=$lt_lt_prog_compiler_static_RC
18531
18532# Compiler flag to turn off builtin functions.
18533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18534
18535# Compiler flag to allow reflexive dlopens.
18536export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18537
18538# Compiler flag to generate shared objects directly from archives.
18539whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18540
18541# Compiler flag to generate thread-safe objects.
18542thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18543
18544# Library versioning type.
18545version_type=$version_type
18546
18547# Format of library name prefix.
18548libname_spec=$lt_libname_spec
18549
18550# List of archive names. First name is the real one, the rest are links.
18551# The last name is the one that the linker finds with -lNAME.
18552library_names_spec=$lt_library_names_spec
18553
18554# The coded name of the library, if different from the real name.
18555soname_spec=$lt_soname_spec
18556
18557# Commands used to build and install an old-style archive.
18558RANLIB=$lt_RANLIB
18559old_archive_cmds=$lt_old_archive_cmds_RC
18560old_postinstall_cmds=$lt_old_postinstall_cmds
18561old_postuninstall_cmds=$lt_old_postuninstall_cmds
18562
18563# Create an old-style archive from a shared archive.
18564old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18565
18566# Create a temporary old-style archive to link instead of a shared archive.
18567old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18568
18569# Commands used to build and install a shared archive.
18570archive_cmds=$lt_archive_cmds_RC
18571archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18572postinstall_cmds=$lt_postinstall_cmds
18573postuninstall_cmds=$lt_postuninstall_cmds
18574
18575# Commands used to build a loadable module (assumed same as above if empty)
18576module_cmds=$lt_module_cmds_RC
18577module_expsym_cmds=$lt_module_expsym_cmds_RC
18578
18579# Commands to strip libraries.
18580old_striplib=$lt_old_striplib
18581striplib=$lt_striplib
18582
18583# Dependencies to place before the objects being linked to create a
18584# shared library.
18585predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18586
18587# Dependencies to place after the objects being linked to create a
18588# shared library.
18589postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18590
18591# Dependencies to place before the objects being linked to create a
18592# shared library.
18593predeps=$lt_predeps_RC
18594
18595# Dependencies to place after the objects being linked to create a
18596# shared library.
18597postdeps=$lt_postdeps_RC
18598
18599# The library search path used internally by the compiler when linking
18600# a shared library.
18601compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18602
18603# Method to check whether dependent libraries are shared objects.
18604deplibs_check_method=$lt_deplibs_check_method
18605
18606# Command to use when deplibs_check_method == file_magic.
18607file_magic_cmd=$lt_file_magic_cmd
18608
18609# Flag that allows shared libraries with undefined symbols to be built.
18610allow_undefined_flag=$lt_allow_undefined_flag_RC
18611
18612# Flag that forces no undefined symbols.
18613no_undefined_flag=$lt_no_undefined_flag_RC
18614
18615# Commands used to finish a libtool library installation in a directory.
18616finish_cmds=$lt_finish_cmds
18617
18618# Same as above, but a single script fragment to be evaled but not shown.
18619finish_eval=$lt_finish_eval
18620
18621# Take the output of nm and produce a listing of raw symbols and C names.
18622global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18623
18624# Transform the output of nm in a proper C declaration
18625global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18626
18627# Transform the output of nm in a C name address pair
18628global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18629
18630# This is the shared library runtime path variable.
18631runpath_var=$runpath_var
18632
18633# This is the shared library path variable.
18634shlibpath_var=$shlibpath_var
18635
18636# Is shlibpath searched before the hard-coded library search path?
18637shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18638
18639# How to hardcode a shared library path into an executable.
18640hardcode_action=$hardcode_action_RC
18641
18642# Whether we should hardcode library paths into libraries.
18643hardcode_into_libs=$hardcode_into_libs
18644
18645# Flag to hardcode \$libdir into a binary during linking.
18646# This must work even if \$libdir does not exist.
18647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18648
18649# If ld is used when linking, flag to hardcode \$libdir into
18650# a binary during linking. This must work even if \$libdir does
18651# not exist.
18652hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18653
18654# Whether we need a single -rpath flag with a separated argument.
18655hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18656
18657# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18658# resulting binary.
18659hardcode_direct=$hardcode_direct_RC
18660
18661# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18662# resulting binary.
18663hardcode_minus_L=$hardcode_minus_L_RC
18664
18665# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18666# the resulting binary.
18667hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18668
18669# Set to yes if building a shared library automatically hardcodes DIR into the library
18670# and all subsequent libraries and executables linked against it.
18671hardcode_automatic=$hardcode_automatic_RC
18672
18673# Variables whose values should be saved in libtool wrapper scripts and
18674# restored at relink time.
18675variables_saved_for_relink="$variables_saved_for_relink"
18676
18677# Whether libtool must link a program against all its dependency libraries.
18678link_all_deplibs=$link_all_deplibs_RC
18679
18680# Compile-time system search path for libraries
18681sys_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"\`
18682
18683# Run-time system search path for libraries
18684sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18685
18686# Fix the shell variable \$srcfile for the compiler.
18687fix_srcfile_path="$fix_srcfile_path_RC"
18688
18689# Set to yes if exported symbols are required.
18690always_export_symbols=$always_export_symbols_RC
18691
18692# The commands to list exported symbols.
18693export_symbols_cmds=$lt_export_symbols_cmds_RC
18694
18695# The commands to extract the exported symbol list from a shared archive.
18696extract_expsyms_cmds=$lt_extract_expsyms_cmds
18697
18698# Symbols that should not be listed in the preloaded symbols.
18699exclude_expsyms=$lt_exclude_expsyms_RC
18700
18701# Symbols that must always be exported.
18702include_expsyms=$lt_include_expsyms_RC
18703
18704# ### END LIBTOOL TAG CONFIG: $tagname
18705
18706__EOF__
18707
18708
18709else
18710 # If there is no Makefile yet, we rely on a make rule to execute
18711 # `config.status --recheck' to rerun these tests and create the
18712 # libtool script then.
18713 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18714 if test -f "$ltmain_in"; then
18715 test -f Makefile && make "$ltmain"
18716 fi
18717fi
18718
18719
18720ac_ext=c
18721ac_cpp='$CPP $CPPFLAGS'
18722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18724ac_compiler_gnu=$ac_cv_c_compiler_gnu
18725
18726CC="$lt_save_CC"
18727
18728 ;;
18729
18730 *)
18731 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18732echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18733 { (exit 1); exit 1; }; }
18734 ;;
18735 esac
18736
18737 # Append the new tag name to the list of available tags.
18738 if test -n "$tagname" ; then
18739 available_tags="$available_tags $tagname"
18740 fi
18741 fi
18742 done
18743 IFS="$lt_save_ifs"
18744
18745 # Now substitute the updated list of available tags.
18746 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18747 mv "${ofile}T" "$ofile"
18748 chmod +x "$ofile"
18749 else
18750 rm -f "${ofile}T"
18751 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18752echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18753 { (exit 1); exit 1; }; }
18754 fi
18755fi
18756
18757
18758
18759# This can be used to rebuild libtool when needed
18760LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18761
18762# Always use our own libtool.
18763LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18764
18765# Prevent multiple expansion
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787if test x$GCC = xyes
18788then
18789 CFLAGS="-Wall $CFLAGS"
18790fi
18791if test x$GXX = xyes
18792then
18793 CXXFLAGS="-Wall $CXXFLAGS"
18794fi
18795
18796CFLAGS="-I$srcdir/.. -I.. $CFLAGS"
18797CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS"
18798
18799
18800
18801# Check whether --with-db or --without-db was given.
18802if test "${with_db+set}" = set; then
18803 withval="$with_db"
18804 db="$withval"
18805else
18806 db=""
18807fi;
18808
18809. ../dbobj.config
18810
18811makedatprog_target=makedatprog
18812case "$db" in
18813gdbm)
18814 dblibrary=../gdbmobj/libgdbmobj.la
18815 LIBDB=""
18816 ;;
18817db)
18818 dblibrary=../bdbobj/libbdbobj.la
18819 LIBGDBM=""
18820 ;;
18821*)
18822 makedatprog_target=""
18823esac
18824
18825
18826
18827
18828
18829
18830
18831
18832if test "$USE_GDBM" = 1; then
18833 USE_GDBM_TRUE=
18834 USE_GDBM_FALSE='#'
18835else
18836 USE_GDBM_TRUE='#'
18837 USE_GDBM_FALSE=
18838fi
18839
18840
18841
18842if test "$USE_DB" = 1; then
18843 USE_DB_TRUE=
18844 USE_DB_FALSE='#'
18845else
18846 USE_DB_TRUE='#'
18847 USE_DB_FALSE=
18848fi
18849
18850
18851
18852echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18853echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18854if test "${ac_cv_header_stdc+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856else
18857 cat >conftest.$ac_ext <<_ACEOF
18858/* confdefs.h. */
18859_ACEOF
18860cat confdefs.h >>conftest.$ac_ext
18861cat >>conftest.$ac_ext <<_ACEOF
18862/* end confdefs.h. */
18863#include <stdlib.h>
18864#include <stdarg.h>
18865#include <string.h>
18866#include <float.h>
18867
18868int
18869main ()
18870{
18871
18872 ;
18873 return 0;
18874}
18875_ACEOF
18876rm -f conftest.$ac_objext
18877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878 (eval $ac_compile) 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag"
18886 || test ! -s conftest.err'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_header_stdc=yes
18899else
18900 echo "$as_me: failed program was:" >&5
18901sed 's/^/| /' conftest.$ac_ext >&5
18902
18903ac_cv_header_stdc=no
18904fi
18905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18906
18907if test $ac_cv_header_stdc = yes; then
18908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18909 cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915#include <string.h>
18916
18917_ACEOF
18918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18919 $EGREP "memchr" >/dev/null 2>&1; then
18920 :
18921else
18922 ac_cv_header_stdc=no
18923fi
18924rm -f conftest*
18925
18926fi
18927
18928if test $ac_cv_header_stdc = yes; then
18929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18930 cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
18936#include <stdlib.h>
18937
18938_ACEOF
18939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18940 $EGREP "free" >/dev/null 2>&1; then
18941 :
18942else
18943 ac_cv_header_stdc=no
18944fi
18945rm -f conftest*
18946
18947fi
18948
18949if test $ac_cv_header_stdc = yes; then
18950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18951 if test "$cross_compiling" = yes; then
18952 :
18953else
18954 cat >conftest.$ac_ext <<_ACEOF
18955/* confdefs.h. */
18956_ACEOF
18957cat confdefs.h >>conftest.$ac_ext
18958cat >>conftest.$ac_ext <<_ACEOF
18959/* end confdefs.h. */
18960#include <ctype.h>
18961#if ((' ' & 0x0FF) == 0x020)
18962# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18963# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18964#else
18965# define ISLOWER(c) \
18966 (('a' <= (c) && (c) <= 'i') \
18967 || ('j' <= (c) && (c) <= 'r') \
18968 || ('s' <= (c) && (c) <= 'z'))
18969# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18970#endif
18971
18972#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18973int
18974main ()
18975{
18976 int i;
18977 for (i = 0; i < 256; i++)
18978 if (XOR (islower (i), ISLOWER (i))
18979 || toupper (i) != TOUPPER (i))
18980 exit(2);
18981 exit (0);
18982}
18983_ACEOF
18984rm -f conftest$ac_exeext
18985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18986 (eval $ac_link) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 :
18996else
18997 echo "$as_me: program exited with status $ac_status" >&5
18998echo "$as_me: failed program was:" >&5
18999sed 's/^/| /' conftest.$ac_ext >&5
19000
19001( exit $ac_status )
19002ac_cv_header_stdc=no
19003fi
19004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19005fi
19006fi
19007fi
19008echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19009echo "${ECHO_T}$ac_cv_header_stdc" >&6
19010if test $ac_cv_header_stdc = yes; then
19011
19012cat >>confdefs.h <<\_ACEOF
19013#define STDC_HEADERS 1
19014_ACEOF
19015
19016fi
19017
19018
19019for ac_header in unistd.h
19020do
19021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19022if eval "test \"\${$as_ac_Header+set}\" = set"; then
19023 echo "$as_me:$LINENO: checking for $ac_header" >&5
19024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19025if eval "test \"\${$as_ac_Header+set}\" = set"; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027fi
19028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19030else
19031 # Is the header compilable?
19032echo "$as_me:$LINENO: checking $ac_header usability" >&5
19033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19034cat >conftest.$ac_ext <<_ACEOF
19035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
19040$ac_includes_default
19041#include <$ac_header>
19042_ACEOF
19043rm -f conftest.$ac_objext
19044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19045 (eval $ac_compile) 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest.$ac_objext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_header_compiler=yes
19066else
19067 echo "$as_me: failed program was:" >&5
19068sed 's/^/| /' conftest.$ac_ext >&5
19069
19070ac_header_compiler=no
19071fi
19072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19074echo "${ECHO_T}$ac_header_compiler" >&6
19075
19076# Is the header present?
19077echo "$as_me:$LINENO: checking $ac_header presence" >&5
19078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19079cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
19085#include <$ac_header>
19086_ACEOF
19087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } >/dev/null; then
19095 if test -s conftest.err; then
19096 ac_cpp_err=$ac_c_preproc_warn_flag
19097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19098 else
19099 ac_cpp_err=
19100 fi
19101else
19102 ac_cpp_err=yes
19103fi
19104if test -z "$ac_cpp_err"; then
19105 ac_header_preproc=yes
19106else
19107 echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 ac_header_preproc=no
19111fi
19112rm -f conftest.err conftest.$ac_ext
19113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19114echo "${ECHO_T}$ac_header_preproc" >&6
19115
19116# So? What about this header?
19117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19118 yes:no: )
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19123 ac_header_preproc=yes
19124 ;;
19125 no:yes:* )
19126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19138 (
19139 cat <<\_ASBOX
19140## -------------------------------------------------- ##
19141## Report this to courier-users@lists.sourceforge.net ##
19142## -------------------------------------------------- ##
19143_ASBOX
19144 ) |
19145 sed "s/^/$as_me: WARNING: /" >&2
19146 ;;
19147esac
19148echo "$as_me:$LINENO: checking for $ac_header" >&5
19149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19150if eval "test \"\${$as_ac_Header+set}\" = set"; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19152else
19153 eval "$as_ac_Header=\$ac_header_preproc"
19154fi
19155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19157
19158fi
19159if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19162_ACEOF
19163
19164fi
19165
19166done
19167
19168
19169
19170
19171
19172# Check whether --with-makedatprog or --without-makedatprog was given.
19173if test "${with_makedatprog+set}" = set; then
19174 withval="$with_makedatprog"
19175 makedatprog="$withval"
19176else
19177 makedatprog="$bindir/makedatprog"
19178fi;
19179
19180makedatprogpath="$makedatprog"
19181
19182
19183 ac_config_files="$ac_config_files Makefile makedat"
19184cat >confcache <<\_ACEOF
19185# This file is a shell script that caches the results of configure
19186# tests run on this system so they can be shared between configure
19187# scripts and configure runs, see configure's option --config-cache.
19188# It is not useful on other systems. If it contains results you don't
19189# want to keep, you may remove or edit it.
19190#
19191# config.status only pays attention to the cache file if you give it
19192# the --recheck option to rerun configure.
19193#
19194# `ac_cv_env_foo' variables (set or unset) will be overridden when
19195# loading this file, other *unset* `ac_cv_foo' will be assigned the
19196# following values.
19197
19198_ACEOF
19199
19200# The following way of writing the cache mishandles newlines in values,
19201# but we know of no workaround that is simple, portable, and efficient.
19202# So, don't put newlines in cache variables' values.
19203# Ultrix sh set writes to stderr and can't be redirected directly,
19204# and sets the high bit in the cache file unless we assign to the vars.
19205{
19206 (set) 2>&1 |
19207 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19208 *ac_space=\ *)
19209 # `set' does not quote correctly, so add quotes (double-quote
19210 # substitution turns \\\\ into \\, and sed turns \\ into \).
19211 sed -n \
19212 "s/'/'\\\\''/g;
19213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19214 ;;
19215 *)
19216 # `set' quotes correctly as required by POSIX, so do not add quotes.
19217 sed -n \
19218 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19219 ;;
19220 esac;
19221} |
19222 sed '
19223 t clear
19224 : clear
19225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19226 t end
19227 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19228 : end' >>confcache
19229if diff $cache_file confcache >/dev/null 2>&1; then :; else
19230 if test -w $cache_file; then
19231 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19232 cat confcache >$cache_file
19233 else
19234 echo "not updating unwritable cache $cache_file"
19235 fi
19236fi
19237rm -f confcache
19238
19239test "x$prefix" = xNONE && prefix=$ac_default_prefix
19240# Let make expand exec_prefix.
19241test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19242
19243# VPATH may cause trouble with some makes, so we remove $(srcdir),
19244# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19245# trailing colons and then remove the whole line if VPATH becomes empty
19246# (actually we leave an empty line to preserve line numbers).
19247if test "x$srcdir" = x.; then
19248 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19249s/:*\$(srcdir):*/:/;
19250s/:*\${srcdir}:*/:/;
19251s/:*@srcdir@:*/:/;
19252s/^\([^=]*=[ ]*\):*/\1/;
19253s/:*$//;
19254s/^[^=]*=[ ]*$//;
19255}'
19256fi
19257
19258DEFS=-DHAVE_CONFIG_H
19259
19260ac_libobjs=
19261ac_ltlibobjs=
19262for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19263 # 1. Remove the extension, and $U if already installed.
19264 ac_i=`echo "$ac_i" |
19265 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19266 # 2. Add them.
19267 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19268 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19269done
19270LIBOBJS=$ac_libobjs
19271
19272LTLIBOBJS=$ac_ltlibobjs
19273
19274
19275if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19276 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19277Usually this means the macro was only invoked conditionally." >&5
19278echo "$as_me: error: conditional \"AMDEP\" was never defined.
19279Usually this means the macro was only invoked conditionally." >&2;}
19280 { (exit 1); exit 1; }; }
19281fi
19282if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19283 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19284Usually this means the macro was only invoked conditionally." >&5
19285echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19286Usually this means the macro was only invoked conditionally." >&2;}
19287 { (exit 1); exit 1; }; }
19288fi
19289if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19290 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19291Usually this means the macro was only invoked conditionally." >&5
19292echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19293Usually this means the macro was only invoked conditionally." >&2;}
19294 { (exit 1); exit 1; }; }
19295fi
19296if test -z "${USE_GDBM_TRUE}" && test -z "${USE_GDBM_FALSE}"; then
19297 { { echo "$as_me:$LINENO: error: conditional \"USE_GDBM\" was never defined.
19298Usually this means the macro was only invoked conditionally." >&5
19299echo "$as_me: error: conditional \"USE_GDBM\" was never defined.
19300Usually this means the macro was only invoked conditionally." >&2;}
19301 { (exit 1); exit 1; }; }
19302fi
19303if test -z "${USE_DB_TRUE}" && test -z "${USE_DB_FALSE}"; then
19304 { { echo "$as_me:$LINENO: error: conditional \"USE_DB\" was never defined.
19305Usually this means the macro was only invoked conditionally." >&5
19306echo "$as_me: error: conditional \"USE_DB\" was never defined.
19307Usually this means the macro was only invoked conditionally." >&2;}
19308 { (exit 1); exit 1; }; }
19309fi
19310
19311: ${CONFIG_STATUS=./config.status}
19312ac_clean_files_save=$ac_clean_files
19313ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19314{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19315echo "$as_me: creating $CONFIG_STATUS" >&6;}
19316cat >$CONFIG_STATUS <<_ACEOF
19317#! $SHELL
19318# Generated by $as_me.
19319# Run this file to recreate the current configuration.
19320# Compiler output produced by configure, useful for debugging
19321# configure, is in config.log if it exists.
19322
19323debug=false
19324ac_cs_recheck=false
19325ac_cs_silent=false
19326SHELL=\${CONFIG_SHELL-$SHELL}
19327_ACEOF
19328
19329cat >>$CONFIG_STATUS <<\_ACEOF
19330## --------------------- ##
19331## M4sh Initialization. ##
19332## --------------------- ##
19333
19334# Be Bourne compatible
19335if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19336 emulate sh
19337 NULLCMD=:
19338 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19339 # is contrary to our usage. Disable this feature.
19340 alias -g '${1+"$@"}'='"$@"'
19341elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19342 set -o posix
19343fi
19344DUALCASE=1; export DUALCASE # for MKS sh
19345
19346# Support unset when possible.
19347if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19348 as_unset=unset
19349else
19350 as_unset=false
19351fi
19352
19353
19354# Work around bugs in pre-3.0 UWIN ksh.
19355$as_unset ENV MAIL MAILPATH
19356PS1='$ '
19357PS2='> '
19358PS4='+ '
19359
19360# NLS nuisances.
19361for as_var in \
19362 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19363 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19364 LC_TELEPHONE LC_TIME
19365do
19366 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19367 eval $as_var=C; export $as_var
19368 else
19369 $as_unset $as_var
19370 fi
19371done
19372
19373# Required to use basename.
19374if expr a : '\(a\)' >/dev/null 2>&1; then
19375 as_expr=expr
19376else
19377 as_expr=false
19378fi
19379
19380if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19381 as_basename=basename
19382else
19383 as_basename=false
19384fi
19385
19386
19387# Name of the executable.
19388as_me=`$as_basename "$0" ||
19389$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19390 X"$0" : 'X\(//\)$' \| \
19391 X"$0" : 'X\(/\)$' \| \
19392 . : '\(.\)' 2>/dev/null ||
19393echo X/"$0" |
19394 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19395 /^X\/\(\/\/\)$/{ s//\1/; q; }
19396 /^X\/\(\/\).*/{ s//\1/; q; }
19397 s/.*/./; q'`
19398
19399
19400# PATH needs CR, and LINENO needs CR and PATH.
19401# Avoid depending upon Character Ranges.
19402as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19403as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19404as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19405as_cr_digits='0123456789'
19406as_cr_alnum=$as_cr_Letters$as_cr_digits
19407
19408# The user is always right.
19409if test "${PATH_SEPARATOR+set}" != set; then
19410 echo "#! /bin/sh" >conf$$.sh
19411 echo "exit 0" >>conf$$.sh
19412 chmod +x conf$$.sh
19413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19414 PATH_SEPARATOR=';'
19415 else
19416 PATH_SEPARATOR=:
19417 fi
19418 rm -f conf$$.sh
19419fi
19420
19421
19422 as_lineno_1=$LINENO
19423 as_lineno_2=$LINENO
19424 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19425 test "x$as_lineno_1" != "x$as_lineno_2" &&
19426 test "x$as_lineno_3" = "x$as_lineno_2" || {
19427 # Find who we are. Look in the path if we contain no path at all
19428 # relative or not.
19429 case $0 in
19430 *[\\/]* ) as_myself=$0 ;;
19431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19432for as_dir in $PATH
19433do
19434 IFS=$as_save_IFS
19435 test -z "$as_dir" && as_dir=.
19436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19437done
19438
19439 ;;
19440 esac
19441 # We did not find ourselves, most probably we were run as `sh COMMAND'
19442 # in which case we are not to be found in the path.
19443 if test "x$as_myself" = x; then
19444 as_myself=$0
19445 fi
19446 if test ! -f "$as_myself"; then
19447 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19448echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19449 { (exit 1); exit 1; }; }
19450 fi
19451 case $CONFIG_SHELL in
19452 '')
19453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19454for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19455do
19456 IFS=$as_save_IFS
19457 test -z "$as_dir" && as_dir=.
19458 for as_base in sh bash ksh sh5; do
19459 case $as_dir in
19460 /*)
19461 if ("$as_dir/$as_base" -c '
19462 as_lineno_1=$LINENO
19463 as_lineno_2=$LINENO
19464 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19465 test "x$as_lineno_1" != "x$as_lineno_2" &&
19466 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19467 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19468 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19469 CONFIG_SHELL=$as_dir/$as_base
19470 export CONFIG_SHELL
19471 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19472 fi;;
19473 esac
19474 done
19475done
19476;;
19477 esac
19478
19479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19480 # uniformly replaced by the line number. The first 'sed' inserts a
19481 # line-number line before each line; the second 'sed' does the real
19482 # work. The second script uses 'N' to pair each line-number line
19483 # with the numbered line, and appends trailing '-' during
19484 # substitution so that $LINENO is not a special case at line end.
19485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19486 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19487 sed '=' <$as_myself |
19488 sed '
19489 N
19490 s,$,-,
19491 : loop
19492 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19493 t loop
19494 s,-$,,
19495 s,^['$as_cr_digits']*\n,,
19496 ' >$as_me.lineno &&
19497 chmod +x $as_me.lineno ||
19498 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19499echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19500 { (exit 1); exit 1; }; }
19501
19502 # Don't try to exec as it changes $[0], causing all sort of problems
19503 # (the dirname of $[0] is not the place where we might find the
19504 # original and so on. Autoconf is especially sensible to this).
19505 . ./$as_me.lineno
19506 # Exit status is that of the last command.
19507 exit
19508}
19509
19510
19511case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19512 *c*,-n*) ECHO_N= ECHO_C='
19513' ECHO_T=' ' ;;
19514 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19515 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19516esac
19517
19518if expr a : '\(a\)' >/dev/null 2>&1; then
19519 as_expr=expr
19520else
19521 as_expr=false
19522fi
19523
19524rm -f conf$$ conf$$.exe conf$$.file
19525echo >conf$$.file
19526if ln -s conf$$.file conf$$ 2>/dev/null; then
19527 # We could just check for DJGPP; but this test a) works b) is more generic
19528 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19529 if test -f conf$$.exe; then
19530 # Don't use ln at all; we don't have any links
19531 as_ln_s='cp -p'
19532 else
19533 as_ln_s='ln -s'
19534 fi
19535elif ln conf$$.file conf$$ 2>/dev/null; then
19536 as_ln_s=ln
19537else
19538 as_ln_s='cp -p'
19539fi
19540rm -f conf$$ conf$$.exe conf$$.file
19541
19542if mkdir -p . 2>/dev/null; then
19543 as_mkdir_p=:
19544else
19545 test -d ./-p && rmdir ./-p
19546 as_mkdir_p=false
19547fi
19548
19549as_executable_p="test -f"
19550
19551# Sed expression to map a string onto a valid CPP name.
19552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19553
19554# Sed expression to map a string onto a valid variable name.
19555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19556
19557
19558# IFS
19559# We need space, tab and new line, in precisely that order.
19560as_nl='
19561'
19562IFS=" $as_nl"
19563
19564# CDPATH.
19565$as_unset CDPATH
19566
19567exec 6>&1
19568
19569# Open the log real soon, to keep \$[0] and so on meaningful, and to
19570# report actual input values of CONFIG_FILES etc. instead of their
19571# values after options handling. Logging --version etc. is OK.
19572exec 5>>config.log
19573{
19574 echo
19575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19576## Running $as_me. ##
19577_ASBOX
19578} >&5
19579cat >&5 <<_CSEOF
19580
19581This file was extended by makedat $as_me 0.60, which was
19582generated by GNU Autoconf 2.59. Invocation command line was
19583
19584 CONFIG_FILES = $CONFIG_FILES
19585 CONFIG_HEADERS = $CONFIG_HEADERS
19586 CONFIG_LINKS = $CONFIG_LINKS
19587 CONFIG_COMMANDS = $CONFIG_COMMANDS
19588 $ $0 $@
19589
19590_CSEOF
19591echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19592echo >&5
19593_ACEOF
19594
19595# Files that config.status was made for.
19596if test -n "$ac_config_files"; then
19597 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19598fi
19599
19600if test -n "$ac_config_headers"; then
19601 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19602fi
19603
19604if test -n "$ac_config_links"; then
19605 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19606fi
19607
19608if test -n "$ac_config_commands"; then
19609 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19610fi
19611
19612cat >>$CONFIG_STATUS <<\_ACEOF
19613
19614ac_cs_usage="\
19615\`$as_me' instantiates files from templates according to the
19616current configuration.
19617
19618Usage: $0 [OPTIONS] [FILE]...
19619
19620 -h, --help print this help, then exit
19621 -V, --version print version number, then exit
19622 -q, --quiet do not print progress messages
19623 -d, --debug don't remove temporary files
19624 --recheck update $as_me by reconfiguring in the same conditions
19625 --file=FILE[:TEMPLATE]
19626 instantiate the configuration file FILE
19627 --header=FILE[:TEMPLATE]
19628 instantiate the configuration header FILE
19629
19630Configuration files:
19631$config_files
19632
19633Configuration headers:
19634$config_headers
19635
19636Configuration commands:
19637$config_commands
19638
19639Report bugs to <bug-autoconf@gnu.org>."
19640_ACEOF
19641
19642cat >>$CONFIG_STATUS <<_ACEOF
19643ac_cs_version="\\
19644makedat config.status 0.60
19645configured by $0, generated by GNU Autoconf 2.59,
19646 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19647
19648Copyright (C) 2003 Free Software Foundation, Inc.
19649This config.status script is free software; the Free Software Foundation
19650gives unlimited permission to copy, distribute and modify it."
19651srcdir=$srcdir
19652INSTALL="$INSTALL"
19653_ACEOF
19654
19655cat >>$CONFIG_STATUS <<\_ACEOF
19656# If no file are specified by the user, then we need to provide default
19657# value. By we need to know if files were specified by the user.
19658ac_need_defaults=:
19659while test $# != 0
19660do
19661 case $1 in
19662 --*=*)
19663 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19664 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19665 ac_shift=:
19666 ;;
19667 -*)
19668 ac_option=$1
19669 ac_optarg=$2
19670 ac_shift=shift
19671 ;;
19672 *) # This is not an option, so the user has probably given explicit
19673 # arguments.
19674 ac_option=$1
19675 ac_need_defaults=false;;
19676 esac
19677
19678 case $ac_option in
19679 # Handling of the options.
19680_ACEOF
19681cat >>$CONFIG_STATUS <<\_ACEOF
19682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19683 ac_cs_recheck=: ;;
19684 --version | --vers* | -V )
19685 echo "$ac_cs_version"; exit 0 ;;
19686 --he | --h)
19687 # Conflict between --help and --header
19688 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19689Try \`$0 --help' for more information." >&5
19690echo "$as_me: error: ambiguous option: $1
19691Try \`$0 --help' for more information." >&2;}
19692 { (exit 1); exit 1; }; };;
19693 --help | --hel | -h )
19694 echo "$ac_cs_usage"; exit 0 ;;
19695 --debug | --d* | -d )
19696 debug=: ;;
19697 --file | --fil | --fi | --f )
19698 $ac_shift
19699 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19700 ac_need_defaults=false;;
19701 --header | --heade | --head | --hea )
19702 $ac_shift
19703 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19704 ac_need_defaults=false;;
19705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19707 ac_cs_silent=: ;;
19708
19709 # This is an error.
19710 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19711Try \`$0 --help' for more information." >&5
19712echo "$as_me: error: unrecognized option: $1
19713Try \`$0 --help' for more information." >&2;}
19714 { (exit 1); exit 1; }; } ;;
19715
19716 *) ac_config_targets="$ac_config_targets $1" ;;
19717
19718 esac
19719 shift
19720done
19721
19722ac_configure_extra_args=
19723
19724if $ac_cs_silent; then
19725 exec 6>/dev/null
19726 ac_configure_extra_args="$ac_configure_extra_args --silent"
19727fi
19728
19729_ACEOF
19730cat >>$CONFIG_STATUS <<_ACEOF
19731if \$ac_cs_recheck; then
19732 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19733 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19734fi
19735
19736_ACEOF
19737
19738cat >>$CONFIG_STATUS <<_ACEOF
19739#
19740# INIT-COMMANDS section.
19741#
19742
19743AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19744
19745_ACEOF
19746
19747
19748
19749cat >>$CONFIG_STATUS <<\_ACEOF
19750for ac_config_target in $ac_config_targets
19751do
19752 case "$ac_config_target" in
19753 # Handling of arguments.
19754 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19755 "makedat" ) CONFIG_FILES="$CONFIG_FILES makedat" ;;
19756 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19757 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19758 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19759echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19760 { (exit 1); exit 1; }; };;
19761 esac
19762done
19763
19764# If the user did not use the arguments to specify the items to instantiate,
19765# then the envvar interface is used. Set only those that are not.
19766# We use the long form for the default assignment because of an extremely
19767# bizarre bug on SunOS 4.1.3.
19768if $ac_need_defaults; then
19769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19772fi
19773
19774# Have a temporary directory for convenience. Make it in the build tree
19775# simply because there is no reason to put it here, and in addition,
19776# creating and moving files from /tmp can sometimes cause problems.
19777# Create a temporary directory, and hook for its removal unless debugging.
19778$debug ||
19779{
19780 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19781 trap '{ (exit 1); exit 1; }' 1 2 13 15
19782}
19783
19784# Create a (secure) tmp directory for tmp files.
19785
19786{
19787 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19788 test -n "$tmp" && test -d "$tmp"
19789} ||
19790{
19791 tmp=./confstat$$-$RANDOM
19792 (umask 077 && mkdir $tmp)
19793} ||
19794{
19795 echo "$me: cannot create a temporary directory in ." >&2
19796 { (exit 1); exit 1; }
19797}
19798
19799_ACEOF
19800
19801cat >>$CONFIG_STATUS <<_ACEOF
19802
19803#
19804# CONFIG_FILES section.
19805#
19806
19807# No need to generate the scripts if there are no CONFIG_FILES.
19808# This happens for instance when ./config.status config.h
19809if test -n "\$CONFIG_FILES"; then
19810 # Protect against being on the right side of a sed subst in config.status.
19811 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19812 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19813s,@SHELL@,$SHELL,;t t
19814s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19815s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19816s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19817s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19818s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19819s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19820s,@exec_prefix@,$exec_prefix,;t t
19821s,@prefix@,$prefix,;t t
19822s,@program_transform_name@,$program_transform_name,;t t
19823s,@bindir@,$bindir,;t t
19824s,@sbindir@,$sbindir,;t t
19825s,@libexecdir@,$libexecdir,;t t
19826s,@datadir@,$datadir,;t t
19827s,@sysconfdir@,$sysconfdir,;t t
19828s,@sharedstatedir@,$sharedstatedir,;t t
19829s,@localstatedir@,$localstatedir,;t t
19830s,@libdir@,$libdir,;t t
19831s,@includedir@,$includedir,;t t
19832s,@oldincludedir@,$oldincludedir,;t t
19833s,@infodir@,$infodir,;t t
19834s,@mandir@,$mandir,;t t
19835s,@build_alias@,$build_alias,;t t
19836s,@host_alias@,$host_alias,;t t
19837s,@target_alias@,$target_alias,;t t
19838s,@DEFS@,$DEFS,;t t
19839s,@ECHO_C@,$ECHO_C,;t t
19840s,@ECHO_N@,$ECHO_N,;t t
19841s,@ECHO_T@,$ECHO_T,;t t
19842s,@LIBS@,$LIBS,;t t
19843s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19844s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19845s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19846s,@CYGPATH_W@,$CYGPATH_W,;t t
19847s,@PACKAGE@,$PACKAGE,;t t
19848s,@VERSION@,$VERSION,;t t
19849s,@ACLOCAL@,$ACLOCAL,;t t
19850s,@AUTOCONF@,$AUTOCONF,;t t
19851s,@AUTOMAKE@,$AUTOMAKE,;t t
19852s,@AUTOHEADER@,$AUTOHEADER,;t t
19853s,@MAKEINFO@,$MAKEINFO,;t t
19854s,@install_sh@,$install_sh,;t t
19855s,@STRIP@,$STRIP,;t t
19856s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19857s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19858s,@mkdir_p@,$mkdir_p,;t t
19859s,@AWK@,$AWK,;t t
19860s,@SET_MAKE@,$SET_MAKE,;t t
19861s,@am__leading_dot@,$am__leading_dot,;t t
19862s,@AMTAR@,$AMTAR,;t t
19863s,@am__tar@,$am__tar,;t t
19864s,@am__untar@,$am__untar,;t t
19865s,@CC@,$CC,;t t
19866s,@CFLAGS@,$CFLAGS,;t t
19867s,@LDFLAGS@,$LDFLAGS,;t t
19868s,@CPPFLAGS@,$CPPFLAGS,;t t
19869s,@ac_ct_CC@,$ac_ct_CC,;t t
19870s,@EXEEXT@,$EXEEXT,;t t
19871s,@OBJEXT@,$OBJEXT,;t t
19872s,@DEPDIR@,$DEPDIR,;t t
19873s,@am__include@,$am__include,;t t
19874s,@am__quote@,$am__quote,;t t
19875s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19876s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19877s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19878s,@CCDEPMODE@,$CCDEPMODE,;t t
19879s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19880s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19881s,@LN_S@,$LN_S,;t t
19882s,@PERL@,$PERL,;t t
19883s,@CAT@,$CAT,;t t
19884s,@build@,$build,;t t
19885s,@build_cpu@,$build_cpu,;t t
19886s,@build_vendor@,$build_vendor,;t t
19887s,@build_os@,$build_os,;t t
19888s,@host@,$host,;t t
19889s,@host_cpu@,$host_cpu,;t t
19890s,@host_vendor@,$host_vendor,;t t
19891s,@host_os@,$host_os,;t t
19892s,@SED@,$SED,;t t
19893s,@EGREP@,$EGREP,;t t
19894s,@ECHO@,$ECHO,;t t
19895s,@AR@,$AR,;t t
19896s,@ac_ct_AR@,$ac_ct_AR,;t t
19897s,@RANLIB@,$RANLIB,;t t
19898s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19899s,@CPP@,$CPP,;t t
19900s,@CXX@,$CXX,;t t
19901s,@CXXFLAGS@,$CXXFLAGS,;t t
19902s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19903s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19904s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19905s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19906s,@CXXCPP@,$CXXCPP,;t t
19907s,@F77@,$F77,;t t
19908s,@FFLAGS@,$FFLAGS,;t t
19909s,@ac_ct_F77@,$ac_ct_F77,;t t
19910s,@LIBTOOL@,$LIBTOOL,;t t
19911s,@makedatprog_target@,$makedatprog_target,;t t
19912s,@dblibrary@,$dblibrary,;t t
19913s,@LIBGDBM@,$LIBGDBM,;t t
19914s,@LIBDB@,$LIBDB,;t t
19915s,@USE_GDBM_TRUE@,$USE_GDBM_TRUE,;t t
19916s,@USE_GDBM_FALSE@,$USE_GDBM_FALSE,;t t
19917s,@USE_DB_TRUE@,$USE_DB_TRUE,;t t
19918s,@USE_DB_FALSE@,$USE_DB_FALSE,;t t
19919s,@makedatprogpath@,$makedatprogpath,;t t
19920s,@LIBOBJS@,$LIBOBJS,;t t
19921s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19922CEOF
19923
19924_ACEOF
19925
19926 cat >>$CONFIG_STATUS <<\_ACEOF
19927 # Split the substitutions into bite-sized pieces for seds with
19928 # small command number limits, like on Digital OSF/1 and HP-UX.
19929 ac_max_sed_lines=48
19930 ac_sed_frag=1 # Number of current file.
19931 ac_beg=1 # First line for current file.
19932 ac_end=$ac_max_sed_lines # Line after last line for current file.
19933 ac_more_lines=:
19934 ac_sed_cmds=
19935 while $ac_more_lines; do
19936 if test $ac_beg -gt 1; then
19937 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19938 else
19939 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19940 fi
19941 if test ! -s $tmp/subs.frag; then
19942 ac_more_lines=false
19943 else
19944 # The purpose of the label and of the branching condition is to
19945 # speed up the sed processing (if there are no `@' at all, there
19946 # is no need to browse any of the substitutions).
19947 # These are the two extra sed commands mentioned above.
19948 (echo ':t
19949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19950 if test -z "$ac_sed_cmds"; then
19951 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19952 else
19953 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19954 fi
19955 ac_sed_frag=`expr $ac_sed_frag + 1`
19956 ac_beg=$ac_end
19957 ac_end=`expr $ac_end + $ac_max_sed_lines`
19958 fi
19959 done
19960 if test -z "$ac_sed_cmds"; then
19961 ac_sed_cmds=cat
19962 fi
19963fi # test -n "$CONFIG_FILES"
19964
19965_ACEOF
19966cat >>$CONFIG_STATUS <<\_ACEOF
19967for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19969 case $ac_file in
19970 - | *:- | *:-:* ) # input from stdin
19971 cat >$tmp/stdin
19972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19976 * ) ac_file_in=$ac_file.in ;;
19977 esac
19978
19979 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19982 X"$ac_file" : 'X\(//\)[^/]' \| \
19983 X"$ac_file" : 'X\(//\)$' \| \
19984 X"$ac_file" : 'X\(/\)' \| \
19985 . : '\(.\)' 2>/dev/null ||
19986echo X"$ac_file" |
19987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19989 /^X\(\/\/\)$/{ s//\1/; q; }
19990 /^X\(\/\).*/{ s//\1/; q; }
19991 s/.*/./; q'`
19992 { if $as_mkdir_p; then
19993 mkdir -p "$ac_dir"
19994 else
19995 as_dir="$ac_dir"
19996 as_dirs=
19997 while test ! -d "$as_dir"; do
19998 as_dirs="$as_dir $as_dirs"
19999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20001 X"$as_dir" : 'X\(//\)[^/]' \| \
20002 X"$as_dir" : 'X\(//\)$' \| \
20003 X"$as_dir" : 'X\(/\)' \| \
20004 . : '\(.\)' 2>/dev/null ||
20005echo X"$as_dir" |
20006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20008 /^X\(\/\/\)$/{ s//\1/; q; }
20009 /^X\(\/\).*/{ s//\1/; q; }
20010 s/.*/./; q'`
20011 done
20012 test ! -n "$as_dirs" || mkdir $as_dirs
20013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20014echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20015 { (exit 1); exit 1; }; }; }
20016
20017 ac_builddir=.
20018
20019if test "$ac_dir" != .; then
20020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20021 # A "../" for each directory in $ac_dir_suffix.
20022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20023else
20024 ac_dir_suffix= ac_top_builddir=
20025fi
20026
20027case $srcdir in
20028 .) # No --srcdir option. We are building in place.
20029 ac_srcdir=.
20030 if test -z "$ac_top_builddir"; then
20031 ac_top_srcdir=.
20032 else
20033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20034 fi ;;
20035 [\\/]* | ?:[\\/]* ) # Absolute path.
20036 ac_srcdir=$srcdir$ac_dir_suffix;
20037 ac_top_srcdir=$srcdir ;;
20038 *) # Relative path.
20039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20041esac
20042
20043# Do not use `cd foo && pwd` to compute absolute paths, because
20044# the directories may not exist.
20045case `pwd` in
20046.) ac_abs_builddir="$ac_dir";;
20047*)
20048 case "$ac_dir" in
20049 .) ac_abs_builddir=`pwd`;;
20050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20051 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20052 esac;;
20053esac
20054case $ac_abs_builddir in
20055.) ac_abs_top_builddir=${ac_top_builddir}.;;
20056*)
20057 case ${ac_top_builddir}. in
20058 .) ac_abs_top_builddir=$ac_abs_builddir;;
20059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20061 esac;;
20062esac
20063case $ac_abs_builddir in
20064.) ac_abs_srcdir=$ac_srcdir;;
20065*)
20066 case $ac_srcdir in
20067 .) ac_abs_srcdir=$ac_abs_builddir;;
20068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20070 esac;;
20071esac
20072case $ac_abs_builddir in
20073.) ac_abs_top_srcdir=$ac_top_srcdir;;
20074*)
20075 case $ac_top_srcdir in
20076 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20079 esac;;
20080esac
20081
20082
20083 case $INSTALL in
20084 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20085 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20086 esac
20087
20088 if test x"$ac_file" != x-; then
20089 { echo "$as_me:$LINENO: creating $ac_file" >&5
20090echo "$as_me: creating $ac_file" >&6;}
20091 rm -f "$ac_file"
20092 fi
20093 # Let's still pretend it is `configure' which instantiates (i.e., don't
20094 # use $as_me), people would be surprised to read:
20095 # /* config.h. Generated by config.status. */
20096 if test x"$ac_file" = x-; then
20097 configure_input=
20098 else
20099 configure_input="$ac_file. "
20100 fi
20101 configure_input=$configure_input"Generated from `echo $ac_file_in |
20102 sed 's,.*/,,'` by configure."
20103
20104 # First look for the input files in the build tree, otherwise in the
20105 # src tree.
20106 ac_file_inputs=`IFS=:
20107 for f in $ac_file_in; do
20108 case $f in
20109 -) echo $tmp/stdin ;;
20110 [\\/$]*)
20111 # Absolute (can't be DOS-style, as IFS=:)
20112 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20113echo "$as_me: error: cannot find input file: $f" >&2;}
20114 { (exit 1); exit 1; }; }
20115 echo "$f";;
20116 *) # Relative
20117 if test -f "$f"; then
20118 # Build tree
20119 echo "$f"
20120 elif test -f "$srcdir/$f"; then
20121 # Source tree
20122 echo "$srcdir/$f"
20123 else
20124 # /dev/null tree
20125 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20126echo "$as_me: error: cannot find input file: $f" >&2;}
20127 { (exit 1); exit 1; }; }
20128 fi;;
20129 esac
20130 done` || { (exit 1); exit 1; }
20131_ACEOF
20132cat >>$CONFIG_STATUS <<_ACEOF
20133 sed "$ac_vpsub
20134$extrasub
20135_ACEOF
20136cat >>$CONFIG_STATUS <<\_ACEOF
20137:t
20138/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20139s,@configure_input@,$configure_input,;t t
20140s,@srcdir@,$ac_srcdir,;t t
20141s,@abs_srcdir@,$ac_abs_srcdir,;t t
20142s,@top_srcdir@,$ac_top_srcdir,;t t
20143s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20144s,@builddir@,$ac_builddir,;t t
20145s,@abs_builddir@,$ac_abs_builddir,;t t
20146s,@top_builddir@,$ac_top_builddir,;t t
20147s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20148s,@INSTALL@,$ac_INSTALL,;t t
20149" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20150 rm -f $tmp/stdin
20151 if test x"$ac_file" != x-; then
20152 mv $tmp/out $ac_file
20153 else
20154 cat $tmp/out
20155 rm -f $tmp/out
20156 fi
20157
20158done
20159_ACEOF
20160cat >>$CONFIG_STATUS <<\_ACEOF
20161
20162#
20163# CONFIG_HEADER section.
20164#
20165
20166# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20167# NAME is the cpp macro being defined and VALUE is the value it is being given.
20168#
20169# ac_d sets the value in "#define NAME VALUE" lines.
20170ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20171ac_dB='[ ].*$,\1#\2'
20172ac_dC=' '
20173ac_dD=',;t'
20174# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20175ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20176ac_uB='$,\1#\2define\3'
20177ac_uC=' '
20178ac_uD=',;t'
20179
20180for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20182 case $ac_file in
20183 - | *:- | *:-:* ) # input from stdin
20184 cat >$tmp/stdin
20185 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20186 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20187 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20189 * ) ac_file_in=$ac_file.in ;;
20190 esac
20191
20192 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20193echo "$as_me: creating $ac_file" >&6;}
20194
20195 # First look for the input files in the build tree, otherwise in the
20196 # src tree.
20197 ac_file_inputs=`IFS=:
20198 for f in $ac_file_in; do
20199 case $f in
20200 -) echo $tmp/stdin ;;
20201 [\\/$]*)
20202 # Absolute (can't be DOS-style, as IFS=:)
20203 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20204echo "$as_me: error: cannot find input file: $f" >&2;}
20205 { (exit 1); exit 1; }; }
20206 # Do quote $f, to prevent DOS paths from being IFS'd.
20207 echo "$f";;
20208 *) # Relative
20209 if test -f "$f"; then
20210 # Build tree
20211 echo "$f"
20212 elif test -f "$srcdir/$f"; then
20213 # Source tree
20214 echo "$srcdir/$f"
20215 else
20216 # /dev/null tree
20217 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20218echo "$as_me: error: cannot find input file: $f" >&2;}
20219 { (exit 1); exit 1; }; }
20220 fi;;
20221 esac
20222 done` || { (exit 1); exit 1; }
20223 # Remove the trailing spaces.
20224 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20225
20226_ACEOF
20227
20228# Transform confdefs.h into two sed scripts, `conftest.defines' and
20229# `conftest.undefs', that substitutes the proper values into
20230# config.h.in to produce config.h. The first handles `#define'
20231# templates, and the second `#undef' templates.
20232# And first: Protect against being on the right side of a sed subst in
20233# config.status. Protect against being in an unquoted here document
20234# in config.status.
20235rm -f conftest.defines conftest.undefs
20236# Using a here document instead of a string reduces the quoting nightmare.
20237# Putting comments in sed scripts is not portable.
20238#
20239# `end' is used to avoid that the second main sed command (meant for
20240# 0-ary CPP macros) applies to n-ary macro definitions.
20241# See the Autoconf documentation for `clear'.
20242cat >confdef2sed.sed <<\_ACEOF
20243s/[\\&,]/\\&/g
20244s,[\\$`],\\&,g
20245t clear
20246: clear
20247s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20248t end
20249s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20250: end
20251_ACEOF
20252# If some macros were called several times there might be several times
20253# the same #defines, which is useless. Nevertheless, we may not want to
20254# sort them, since we want the *last* AC-DEFINE to be honored.
20255uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20256sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20257rm -f confdef2sed.sed
20258
20259# This sed command replaces #undef with comments. This is necessary, for
20260# example, in the case of _POSIX_SOURCE, which is predefined and required
20261# on some systems where configure will not decide to define it.
20262cat >>conftest.undefs <<\_ACEOF
20263s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20264_ACEOF
20265
20266# Break up conftest.defines because some shells have a limit on the size
20267# of here documents, and old seds have small limits too (100 cmds).
20268echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20269echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20270echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20271echo ' :' >>$CONFIG_STATUS
20272rm -f conftest.tail
20273while grep . conftest.defines >/dev/null
20274do
20275 # Write a limited-size here document to $tmp/defines.sed.
20276 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20277 # Speed up: don't consider the non `#define' lines.
20278 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20279 # Work around the forget-to-reset-the-flag bug.
20280 echo 't clr' >>$CONFIG_STATUS
20281 echo ': clr' >>$CONFIG_STATUS
20282 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20283 echo 'CEOF
20284 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20285 rm -f $tmp/in
20286 mv $tmp/out $tmp/in
20287' >>$CONFIG_STATUS
20288 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20289 rm -f conftest.defines
20290 mv conftest.tail conftest.defines
20291done
20292rm -f conftest.defines
20293echo ' fi # grep' >>$CONFIG_STATUS
20294echo >>$CONFIG_STATUS
20295
20296# Break up conftest.undefs because some shells have a limit on the size
20297# of here documents, and old seds have small limits too (100 cmds).
20298echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20299rm -f conftest.tail
20300while grep . conftest.undefs >/dev/null
20301do
20302 # Write a limited-size here document to $tmp/undefs.sed.
20303 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20304 # Speed up: don't consider the non `#undef'
20305 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20306 # Work around the forget-to-reset-the-flag bug.
20307 echo 't clr' >>$CONFIG_STATUS
20308 echo ': clr' >>$CONFIG_STATUS
20309 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20310 echo 'CEOF
20311 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20312 rm -f $tmp/in
20313 mv $tmp/out $tmp/in
20314' >>$CONFIG_STATUS
20315 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20316 rm -f conftest.undefs
20317 mv conftest.tail conftest.undefs
20318done
20319rm -f conftest.undefs
20320
20321cat >>$CONFIG_STATUS <<\_ACEOF
20322 # Let's still pretend it is `configure' which instantiates (i.e., don't
20323 # use $as_me), people would be surprised to read:
20324 # /* config.h. Generated by config.status. */
20325 if test x"$ac_file" = x-; then
20326 echo "/* Generated by configure. */" >$tmp/config.h
20327 else
20328 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20329 fi
20330 cat $tmp/in >>$tmp/config.h
20331 rm -f $tmp/in
20332 if test x"$ac_file" != x-; then
20333 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20334 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20335echo "$as_me: $ac_file is unchanged" >&6;}
20336 else
20337 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20338$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20339 X"$ac_file" : 'X\(//\)[^/]' \| \
20340 X"$ac_file" : 'X\(//\)$' \| \
20341 X"$ac_file" : 'X\(/\)' \| \
20342 . : '\(.\)' 2>/dev/null ||
20343echo X"$ac_file" |
20344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20346 /^X\(\/\/\)$/{ s//\1/; q; }
20347 /^X\(\/\).*/{ s//\1/; q; }
20348 s/.*/./; q'`
20349 { if $as_mkdir_p; then
20350 mkdir -p "$ac_dir"
20351 else
20352 as_dir="$ac_dir"
20353 as_dirs=
20354 while test ! -d "$as_dir"; do
20355 as_dirs="$as_dir $as_dirs"
20356 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20358 X"$as_dir" : 'X\(//\)[^/]' \| \
20359 X"$as_dir" : 'X\(//\)$' \| \
20360 X"$as_dir" : 'X\(/\)' \| \
20361 . : '\(.\)' 2>/dev/null ||
20362echo X"$as_dir" |
20363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20365 /^X\(\/\/\)$/{ s//\1/; q; }
20366 /^X\(\/\).*/{ s//\1/; q; }
20367 s/.*/./; q'`
20368 done
20369 test ! -n "$as_dirs" || mkdir $as_dirs
20370 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20371echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20372 { (exit 1); exit 1; }; }; }
20373
20374 rm -f $ac_file
20375 mv $tmp/config.h $ac_file
20376 fi
20377 else
20378 cat $tmp/config.h
20379 rm -f $tmp/config.h
20380 fi
20381# Compute $ac_file's index in $config_headers.
20382_am_stamp_count=1
20383for _am_header in $config_headers :; do
20384 case $_am_header in
20385 $ac_file | $ac_file:* )
20386 break ;;
20387 * )
20388 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20389 esac
20390done
20391echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20392$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20393 X$ac_file : 'X\(//\)[^/]' \| \
20394 X$ac_file : 'X\(//\)$' \| \
20395 X$ac_file : 'X\(/\)' \| \
20396 . : '\(.\)' 2>/dev/null ||
20397echo X$ac_file |
20398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20400 /^X\(\/\/\)$/{ s//\1/; q; }
20401 /^X\(\/\).*/{ s//\1/; q; }
20402 s/.*/./; q'`/stamp-h$_am_stamp_count
20403done
20404_ACEOF
20405cat >>$CONFIG_STATUS <<\_ACEOF
20406
20407#
20408# CONFIG_COMMANDS section.
20409#
20410for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20411 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20412 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20413 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20414$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20415 X"$ac_dest" : 'X\(//\)[^/]' \| \
20416 X"$ac_dest" : 'X\(//\)$' \| \
20417 X"$ac_dest" : 'X\(/\)' \| \
20418 . : '\(.\)' 2>/dev/null ||
20419echo X"$ac_dest" |
20420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20422 /^X\(\/\/\)$/{ s//\1/; q; }
20423 /^X\(\/\).*/{ s//\1/; q; }
20424 s/.*/./; q'`
20425 { if $as_mkdir_p; then
20426 mkdir -p "$ac_dir"
20427 else
20428 as_dir="$ac_dir"
20429 as_dirs=
20430 while test ! -d "$as_dir"; do
20431 as_dirs="$as_dir $as_dirs"
20432 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20433$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20434 X"$as_dir" : 'X\(//\)[^/]' \| \
20435 X"$as_dir" : 'X\(//\)$' \| \
20436 X"$as_dir" : 'X\(/\)' \| \
20437 . : '\(.\)' 2>/dev/null ||
20438echo X"$as_dir" |
20439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20441 /^X\(\/\/\)$/{ s//\1/; q; }
20442 /^X\(\/\).*/{ s//\1/; q; }
20443 s/.*/./; q'`
20444 done
20445 test ! -n "$as_dirs" || mkdir $as_dirs
20446 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20447echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20448 { (exit 1); exit 1; }; }; }
20449
20450 ac_builddir=.
20451
20452if test "$ac_dir" != .; then
20453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20454 # A "../" for each directory in $ac_dir_suffix.
20455 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20456else
20457 ac_dir_suffix= ac_top_builddir=
20458fi
20459
20460case $srcdir in
20461 .) # No --srcdir option. We are building in place.
20462 ac_srcdir=.
20463 if test -z "$ac_top_builddir"; then
20464 ac_top_srcdir=.
20465 else
20466 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20467 fi ;;
20468 [\\/]* | ?:[\\/]* ) # Absolute path.
20469 ac_srcdir=$srcdir$ac_dir_suffix;
20470 ac_top_srcdir=$srcdir ;;
20471 *) # Relative path.
20472 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20473 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20474esac
20475
20476# Do not use `cd foo && pwd` to compute absolute paths, because
20477# the directories may not exist.
20478case `pwd` in
20479.) ac_abs_builddir="$ac_dir";;
20480*)
20481 case "$ac_dir" in
20482 .) ac_abs_builddir=`pwd`;;
20483 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20484 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20485 esac;;
20486esac
20487case $ac_abs_builddir in
20488.) ac_abs_top_builddir=${ac_top_builddir}.;;
20489*)
20490 case ${ac_top_builddir}. in
20491 .) ac_abs_top_builddir=$ac_abs_builddir;;
20492 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20493 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20494 esac;;
20495esac
20496case $ac_abs_builddir in
20497.) ac_abs_srcdir=$ac_srcdir;;
20498*)
20499 case $ac_srcdir in
20500 .) ac_abs_srcdir=$ac_abs_builddir;;
20501 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20502 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20503 esac;;
20504esac
20505case $ac_abs_builddir in
20506.) ac_abs_top_srcdir=$ac_top_srcdir;;
20507*)
20508 case $ac_top_srcdir in
20509 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20510 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20511 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20512 esac;;
20513esac
20514
20515
20516 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20517echo "$as_me: executing $ac_dest commands" >&6;}
20518 case $ac_dest in
20519 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20520 # Strip MF so we end up with the name of the file.
20521 mf=`echo "$mf" | sed -e 's/:.*$//'`
20522 # Check whether this is an Automake generated Makefile or not.
20523 # We used to match only the files named `Makefile.in', but
20524 # some people rename them; so instead we look at the file content.
20525 # Grep'ing the first line is not enough: some people post-process
20526 # each Makefile.in and add a new line on top of each file to say so.
20527 # So let's grep whole file.
20528 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20529 dirpart=`(dirname "$mf") 2>/dev/null ||
20530$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20531 X"$mf" : 'X\(//\)[^/]' \| \
20532 X"$mf" : 'X\(//\)$' \| \
20533 X"$mf" : 'X\(/\)' \| \
20534 . : '\(.\)' 2>/dev/null ||
20535echo X"$mf" |
20536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20538 /^X\(\/\/\)$/{ s//\1/; q; }
20539 /^X\(\/\).*/{ s//\1/; q; }
20540 s/.*/./; q'`
20541 else
20542 continue
20543 fi
20544 # Extract the definition of DEPDIR, am__include, and am__quote
20545 # from the Makefile without running `make'.
20546 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20547 test -z "$DEPDIR" && continue
20548 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20549 test -z "am__include" && continue
20550 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20551 # When using ansi2knr, U may be empty or an underscore; expand it
20552 U=`sed -n 's/^U = //p' < "$mf"`
20553 # Find all dependency output files, they are included files with
20554 # $(DEPDIR) in their names. We invoke sed twice because it is the
20555 # simplest approach to changing $(DEPDIR) to its actual value in the
20556 # expansion.
20557 for file in `sed -n "
20558 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20559 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20560 # Make sure the directory exists.
20561 test -f "$dirpart/$file" && continue
20562 fdir=`(dirname "$file") 2>/dev/null ||
20563$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20564 X"$file" : 'X\(//\)[^/]' \| \
20565 X"$file" : 'X\(//\)$' \| \
20566 X"$file" : 'X\(/\)' \| \
20567 . : '\(.\)' 2>/dev/null ||
20568echo X"$file" |
20569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20571 /^X\(\/\/\)$/{ s//\1/; q; }
20572 /^X\(\/\).*/{ s//\1/; q; }
20573 s/.*/./; q'`
20574 { if $as_mkdir_p; then
20575 mkdir -p $dirpart/$fdir
20576 else
20577 as_dir=$dirpart/$fdir
20578 as_dirs=
20579 while test ! -d "$as_dir"; do
20580 as_dirs="$as_dir $as_dirs"
20581 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20582$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20583 X"$as_dir" : 'X\(//\)[^/]' \| \
20584 X"$as_dir" : 'X\(//\)$' \| \
20585 X"$as_dir" : 'X\(/\)' \| \
20586 . : '\(.\)' 2>/dev/null ||
20587echo X"$as_dir" |
20588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20590 /^X\(\/\/\)$/{ s//\1/; q; }
20591 /^X\(\/\).*/{ s//\1/; q; }
20592 s/.*/./; q'`
20593 done
20594 test ! -n "$as_dirs" || mkdir $as_dirs
20595 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20596echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20597 { (exit 1); exit 1; }; }; }
20598
20599 # echo "creating $dirpart/$file"
20600 echo '# dummy' > "$dirpart/$file"
20601 done
20602done
20603 ;;
20604 esac
20605done
20606_ACEOF
20607
20608cat >>$CONFIG_STATUS <<\_ACEOF
20609
20610{ (exit 0); exit 0; }
20611_ACEOF
20612chmod +x $CONFIG_STATUS
20613ac_clean_files=$ac_clean_files_save
20614
20615
20616# configure is writing to config.log, and then calls config.status.
20617# config.status does its own redirection, appending to config.log.
20618# Unfortunately, on DOS this fails, as config.log is still kept open
20619# by configure, so config.status won't be able to write to it; its
20620# output is simply discarded. So we exec the FD to /dev/null,
20621# effectively closing config.log, so it can be properly (re)opened and
20622# appended to by config.status. When coming back to configure, we
20623# need to make the FD available again.
20624if test "$no_create" != yes; then
20625 ac_cs_success=:
20626 ac_config_status_args=
20627 test "$silent" = yes &&
20628 ac_config_status_args="$ac_config_status_args --quiet"
20629 exec 5>/dev/null
20630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20631 exec 5>>config.log
20632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20633 # would make configure fail if this is the last instruction.
20634 $ac_cs_success || { (exit 1); exit 1; }
20635fi
20636