]> jfr.im git - irc/evilnet/x3.git/blame - configure
selectable ban types
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
ec311f39 2# From configure.in Id: configure.in 1558 2006-05-14 17:40:03Z sirvulcan .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
ceafd592 4# Generated by GNU Autoconf 2.59 for X3 1.4.
b3076f16 5#
ceafd592 6# Report bugs to <x2serv-general@lists.sourceforge.net>.
b3076f16 7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
2f61d1d7 247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
261 shift
262elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
264 :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
267 :
268else
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
275 shift
276 cat <<EOF
277$*
278EOF
279 exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292 echo_test_string=`eval $cmd` &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294 then
295 break
296 fi
297 done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
303 :
304else
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
308 #
309 # So, first we look for a working echo in the user's PATH.
310
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
313 IFS="$lt_save_ifs"
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
318 echo="$dir/echo"
319 break
320 fi
321 done
322 IFS="$lt_save_ifs"
323
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
330 echo='print -r'
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
337 export CONFIG_SHELL
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 else
340 # Try using printf.
341 echo='printf %s\n'
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
345 # Cool, printf works
346 :
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 export CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
354 export SHELL
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 else
362 # maybe with a smaller string...
363 prev=:
364
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367 then
368 break
369 fi
370 prev="$cmd"
371 done
372
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 else
378 # Oops. We lost completely, so just stick with echo.
379 echo=echo
380 fi
381 fi
382 fi
383 fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
b3076f16 401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete. It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
ceafd592 425PACKAGE_NAME='X3'
426PACKAGE_TARNAME='x3'
427PACKAGE_VERSION='1.4'
428PACKAGE_STRING='X3 1.4'
429PACKAGE_BUGREPORT='x2serv-general@lists.sourceforge.net'
b3076f16 430
431ac_unique_file="src/opserv.c"
432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446# include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451# include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462# include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
ec311f39 469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 EGREP LN_S 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 ALLOCA MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS TRACK LIBOBJS LTLIBOBJS'
b3076f16 470ac_subst_files=''
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CC_set=${CC+set}
911ac_env_CC_value=$CC
912ac_cv_env_CC_set=${CC+set}
913ac_cv_env_CC_value=$CC
914ac_env_CFLAGS_set=${CFLAGS+set}
915ac_env_CFLAGS_value=$CFLAGS
916ac_cv_env_CFLAGS_set=${CFLAGS+set}
917ac_cv_env_CFLAGS_value=$CFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CPP_set=${CPP+set}
927ac_env_CPP_value=$CPP
928ac_cv_env_CPP_set=${CPP+set}
929ac_cv_env_CPP_value=$CPP
2f61d1d7 930ac_env_CXX_set=${CXX+set}
931ac_env_CXX_value=$CXX
932ac_cv_env_CXX_set=${CXX+set}
933ac_cv_env_CXX_value=$CXX
934ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_env_CXXFLAGS_value=$CXXFLAGS
936ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
b3076f16 950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
ceafd592 958\`configure' configures X3 1.4 to adapt to many kinds of systems.
b3076f16 959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011Program names:
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
1016System types:
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1020_ACEOF
1021fi
1022
1023if test -n "$ac_init_help"; then
1024 case $ac_init_help in
ceafd592 1025 short | recursive ) echo "Configuration of X3 1.4:";;
b3076f16 1026 esac
1027 cat <<\_ACEOF
1028
1029Optional Features:
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1032 --enable-maintainer-mode enable make rules and dependencies not useful
1033 (and sometimes confusing) to the casual installer
1034 --disable-dependency-tracking speeds up one-time build
1035 --enable-dependency-tracking do not reject slow dependency extractors
2f61d1d7 1036 --enable-shared[=PKGS]
1037 build shared libraries [default=yes]
1038 --enable-static[=PKGS]
1039 build static libraries [default=yes]
1040 --enable-fast-install[=PKGS]
1041 optimize for fast installation [default=yes]
1042 --disable-libtool-lock avoid locking (might break parallel builds)
b3076f16 1043 --disable-tokens Disables tokenization of P10 protocol output
1044 (tokens required if linking to ircu 2.10.11)
1045 --enable-debug Enables debugging behaviors
1046 --enable-modules=list,of,modules Enable extra modules
1047
1048Optional Packages:
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2f61d1d7 1051 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052 --with-pic try to use only PIC/non-PIC objects [default=use
1053 both]
1054 --with-tags[=TAGS]
1055 include additional configurations [automatic]
b3076f16 1056 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1057 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1058 --with-protocol=name Choose IRC dialect to support; one of:
1059 p10 (the default), bahamut
1060 --without-getopt Disables building of the GNU getopt library
1061
1062Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1069 CPP C preprocessor
2f61d1d7 1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
b3076f16 1075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
ceafd592 1079Report bugs to <x2serv-general@lists.sourceforge.net>.
b3076f16 1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
1113
1114# Do not use `cd foo && pwd` to compute absolute paths, because
1115# the directories may not exist.
1116case `pwd` in
1117.) ac_abs_builddir="$ac_dir";;
1118*)
1119 case "$ac_dir" in
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_builddir=${ac_top_builddir}.;;
1127*)
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_srcdir=$ac_srcdir;;
1136*)
1137 case $ac_srcdir in
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_srcdir=$ac_top_srcdir;;
1145*)
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 esac;;
1151esac
1152
1153 cd $ac_dir
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1156 echo
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1159 echo
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1163 echo
1164 $ac_configure --help
1165 else
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 fi
b8cb2a14 1168 cd "$ac_popdir"
b3076f16 1169 done
1170fi
1171
1172test -n "$ac_init_help" && exit 0
1173if $ac_init_version; then
1174 cat <<\_ACEOF
ceafd592 1175X3 configure 1.4
b3076f16 1176generated by GNU Autoconf 2.59
1177
1178Copyright (C) 2003 Free Software Foundation, Inc.
1179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
1181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
ceafd592 1189It was created by X3 $as_me 1.4, which was
b3076f16 1190generated by GNU Autoconf 2.59. Invocation command line was
1191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
1242# Strip out --silent because we don't want to record it for future runs.
1243# Also quote any args containing shell meta-characters.
1244# Make two passes to allow for proper duplicate-argument suppression.
1245ac_configure_args=
1246ac_configure_args0=
1247ac_configure_args1=
1248ac_sep=
1249ac_must_keep_next=false
1250for ac_pass in 1 2
1251do
1252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1268 else
1269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
1280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
1287done
1288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
1300
1301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315 ;;
1316 *)
1317 sed -n \
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ;;
1320 esac;
1321}
1322 echo
1323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1348 done | sort
1349 echo
1350 fi
1351
1352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
1359 sed "/^$/d" confdefs.h | sort
1360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
ceafd592 1525CODENAME=X3
b3076f16 1526 ac_config_headers="$ac_config_headers src/config.h"
1527
1528
1529ac_aux_dir=
1530for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531 if test -f $ac_dir/install-sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 break
1535 elif test -f $ac_dir/install.sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 break
1539 elif test -f $ac_dir/shtool; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 break
1543 fi
1544done
1545if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548 { (exit 1); exit 1; }; }
1549fi
1550ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
1554# Make sure we can run config.sub.
1555$ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560echo "$as_me:$LINENO: checking build system type" >&5
1561echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 ac_cv_build_alias=$build_alias
1566test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579echo "${ECHO_T}$ac_cv_build" >&6
1580build=$ac_cv_build
1581build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586echo "$as_me:$LINENO: checking host system type" >&5
1587echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 ac_cv_host_alias=$host_alias
1592test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601echo "${ECHO_T}$ac_cv_host" >&6
1602host=$ac_cv_host
1603host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking target system type" >&5
1609echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_target_alias=$target_alias
1614test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623echo "${ECHO_T}$ac_cv_target" >&6
1624target=$ac_cv_target
1625target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630# The aliases save the names the user supplied, while $host etc.
1631# will get canonicalized.
1632test -n "$target_alias" &&
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1634 NONENONEs,x,x, &&
1635 program_prefix=${target_alias}-
ec1a68c8 1636am__api_version="1.9"
b3076f16 1637# Find a good install program. We prefer a C program (faster),
1638# so one script is as good as another. But avoid the broken or
1639# incompatible versions:
1640# SysV /etc/install, /usr/sbin/install
1641# SunOS /usr/etc/install
1642# IRIX /sbin/install
1643# AIX /bin/install
1644# AmigaOS /C/install, which installs bootblocks on floppy discs
1645# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1646# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1647# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1648# OS/2's system install, which has a completely different semantic
1649# ./install, which can be erroneously created by make from ./install.sh.
1650echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1651echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1652if test -z "$INSTALL"; then
1653if test "${ac_cv_path_install+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 # Account for people who put trailing slashes in PATH elements.
1662case $as_dir/ in
1663 ./ | .// | /cC/* | \
1664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1665 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1666 /usr/ucb/* ) ;;
1667 *)
1668 # OSF1 and SCO ODT 3.0 have their own names for install.
1669 # Don't use installbsd from OSF since it installs stuff as root
1670 # by default.
1671 for ac_prog in ginstall scoinst install; do
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1674 if test $ac_prog = install &&
1675 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1676 # AIX install. It has an incompatible calling convention.
1677 :
1678 elif test $ac_prog = install &&
1679 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680 # program-specific install script used by HP pwplus--don't use.
1681 :
1682 else
1683 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1684 break 3
1685 fi
1686 fi
1687 done
1688 done
1689 ;;
1690esac
1691done
1692
1693
1694fi
1695 if test "${ac_cv_path_install+set}" = set; then
1696 INSTALL=$ac_cv_path_install
1697 else
1698 # As a last resort, use the slow shell script. We don't cache a
1699 # path for INSTALL within a source directory, because that will
1700 # break other packages using the cache if that directory is
1701 # removed, or if the path is relative.
1702 INSTALL=$ac_install_sh
1703 fi
1704fi
1705echo "$as_me:$LINENO: result: $INSTALL" >&5
1706echo "${ECHO_T}$INSTALL" >&6
1707
1708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709# It thinks the first close brace ends the variable substitution.
1710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
1712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713
1714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
1716echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1717echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1718# Just in case
1719sleep 1
ec1a68c8 1720echo timestamp > conftest.file
b3076f16 1721# Do `set' in a subshell so we don't clobber the current shell's
1722# arguments. Must try -L first in case configure is actually a
1723# symlink; some systems play weird games with the mod time of symlinks
1724# (eg FreeBSD returns the mod time of the symlink's containing
1725# directory).
1726if (
ec1a68c8 1727 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 1728 if test "$*" = "X"; then
1729 # -L didn't work.
ec1a68c8 1730 set X `ls -t $srcdir/configure conftest.file`
b3076f16 1731 fi
ec1a68c8 1732 rm -f conftest.file
1733 if test "$*" != "X $srcdir/configure conftest.file" \
1734 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 1735
1736 # If neither matched, then we have a broken ls. This can happen
1737 # if, for instance, CONFIG_SHELL is bash and it inherits a
1738 # broken ls alias from the environment. This has actually
1739 # happened. Such a system could not be considered "sane".
1740 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1741alias in your environment" >&5
1742echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1743alias in your environment" >&2;}
1744 { (exit 1); exit 1; }; }
1745 fi
1746
ec1a68c8 1747 test "$2" = conftest.file
b3076f16 1748 )
1749then
1750 # Ok.
1751 :
1752else
1753 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1754Check your system clock" >&5
1755echo "$as_me: error: newly created file is older than distributed files!
1756Check your system clock" >&2;}
1757 { (exit 1); exit 1; }; }
1758fi
1759echo "$as_me:$LINENO: result: yes" >&5
1760echo "${ECHO_T}yes" >&6
1761test "$program_prefix" != NONE &&
1762 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1763# Use a double $ so make ignores it.
1764test "$program_suffix" != NONE &&
1765 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1766# Double any \ or $. echo might interpret backslashes.
1767# By default was `s,x,x', remove it if useless.
1768cat <<\_ACEOF >conftest.sed
1769s/[\\$]/&&/g;s/;s,x,x,$//
1770_ACEOF
1771program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1772rm conftest.sed
1773
ec1a68c8 1774# expand $ac_aux_dir to an absolute path
1775am_aux_dir=`cd $ac_aux_dir && pwd`
1776
1777test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1778# Use eval to expand $SHELL
1779if eval "$MISSING --run true"; then
1780 am_missing_run="$MISSING --run "
1781else
1782 am_missing_run=
1783 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1784echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1785fi
1786
1787if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1788 # We used to keeping the `.' as first argument, in order to
1789 # allow $(mkdir_p) to be used without argument. As in
1790 # $(mkdir_p) $(somedir)
1791 # where $(somedir) is conditionally defined. However this is wrong
1792 # for two reasons:
1793 # 1. if the package is installed by a user who cannot write `.'
1794 # make install will fail,
1795 # 2. the above comment should most certainly read
1796 # $(mkdir_p) $(DESTDIR)$(somedir)
1797 # so it does not work when $(somedir) is undefined and
1798 # $(DESTDIR) is not.
1799 # To support the latter case, we have to write
1800 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1801 # so the `.' trick is pointless.
1802 mkdir_p='mkdir -p --'
1803else
1804 # On NextStep and OpenStep, the `mkdir' command does not
1805 # recognize any option. It will interpret all options as
1806 # directories to create, and then abort because `.' already
1807 # exists.
1808 for d in ./-p ./--version;
1809 do
1810 test -d $d && rmdir $d
1811 done
1812 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1813 if test -f "$ac_aux_dir/mkinstalldirs"; then
1814 mkdir_p='$(mkinstalldirs)'
1815 else
1816 mkdir_p='$(install_sh) -d'
1817 fi
1818fi
1819
1820for ac_prog in gawk mawk nawk awk
1821do
1822 # Extract the first word of "$ac_prog", so it can be a program name with args.
1823set dummy $ac_prog; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_AWK+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$AWK"; then
1830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_AWK="$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845
1846fi
1847fi
1848AWK=$ac_cv_prog_AWK
1849if test -n "$AWK"; then
1850 echo "$as_me:$LINENO: result: $AWK" >&5
1851echo "${ECHO_T}$AWK" >&6
1852else
1853 echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857 test -n "$AWK" && break
1858done
1859
b3076f16 1860echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1861echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1862set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1863if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 cat >conftest.make <<\_ACEOF
1867all:
1868 @echo 'ac_maketemp="$(MAKE)"'
1869_ACEOF
1870# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1871eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1872if test -n "$ac_maketemp"; then
1873 eval ac_cv_prog_make_${ac_make}_set=yes
1874else
1875 eval ac_cv_prog_make_${ac_make}_set=no
1876fi
1877rm -f conftest.make
1878fi
1879if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1880 echo "$as_me:$LINENO: result: yes" >&5
1881echo "${ECHO_T}yes" >&6
1882 SET_MAKE=
1883else
1884 echo "$as_me:$LINENO: result: no" >&5
1885echo "${ECHO_T}no" >&6
1886 SET_MAKE="MAKE=${MAKE-make}"
1887fi
1888
ec1a68c8 1889rm -rf .tst 2>/dev/null
1890mkdir .tst 2>/dev/null
1891if test -d .tst; then
1892 am__leading_dot=.
1893else
1894 am__leading_dot=_
1895fi
1896rmdir .tst 2>/dev/null
b3076f16 1897
ec1a68c8 1898# test to see if srcdir already configured
1899if test "`cd $srcdir && pwd`" != "`pwd`" &&
1900 test -f $srcdir/config.status; then
b3076f16 1901 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1902echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
ec1a68c8 1906# test whether we have cygpath
1907if test -z "$CYGPATH_W"; then
1908 if (cygpath --version) >/dev/null 2>/dev/null; then
1909 CYGPATH_W='cygpath -w'
1910 else
1911 CYGPATH_W=echo
1912 fi
1913fi
1914
1915
1916# Define the identity of the package.
ceafd592 1917 PACKAGE='x3'
1918 VERSION='1.4'
ec1a68c8 1919
1920
b3076f16 1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE "$PACKAGE"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define VERSION "$VERSION"
1928_ACEOF
1929
ec1a68c8 1930# Some tools Automake needs.
b3076f16 1931
ec1a68c8 1932ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 1933
ec1a68c8 1934
1935AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1936
1937
1938AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1939
1940
1941AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1942
1943
1944MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1945
1946install_sh=${install_sh-"$am_aux_dir/install-sh"}
1947
1948# Installed binaries are usually stripped using `strip' when the user
1949# run `make install-strip'. However `strip' might not be the right
1950# tool to use in cross-compilation environments, therefore Automake
1951# will honor the `STRIP' environment variable to overrule this program.
1952if test "$cross_compiling" != no; then
1953 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1955set dummy ${ac_tool_prefix}strip; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_STRIP+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 1960else
ec1a68c8 1961 if test -n "$STRIP"; then
1962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975done
1976done
b3076f16 1977
ec1a68c8 1978fi
1979fi
1980STRIP=$ac_cv_prog_STRIP
1981if test -n "$STRIP"; then
1982 echo "$as_me:$LINENO: result: $STRIP" >&5
1983echo "${ECHO_T}$STRIP" >&6
b3076f16 1984else
ec1a68c8 1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
b3076f16 1987fi
b2cf3d66 1988
b3076f16 1989fi
ec1a68c8 1990if test -z "$ac_cv_prog_STRIP"; then
1991 ac_ct_STRIP=$STRIP
1992 # Extract the first word of "strip", so it can be a program name with args.
1993set dummy strip; ac_word=$2
1994echo "$as_me:$LINENO: checking for $ac_word" >&5
1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 if test -n "$ac_ct_STRIP"; then
2000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2001else
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_ac_ct_STRIP="strip"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2012 fi
2013done
2014done
b3076f16 2015
ec1a68c8 2016 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2017fi
2018fi
2019ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2020if test -n "$ac_ct_STRIP"; then
2021 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2022echo "${ECHO_T}$ac_ct_STRIP" >&6
b3076f16 2023else
ec1a68c8 2024 echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
b3076f16 2026fi
2027
ec1a68c8 2028 STRIP=$ac_ct_STRIP
b2cf3d66 2029else
ec1a68c8 2030 STRIP="$ac_cv_prog_STRIP"
b3076f16 2031fi
b3076f16 2032
ec1a68c8 2033fi
2034INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2035
2036# We need awk for the "check" target. The system "awk" is bad on
2037# some platforms.
2038# Always define AMTAR for backward compatibility.
2039
2040AMTAR=${AMTAR-"${am_missing_run}tar"}
2041
2042am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2043
2044
2045
2046
b3076f16 2047
2048echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2049echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2051if test "${enable_maintainer_mode+set}" = set; then
2052 enableval="$enable_maintainer_mode"
2053 USE_MAINTAINER_MODE=$enableval
2054else
2055 USE_MAINTAINER_MODE=no
2056fi;
2057 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2058echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2059
2060
2061if test $USE_MAINTAINER_MODE = yes; then
2062 MAINTAINER_MODE_TRUE=
2063 MAINTAINER_MODE_FALSE='#'
2064else
2065 MAINTAINER_MODE_TRUE='#'
2066 MAINTAINER_MODE_FALSE=
2067fi
ec1a68c8 2068
b3076f16 2069 MAINT=$MAINTAINER_MODE_TRUE
2070
2071
2072
ec1a68c8 2073DEPDIR="${am__leading_dot}deps"
2074
2075 ac_config_commands="$ac_config_commands depfiles"
2076
2077
2078am_make=${MAKE-make}
2079cat > confinc << 'END'
2080am__doit:
2081 @echo done
2082.PHONY: am__doit
2083END
2084# If we don't find an include directive, just comment out the code.
2085echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2086echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2087am__include="#"
2088am__quote=
2089_am_result=none
2090# First try GNU make style include.
2091echo "include confinc" > confmf
2092# We grep out `Entering directory' and `Leaving directory'
2093# messages which can occur if `w' ends up in MAKEFLAGS.
2094# In particular we don't look at `^make:' because GNU make might
2095# be invoked under some other name (usually "gmake"), in which
2096# case it prints its new name instead of `make'.
2097if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2098 am__include=include
2099 am__quote=
2100 _am_result=GNU
2101fi
2102# Now try BSD make style include.
2103if test "$am__include" = "#"; then
2104 echo '.include "confinc"' > confmf
2105 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2106 am__include=.include
2107 am__quote="\""
2108 _am_result=BSD
2109 fi
2110fi
2111
2112
2113echo "$as_me:$LINENO: result: $_am_result" >&5
2114echo "${ECHO_T}$_am_result" >&6
2115rm -f confinc confmf
2116
2117# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2118if test "${enable_dependency_tracking+set}" = set; then
2119 enableval="$enable_dependency_tracking"
2120
2121fi;
2122if test "x$enable_dependency_tracking" != xno; then
2123 am_depcomp="$ac_aux_dir/depcomp"
2124 AMDEPBACKSLASH='\'
2125fi
2126
2127
2128if test "x$enable_dependency_tracking" != xno; then
2129 AMDEP_TRUE=
2130 AMDEP_FALSE='#'
2131else
2132 AMDEP_TRUE='#'
2133 AMDEP_FALSE=
2134fi
2135
2136
2137
b3076f16 2138ac_ext=c
2139ac_cpp='$CPP $CPPFLAGS'
2140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2145set dummy ${ac_tool_prefix}gcc; ac_word=$2
2146echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148if test "${ac_cv_prog_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2164 fi
2165done
2166done
2167
2168fi
2169fi
2170CC=$ac_cv_prog_CC
2171if test -n "$CC"; then
2172 echo "$as_me:$LINENO: result: $CC" >&5
2173echo "${ECHO_T}$CC" >&6
2174else
2175 echo "$as_me:$LINENO: result: no" >&5
2176echo "${ECHO_T}no" >&6
2177fi
2178
2179fi
2180if test -z "$ac_cv_prog_CC"; then
2181 ac_ct_CC=$CC
2182 # Extract the first word of "gcc", so it can be a program name with args.
2183set dummy gcc; ac_word=$2
2184echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 if test -n "$ac_ct_CC"; then
2190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_ac_ct_CC="gcc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
2204done
2205
2206fi
2207fi
2208ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209if test -n "$ac_ct_CC"; then
2210 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211echo "${ECHO_T}$ac_ct_CC" >&6
2212else
2213 echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217 CC=$ac_ct_CC
2218else
2219 CC="$ac_cv_prog_CC"
2220fi
2221
2222if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2225set dummy ${ac_tool_prefix}cc; ac_word=$2
2226echo "$as_me:$LINENO: checking for $ac_word" >&5
2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228if test "${ac_cv_prog_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_CC="${ac_tool_prefix}cc"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245done
2246done
2247
2248fi
2249fi
2250CC=$ac_cv_prog_CC
2251if test -n "$CC"; then
2252 echo "$as_me:$LINENO: result: $CC" >&5
2253echo "${ECHO_T}$CC" >&6
2254else
2255 echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6
2257fi
2258
2259fi
2260if test -z "$ac_cv_prog_CC"; then
2261 ac_ct_CC=$CC
2262 # Extract the first word of "cc", so it can be a program name with args.
2263set dummy cc; ac_word=$2
2264echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_ac_ct_CC="cc"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
2285
2286fi
2287fi
2288ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289if test -n "$ac_ct_CC"; then
2290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291echo "${ECHO_T}$ac_ct_CC" >&6
2292else
2293 echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6
2295fi
2296
2297 CC=$ac_ct_CC
2298else
2299 CC="$ac_cv_prog_CC"
2300fi
2301
2302fi
2303if test -z "$CC"; then
2304 # Extract the first word of "cc", so it can be a program name with args.
2305set dummy cc; ac_word=$2
2306echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308if test "${ac_cv_prog_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 if test -n "$CC"; then
2312 ac_cv_prog_CC="$CC" # Let the user override the test.
2313else
2314 ac_prog_rejected=no
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2323 ac_prog_rejected=yes
2324 continue
2325 fi
2326 ac_cv_prog_CC="cc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330done
2331done
2332
2333if test $ac_prog_rejected = yes; then
2334 # We found a bogon in the path, so make sure we never use it.
2335 set dummy $ac_cv_prog_CC
2336 shift
2337 if test $# != 0; then
2338 # We chose a different compiler from the bogus one.
2339 # However, it has the same basename, so the bogon will be chosen
2340 # first if we set CC to just the basename; use the full file name.
2341 shift
2342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2343 fi
2344fi
2345fi
2346fi
2347CC=$ac_cv_prog_CC
2348if test -n "$CC"; then
2349 echo "$as_me:$LINENO: result: $CC" >&5
2350echo "${ECHO_T}$CC" >&6
2351else
2352 echo "$as_me:$LINENO: result: no" >&5
2353echo "${ECHO_T}no" >&6
2354fi
2355
2356fi
2357if test -z "$CC"; then
2358 if test -n "$ac_tool_prefix"; then
2359 for ac_prog in cl
2360 do
2361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2363echo "$as_me:$LINENO: checking for $ac_word" >&5
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365if test "${ac_cv_prog_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382done
2383done
2384
2385fi
2386fi
2387CC=$ac_cv_prog_CC
2388if test -n "$CC"; then
2389 echo "$as_me:$LINENO: result: $CC" >&5
2390echo "${ECHO_T}$CC" >&6
2391else
2392 echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6
2394fi
2395
2396 test -n "$CC" && break
2397 done
2398fi
2399if test -z "$CC"; then
2400 ac_ct_CC=$CC
2401 for ac_prog in cl
2402do
2403 # Extract the first word of "$ac_prog", so it can be a program name with args.
2404set dummy $ac_prog; ac_word=$2
2405echo "$as_me:$LINENO: checking for $ac_word" >&5
2406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_ac_ct_CC="$ac_prog"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425done
2426
2427fi
2428fi
2429ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430if test -n "$ac_ct_CC"; then
2431 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432echo "${ECHO_T}$ac_ct_CC" >&6
2433else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436fi
2437
2438 test -n "$ac_ct_CC" && break
2439done
2440
2441 CC=$ac_ct_CC
2442fi
2443
2444fi
2445
2446
2447test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2448See \`config.log' for more details." >&5
2449echo "$as_me: error: no acceptable C compiler found in \$PATH
2450See \`config.log' for more details." >&2;}
2451 { (exit 1); exit 1; }; }
2452
2453# Provide some information about the compiler.
2454echo "$as_me:$LINENO:" \
2455 "checking for C compiler version" >&5
2456ac_compiler=`set X $ac_compile; echo $2`
2457{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2458 (eval $ac_compiler --version </dev/null >&5) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2463 (eval $ac_compiler -v </dev/null >&5) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2467{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2468 (eval $ac_compiler -V </dev/null >&5) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }
2472
2473cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479
2480int
2481main ()
2482{
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488ac_clean_files_save=$ac_clean_files
2489ac_clean_files="$ac_clean_files a.out a.exe b.out"
2490# Try to create an executable without -o first, disregard a.out.
2491# It will help us diagnose broken compilers, and finding out an intuition
2492# of exeext.
2493echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2494echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2495ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2496if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2497 (eval $ac_link_default) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 # Find the output, starting from the most likely. This scheme is
2502# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2503# resort.
2504
2505# Be careful to initialize this variable, since it used to be cached.
2506# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2507ac_cv_exeext=
2508# b.out is created by i960 compilers.
2509for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2510do
2511 test -f "$ac_file" || continue
2512 case $ac_file in
2513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2514 ;;
2515 conftest.$ac_ext )
2516 # This is the source file.
2517 ;;
2518 [ab].out )
2519 # We found the default executable, but exeext='' is most
2520 # certainly right.
2521 break;;
2522 *.* )
2523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 # FIXME: I believe we export ac_cv_exeext for Libtool,
2525 # but it would be cool to find out if it's true. Does anybody
2526 # maintain Libtool? --akim.
2527 export ac_cv_exeext
2528 break;;
2529 * )
2530 break;;
2531 esac
2532done
2533else
2534 echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2538See \`config.log' for more details." >&5
2539echo "$as_me: error: C compiler cannot create executables
2540See \`config.log' for more details." >&2;}
2541 { (exit 77); exit 77; }; }
2542fi
2543
2544ac_exeext=$ac_cv_exeext
2545echo "$as_me:$LINENO: result: $ac_file" >&5
2546echo "${ECHO_T}$ac_file" >&6
2547
2548# Check the compiler produces executables we can run. If not, either
2549# the compiler is broken, or we cross compile.
2550echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2551echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2552# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2553# If not cross compiling, check that we can run a simple program.
2554if test "$cross_compiling" != yes; then
2555 if { ac_try='./$ac_file'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 cross_compiling=no
2562 else
2563 if test "$cross_compiling" = maybe; then
2564 cross_compiling=yes
2565 else
2566 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2567If you meant to cross compile, use \`--host'.
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: cannot run C compiled programs.
2570If you meant to cross compile, use \`--host'.
2571See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2573 fi
2574 fi
2575fi
2576echo "$as_me:$LINENO: result: yes" >&5
2577echo "${ECHO_T}yes" >&6
2578
2579rm -f a.out a.exe conftest$ac_cv_exeext b.out
2580ac_clean_files=$ac_clean_files_save
2581# Check the compiler produces executables we can run. If not, either
2582# the compiler is broken, or we cross compile.
2583echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2584echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2585echo "$as_me:$LINENO: result: $cross_compiling" >&5
2586echo "${ECHO_T}$cross_compiling" >&6
2587
2588echo "$as_me:$LINENO: checking for suffix of executables" >&5
2589echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2591 (eval $ac_link) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; then
2595 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2596# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2597# work properly (i.e., refer to `conftest.exe'), while it won't with
2598# `rm'.
2599for ac_file in conftest.exe conftest conftest.*; do
2600 test -f "$ac_file" || continue
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 export ac_cv_exeext
2605 break;;
2606 * ) break;;
2607 esac
2608done
2609else
2610 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611See \`config.log' for more details." >&5
2612echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }
2615fi
2616
2617rm -f conftest$ac_cv_exeext
2618echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619echo "${ECHO_T}$ac_cv_exeext" >&6
2620
2621rm -f conftest.$ac_ext
2622EXEEXT=$ac_cv_exeext
2623ac_exeext=$EXEEXT
2624echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2626if test "${ac_cv_objext+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628else
2629 cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
2635
2636int
2637main ()
2638{
2639
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.o conftest.obj
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; then
2650 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2651 case $ac_file in
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654 break;;
2655 esac
2656done
2657else
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662See \`config.log' for more details." >&5
2663echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2666fi
2667
2668rm -f conftest.$ac_cv_objext conftest.$ac_ext
2669fi
2670echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671echo "${ECHO_T}$ac_cv_objext" >&6
2672OBJEXT=$ac_cv_objext
2673ac_objext=$OBJEXT
2674echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2676if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679 cat >conftest.$ac_ext <<_ACEOF
2680/* confdefs.h. */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h. */
2685
2686int
2687main ()
2688{
2689#ifndef __GNUC__
2690 choke me
2691#endif
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
2698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
b8cb2a14 2706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_compiler_gnu=yes
2719else
2720 echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723ac_compiler_gnu=no
2724fi
2725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727
2728fi
2729echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2731GCC=`test $ac_compiler_gnu = yes && echo yes`
2732ac_test_CFLAGS=${CFLAGS+set}
2733ac_save_CFLAGS=$CFLAGS
2734CFLAGS="-g"
2735echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2736echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2737if test "${ac_cv_prog_cc_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740 cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746
2747int
2748main ()
2749{
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755rm -f conftest.$ac_objext
2756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757 (eval $ac_compile) 2>conftest.er1
2758 ac_status=$?
2759 grep -v '^ *+' conftest.er1 >conftest.err
2760 rm -f conftest.er1
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
b8cb2a14 2764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_cv_prog_cc_g=yes
2777else
2778 echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781ac_cv_prog_cc_g=no
2782fi
2783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784fi
2785echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2786echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2787if test "$ac_test_CFLAGS" = set; then
2788 CFLAGS=$ac_save_CFLAGS
2789elif test $ac_cv_prog_cc_g = yes; then
2790 if test "$GCC" = yes; then
2791 CFLAGS="-g -O2"
2792 else
2793 CFLAGS="-g"
2794 fi
2795else
2796 if test "$GCC" = yes; then
2797 CFLAGS="-O2"
2798 else
2799 CFLAGS=
2800 fi
2801fi
2802echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2803echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2804if test "${ac_cv_prog_cc_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807 ac_cv_prog_cc_stdc=no
2808ac_save_CC=$CC
2809cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h. */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h. */
2815#include <stdarg.h>
2816#include <stdio.h>
2817#include <sys/types.h>
2818#include <sys/stat.h>
2819/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2820struct buf { int x; };
2821FILE * (*rcsopen) (struct buf *, struct stat *, int);
2822static char *e (p, i)
2823 char **p;
2824 int i;
2825{
2826 return p[i];
2827}
2828static char *f (char * (*g) (char **, int), char **p, ...)
2829{
2830 char *s;
2831 va_list v;
2832 va_start (v,p);
2833 s = g (p, va_arg (v,int));
2834 va_end (v);
2835 return s;
2836}
2837
2838/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2839 function prototypes and stuff, but not '\xHH' hex character constants.
2840 These don't provoke an error unfortunately, instead are silently treated
2841 as 'x'. The following induces an error, until -std1 is added to get
2842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2843 array size at least. It's necessary to write '\x00'==0 to get something
2844 that's true only with -std1. */
2845int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2846
2847int test (int i, double x);
2848struct s1 {int (*f) (int a);};
2849struct s2 {int (*f) (double a);};
2850int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2851int argc;
2852char **argv;
2853int
2854main ()
2855{
2856return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861# Don't try gcc -ansi; that turns off useful extensions and
2862# breaks some systems' header files.
2863# AIX -qlanglvl=ansi
2864# Ultrix and OSF/1 -std1
2865# HP-UX 10.20 and later -Ae
2866# HP-UX older versions -Aa -D_HPUX_SOURCE
2867# SVR4 -Xc -D__EXTENSIONS__
2868for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2869do
2870 CC="$ac_save_CC $ac_arg"
2871 rm -f conftest.$ac_objext
2872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
b8cb2a14 2880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_prog_cc_stdc=$ac_arg
2893break
2894else
2895 echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext
2900done
2901rm -f conftest.$ac_ext conftest.$ac_objext
2902CC=$ac_save_CC
2903
2904fi
2905
2906case "x$ac_cv_prog_cc_stdc" in
2907 x|xno)
2908 echo "$as_me:$LINENO: result: none needed" >&5
2909echo "${ECHO_T}none needed" >&6 ;;
2910 *)
2911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2912echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2913 CC="$CC $ac_cv_prog_cc_stdc" ;;
2914esac
2915
2916# Some people use a C++ compiler to compile C. Since we use `exit',
2917# in C++ we need to declare it. In case someone uses the same compiler
2918# for both compiling C and C++ we need to have the C++ compiler decide
2919# the declaration of exit, since it's the most demanding environment.
2920cat >conftest.$ac_ext <<_ACEOF
2921#ifndef __cplusplus
2922 choke me
2923#endif
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
b8cb2a14 2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 for ac_declaration in \
2947 '' \
2948 'extern "C" void std::exit (int) throw (); using std::exit;' \
2949 'extern "C" void std::exit (int); using std::exit;' \
2950 'extern "C" void exit (int) throw ();' \
2951 'extern "C" void exit (int);' \
2952 'void exit (int);'
2953do
2954 cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h. */
2960$ac_declaration
2961#include <stdlib.h>
2962int
2963main ()
2964{
2965exit (42);
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext
2971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
b8cb2a14 2979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; } &&
2985 { ac_try='test -s conftest.$ac_objext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 :
2992else
2993 echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996continue
2997fi
2998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2999 cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
3005$ac_declaration
3006int
3007main ()
3008{
3009exit (42);
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext
3015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3016 (eval $ac_compile) 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
b8cb2a14 3023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 break
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040fi
3041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042done
3043rm -f conftest*
3044if test -n "$ac_declaration"; then
3045 echo '#ifdef __cplusplus' >>confdefs.h
3046 echo $ac_declaration >>confdefs.h
3047 echo '#endif' >>confdefs.h
3048fi
3049
3050else
3051 echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054fi
3055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056ac_ext=c
3057ac_cpp='$CPP $CPPFLAGS'
3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061
ec1a68c8 3062depcc="$CC" am_compiler_list=
3063
3064echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3065echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3066if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3070 # We make a subdir and do the tests there. Otherwise we can end up
3071 # making bogus files that we don't know about and never remove. For
3072 # instance it was reported that on HP-UX the gcc test will end up
3073 # making a dummy file named `D' -- because `-MD' means `put the output
3074 # in D'.
3075 mkdir conftest.dir
3076 # Copy depcomp to subdir because otherwise we won't find it if we're
3077 # using a relative directory.
3078 cp "$am_depcomp" conftest.dir
3079 cd conftest.dir
3080 # We will build objects and dependencies in a subdirectory because
3081 # it helps to detect inapplicable dependency modes. For instance
3082 # both Tru64's cc and ICC support -MD to output dependencies as a
3083 # side effect of compilation, but ICC will put the dependencies in
3084 # the current directory while Tru64 will put them in the object
3085 # directory.
3086 mkdir sub
3087
3088 am_cv_CC_dependencies_compiler_type=none
3089 if test "$am_compiler_list" = ""; then
3090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3091 fi
3092 for depmode in $am_compiler_list; do
3093 # Setup a source with many dependencies, because some compilers
3094 # like to wrap large dependency lists on column 80 (with \), and
3095 # we should not choose a depcomp mode which is confused by this.
3096 #
3097 # We need to recreate these files for each test, as the compiler may
3098 # overwrite some of them when testing with obscure command lines.
3099 # This happens at least with the AIX C compiler.
3100 : > sub/conftest.c
3101 for i in 1 2 3 4 5 6; do
3102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3104 # Solaris 8's {/usr,}/bin/sh.
3105 touch sub/conftst$i.h
3106 done
3107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3108
3109 case $depmode in
3110 nosideeffect)
3111 # after this tag, mechanisms are not by side-effect, so they'll
3112 # only be used when explicitly requested
3113 if test "x$enable_dependency_tracking" = xyes; then
3114 continue
3115 else
3116 break
3117 fi
3118 ;;
3119 none) break ;;
3120 esac
3121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3122 # mode. It turns out that the SunPro C++ compiler does not properly
3123 # handle `-M -o', and we need to detect this.
3124 if depmode=$depmode \
3125 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3127 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3128 >/dev/null 2>conftest.err &&
3129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3130 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3132 # icc doesn't choke on unknown options, it will just issue warnings
3133 # or remarks (even with -Werror). So we grep stderr for any message
3134 # that says an option was ignored or not supported.
3135 # When given -MP, icc 7.0 and 7.1 complain thusly:
3136 # icc: Command line warning: ignoring option '-M'; no argument required
3137 # The diagnosis changed in icc 8.0:
3138 # icc: Command line remark: option '-MP' not supported
3139 if (grep 'ignoring option' conftest.err ||
3140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3141 am_cv_CC_dependencies_compiler_type=$depmode
3142 break
3143 fi
3144 fi
3145 done
3146
3147 cd ..
3148 rm -rf conftest.dir
3149else
3150 am_cv_CC_dependencies_compiler_type=none
3151fi
3152
3153fi
3154echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3155echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3157
3158
3159
3160if
3161 test "x$enable_dependency_tracking" != xno \
3162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3163 am__fastdepCC_TRUE=
3164 am__fastdepCC_FALSE='#'
3165else
3166 am__fastdepCC_TRUE='#'
3167 am__fastdepCC_FALSE=
3168fi
3169
3170
b3076f16 3171
3172echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3173echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3174if test "${ac_cv_type_signal+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183#include <sys/types.h>
3184#include <signal.h>
3185#ifdef signal
3186# undef signal
3187#endif
3188#ifdef __cplusplus
3189extern "C" void (*signal (int, void (*)(int)))(int);
3190#else
3191void (*signal ()) ();
3192#endif
3193
3194int
3195main ()
3196{
3197int i;
3198 ;
3199 return 0;
3200}
3201_ACEOF
3202rm -f conftest.$ac_objext
3203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
b8cb2a14 3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 ac_cv_type_signal=void
3224else
3225 echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228ac_cv_type_signal=int
3229fi
3230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
3232echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3233echo "${ECHO_T}$ac_cv_type_signal" >&6
3234
3235cat >>confdefs.h <<_ACEOF
3236#define RETSIGTYPE $ac_cv_type_signal
3237_ACEOF
3238
3239
3240echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3241echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3242if test "${ac_cv_c_const+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245 cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
3251
3252int
3253main ()
3254{
3255/* FIXME: Include the comments suggested by Paul. */
3256#ifndef __cplusplus
3257 /* Ultrix mips cc rejects this. */
3258 typedef int charset[2];
3259 const charset x;
3260 /* SunOS 4.1.1 cc rejects this. */
3261 char const *const *ccp;
3262 char **p;
3263 /* NEC SVR4.0.2 mips cc rejects this. */
3264 struct point {int x, y;};
3265 static struct point const zero = {0,0};
3266 /* AIX XL C 1.02.0.0 rejects this.
3267 It does not let you subtract one const X* pointer from another in
3268 an arm of an if-expression whose if-part is not a constant
3269 expression */
3270 const char *g = "string";
3271 ccp = &g + (g ? g-g : 0);
3272 /* HPUX 7.0 cc rejects these. */
3273 ++ccp;
3274 p = (char**) ccp;
3275 ccp = (char const *const *) p;
3276 { /* SCO 3.2v4 cc rejects this. */
3277 char *t;
3278 char const *s = 0 ? (char *) 0 : (char const *) 0;
3279
3280 *t++ = 0;
3281 }
3282 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3283 int x[] = {25, 17};
3284 const int *foo = &x[0];
3285 ++foo;
3286 }
3287 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3288 typedef const int *iptr;
3289 iptr p = 0;
3290 ++p;
3291 }
3292 { /* AIX XL C 1.02.0.0 rejects this saying
3293 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3294 struct s { int j; const int *ap[3]; };
3295 struct s *b; b->j = 5;
3296 }
3297 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3298 const int foo = 10;
3299 }
3300#endif
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
b8cb2a14 3315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_cv_c_const=yes
3328else
3329 echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332ac_cv_c_const=no
3333fi
3334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335fi
3336echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3337echo "${ECHO_T}$ac_cv_c_const" >&6
3338if test $ac_cv_c_const = no; then
3339
3340cat >>confdefs.h <<\_ACEOF
3341#define const
3342_ACEOF
3343
3344fi
3345
3346echo "$as_me:$LINENO: checking for inline" >&5
3347echo $ECHO_N "checking for inline... $ECHO_C" >&6
3348if test "${ac_cv_c_inline+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350else
3351 ac_cv_c_inline=no
3352for ac_kw in inline __inline__ __inline; do
3353 cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h. */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h. */
3359#ifndef __cplusplus
3360typedef int foo_t;
3361static $ac_kw foo_t static_foo () {return 0; }
3362$ac_kw foo_t foo () {return 0; }
3363#endif
3364
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
b8cb2a14 3375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_cv_c_inline=$ac_kw; break
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392fi
3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394done
3395
3396fi
3397echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3398echo "${ECHO_T}$ac_cv_c_inline" >&6
3399
3400
3401case $ac_cv_c_inline in
3402 inline | yes) ;;
3403 *)
3404 case $ac_cv_c_inline in
3405 no) ac_val=;;
3406 *) ac_val=$ac_cv_c_inline;;
3407 esac
3408 cat >>confdefs.h <<_ACEOF
3409#ifndef __cplusplus
3410#define inline $ac_val
3411#endif
3412_ACEOF
3413 ;;
3414esac
3415
3416
3417for ac_prog in gawk mawk nawk awk
3418do
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420set dummy $ac_prog; ac_word=$2
3421echo "$as_me:$LINENO: checking for $ac_word" >&5
3422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423if test "${ac_cv_prog_AWK+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 if test -n "$AWK"; then
3427 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_AWK="$ac_prog"
3437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441done
3442
3443fi
3444fi
3445AWK=$ac_cv_prog_AWK
3446if test -n "$AWK"; then
3447 echo "$as_me:$LINENO: result: $AWK" >&5
3448echo "${ECHO_T}$AWK" >&6
3449else
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452fi
3453
3454 test -n "$AWK" && break
3455done
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465echo "$as_me:$LINENO: checking for $ac_word" >&5
3466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467if test "${ac_cv_prog_CC+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484done
3485done
3486
3487fi
3488fi
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491 echo "$as_me:$LINENO: result: $CC" >&5
3492echo "${ECHO_T}$CC" >&6
3493else
3494 echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
3496fi
3497
3498fi
3499if test -z "$ac_cv_prog_CC"; then
3500 ac_ct_CC=$CC
3501 # Extract the first word of "gcc", so it can be a program name with args.
3502set dummy gcc; ac_word=$2
3503echo "$as_me:$LINENO: checking for $ac_word" >&5
3504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_ac_ct_CC="gcc"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522done
3523done
3524
3525fi
3526fi
3527ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528if test -n "$ac_ct_CC"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530echo "${ECHO_T}$ac_ct_CC" >&6
3531else
3532 echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
3534fi
3535
3536 CC=$ac_ct_CC
3537else
3538 CC="$ac_cv_prog_CC"
3539fi
3540
3541if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544set dummy ${ac_tool_prefix}cc; ac_word=$2
3545echo "$as_me:$LINENO: checking for $ac_word" >&5
3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547if test "${ac_cv_prog_CC+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564done
3565done
3566
3567fi
3568fi
3569CC=$ac_cv_prog_CC
3570if test -n "$CC"; then
3571 echo "$as_me:$LINENO: result: $CC" >&5
3572echo "${ECHO_T}$CC" >&6
3573else
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576fi
3577
3578fi
3579if test -z "$ac_cv_prog_CC"; then
3580 ac_ct_CC=$CC
3581 # Extract the first word of "cc", so it can be a program name with args.
3582set dummy cc; ac_word=$2
3583echo "$as_me:$LINENO: checking for $ac_word" >&5
3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="cc"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602done
3603done
3604
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
3609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3610echo "${ECHO_T}$ac_ct_CC" >&6
3611else
3612 echo "$as_me:$LINENO: result: no" >&5
3613echo "${ECHO_T}no" >&6
3614fi
3615
3616 CC=$ac_ct_CC
3617else
3618 CC="$ac_cv_prog_CC"
3619fi
3620
3621fi
3622if test -z "$CC"; then
3623 # Extract the first word of "cc", so it can be a program name with args.
3624set dummy cc; ac_word=$2
3625echo "$as_me:$LINENO: checking for $ac_word" >&5
3626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627if test "${ac_cv_prog_CC+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633 ac_prog_rejected=no
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642 ac_prog_rejected=yes
3643 continue
3644 fi
3645 ac_cv_prog_CC="cc"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649done
3650done
3651
3652if test $ac_prog_rejected = yes; then
3653 # We found a bogon in the path, so make sure we never use it.
3654 set dummy $ac_cv_prog_CC
3655 shift
3656 if test $# != 0; then
3657 # We chose a different compiler from the bogus one.
3658 # However, it has the same basename, so the bogon will be chosen
3659 # first if we set CC to just the basename; use the full file name.
3660 shift
3661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3662 fi
3663fi
3664fi
3665fi
3666CC=$ac_cv_prog_CC
3667if test -n "$CC"; then
3668 echo "$as_me:$LINENO: result: $CC" >&5
3669echo "${ECHO_T}$CC" >&6
3670else
3671 echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi
3674
3675fi
3676if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog in cl
3679 do
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682echo "$as_me:$LINENO: checking for $ac_word" >&5
3683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684if test "${ac_cv_prog_CC+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689else
3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701done
3702done
3703
3704fi
3705fi
3706CC=$ac_cv_prog_CC
3707if test -n "$CC"; then
3708 echo "$as_me:$LINENO: result: $CC" >&5
3709echo "${ECHO_T}$CC" >&6
3710else
3711 echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713fi
3714
3715 test -n "$CC" && break
3716 done
3717fi
3718if test -z "$CC"; then
3719 ac_ct_CC=$CC
3720 for ac_prog in cl
3721do
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723set dummy $ac_prog; ac_word=$2
3724echo "$as_me:$LINENO: checking for $ac_word" >&5
3725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729 if test -n "$ac_ct_CC"; then
3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CC="$ac_prog"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743done
3744done
3745
3746fi
3747fi
3748ac_ct_CC=$ac_cv_prog_ac_ct_CC
3749if test -n "$ac_ct_CC"; then
3750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3751echo "${ECHO_T}$ac_ct_CC" >&6
3752else
3753 echo "$as_me:$LINENO: result: no" >&5
3754echo "${ECHO_T}no" >&6
3755fi
3756
3757 test -n "$ac_ct_CC" && break
3758done
3759
3760 CC=$ac_ct_CC
3761fi
3762
3763fi
3764
3765
3766test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3767See \`config.log' for more details." >&5
3768echo "$as_me: error: no acceptable C compiler found in \$PATH
3769See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3771
3772# Provide some information about the compiler.
3773echo "$as_me:$LINENO:" \
3774 "checking for C compiler version" >&5
3775ac_compiler=`set X $ac_compile; echo $2`
3776{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3777 (eval $ac_compiler --version </dev/null >&5) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3782 (eval $ac_compiler -v </dev/null >&5) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }
3786{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3787 (eval $ac_compiler -V </dev/null >&5) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791
3792echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3793echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3794if test "${ac_cv_c_compiler_gnu+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807#ifndef __GNUC__
3808 choke me
3809#endif
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815rm -f conftest.$ac_objext
3816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3818 ac_status=$?
3819 grep -v '^ *+' conftest.er1 >conftest.err
3820 rm -f conftest.er1
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
b8cb2a14 3824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_compiler_gnu=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841ac_compiler_gnu=no
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844ac_cv_c_compiler_gnu=$ac_compiler_gnu
3845
3846fi
3847echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3848echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3849GCC=`test $ac_compiler_gnu = yes && echo yes`
3850ac_test_CFLAGS=${CFLAGS+set}
3851ac_save_CFLAGS=$CFLAGS
3852CFLAGS="-g"
3853echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3854echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3855if test "${ac_cv_prog_cc_g+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h. */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h. */
3864
3865int
3866main ()
3867{
3868
3869 ;
3870 return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext
3874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
b8cb2a14 3882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_prog_cc_g=yes
3895else
3896 echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899ac_cv_prog_cc_g=no
3900fi
3901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3902fi
3903echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3904echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3905if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
3910 else
3911 CFLAGS="-g"
3912 fi
3913else
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
3918 fi
3919fi
3920echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3921echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3922if test "${ac_cv_prog_cc_stdc+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925 ac_cv_prog_cc_stdc=no
3926ac_save_CC=$CC
3927cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h. */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h. */
3933#include <stdarg.h>
3934#include <stdio.h>
3935#include <sys/types.h>
3936#include <sys/stat.h>
3937/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3938struct buf { int x; };
3939FILE * (*rcsopen) (struct buf *, struct stat *, int);
3940static char *e (p, i)
3941 char **p;
3942 int i;
3943{
3944 return p[i];
3945}
3946static char *f (char * (*g) (char **, int), char **p, ...)
3947{
3948 char *s;
3949 va_list v;
3950 va_start (v,p);
3951 s = g (p, va_arg (v,int));
3952 va_end (v);
3953 return s;
3954}
3955
3956/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3957 function prototypes and stuff, but not '\xHH' hex character constants.
3958 These don't provoke an error unfortunately, instead are silently treated
3959 as 'x'. The following induces an error, until -std1 is added to get
3960 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3961 array size at least. It's necessary to write '\x00'==0 to get something
3962 that's true only with -std1. */
3963int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3964
3965int test (int i, double x);
3966struct s1 {int (*f) (int a);};
3967struct s2 {int (*f) (double a);};
3968int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969int argc;
3970char **argv;
3971int
3972main ()
3973{
3974return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 ;
3976 return 0;
3977}
3978_ACEOF
3979# Don't try gcc -ansi; that turns off useful extensions and
3980# breaks some systems' header files.
3981# AIX -qlanglvl=ansi
3982# Ultrix and OSF/1 -std1
3983# HP-UX 10.20 and later -Ae
3984# HP-UX older versions -Aa -D_HPUX_SOURCE
3985# SVR4 -Xc -D__EXTENSIONS__
3986for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987do
3988 CC="$ac_save_CC $ac_arg"
3989 rm -f conftest.$ac_objext
3990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
b8cb2a14 3998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_prog_cc_stdc=$ac_arg
4011break
4012else
4013 echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016fi
4017rm -f conftest.err conftest.$ac_objext
4018done
4019rm -f conftest.$ac_ext conftest.$ac_objext
4020CC=$ac_save_CC
4021
4022fi
4023
4024case "x$ac_cv_prog_cc_stdc" in
4025 x|xno)
4026 echo "$as_me:$LINENO: result: none needed" >&5
4027echo "${ECHO_T}none needed" >&6 ;;
4028 *)
4029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4030echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4031 CC="$CC $ac_cv_prog_cc_stdc" ;;
4032esac
4033
4034# Some people use a C++ compiler to compile C. Since we use `exit',
4035# in C++ we need to declare it. In case someone uses the same compiler
4036# for both compiling C and C++ we need to have the C++ compiler decide
4037# the declaration of exit, since it's the most demanding environment.
4038cat >conftest.$ac_ext <<_ACEOF
4039#ifndef __cplusplus
4040 choke me
4041#endif
4042_ACEOF
4043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
b8cb2a14 4052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 for ac_declaration in \
4065 '' \
4066 'extern "C" void std::exit (int) throw (); using std::exit;' \
4067 'extern "C" void std::exit (int); using std::exit;' \
4068 'extern "C" void exit (int) throw ();' \
4069 'extern "C" void exit (int);' \
4070 'void exit (int);'
4071do
4072 cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h. */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */
4078$ac_declaration
4079#include <stdlib.h>
4080int
4081main ()
4082{
4083exit (42);
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088rm -f conftest.$ac_objext
4089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
b8cb2a14 4097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 :
4110else
4111 echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114continue
4115fi
4116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */
4123$ac_declaration
4124int
4125main ()
4126{
4127exit (42);
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
b8cb2a14 4141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 break
4154else
4155 echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
4158fi
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160done
4161rm -f conftest*
4162if test -n "$ac_declaration"; then
4163 echo '#ifdef __cplusplus' >>confdefs.h
4164 echo $ac_declaration >>confdefs.h
4165 echo '#endif' >>confdefs.h
4166fi
4167
4168else
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172fi
4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174ac_ext=c
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
ec1a68c8 4180depcc="$CC" am_compiler_list=
4181
4182echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4183echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4184if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188 # We make a subdir and do the tests there. Otherwise we can end up
4189 # making bogus files that we don't know about and never remove. For
4190 # instance it was reported that on HP-UX the gcc test will end up
4191 # making a dummy file named `D' -- because `-MD' means `put the output
4192 # in D'.
4193 mkdir conftest.dir
4194 # Copy depcomp to subdir because otherwise we won't find it if we're
4195 # using a relative directory.
4196 cp "$am_depcomp" conftest.dir
4197 cd conftest.dir
4198 # We will build objects and dependencies in a subdirectory because
4199 # it helps to detect inapplicable dependency modes. For instance
4200 # both Tru64's cc and ICC support -MD to output dependencies as a
4201 # side effect of compilation, but ICC will put the dependencies in
4202 # the current directory while Tru64 will put them in the object
4203 # directory.
4204 mkdir sub
4205
4206 am_cv_CC_dependencies_compiler_type=none
4207 if test "$am_compiler_list" = ""; then
4208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4209 fi
4210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4214 #
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4222 # Solaris 8's {/usr,}/bin/sh.
4223 touch sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226
4227 case $depmode in
4228 nosideeffect)
4229 # after this tag, mechanisms are not by side-effect, so they'll
4230 # only be used when explicitly requested
4231 if test "x$enable_dependency_tracking" = xyes; then
4232 continue
4233 else
4234 break
4235 fi
4236 ;;
4237 none) break ;;
4238 esac
4239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4240 # mode. It turns out that the SunPro C++ compiler does not properly
4241 # handle `-M -o', and we need to detect this.
4242 if depmode=$depmode \
4243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4246 >/dev/null 2>conftest.err &&
4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4260 break
4261 fi
4262 fi
4263 done
4264
4265 cd ..
4266 rm -rf conftest.dir
4267else
4268 am_cv_CC_dependencies_compiler_type=none
4269fi
4270
4271fi
4272echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4273echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4274CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4275
4276
4277
4278if
4279 test "x$enable_dependency_tracking" != xno \
4280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4281 am__fastdepCC_TRUE=
4282 am__fastdepCC_FALSE='#'
4283else
4284 am__fastdepCC_TRUE='#'
4285 am__fastdepCC_FALSE=
4286fi
4287
4288
b3076f16 4289# Find a good install program. We prefer a C program (faster),
4290# so one script is as good as another. But avoid the broken or
4291# incompatible versions:
4292# SysV /etc/install, /usr/sbin/install
4293# SunOS /usr/etc/install
4294# IRIX /sbin/install
4295# AIX /bin/install
4296# AmigaOS /C/install, which installs bootblocks on floppy discs
4297# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4298# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4299# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4300# OS/2's system install, which has a completely different semantic
4301# ./install, which can be erroneously created by make from ./install.sh.
4302echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4303echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4304if test -z "$INSTALL"; then
4305if test "${ac_cv_path_install+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 # Account for people who put trailing slashes in PATH elements.
4314case $as_dir/ in
4315 ./ | .// | /cC/* | \
4316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4317 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4318 /usr/ucb/* ) ;;
4319 *)
4320 # OSF1 and SCO ODT 3.0 have their own names for install.
4321 # Don't use installbsd from OSF since it installs stuff as root
4322 # by default.
4323 for ac_prog in ginstall scoinst install; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4326 if test $ac_prog = install &&
4327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4328 # AIX install. It has an incompatible calling convention.
4329 :
4330 elif test $ac_prog = install &&
4331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4332 # program-specific install script used by HP pwplus--don't use.
4333 :
4334 else
4335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4336 break 3
4337 fi
4338 fi
4339 done
4340 done
4341 ;;
4342esac
4343done
4344
4345
4346fi
4347 if test "${ac_cv_path_install+set}" = set; then
4348 INSTALL=$ac_cv_path_install
4349 else
4350 # As a last resort, use the slow shell script. We don't cache a
4351 # path for INSTALL within a source directory, because that will
4352 # break other packages using the cache if that directory is
4353 # removed, or if the path is relative.
4354 INSTALL=$ac_install_sh
4355 fi
4356fi
4357echo "$as_me:$LINENO: result: $INSTALL" >&5
4358echo "${ECHO_T}$INSTALL" >&6
4359
4360# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4361# It thinks the first close brace ends the variable substitution.
4362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4363
4364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4365
4366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4367
2f61d1d7 4368# Check whether --enable-shared or --disable-shared was given.
4369if test "${enable_shared+set}" = set; then
4370 enableval="$enable_shared"
4371 p=${PACKAGE-default}
4372 case $enableval in
4373 yes) enable_shared=yes ;;
4374 no) enable_shared=no ;;
4375 *)
4376 enable_shared=no
4377 # Look at the argument we got. We use all the common list separators.
4378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4379 for pkg in $enableval; do
4380 IFS="$lt_save_ifs"
4381 if test "X$pkg" = "X$p"; then
4382 enable_shared=yes
4383 fi
4384 done
4385 IFS="$lt_save_ifs"
4386 ;;
4387 esac
b3076f16 4388else
2f61d1d7 4389 enable_shared=yes
4390fi;
4391
4392# Check whether --enable-static or --disable-static was given.
4393if test "${enable_static+set}" = set; then
4394 enableval="$enable_static"
4395 p=${PACKAGE-default}
4396 case $enableval in
4397 yes) enable_static=yes ;;
4398 no) enable_static=no ;;
4399 *)
4400 enable_static=no
4401 # Look at the argument we got. We use all the common list separators.
4402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4403 for pkg in $enableval; do
4404 IFS="$lt_save_ifs"
4405 if test "X$pkg" = "X$p"; then
4406 enable_static=yes
4407 fi
4408 done
4409 IFS="$lt_save_ifs"
4410 ;;
4411 esac
4412else
4413 enable_static=yes
4414fi;
4415
4416# Check whether --enable-fast-install or --disable-fast-install was given.
4417if test "${enable_fast_install+set}" = set; then
4418 enableval="$enable_fast_install"
4419 p=${PACKAGE-default}
4420 case $enableval in
4421 yes) enable_fast_install=yes ;;
4422 no) enable_fast_install=no ;;
4423 *)
4424 enable_fast_install=no
4425 # Look at the argument we got. We use all the common list separators.
4426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4427 for pkg in $enableval; do
4428 IFS="$lt_save_ifs"
4429 if test "X$pkg" = "X$p"; then
4430 enable_fast_install=yes
4431 fi
4432 done
4433 IFS="$lt_save_ifs"
4434 ;;
4435 esac
4436else
4437 enable_fast_install=yes
4438fi;
4439
4440echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4441echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4442if test "${lt_cv_path_SED+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445 # Loop through the user's path and test for sed and gsed.
4446# Then use that list of sed's as ones to test for truncation.
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for lt_ac_prog in sed gsed; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4455 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4456 fi
4457 done
4458 done
4459done
4460lt_ac_max=0
4461lt_ac_count=0
4462# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4463# along with /bin/sed that truncates output.
4464for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4465 test ! -f $lt_ac_sed && continue
4466 cat /dev/null > conftest.in
4467 lt_ac_count=0
4468 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4469 # Check for GNU sed and select it if it is found.
4470 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4471 lt_cv_path_SED=$lt_ac_sed
4472 break
4473 fi
4474 while true; do
4475 cat conftest.in conftest.in >conftest.tmp
4476 mv conftest.tmp conftest.in
4477 cp conftest.in conftest.nl
4478 echo >>conftest.nl
4479 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4480 cmp -s conftest.out conftest.nl || break
4481 # 10000 chars as input seems more than enough
4482 test $lt_ac_count -gt 10 && break
4483 lt_ac_count=`expr $lt_ac_count + 1`
4484 if test $lt_ac_count -gt $lt_ac_max; then
4485 lt_ac_max=$lt_ac_count
4486 lt_cv_path_SED=$lt_ac_sed
4487 fi
4488 done
4489done
4490
b3076f16 4491fi
4492
2f61d1d7 4493SED=$lt_cv_path_SED
4494echo "$as_me:$LINENO: result: $SED" >&5
4495echo "${ECHO_T}$SED" >&6
4496
4497echo "$as_me:$LINENO: checking for egrep" >&5
4498echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4499if test "${ac_cv_prog_egrep+set}" = set; then
b3076f16 4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
2f61d1d7 4502 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4503 then ac_cv_prog_egrep='grep -E'
4504 else ac_cv_prog_egrep='egrep'
4505 fi
4506fi
4507echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4508echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4509 EGREP=$ac_cv_prog_egrep
4510
4511
4512
4513# Check whether --with-gnu-ld or --without-gnu-ld was given.
4514if test "${with_gnu_ld+set}" = set; then
4515 withval="$with_gnu_ld"
4516 test "$withval" = no || with_gnu_ld=yes
b3076f16 4517else
2f61d1d7 4518 with_gnu_ld=no
4519fi;
4520ac_prog=ld
4521if test "$GCC" = yes; then
4522 # Check if gcc -print-prog-name=ld gives a path.
4523 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4524echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4525 case $host in
4526 *-*-mingw*)
4527 # gcc leaves a trailing carriage return which upsets mingw
4528 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4529 *)
4530 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4531 esac
4532 case $ac_prog in
4533 # Accept absolute paths.
4534 [\\/]* | ?:[\\/]*)
4535 re_direlt='/[^/][^/]*/\.\./'
4536 # Canonicalize the pathname of ld
4537 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4538 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4539 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4540 done
4541 test -z "$LD" && LD="$ac_prog"
4542 ;;
4543 "")
4544 # If it fails, then pretend we aren't using GCC.
4545 ac_prog=ld
4546 ;;
4547 *)
4548 # If it is relative, then search for the first ld in PATH.
4549 with_gnu_ld=unknown
4550 ;;
4551 esac
4552elif test "$with_gnu_ld" = yes; then
4553 echo "$as_me:$LINENO: checking for GNU ld" >&5
4554echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4555else
4556 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4557echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b3076f16 4558fi
2f61d1d7 4559if test "${lt_cv_path_LD+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 if test -z "$LD"; then
4563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4564 for ac_dir in $PATH; do
4565 IFS="$lt_save_ifs"
4566 test -z "$ac_dir" && ac_dir=.
4567 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4568 lt_cv_path_LD="$ac_dir/$ac_prog"
4569 # Check to see if the program is GNU ld. I'd rather use --version,
4570 # but apparently some variants of GNU ld only accept -v.
4571 # Break only if it was the GNU/non-GNU ld that we prefer.
4572 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4573 *GNU* | *'with BFD'*)
4574 test "$with_gnu_ld" != no && break
4575 ;;
4576 *)
4577 test "$with_gnu_ld" != yes && break
4578 ;;
4579 esac
4580 fi
4581 done
4582 IFS="$lt_save_ifs"
4583else
4584 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b3076f16 4585fi
2f61d1d7 4586fi
4587
4588LD="$lt_cv_path_LD"
4589if test -n "$LD"; then
4590 echo "$as_me:$LINENO: result: $LD" >&5
4591echo "${ECHO_T}$LD" >&6
b3076f16 4592else
4593 echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6
b3076f16 4595fi
2f61d1d7 4596test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4597echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4598 { (exit 1); exit 1; }; }
4599echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4600echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4601if test "${lt_cv_prog_gnu_ld+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4605case `$LD -v 2>&1 </dev/null` in
4606*GNU* | *'with BFD'*)
4607 lt_cv_prog_gnu_ld=yes
4608 ;;
4609*)
4610 lt_cv_prog_gnu_ld=no
4611 ;;
4612esac
4613fi
4614echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4615echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4616with_gnu_ld=$lt_cv_prog_gnu_ld
b3076f16 4617
2f61d1d7 4618
4619echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4620echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4621if test "${lt_cv_ld_reload_flag+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 lt_cv_ld_reload_flag='-r'
b3076f16 4625fi
2f61d1d7 4626echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4627echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4628reload_flag=$lt_cv_ld_reload_flag
4629case $reload_flag in
4630"" | " "*) ;;
4631*) reload_flag=" $reload_flag" ;;
4632esac
4633reload_cmds='$LD$reload_flag -o $output$reload_objs'
4634case $host_os in
4635 darwin*)
4636 if test "$GCC" = yes; then
4637 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4638 else
4639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4640 fi
4641 ;;
4642esac
4643
4644echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4645echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4646if test "${lt_cv_path_NM+set}" = set; then
b3076f16 4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
2f61d1d7 4649 if test -n "$NM"; then
4650 # Let the user override the test.
4651 lt_cv_path_NM="$NM"
4652else
4653 lt_nm_to_check="${ac_tool_prefix}nm"
4654 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4655 lt_nm_to_check="$lt_nm_to_check nm"
4656 fi
4657 for lt_tmp_nm in $lt_nm_to_check; do
4658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4659 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4660 IFS="$lt_save_ifs"
4661 test -z "$ac_dir" && ac_dir=.
4662 tmp_nm="$ac_dir/$lt_tmp_nm"
4663 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4664 # Check to see if the nm accepts a BSD-compat flag.
4665 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4666 # nm: unknown option "B" ignored
4667 # Tru64's nm complains that /dev/null is an invalid object file
4668 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4669 */dev/null* | *'Invalid file or object type'*)
4670 lt_cv_path_NM="$tmp_nm -B"
4671 break
4672 ;;
4673 *)
4674 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4675 */dev/null*)
4676 lt_cv_path_NM="$tmp_nm -p"
4677 break
4678 ;;
4679 *)
4680 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4681 continue # so that we can try to find one that supports BSD flags
4682 ;;
4683 esac
4684 ;;
4685 esac
4686 fi
4687 done
4688 IFS="$lt_save_ifs"
4689 done
4690 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4691fi
4692fi
4693echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4694echo "${ECHO_T}$lt_cv_path_NM" >&6
4695NM="$lt_cv_path_NM"
4696
4697echo "$as_me:$LINENO: checking whether ln -s works" >&5
4698echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4699LN_S=$as_ln_s
4700if test "$LN_S" = "ln -s"; then
4701 echo "$as_me:$LINENO: result: yes" >&5
4702echo "${ECHO_T}yes" >&6
4703else
4704 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4705echo "${ECHO_T}no, using $LN_S" >&6
4706fi
4707
4708echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4709echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4710if test "${lt_cv_deplibs_check_method+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 lt_cv_file_magic_cmd='$MAGIC_CMD'
4714lt_cv_file_magic_test_file=
4715lt_cv_deplibs_check_method='unknown'
4716# Need to set the preceding variable on all platforms that support
4717# interlibrary dependencies.
4718# 'none' -- dependencies not supported.
4719# `unknown' -- same as none, but documents that we really don't know.
4720# 'pass_all' -- all dependencies passed with no checks.
4721# 'test_compile' -- check by making test program.
4722# 'file_magic [[regex]]' -- check by looking for files in library path
4723# which responds to the $file_magic_cmd with a given extended regex.
4724# If you have `file' or equivalent on your system and you're not sure
4725# whether `pass_all' will *always* work, you probably want this one.
4726
4727case $host_os in
4728aix4* | aix5*)
4729 lt_cv_deplibs_check_method=pass_all
4730 ;;
4731
4732beos*)
4733 lt_cv_deplibs_check_method=pass_all
4734 ;;
4735
4736bsdi[45]*)
4737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4738 lt_cv_file_magic_cmd='/usr/bin/file -L'
4739 lt_cv_file_magic_test_file=/shlib/libc.so
4740 ;;
4741
4742cygwin*)
4743 # func_win32_libid is a shell function defined in ltmain.sh
4744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4745 lt_cv_file_magic_cmd='func_win32_libid'
4746 ;;
4747
4748mingw* | pw32*)
4749 # Base MSYS/MinGW do not provide the 'file' command needed by
4750 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4751 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4752 lt_cv_file_magic_cmd='$OBJDUMP -f'
4753 ;;
4754
4755darwin* | rhapsody*)
4756 lt_cv_deplibs_check_method=pass_all
4757 ;;
4758
4759freebsd* | kfreebsd*-gnu | dragonfly*)
4760 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4761 case $host_cpu in
4762 i*86 )
4763 # Not sure whether the presence of OpenBSD here was a mistake.
4764 # Let's accept both of them until this is cleared up.
4765 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4766 lt_cv_file_magic_cmd=/usr/bin/file
4767 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4768 ;;
4769 esac
4770 else
4771 lt_cv_deplibs_check_method=pass_all
4772 fi
4773 ;;
4774
4775gnu*)
4776 lt_cv_deplibs_check_method=pass_all
4777 ;;
4778
4779hpux10.20* | hpux11*)
4780 lt_cv_file_magic_cmd=/usr/bin/file
4781 case $host_cpu in
4782 ia64*)
4783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4785 ;;
4786 hppa*64*)
4787 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]'
4788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4789 ;;
4790 *)
4791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4793 ;;
4794 esac
4795 ;;
4796
4797interix3*)
4798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4800 ;;
4801
4802irix5* | irix6* | nonstopux*)
4803 case $LD in
4804 *-32|*"-32 ") libmagic=32-bit;;
4805 *-n32|*"-n32 ") libmagic=N32;;
4806 *-64|*"-64 ") libmagic=64-bit;;
4807 *) libmagic=never-match;;
4808 esac
4809 lt_cv_deplibs_check_method=pass_all
4810 ;;
4811
4812# This must be Linux ELF.
4813linux*)
4814 lt_cv_deplibs_check_method=pass_all
4815 ;;
4816
4817netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4818 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4820 else
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4822 fi
4823 ;;
4824
4825newos6*)
4826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4827 lt_cv_file_magic_cmd=/usr/bin/file
4828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4829 ;;
4830
4831nto-qnx*)
4832 lt_cv_deplibs_check_method=unknown
4833 ;;
4834
4835openbsd*)
4836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4838 else
4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4840 fi
4841 ;;
4842
4843osf3* | osf4* | osf5*)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846
4847solaris*)
4848 lt_cv_deplibs_check_method=pass_all
4849 ;;
4850
4851sysv4 | sysv4.3*)
4852 case $host_vendor in
4853 motorola)
4854 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]'
4855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4856 ;;
4857 ncr)
4858 lt_cv_deplibs_check_method=pass_all
4859 ;;
4860 sequent)
4861 lt_cv_file_magic_cmd='/bin/file'
4862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4863 ;;
4864 sni)
4865 lt_cv_file_magic_cmd='/bin/file'
4866 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4867 lt_cv_file_magic_test_file=/lib/libc.so
4868 ;;
4869 siemens)
4870 lt_cv_deplibs_check_method=pass_all
4871 ;;
4872 pc)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875 esac
4876 ;;
4877
4878sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4879 lt_cv_deplibs_check_method=pass_all
4880 ;;
4881esac
4882
4883fi
4884echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4885echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4886file_magic_cmd=$lt_cv_file_magic_cmd
4887deplibs_check_method=$lt_cv_deplibs_check_method
4888test -z "$deplibs_check_method" && deplibs_check_method=unknown
4889
4890
4891
4892
4893# If no C compiler was specified, use CC.
4894LTCC=${LTCC-"$CC"}
4895
4896# If no C compiler flags were specified, use CFLAGS.
4897LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4898
4899# Allow CC to be a program name with arguments.
4900compiler=$CC
4901
4902# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4903if test "${enable_libtool_lock+set}" = set; then
4904 enableval="$enable_libtool_lock"
4905
4906fi;
4907test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4908
4909# Some flags need to be propagated to the compiler or linker for good
4910# libtool support.
4911case $host in
4912ia64-*-hpux*)
4913 # Find out which ABI we are using.
4914 echo 'int i;' > conftest.$ac_ext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; then
4920 case `/usr/bin/file conftest.$ac_objext` in
4921 *ELF-32*)
4922 HPUX_IA64_MODE="32"
4923 ;;
4924 *ELF-64*)
4925 HPUX_IA64_MODE="64"
4926 ;;
4927 esac
4928 fi
4929 rm -rf conftest*
4930 ;;
4931*-*-irix6*)
4932 # Find out which ABI we are using.
4933 echo '#line 4933 "configure"' > conftest.$ac_ext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; then
4939 if test "$lt_cv_prog_gnu_ld" = yes; then
4940 case `/usr/bin/file conftest.$ac_objext` in
4941 *32-bit*)
4942 LD="${LD-ld} -melf32bsmip"
4943 ;;
4944 *N32*)
4945 LD="${LD-ld} -melf32bmipn32"
4946 ;;
4947 *64-bit*)
4948 LD="${LD-ld} -melf64bmip"
4949 ;;
4950 esac
4951 else
4952 case `/usr/bin/file conftest.$ac_objext` in
4953 *32-bit*)
4954 LD="${LD-ld} -32"
4955 ;;
4956 *N32*)
4957 LD="${LD-ld} -n32"
4958 ;;
4959 *64-bit*)
4960 LD="${LD-ld} -64"
4961 ;;
4962 esac
4963 fi
4964 fi
4965 rm -rf conftest*
4966 ;;
4967
4968x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4969 # Find out which ABI we are using.
4970 echo 'int i;' > conftest.$ac_ext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; then
4976 case `/usr/bin/file conftest.o` in
4977 *32-bit*)
4978 case $host in
4979 x86_64-*linux*)
4980 LD="${LD-ld} -m elf_i386"
4981 ;;
4982 ppc64-*linux*|powerpc64-*linux*)
4983 LD="${LD-ld} -m elf32ppclinux"
4984 ;;
4985 s390x-*linux*)
4986 LD="${LD-ld} -m elf_s390"
4987 ;;
4988 sparc64-*linux*)
4989 LD="${LD-ld} -m elf32_sparc"
4990 ;;
4991 esac
4992 ;;
4993 *64-bit*)
4994 case $host in
4995 x86_64-*linux*)
4996 LD="${LD-ld} -m elf_x86_64"
4997 ;;
4998 ppc*-*linux*|powerpc*-*linux*)
4999 LD="${LD-ld} -m elf64ppc"
5000 ;;
5001 s390*-*linux*)
5002 LD="${LD-ld} -m elf64_s390"
5003 ;;
5004 sparc*-*linux*)
5005 LD="${LD-ld} -m elf64_sparc"
5006 ;;
5007 esac
5008 ;;
5009 esac
5010 fi
5011 rm -rf conftest*
5012 ;;
5013
5014*-*-sco3.2v5*)
5015 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5016 SAVE_CFLAGS="$CFLAGS"
5017 CFLAGS="$CFLAGS -belf"
5018 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5019echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5020if test "${lt_cv_cc_needs_belf+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023 ac_ext=c
5024ac_cpp='$CPP $CPPFLAGS'
5025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028
5029 cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035
5036int
5037main ()
5038{
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
5044rm -f conftest.$ac_objext conftest$ac_exeext
5045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5046 (eval $ac_link) 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
5053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 (eval $ac_try) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest$ac_exeext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 lt_cv_cc_needs_belf=yes
5066else
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070lt_cv_cc_needs_belf=no
5071fi
5072rm -f conftest.err conftest.$ac_objext \
5073 conftest$ac_exeext conftest.$ac_ext
5074 ac_ext=c
5075ac_cpp='$CPP $CPPFLAGS'
5076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079
5080fi
5081echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5082echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5083 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5084 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5085 CFLAGS="$SAVE_CFLAGS"
5086 fi
5087 ;;
5088sparc*-*solaris*)
5089 # Find out which ABI we are using.
5090 echo 'int i;' > conftest.$ac_ext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; then
5096 case `/usr/bin/file conftest.o` in
5097 *64-bit*)
5098 case $lt_cv_prog_gnu_ld in
5099 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5100 *) LD="${LD-ld} -64" ;;
5101 esac
5102 ;;
5103 esac
5104 fi
5105 rm -rf conftest*
5106 ;;
5107
5108
5109esac
5110
5111need_locks="$enable_libtool_lock"
5112
5113
5114ac_ext=c
5115ac_cpp='$CPP $CPPFLAGS'
5116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5120echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5121# On Suns, sometimes $CPP names a directory.
5122if test -n "$CPP" && test -d "$CPP"; then
5123 CPP=
5124fi
5125if test -z "$CPP"; then
5126 if test "${ac_cv_prog_CPP+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129 # Double quotes because CPP needs to be expanded
5130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5131 do
5132 ac_preproc_ok=false
5133for ac_c_preproc_warn_flag in '' yes
5134do
5135 # Use a header file that comes with gcc, so configuring glibc
b3076f16 5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h. */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h. */
5147#ifdef __STDC__
5148# include <limits.h>
5149#else
5150# include <assert.h>
5151#endif
5152 Syntax error
5153_ACEOF
5154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } >/dev/null; then
5162 if test -s conftest.err; then
5163 ac_cpp_err=$ac_c_preproc_warn_flag
5164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5165 else
5166 ac_cpp_err=
5167 fi
5168else
5169 ac_cpp_err=yes
5170fi
5171if test -z "$ac_cpp_err"; then
5172 :
5173else
5174 echo "$as_me: failed program was:" >&5
5175sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 # Broken: fails on valid input.
5178continue
5179fi
5180rm -f conftest.err conftest.$ac_ext
5181
5182 # OK, works on sane cases. Now check whether non-existent headers
5183 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF
5185/* confdefs.h. */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h. */
5190#include <ac_nonexistent.h>
5191_ACEOF
5192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } >/dev/null; then
5200 if test -s conftest.err; then
5201 ac_cpp_err=$ac_c_preproc_warn_flag
5202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203 else
5204 ac_cpp_err=
5205 fi
5206else
5207 ac_cpp_err=yes
5208fi
5209if test -z "$ac_cpp_err"; then
5210 # Broken: success on invalid input.
5211continue
5212else
5213 echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 # Passes both tests.
5217ac_preproc_ok=:
5218break
5219fi
5220rm -f conftest.err conftest.$ac_ext
5221
5222done
5223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224rm -f conftest.err conftest.$ac_ext
5225if $ac_preproc_ok; then
5226 break
5227fi
5228
5229 done
5230 ac_cv_prog_CPP=$CPP
5231
5232fi
5233 CPP=$ac_cv_prog_CPP
5234else
5235 ac_cv_prog_CPP=$CPP
5236fi
5237echo "$as_me:$LINENO: result: $CPP" >&5
5238echo "${ECHO_T}$CPP" >&6
5239ac_preproc_ok=false
5240for ac_c_preproc_warn_flag in '' yes
5241do
5242 # Use a header file that comes with gcc, so configuring glibc
5243 # with a fresh cross-compiler works.
5244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5245 # <limits.h> exists even on freestanding compilers.
5246 # On the NeXT, cc -E runs the code through the compiler's parser,
5247 # not just through cpp. "Syntax error" is here to catch this case.
5248 cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254#ifdef __STDC__
5255# include <limits.h>
5256#else
5257# include <assert.h>
5258#endif
5259 Syntax error
5260_ACEOF
5261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } >/dev/null; then
5269 if test -s conftest.err; then
5270 ac_cpp_err=$ac_c_preproc_warn_flag
5271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5272 else
5273 ac_cpp_err=
5274 fi
5275else
5276 ac_cpp_err=yes
5277fi
5278if test -z "$ac_cpp_err"; then
5279 :
5280else
5281 echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 # Broken: fails on valid input.
5285continue
5286fi
5287rm -f conftest.err conftest.$ac_ext
5288
5289 # OK, works on sane cases. Now check whether non-existent headers
5290 # can be detected and how.
5291 cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297#include <ac_nonexistent.h>
5298_ACEOF
5299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_c_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5310 else
5311 ac_cpp_err=
5312 fi
5313else
5314 ac_cpp_err=yes
5315fi
5316if test -z "$ac_cpp_err"; then
5317 # Broken: success on invalid input.
5318continue
5319else
5320 echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 # Passes both tests.
5324ac_preproc_ok=:
5325break
5326fi
5327rm -f conftest.err conftest.$ac_ext
5328
5329done
5330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5331rm -f conftest.err conftest.$ac_ext
5332if $ac_preproc_ok; then
5333 :
5334else
5335 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5336See \`config.log' for more details." >&5
5337echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5338See \`config.log' for more details." >&2;}
5339 { (exit 1); exit 1; }; }
5340fi
5341
2f61d1d7 5342ac_ext=c
5343ac_cpp='$CPP $CPPFLAGS'
5344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347
5348
5349echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5350echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5351if test "${ac_cv_header_stdc+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354 cat >conftest.$ac_ext <<_ACEOF
5355/* confdefs.h. */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h. */
5360#include <stdlib.h>
5361#include <stdarg.h>
5362#include <string.h>
5363#include <float.h>
5364
5365int
5366main ()
5367{
5368
5369 ;
5370 return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_cv_header_stdc=yes
5395else
5396 echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399ac_cv_header_stdc=no
5400fi
5401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402
5403if test $ac_cv_header_stdc = yes; then
5404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5405 cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h. */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h. */
5411#include <string.h>
5412
5413_ACEOF
5414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5415 $EGREP "memchr" >/dev/null 2>&1; then
5416 :
5417else
5418 ac_cv_header_stdc=no
5419fi
5420rm -f conftest*
5421
5422fi
5423
5424if test $ac_cv_header_stdc = yes; then
5425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5426 cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432#include <stdlib.h>
5433
5434_ACEOF
5435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5436 $EGREP "free" >/dev/null 2>&1; then
5437 :
5438else
5439 ac_cv_header_stdc=no
5440fi
5441rm -f conftest*
5442
5443fi
5444
5445if test $ac_cv_header_stdc = yes; then
5446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5447 if test "$cross_compiling" = yes; then
5448 :
5449else
5450 cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h. */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h. */
5456#include <ctype.h>
5457#if ((' ' & 0x0FF) == 0x020)
5458# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5459# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5460#else
5461# define ISLOWER(c) \
5462 (('a' <= (c) && (c) <= 'i') \
5463 || ('j' <= (c) && (c) <= 'r') \
5464 || ('s' <= (c) && (c) <= 'z'))
5465# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5466#endif
5467
5468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5469int
5470main ()
5471{
5472 int i;
5473 for (i = 0; i < 256; i++)
5474 if (XOR (islower (i), ISLOWER (i))
5475 || toupper (i) != TOUPPER (i))
5476 exit(2);
5477 exit (0);
5478}
5479_ACEOF
5480rm -f conftest$ac_exeext
5481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 :
5492else
5493 echo "$as_me: program exited with status $ac_status" >&5
5494echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497( exit $ac_status )
5498ac_cv_header_stdc=no
5499fi
5500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5501fi
5502fi
5503fi
5504echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5505echo "${ECHO_T}$ac_cv_header_stdc" >&6
5506if test $ac_cv_header_stdc = yes; then
5507
5508cat >>confdefs.h <<\_ACEOF
5509#define STDC_HEADERS 1
5510_ACEOF
5511
5512fi
5513
5514# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5525 inttypes.h stdint.h unistd.h
5526do
5527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528echo "$as_me:$LINENO: checking for $ac_header" >&5
5529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5530if eval "test \"\${$as_ac_Header+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533 cat >conftest.$ac_ext <<_ACEOF
5534/* confdefs.h. */
5535_ACEOF
5536cat confdefs.h >>conftest.$ac_ext
5537cat >>conftest.$ac_ext <<_ACEOF
5538/* end confdefs.h. */
5539$ac_includes_default
5540
5541#include <$ac_header>
5542_ACEOF
5543rm -f conftest.$ac_objext
5544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545 (eval $ac_compile) 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 (eval $ac_try) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 eval "$as_ac_Header=yes"
5565else
5566 echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569eval "$as_ac_Header=no"
5570fi
5571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5572fi
5573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5575if test `eval echo '${'$as_ac_Header'}'` = yes; then
5576 cat >>confdefs.h <<_ACEOF
5577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5578_ACEOF
5579
5580fi
5581
5582done
5583
5584
5585
5586for ac_header in dlfcn.h
5587do
5588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5589if eval "test \"\${$as_ac_Header+set}\" = set"; then
5590 echo "$as_me:$LINENO: checking for $ac_header" >&5
5591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5592if eval "test \"\${$as_ac_Header+set}\" = set"; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594fi
5595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5597else
5598 # Is the header compilable?
5599echo "$as_me:$LINENO: checking $ac_header usability" >&5
5600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5601cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607$ac_includes_default
5608#include <$ac_header>
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try='test -s conftest.$ac_objext'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 ac_header_compiler=yes
5632else
5633 echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636ac_header_compiler=no
5637fi
5638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640echo "${ECHO_T}$ac_header_compiler" >&6
5641
5642# Is the header present?
5643echo "$as_me:$LINENO: checking $ac_header presence" >&5
5644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5645cat >conftest.$ac_ext <<_ACEOF
5646/* confdefs.h. */
5647_ACEOF
5648cat confdefs.h >>conftest.$ac_ext
5649cat >>conftest.$ac_ext <<_ACEOF
5650/* end confdefs.h. */
5651#include <$ac_header>
5652_ACEOF
5653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } >/dev/null; then
5661 if test -s conftest.err; then
5662 ac_cpp_err=$ac_c_preproc_warn_flag
5663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5664 else
5665 ac_cpp_err=
5666 fi
5667else
5668 ac_cpp_err=yes
5669fi
5670if test -z "$ac_cpp_err"; then
5671 ac_header_preproc=yes
5672else
5673 echo "$as_me: failed program was:" >&5
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_header_preproc=no
5677fi
5678rm -f conftest.err conftest.$ac_ext
5679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5680echo "${ECHO_T}$ac_header_preproc" >&6
5681
5682# So? What about this header?
5683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5684 yes:no: )
5685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5689 ac_header_preproc=yes
5690 ;;
5691 no:yes:* )
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5704 (
5705 cat <<\_ASBOX
5706## --------------------------------------------------- ##
5707## Report this to x2serv-general@lists.sourceforge.net ##
5708## --------------------------------------------------- ##
5709_ASBOX
5710 ) |
5711 sed "s/^/$as_me: WARNING: /" >&2
5712 ;;
5713esac
5714echo "$as_me:$LINENO: checking for $ac_header" >&5
5715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5716if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719 eval "$as_ac_Header=\$ac_header_preproc"
5720fi
5721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5723
5724fi
5725if test `eval echo '${'$as_ac_Header'}'` = yes; then
5726 cat >>confdefs.h <<_ACEOF
5727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5728_ACEOF
5729
5730fi
5731
5732done
5733
5734ac_ext=cc
5735ac_cpp='$CXXCPP $CPPFLAGS'
5736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5739if test -n "$ac_tool_prefix"; then
5740 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5741 do
5742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5744echo "$as_me:$LINENO: checking for $ac_word" >&5
5745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746if test "${ac_cv_prog_CXX+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 if test -n "$CXX"; then
5750 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764done
5765
5766fi
5767fi
5768CXX=$ac_cv_prog_CXX
5769if test -n "$CXX"; then
5770 echo "$as_me:$LINENO: result: $CXX" >&5
5771echo "${ECHO_T}$CXX" >&6
5772else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775fi
5776
5777 test -n "$CXX" && break
5778 done
5779fi
5780if test -z "$CXX"; then
5781 ac_ct_CXX=$CXX
5782 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5783do
5784 # Extract the first word of "$ac_prog", so it can be a program name with args.
5785set dummy $ac_prog; ac_word=$2
5786echo "$as_me:$LINENO: checking for $ac_word" >&5
5787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 if test -n "$ac_ct_CXX"; then
5792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_CXX="$ac_prog"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806done
5807
5808fi
5809fi
5810ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5811if test -n "$ac_ct_CXX"; then
5812 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5813echo "${ECHO_T}$ac_ct_CXX" >&6
5814else
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817fi
5818
5819 test -n "$ac_ct_CXX" && break
5820done
5821test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5822
5823 CXX=$ac_ct_CXX
5824fi
5825
5826
5827# Provide some information about the compiler.
5828echo "$as_me:$LINENO:" \
5829 "checking for C++ compiler version" >&5
5830ac_compiler=`set X $ac_compile; echo $2`
5831{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5832 (eval $ac_compiler --version </dev/null >&5) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }
5836{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5837 (eval $ac_compiler -v </dev/null >&5) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }
5841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5842 (eval $ac_compiler -V </dev/null >&5) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }
5846
5847echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5848echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5849if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852 cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h. */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h. */
5858
5859int
5860main ()
5861{
5862#ifndef __GNUC__
5863 choke me
5864#endif
5865
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870rm -f conftest.$ac_objext
5871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_compiler_gnu=yes
5892else
5893 echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896ac_compiler_gnu=no
5897fi
5898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5900
5901fi
5902echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5903echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5904GXX=`test $ac_compiler_gnu = yes && echo yes`
5905ac_test_CXXFLAGS=${CXXFLAGS+set}
5906ac_save_CXXFLAGS=$CXXFLAGS
5907CXXFLAGS="-g"
5908echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5909echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5910if test "${ac_cv_prog_cxx_g+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h. */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h. */
5919
5920int
5921main ()
5922{
5923
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext
5929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_prog_cxx_g=yes
5950else
5951 echo "$as_me: failed program was:" >&5
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
5954ac_cv_prog_cxx_g=no
5955fi
5956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957fi
5958echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5959echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5960if test "$ac_test_CXXFLAGS" = set; then
5961 CXXFLAGS=$ac_save_CXXFLAGS
5962elif test $ac_cv_prog_cxx_g = yes; then
5963 if test "$GXX" = yes; then
5964 CXXFLAGS="-g -O2"
5965 else
5966 CXXFLAGS="-g"
5967 fi
5968else
5969 if test "$GXX" = yes; then
5970 CXXFLAGS="-O2"
5971 else
5972 CXXFLAGS=
5973 fi
5974fi
5975for ac_declaration in \
5976 '' \
5977 'extern "C" void std::exit (int) throw (); using std::exit;' \
5978 'extern "C" void std::exit (int); using std::exit;' \
5979 'extern "C" void exit (int) throw ();' \
5980 'extern "C" void exit (int);' \
5981 'void exit (int);'
5982do
5983 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989$ac_declaration
5990#include <stdlib.h>
5991int
5992main ()
5993{
5994exit (42);
5995 ;
5996 return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext
6000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 :
6021else
6022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025continue
6026fi
6027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034$ac_declaration
6035int
6036main ()
6037{
6038exit (42);
6039 ;
6040 return 0;
6041}
6042_ACEOF
6043rm -f conftest.$ac_objext
6044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045 (eval $ac_compile) 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest.$ac_objext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 break
6065else
6066 echo "$as_me: failed program was:" >&5
6067sed 's/^/| /' conftest.$ac_ext >&5
6068
6069fi
6070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071done
6072rm -f conftest*
6073if test -n "$ac_declaration"; then
6074 echo '#ifdef __cplusplus' >>confdefs.h
6075 echo $ac_declaration >>confdefs.h
6076 echo '#endif' >>confdefs.h
6077fi
6078
6079ac_ext=cc
6080ac_cpp='$CXXCPP $CPPFLAGS'
6081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6084
6085depcc="$CXX" am_compiler_list=
6086
6087echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6088echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6089if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6093 # We make a subdir and do the tests there. Otherwise we can end up
6094 # making bogus files that we don't know about and never remove. For
6095 # instance it was reported that on HP-UX the gcc test will end up
6096 # making a dummy file named `D' -- because `-MD' means `put the output
6097 # in D'.
6098 mkdir conftest.dir
6099 # Copy depcomp to subdir because otherwise we won't find it if we're
6100 # using a relative directory.
6101 cp "$am_depcomp" conftest.dir
6102 cd conftest.dir
6103 # We will build objects and dependencies in a subdirectory because
6104 # it helps to detect inapplicable dependency modes. For instance
6105 # both Tru64's cc and ICC support -MD to output dependencies as a
6106 # side effect of compilation, but ICC will put the dependencies in
6107 # the current directory while Tru64 will put them in the object
6108 # directory.
6109 mkdir sub
6110
6111 am_cv_CXX_dependencies_compiler_type=none
6112 if test "$am_compiler_list" = ""; then
6113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6114 fi
6115 for depmode in $am_compiler_list; do
6116 # Setup a source with many dependencies, because some compilers
6117 # like to wrap large dependency lists on column 80 (with \), and
6118 # we should not choose a depcomp mode which is confused by this.
6119 #
6120 # We need to recreate these files for each test, as the compiler may
6121 # overwrite some of them when testing with obscure command lines.
6122 # This happens at least with the AIX C compiler.
6123 : > sub/conftest.c
6124 for i in 1 2 3 4 5 6; do
6125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6126 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6127 # Solaris 8's {/usr,}/bin/sh.
6128 touch sub/conftst$i.h
6129 done
6130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6131
6132 case $depmode in
6133 nosideeffect)
6134 # after this tag, mechanisms are not by side-effect, so they'll
6135 # only be used when explicitly requested
6136 if test "x$enable_dependency_tracking" = xyes; then
6137 continue
6138 else
6139 break
6140 fi
6141 ;;
6142 none) break ;;
6143 esac
6144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6145 # mode. It turns out that the SunPro C++ compiler does not properly
6146 # handle `-M -o', and we need to detect this.
6147 if depmode=$depmode \
6148 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6149 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6150 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6151 >/dev/null 2>conftest.err &&
6152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6153 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6155 # icc doesn't choke on unknown options, it will just issue warnings
6156 # or remarks (even with -Werror). So we grep stderr for any message
6157 # that says an option was ignored or not supported.
6158 # When given -MP, icc 7.0 and 7.1 complain thusly:
6159 # icc: Command line warning: ignoring option '-M'; no argument required
6160 # The diagnosis changed in icc 8.0:
6161 # icc: Command line remark: option '-MP' not supported
6162 if (grep 'ignoring option' conftest.err ||
6163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6164 am_cv_CXX_dependencies_compiler_type=$depmode
6165 break
6166 fi
6167 fi
6168 done
6169
6170 cd ..
6171 rm -rf conftest.dir
6172else
6173 am_cv_CXX_dependencies_compiler_type=none
6174fi
6175
6176fi
6177echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6178echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6179CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6180
6181
6182
6183if
6184 test "x$enable_dependency_tracking" != xno \
6185 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6186 am__fastdepCXX_TRUE=
6187 am__fastdepCXX_FALSE='#'
6188else
6189 am__fastdepCXX_TRUE='#'
6190 am__fastdepCXX_FALSE=
6191fi
6192
6193
6194
6195
6196if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6197 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6198 (test "X$CXX" != "Xg++"))) ; then
6199 ac_ext=cc
6200ac_cpp='$CXXCPP $CPPFLAGS'
6201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6205echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6206if test -z "$CXXCPP"; then
6207 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 # Double quotes because CXXCPP needs to be expanded
6211 for CXXCPP in "$CXX -E" "/lib/cpp"
6212 do
6213 ac_preproc_ok=false
6214for ac_cxx_preproc_warn_flag in '' yes
6215do
6216 # Use a header file that comes with gcc, so configuring glibc
6217 # with a fresh cross-compiler works.
6218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219 # <limits.h> exists even on freestanding compilers.
6220 # On the NeXT, cc -E runs the code through the compiler's parser,
6221 # not just through cpp. "Syntax error" is here to catch this case.
6222 cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228#ifdef __STDC__
6229# include <limits.h>
6230#else
6231# include <assert.h>
6232#endif
6233 Syntax error
6234_ACEOF
6235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } >/dev/null; then
6243 if test -s conftest.err; then
6244 ac_cpp_err=$ac_cxx_preproc_warn_flag
6245 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6246 else
6247 ac_cpp_err=
6248 fi
6249else
6250 ac_cpp_err=yes
6251fi
6252if test -z "$ac_cpp_err"; then
6253 :
6254else
6255 echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 # Broken: fails on valid input.
6259continue
6260fi
6261rm -f conftest.err conftest.$ac_ext
6262
6263 # OK, works on sane cases. Now check whether non-existent headers
6264 # can be detected and how.
6265 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271#include <ac_nonexistent.h>
6272_ACEOF
6273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } >/dev/null; then
6281 if test -s conftest.err; then
6282 ac_cpp_err=$ac_cxx_preproc_warn_flag
6283 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6284 else
6285 ac_cpp_err=
6286 fi
6287else
6288 ac_cpp_err=yes
6289fi
6290if test -z "$ac_cpp_err"; then
6291 # Broken: success on invalid input.
6292continue
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297 # Passes both tests.
6298ac_preproc_ok=:
6299break
6300fi
6301rm -f conftest.err conftest.$ac_ext
6302
6303done
6304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6305rm -f conftest.err conftest.$ac_ext
6306if $ac_preproc_ok; then
6307 break
6308fi
6309
6310 done
6311 ac_cv_prog_CXXCPP=$CXXCPP
6312
6313fi
6314 CXXCPP=$ac_cv_prog_CXXCPP
6315else
6316 ac_cv_prog_CXXCPP=$CXXCPP
6317fi
6318echo "$as_me:$LINENO: result: $CXXCPP" >&5
6319echo "${ECHO_T}$CXXCPP" >&6
6320ac_preproc_ok=false
6321for ac_cxx_preproc_warn_flag in '' yes
6322do
6323 # Use a header file that comes with gcc, so configuring glibc
6324 # with a fresh cross-compiler works.
6325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6326 # <limits.h> exists even on freestanding compilers.
6327 # On the NeXT, cc -E runs the code through the compiler's parser,
6328 # not just through cpp. "Syntax error" is here to catch this case.
6329 cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
6335#ifdef __STDC__
6336# include <limits.h>
6337#else
6338# include <assert.h>
6339#endif
6340 Syntax error
6341_ACEOF
6342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null; then
6350 if test -s conftest.err; then
6351 ac_cpp_err=$ac_cxx_preproc_warn_flag
6352 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6353 else
6354 ac_cpp_err=
6355 fi
6356else
6357 ac_cpp_err=yes
6358fi
6359if test -z "$ac_cpp_err"; then
6360 :
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 # Broken: fails on valid input.
6366continue
6367fi
6368rm -f conftest.err conftest.$ac_ext
6369
6370 # OK, works on sane cases. Now check whether non-existent headers
6371 # can be detected and how.
6372 cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378#include <ac_nonexistent.h>
6379_ACEOF
6380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } >/dev/null; then
6388 if test -s conftest.err; then
6389 ac_cpp_err=$ac_cxx_preproc_warn_flag
6390 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6391 else
6392 ac_cpp_err=
6393 fi
6394else
6395 ac_cpp_err=yes
6396fi
6397if test -z "$ac_cpp_err"; then
6398 # Broken: success on invalid input.
6399continue
6400else
6401 echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 # Passes both tests.
6405ac_preproc_ok=:
6406break
6407fi
6408rm -f conftest.err conftest.$ac_ext
6409
6410done
6411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412rm -f conftest.err conftest.$ac_ext
6413if $ac_preproc_ok; then
6414 :
6415else
6416 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6417See \`config.log' for more details." >&5
6418echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6419See \`config.log' for more details." >&2;}
6420 { (exit 1); exit 1; }; }
6421fi
6422
6423ac_ext=cc
6424ac_cpp='$CXXCPP $CPPFLAGS'
6425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6428
6429fi
6430
6431
6432ac_ext=f
6433ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6434ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6436if test -n "$ac_tool_prefix"; then
6437 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6438 do
6439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6441echo "$as_me:$LINENO: checking for $ac_word" >&5
6442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443if test "${ac_cv_prog_F77+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
6446 if test -n "$F77"; then
6447 ac_cv_prog_F77="$F77" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460done
6461done
6462
6463fi
6464fi
6465F77=$ac_cv_prog_F77
6466if test -n "$F77"; then
6467 echo "$as_me:$LINENO: result: $F77" >&5
6468echo "${ECHO_T}$F77" >&6
6469else
6470 echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
6472fi
6473
6474 test -n "$F77" && break
6475 done
6476fi
6477if test -z "$F77"; then
6478 ac_ct_F77=$F77
6479 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6480do
6481 # Extract the first word of "$ac_prog", so it can be a program name with args.
6482set dummy $ac_prog; ac_word=$2
6483echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6485if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488 if test -n "$ac_ct_F77"; then
6489 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6490else
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_ac_ct_F77="$ac_prog"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502done
6503done
6504
6505fi
6506fi
6507ac_ct_F77=$ac_cv_prog_ac_ct_F77
6508if test -n "$ac_ct_F77"; then
6509 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6510echo "${ECHO_T}$ac_ct_F77" >&6
6511else
6512 echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6
6514fi
6515
6516 test -n "$ac_ct_F77" && break
6517done
6518
6519 F77=$ac_ct_F77
6520fi
6521
6522
6523# Provide some information about the compiler.
6524echo "$as_me:6524:" \
6525 "checking for Fortran 77 compiler version" >&5
6526ac_compiler=`set X $ac_compile; echo $2`
6527{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6528 (eval $ac_compiler --version </dev/null >&5) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }
6532{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6533 (eval $ac_compiler -v </dev/null >&5) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }
6537{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6538 (eval $ac_compiler -V </dev/null >&5) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }
6542rm -f a.out
6543
6544# If we don't use `.F' as extension, the preprocessor is not run on the
6545# input file. (Note that this only needs to work for GNU compilers.)
6546ac_save_ext=$ac_ext
6547ac_ext=F
6548echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6549echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6550if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553 cat >conftest.$ac_ext <<_ACEOF
6554 program main
6555#ifndef __GNUC__
6556 choke me
6557#endif
6558
6559 end
6560_ACEOF
6561rm -f conftest.$ac_objext
6562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6563 (eval $ac_compile) 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 ac_compiler_gnu=yes
6583else
6584 echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587ac_compiler_gnu=no
6588fi
6589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6590ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6591
6592fi
6593echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6594echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6595ac_ext=$ac_save_ext
6596ac_test_FFLAGS=${FFLAGS+set}
6597ac_save_FFLAGS=$FFLAGS
6598FFLAGS=
6599echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6600echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6601if test "${ac_cv_prog_f77_g+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604 FFLAGS=-g
6605cat >conftest.$ac_ext <<_ACEOF
6606 program main
6607
6608 end
6609_ACEOF
6610rm -f conftest.$ac_objext
6611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; } &&
6625 { ac_try='test -s conftest.$ac_objext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_cv_prog_f77_g=yes
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636ac_cv_prog_f77_g=no
6637fi
6638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639
6640fi
6641echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6642echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6643if test "$ac_test_FFLAGS" = set; then
6644 FFLAGS=$ac_save_FFLAGS
6645elif test $ac_cv_prog_f77_g = yes; then
6646 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6647 FFLAGS="-g -O2"
6648 else
6649 FFLAGS="-g"
6650 fi
6651else
6652 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6653 FFLAGS="-O2"
6654 else
6655 FFLAGS=
6656 fi
6657fi
6658
6659G77=`test $ac_compiler_gnu = yes && echo yes`
6660ac_ext=c
6661ac_cpp='$CPP $CPPFLAGS'
6662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665
6666
6667
6668# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6669
6670# find the maximum length of command line arguments
6671echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6672echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6673if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676 i=0
6677 teststring="ABCD"
6678
6679 case $build_os in
6680 msdosdjgpp*)
6681 # On DJGPP, this test can blow up pretty badly due to problems in libc
6682 # (any single argument exceeding 2000 bytes causes a buffer overrun
6683 # during glob expansion). Even if it were fixed, the result of this
6684 # check would be larger than it should be.
6685 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6686 ;;
6687
6688 gnu*)
6689 # Under GNU Hurd, this test is not required because there is
6690 # no limit to the length of command line arguments.
6691 # Libtool will interpret -1 as no limit whatsoever
6692 lt_cv_sys_max_cmd_len=-1;
6693 ;;
6694
6695 cygwin* | mingw*)
6696 # On Win9x/ME, this test blows up -- it succeeds, but takes
6697 # about 5 minutes as the teststring grows exponentially.
6698 # Worse, since 9x/ME are not pre-emptively multitasking,
6699 # you end up with a "frozen" computer, even though with patience
6700 # the test eventually succeeds (with a max line length of 256k).
6701 # Instead, let's just punt: use the minimum linelength reported by
6702 # all of the supported platforms: 8192 (on NT/2K/XP).
6703 lt_cv_sys_max_cmd_len=8192;
6704 ;;
6705
6706 amigaos*)
6707 # On AmigaOS with pdksh, this test takes hours, literally.
6708 # So we just punt and use a minimum line length of 8192.
6709 lt_cv_sys_max_cmd_len=8192;
6710 ;;
6711
6712 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6713 # This has been around since 386BSD, at least. Likely further.
6714 if test -x /sbin/sysctl; then
6715 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6716 elif test -x /usr/sbin/sysctl; then
6717 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6718 else
6719 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6720 fi
6721 # And add a safety zone
6722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6724 ;;
6725
6726 interix*)
6727 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6728 lt_cv_sys_max_cmd_len=196608
6729 ;;
6730
6731 osf*)
6732 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6733 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6734 # nice to cause kernel panics so lets avoid the loop below.
6735 # First set a reasonable default.
6736 lt_cv_sys_max_cmd_len=16384
6737 #
6738 if test -x /sbin/sysconfig; then
6739 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6740 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6741 esac
6742 fi
6743 ;;
6744 sco3.2v5*)
6745 lt_cv_sys_max_cmd_len=102400
6746 ;;
6747 sysv5* | sco5v6* | sysv4.2uw2*)
6748 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6749 if test -n "$kargmax"; then
6750 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6751 else
6752 lt_cv_sys_max_cmd_len=32768
6753 fi
6754 ;;
6755 *)
6756 # If test is not a shell built-in, we'll probably end up computing a
6757 # maximum length that is only half of the actual maximum length, but
6758 # we can't tell.
6759 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6760 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6761 = "XX$teststring") >/dev/null 2>&1 &&
6762 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6763 lt_cv_sys_max_cmd_len=$new_result &&
6764 test $i != 17 # 1/2 MB should be enough
6765 do
6766 i=`expr $i + 1`
6767 teststring=$teststring$teststring
6768 done
6769 teststring=
6770 # Add a significant safety factor because C++ compilers can tack on massive
6771 # amounts of additional arguments before passing them to the linker.
6772 # It appears as though 1/2 is a usable value.
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6774 ;;
6775 esac
6776
6777fi
6778
6779if test -n $lt_cv_sys_max_cmd_len ; then
6780 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6781echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6782else
6783 echo "$as_me:$LINENO: result: none" >&5
6784echo "${ECHO_T}none" >&6
6785fi
6786
6787
6788
6789
6790# Check for command to grab the raw symbol name followed by C symbol from nm.
6791echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6792echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6793if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796
6797# These are sane defaults that work on at least a few old systems.
6798# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6799
6800# Character class describing NM global symbol codes.
6801symcode='[BCDEGRST]'
6802
6803# Regexp to match symbols that can be accessed directly from C.
6804sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6805
6806# Transform an extracted symbol line into a proper C declaration
6807lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6808
6809# Transform an extracted symbol line into symbol name and symbol address
6810lt_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'"
6811
6812# Define system-specific variables.
6813case $host_os in
6814aix*)
6815 symcode='[BCDT]'
6816 ;;
6817cygwin* | mingw* | pw32*)
6818 symcode='[ABCDGISTW]'
6819 ;;
6820hpux*) # Its linker distinguishes data from code symbols
6821 if test "$host_cpu" = ia64; then
6822 symcode='[ABCDEGRST]'
6823 fi
6824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6825 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'"
6826 ;;
6827linux*)
6828 if test "$host_cpu" = ia64; then
6829 symcode='[ABCDGIRSTW]'
6830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6831 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'"
6832 fi
6833 ;;
6834irix* | nonstopux*)
6835 symcode='[BCDEGRST]'
6836 ;;
6837osf*)
6838 symcode='[BCDEGQRST]'
6839 ;;
6840solaris*)
6841 symcode='[BDRT]'
6842 ;;
6843sco3.2v5*)
6844 symcode='[DT]'
6845 ;;
6846sysv4.2uw2*)
6847 symcode='[DT]'
6848 ;;
6849sysv5* | sco5v6* | unixware* | OpenUNIX*)
6850 symcode='[ABDT]'
6851 ;;
6852sysv4)
6853 symcode='[DFNSTU]'
6854 ;;
6855esac
6856
6857# Handle CRLF in mingw tool chain
6858opt_cr=
6859case $build_os in
6860mingw*)
6861 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6862 ;;
6863esac
6864
6865# If we're using GNU nm, then use its standard symbol codes.
6866case `$NM -V 2>&1` in
6867*GNU* | *'with BFD'*)
6868 symcode='[ABCDGIRSTW]' ;;
6869esac
6870
6871# Try without a prefix undercore, then with it.
6872for ac_symprfx in "" "_"; do
6873
6874 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6875 symxfrm="\\1 $ac_symprfx\\2 \\2"
6876
6877 # Write the raw and C identifiers.
6878 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6879
6880 # Check to see that the pipe works correctly.
6881 pipe_works=no
6882
6883 rm -f conftest*
6884 cat > conftest.$ac_ext <<EOF
6885#ifdef __cplusplus
6886extern "C" {
6887#endif
6888char nm_test_var;
6889void nm_test_func(){}
6890#ifdef __cplusplus
6891}
6892#endif
6893int main(){nm_test_var='a';nm_test_func();return(0);}
6894EOF
6895
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; then
6901 # Now try to grab the symbols.
6902 nlist=conftest.nm
6903 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6904 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && test -s "$nlist"; then
6908 # Try sorting and uniquifying the output.
6909 if sort "$nlist" | uniq > "$nlist"T; then
6910 mv -f "$nlist"T "$nlist"
6911 else
6912 rm -f "$nlist"T
6913 fi
6914
6915 # Make sure that we snagged all the symbols we need.
6916 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6917 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6918 cat <<EOF > conftest.$ac_ext
6919#ifdef __cplusplus
6920extern "C" {
6921#endif
6922
6923EOF
6924 # Now generate the symbol file.
6925 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6926
6927 cat <<EOF >> conftest.$ac_ext
6928#if defined (__STDC__) && __STDC__
6929# define lt_ptr_t void *
6930#else
6931# define lt_ptr_t char *
6932# define const
6933#endif
6934
6935/* The mapping between symbol names and symbols. */
6936const struct {
6937 const char *name;
6938 lt_ptr_t address;
6939}
6940lt_preloaded_symbols[] =
6941{
6942EOF
6943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6944 cat <<\EOF >> conftest.$ac_ext
6945 {0, (lt_ptr_t) 0}
6946};
6947
6948#ifdef __cplusplus
6949}
6950#endif
6951EOF
6952 # Now try linking the two files.
6953 mv conftest.$ac_objext conftstm.$ac_objext
6954 lt_save_LIBS="$LIBS"
6955 lt_save_CFLAGS="$CFLAGS"
6956 LIBS="conftstm.$ac_objext"
6957 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6963 pipe_works=yes
6964 fi
6965 LIBS="$lt_save_LIBS"
6966 CFLAGS="$lt_save_CFLAGS"
6967 else
6968 echo "cannot find nm_test_func in $nlist" >&5
6969 fi
6970 else
6971 echo "cannot find nm_test_var in $nlist" >&5
6972 fi
6973 else
6974 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6975 fi
6976 else
6977 echo "$progname: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 fi
6980 rm -f conftest* conftst*
6981
6982 # Do not use the global_symbol_pipe unless it works.
6983 if test "$pipe_works" = yes; then
6984 break
6985 else
6986 lt_cv_sys_global_symbol_pipe=
6987 fi
6988done
6989
6990fi
6991
6992if test -z "$lt_cv_sys_global_symbol_pipe"; then
6993 lt_cv_sys_global_symbol_to_cdecl=
6994fi
6995if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6996 echo "$as_me:$LINENO: result: failed" >&5
6997echo "${ECHO_T}failed" >&6
6998else
6999 echo "$as_me:$LINENO: result: ok" >&5
7000echo "${ECHO_T}ok" >&6
7001fi
7002
7003echo "$as_me:$LINENO: checking for objdir" >&5
7004echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7005if test "${lt_cv_objdir+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 rm -f .libs 2>/dev/null
7009mkdir .libs 2>/dev/null
7010if test -d .libs; then
7011 lt_cv_objdir=.libs
7012else
7013 # MS-DOS does not allow filenames that begin with a dot.
7014 lt_cv_objdir=_libs
7015fi
7016rmdir .libs 2>/dev/null
7017fi
7018echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7019echo "${ECHO_T}$lt_cv_objdir" >&6
7020objdir=$lt_cv_objdir
7021
7022
7023
7024
7025
7026case $host_os in
7027aix3*)
7028 # AIX sometimes has problems with the GCC collect2 program. For some
7029 # reason, if we set the COLLECT_NAMES environment variable, the problems
7030 # vanish in a puff of smoke.
7031 if test "X${COLLECT_NAMES+set}" != Xset; then
7032 COLLECT_NAMES=
7033 export COLLECT_NAMES
7034 fi
7035 ;;
7036esac
7037
7038# Sed substitution that helps us do robust quoting. It backslashifies
7039# metacharacters that are still active within double-quoted strings.
7040Xsed='sed -e 1s/^X//'
7041sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7042
7043# Same as above, but do not quote variable references.
7044double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7045
7046# Sed substitution to delay expansion of an escaped shell variable in a
7047# double_quote_subst'ed string.
7048delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7049
7050# Sed substitution to avoid accidental globbing in evaled expressions
7051no_glob_subst='s/\*/\\\*/g'
7052
7053# Constants:
7054rm="rm -f"
7055
7056# Global variables:
7057default_ofile=libtool
7058can_build_shared=yes
7059
7060# All known linkers require a `.a' archive for static linking (except MSVC,
7061# which needs '.lib').
7062libext=a
7063ltmain="$ac_aux_dir/ltmain.sh"
7064ofile="$default_ofile"
7065with_gnu_ld="$lt_cv_prog_gnu_ld"
7066
7067if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}ar; ac_word=$2
7070echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7072if test "${ac_cv_prog_AR+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074else
7075 if test -n "$AR"; then
7076 ac_cv_prog_AR="$AR" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_AR="${ac_tool_prefix}ar"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090done
7091
7092fi
7093fi
7094AR=$ac_cv_prog_AR
7095if test -n "$AR"; then
7096 echo "$as_me:$LINENO: result: $AR" >&5
7097echo "${ECHO_T}$AR" >&6
7098else
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101fi
7102
7103fi
7104if test -z "$ac_cv_prog_AR"; then
7105 ac_ct_AR=$AR
7106 # Extract the first word of "ar", so it can be a program name with args.
7107set dummy ar; ac_word=$2
7108echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 if test -n "$ac_ct_AR"; then
7114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_ac_ct_AR="ar"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128done
7129
7130 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7131fi
7132fi
7133ac_ct_AR=$ac_cv_prog_ac_ct_AR
7134if test -n "$ac_ct_AR"; then
7135 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7136echo "${ECHO_T}$ac_ct_AR" >&6
7137else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140fi
7141
7142 AR=$ac_ct_AR
7143else
7144 AR="$ac_cv_prog_AR"
7145fi
7146
7147if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7150echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152if test "${ac_cv_prog_RANLIB+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 if test -n "$RANLIB"; then
7156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171
7172fi
7173fi
7174RANLIB=$ac_cv_prog_RANLIB
7175if test -n "$RANLIB"; then
7176 echo "$as_me:$LINENO: result: $RANLIB" >&5
7177echo "${ECHO_T}$RANLIB" >&6
7178else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181fi
7182
7183fi
7184if test -z "$ac_cv_prog_RANLIB"; then
7185 ac_ct_RANLIB=$RANLIB
7186 # Extract the first word of "ranlib", so it can be a program name with args.
7187set dummy ranlib; ac_word=$2
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 if test -n "$ac_ct_RANLIB"; then
7194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_ac_ct_RANLIB="ranlib"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209
7210 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7211fi
7212fi
7213ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7214if test -n "$ac_ct_RANLIB"; then
7215 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7216echo "${ECHO_T}$ac_ct_RANLIB" >&6
7217else
7218 echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6
7220fi
7221
7222 RANLIB=$ac_ct_RANLIB
7223else
7224 RANLIB="$ac_cv_prog_RANLIB"
7225fi
7226
7227if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7229set dummy ${ac_tool_prefix}strip; ac_word=$2
7230echo "$as_me:$LINENO: checking for $ac_word" >&5
7231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7232if test "${ac_cv_prog_STRIP+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 if test -n "$STRIP"; then
7236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7237else
7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250done
7251
7252fi
7253fi
7254STRIP=$ac_cv_prog_STRIP
7255if test -n "$STRIP"; then
7256 echo "$as_me:$LINENO: result: $STRIP" >&5
7257echo "${ECHO_T}$STRIP" >&6
7258else
7259 echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6
7261fi
7262
7263fi
7264if test -z "$ac_cv_prog_STRIP"; then
7265 ac_ct_STRIP=$STRIP
7266 # Extract the first word of "strip", so it can be a program name with args.
7267set dummy strip; ac_word=$2
7268echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 if test -n "$ac_ct_STRIP"; then
7274 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_ac_ct_STRIP="strip"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287done
7288done
7289
7290 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7291fi
7292fi
7293ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7294if test -n "$ac_ct_STRIP"; then
7295 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7296echo "${ECHO_T}$ac_ct_STRIP" >&6
7297else
7298 echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
7300fi
7301
7302 STRIP=$ac_ct_STRIP
7303else
7304 STRIP="$ac_cv_prog_STRIP"
7305fi
7306
7307
7308old_CC="$CC"
7309old_CFLAGS="$CFLAGS"
7310
7311# Set sane defaults for various variables
7312test -z "$AR" && AR=ar
7313test -z "$AR_FLAGS" && AR_FLAGS=cru
7314test -z "$AS" && AS=as
7315test -z "$CC" && CC=cc
7316test -z "$LTCC" && LTCC=$CC
7317test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7318test -z "$DLLTOOL" && DLLTOOL=dlltool
7319test -z "$LD" && LD=ld
7320test -z "$LN_S" && LN_S="ln -s"
7321test -z "$MAGIC_CMD" && MAGIC_CMD=file
7322test -z "$NM" && NM=nm
7323test -z "$SED" && SED=sed
7324test -z "$OBJDUMP" && OBJDUMP=objdump
7325test -z "$RANLIB" && RANLIB=:
7326test -z "$STRIP" && STRIP=:
7327test -z "$ac_objext" && ac_objext=o
7328
7329# Determine commands to create old-style static archives.
7330old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7331old_postinstall_cmds='chmod 644 $oldlib'
7332old_postuninstall_cmds=
7333
7334if test -n "$RANLIB"; then
7335 case $host_os in
7336 openbsd*)
7337 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7338 ;;
7339 *)
7340 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7341 ;;
7342 esac
7343 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7344fi
7345
7346for cc_temp in $compiler""; do
7347 case $cc_temp in
7348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7350 \-*) ;;
7351 *) break;;
7352 esac
7353done
7354cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7355
7356
7357# Only perform the check for file, if the check method requires it
7358case $deplibs_check_method in
7359file_magic*)
7360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7361 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7362echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7363if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366 case $MAGIC_CMD in
7367[\\/*] | ?:[\\/]*)
7368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7369 ;;
7370*)
7371 lt_save_MAGIC_CMD="$MAGIC_CMD"
7372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7374 for ac_dir in $ac_dummy; do
7375 IFS="$lt_save_ifs"
7376 test -z "$ac_dir" && ac_dir=.
7377 if test -f $ac_dir/${ac_tool_prefix}file; then
7378 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7379 if test -n "$file_magic_test_file"; then
7380 case $deplibs_check_method in
7381 "file_magic "*)
7382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7385 $EGREP "$file_magic_regex" > /dev/null; then
7386 :
7387 else
7388 cat <<EOF 1>&2
7389
7390*** Warning: the command libtool uses to detect shared libraries,
7391*** $file_magic_cmd, produces output that libtool cannot recognize.
7392*** The result is that libtool may fail to recognize shared libraries
7393*** as such. This will affect the creation of libtool libraries that
7394*** depend on shared libraries, but programs linked with such libtool
7395*** libraries will work regardless of this problem. Nevertheless, you
7396*** may want to report the problem to your system manager and/or to
7397*** bug-libtool@gnu.org
7398
7399EOF
7400 fi ;;
7401 esac
7402 fi
7403 break
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 MAGIC_CMD="$lt_save_MAGIC_CMD"
7408 ;;
7409esac
7410fi
7411
7412MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413if test -n "$MAGIC_CMD"; then
7414 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7415echo "${ECHO_T}$MAGIC_CMD" >&6
7416else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419fi
7420
7421if test -z "$lt_cv_path_MAGIC_CMD"; then
7422 if test -n "$ac_tool_prefix"; then
7423 echo "$as_me:$LINENO: checking for file" >&5
7424echo $ECHO_N "checking for file... $ECHO_C" >&6
7425if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 case $MAGIC_CMD in
7429[\\/*] | ?:[\\/]*)
7430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7431 ;;
7432*)
7433 lt_save_MAGIC_CMD="$MAGIC_CMD"
7434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7435 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7436 for ac_dir in $ac_dummy; do
7437 IFS="$lt_save_ifs"
7438 test -z "$ac_dir" && ac_dir=.
7439 if test -f $ac_dir/file; then
7440 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7441 if test -n "$file_magic_test_file"; then
7442 case $deplibs_check_method in
7443 "file_magic "*)
7444 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7447 $EGREP "$file_magic_regex" > /dev/null; then
7448 :
7449 else
7450 cat <<EOF 1>&2
7451
7452*** Warning: the command libtool uses to detect shared libraries,
7453*** $file_magic_cmd, produces output that libtool cannot recognize.
7454*** The result is that libtool may fail to recognize shared libraries
7455*** as such. This will affect the creation of libtool libraries that
7456*** depend on shared libraries, but programs linked with such libtool
7457*** libraries will work regardless of this problem. Nevertheless, you
7458*** may want to report the problem to your system manager and/or to
7459*** bug-libtool@gnu.org
7460
7461EOF
7462 fi ;;
7463 esac
7464 fi
7465 break
7466 fi
7467 done
7468 IFS="$lt_save_ifs"
7469 MAGIC_CMD="$lt_save_MAGIC_CMD"
7470 ;;
7471esac
7472fi
7473
7474MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7475if test -n "$MAGIC_CMD"; then
7476 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7477echo "${ECHO_T}$MAGIC_CMD" >&6
7478else
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481fi
7482
7483 else
7484 MAGIC_CMD=:
7485 fi
7486fi
7487
7488 fi
7489 ;;
7490esac
7491
7492enable_dlopen=no
7493enable_win32_dll=no
7494
7495# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7496if test "${enable_libtool_lock+set}" = set; then
7497 enableval="$enable_libtool_lock"
7498
7499fi;
7500test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7501
7502
7503# Check whether --with-pic or --without-pic was given.
7504if test "${with_pic+set}" = set; then
7505 withval="$with_pic"
7506 pic_mode="$withval"
7507else
7508 pic_mode=default
7509fi;
7510test -z "$pic_mode" && pic_mode=default
7511
7512# Use C for the default configuration in the libtool script
7513tagname=
7514lt_save_CC="$CC"
7515ac_ext=c
7516ac_cpp='$CPP $CPPFLAGS'
7517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521
7522# Source file extension for C test sources.
7523ac_ext=c
7524
7525# Object file extension for compiled C test sources.
7526objext=o
7527objext=$objext
7528
7529# Code to be used in simple compile tests
7530lt_simple_compile_test_code="int some_variable = 0;\n"
7531
7532# Code to be used in simple link tests
7533lt_simple_link_test_code='int main(){return(0);}\n'
7534
7535
7536# If no C compiler was specified, use CC.
7537LTCC=${LTCC-"$CC"}
7538
7539# If no C compiler flags were specified, use CFLAGS.
7540LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7541
7542# Allow CC to be a program name with arguments.
7543compiler=$CC
7544
7545
7546# save warnings/boilerplate of simple test code
7547ac_outfile=conftest.$ac_objext
7548printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7549eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7550_lt_compiler_boilerplate=`cat conftest.err`
7551$rm conftest*
7552
7553ac_outfile=conftest.$ac_objext
7554printf "$lt_simple_link_test_code" >conftest.$ac_ext
7555eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7556_lt_linker_boilerplate=`cat conftest.err`
7557$rm conftest*
7558
7559
7560
7561lt_prog_compiler_no_builtin_flag=
7562
7563if test "$GCC" = yes; then
7564 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7565
7566
7567echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7568echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7569if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 lt_cv_prog_compiler_rtti_exceptions=no
7573 ac_outfile=conftest.$ac_objext
7574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7575 lt_compiler_flag="-fno-rtti -fno-exceptions"
7576 # Insert the option either (1) after the last *FLAGS variable, or
7577 # (2) before a word containing "conftest.", or (3) at the end.
7578 # Note that $ac_compile itself does not contain backslashes and begins
7579 # with a dollar sign (not a hyphen), so the echo should work correctly.
7580 # The option is referenced via a variable to avoid confusing sed.
7581 lt_compile=`echo "$ac_compile" | $SED \
7582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7584 -e 's:$: $lt_compiler_flag:'`
7585 (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
7586 (eval "$lt_compile" 2>conftest.err)
7587 ac_status=$?
7588 cat conftest.err >&5
7589 echo "$as_me:7589: \$? = $ac_status" >&5
7590 if (exit $ac_status) && test -s "$ac_outfile"; then
7591 # The compiler can only warn and ignore the option if not recognized
7592 # So say no if there are warnings other than the usual output.
7593 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7596 lt_cv_prog_compiler_rtti_exceptions=yes
7597 fi
7598 fi
7599 $rm conftest*
7600
7601fi
7602echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7603echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7604
7605if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7606 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7607else
7608 :
7609fi
7610
7611fi
7612
7613lt_prog_compiler_wl=
7614lt_prog_compiler_pic=
7615lt_prog_compiler_static=
7616
7617echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7618echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7619
7620 if test "$GCC" = yes; then
7621 lt_prog_compiler_wl='-Wl,'
7622 lt_prog_compiler_static='-static'
7623
7624 case $host_os in
7625 aix*)
7626 # All AIX code is PIC.
7627 if test "$host_cpu" = ia64; then
7628 # AIX 5 now supports IA64 processor
7629 lt_prog_compiler_static='-Bstatic'
7630 fi
7631 ;;
7632
7633 amigaos*)
7634 # FIXME: we need at least 68020 code to build shared libraries, but
7635 # adding the `-m68020' flag to GCC prevents building anything better,
7636 # like `-m68040'.
7637 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7638 ;;
7639
7640 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7641 # PIC is the default for these OSes.
7642 ;;
7643
7644 mingw* | pw32* | os2*)
7645 # This hack is so that the source file can tell whether it is being
7646 # built for inclusion in a dll (and should export symbols for example).
7647 lt_prog_compiler_pic='-DDLL_EXPORT'
7648 ;;
7649
7650 darwin* | rhapsody*)
7651 # PIC is the default on this platform
7652 # Common symbols not allowed in MH_DYLIB files
7653 lt_prog_compiler_pic='-fno-common'
7654 ;;
7655
7656 interix3*)
7657 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7658 # Instead, we relocate shared libraries at runtime.
7659 ;;
7660
7661 msdosdjgpp*)
7662 # Just because we use GCC doesn't mean we suddenly get shared libraries
7663 # on systems that don't support them.
7664 lt_prog_compiler_can_build_shared=no
7665 enable_shared=no
7666 ;;
7667
7668 sysv4*MP*)
7669 if test -d /usr/nec; then
7670 lt_prog_compiler_pic=-Kconform_pic
7671 fi
7672 ;;
7673
7674 hpux*)
7675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7676 # not for PA HP-UX.
7677 case $host_cpu in
7678 hppa*64*|ia64*)
7679 # +Z the default
7680 ;;
7681 *)
7682 lt_prog_compiler_pic='-fPIC'
7683 ;;
7684 esac
7685 ;;
7686
7687 *)
7688 lt_prog_compiler_pic='-fPIC'
7689 ;;
7690 esac
7691 else
7692 # PORTME Check for flag to pass linker flags through the system compiler.
7693 case $host_os in
7694 aix*)
7695 lt_prog_compiler_wl='-Wl,'
7696 if test "$host_cpu" = ia64; then
7697 # AIX 5 now supports IA64 processor
7698 lt_prog_compiler_static='-Bstatic'
7699 else
7700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701 fi
7702 ;;
7703 darwin*)
7704 # PIC is the default on this platform
7705 # Common symbols not allowed in MH_DYLIB files
7706 case $cc_basename in
7707 xlc*)
7708 lt_prog_compiler_pic='-qnocommon'
7709 lt_prog_compiler_wl='-Wl,'
7710 ;;
7711 esac
7712 ;;
7713
7714 mingw* | pw32* | os2*)
7715 # This hack is so that the source file can tell whether it is being
7716 # built for inclusion in a dll (and should export symbols for example).
7717 lt_prog_compiler_pic='-DDLL_EXPORT'
7718 ;;
7719
7720 hpux9* | hpux10* | hpux11*)
7721 lt_prog_compiler_wl='-Wl,'
7722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7723 # not for PA HP-UX.
7724 case $host_cpu in
7725 hppa*64*|ia64*)
7726 # +Z the default
7727 ;;
7728 *)
7729 lt_prog_compiler_pic='+Z'
7730 ;;
7731 esac
7732 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7733 lt_prog_compiler_static='${wl}-a ${wl}archive'
7734 ;;
7735
7736 irix5* | irix6* | nonstopux*)
7737 lt_prog_compiler_wl='-Wl,'
7738 # PIC (with -KPIC) is the default.
7739 lt_prog_compiler_static='-non_shared'
7740 ;;
7741
7742 newsos6)
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7745 ;;
7746
7747 linux*)
7748 case $cc_basename in
7749 icc* | ecc*)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-KPIC'
7752 lt_prog_compiler_static='-static'
7753 ;;
7754 pgcc* | pgf77* | pgf90* | pgf95*)
7755 # Portland Group compilers (*not* the Pentium gcc compiler,
7756 # which looks to be a dead project)
7757 lt_prog_compiler_wl='-Wl,'
7758 lt_prog_compiler_pic='-fpic'
7759 lt_prog_compiler_static='-Bstatic'
7760 ;;
7761 ccc*)
7762 lt_prog_compiler_wl='-Wl,'
7763 # All Alpha code is PIC.
7764 lt_prog_compiler_static='-non_shared'
7765 ;;
7766 esac
7767 ;;
7768
7769 osf3* | osf4* | osf5*)
7770 lt_prog_compiler_wl='-Wl,'
7771 # All OSF/1 code is PIC.
7772 lt_prog_compiler_static='-non_shared'
7773 ;;
7774
7775 solaris*)
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 case $cc_basename in
7779 f77* | f90* | f95*)
7780 lt_prog_compiler_wl='-Qoption ld ';;
7781 *)
7782 lt_prog_compiler_wl='-Wl,';;
7783 esac
7784 ;;
7785
7786 sunos4*)
7787 lt_prog_compiler_wl='-Qoption ld '
7788 lt_prog_compiler_pic='-PIC'
7789 lt_prog_compiler_static='-Bstatic'
7790 ;;
7791
7792 sysv4 | sysv4.2uw2* | sysv4.3*)
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_pic='-KPIC'
7795 lt_prog_compiler_static='-Bstatic'
7796 ;;
7797
7798 sysv4*MP*)
7799 if test -d /usr/nec ;then
7800 lt_prog_compiler_pic='-Kconform_pic'
7801 lt_prog_compiler_static='-Bstatic'
7802 fi
7803 ;;
7804
7805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 ;;
7810
7811 unicos*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_can_build_shared=no
7814 ;;
7815
7816 uts4*)
7817 lt_prog_compiler_pic='-pic'
7818 lt_prog_compiler_static='-Bstatic'
7819 ;;
7820
7821 *)
7822 lt_prog_compiler_can_build_shared=no
7823 ;;
7824 esac
7825 fi
7826
7827echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7828echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7829
7830#
7831# Check to make sure the PIC flag actually works.
7832#
7833if test -n "$lt_prog_compiler_pic"; then
7834
7835echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7836echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7837if test "${lt_prog_compiler_pic_works+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840 lt_prog_compiler_pic_works=no
7841 ac_outfile=conftest.$ac_objext
7842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 # The option is referenced via a variable to avoid confusing sed.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
7854 (eval "$lt_compile" 2>conftest.err)
7855 ac_status=$?
7856 cat conftest.err >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 if (exit $ac_status) && test -s "$ac_outfile"; then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings other than the usual output.
7861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_prog_compiler_pic_works=yes
7865 fi
7866 fi
7867 $rm conftest*
7868
7869fi
7870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7871echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7872
7873if test x"$lt_prog_compiler_pic_works" = xyes; then
7874 case $lt_prog_compiler_pic in
7875 "" | " "*) ;;
7876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7877 esac
7878else
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_can_build_shared=no
7881fi
7882
7883fi
7884case $host_os in
7885 # For platforms which do not support PIC, -DPIC is meaningless:
7886 *djgpp*)
7887 lt_prog_compiler_pic=
7888 ;;
7889 *)
7890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7891 ;;
7892esac
7893
7894#
7895# Check to make sure the static flag actually works.
7896#
7897wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7898echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7899echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7900if test "${lt_prog_compiler_static_works+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903 lt_prog_compiler_static_works=no
7904 save_LDFLAGS="$LDFLAGS"
7905 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7906 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7908 # The linker can only warn and ignore the option if not recognized
7909 # So say no if there are warnings
7910 if test -s conftest.err; then
7911 # Append any errors to the config.log.
7912 cat conftest.err 1>&5
7913 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915 if diff conftest.exp conftest.er2 >/dev/null; then
7916 lt_prog_compiler_static_works=yes
7917 fi
7918 else
7919 lt_prog_compiler_static_works=yes
7920 fi
7921 fi
7922 $rm conftest*
7923 LDFLAGS="$save_LDFLAGS"
7924
7925fi
7926echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7927echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7928
7929if test x"$lt_prog_compiler_static_works" = xyes; then
7930 :
7931else
7932 lt_prog_compiler_static=
7933fi
7934
7935
7936echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7937echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7938if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941 lt_cv_prog_compiler_c_o=no
7942 $rm -r conftest 2>/dev/null
7943 mkdir conftest
7944 cd conftest
7945 mkdir out
7946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7947
7948 lt_compiler_flag="-o out/conftest2.$ac_objext"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>out/conftest.err)
7959 ac_status=$?
7960 cat out/conftest.err >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7963 then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings
7966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7969 lt_cv_prog_compiler_c_o=yes
7970 fi
7971 fi
7972 chmod u+w . 2>&5
7973 $rm conftest*
7974 # SGI C++ compiler will create directory out/ii_files/ for
7975 # template instantiation
7976 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7977 $rm out/* && rmdir out
7978 cd ..
7979 rmdir conftest
7980 $rm conftest*
7981
7982fi
7983echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7984echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7985
7986
7987hard_links="nottested"
7988if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7989 # do not overwrite the value of need_locks provided by the user
7990 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7991echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7992 hard_links=yes
7993 $rm conftest*
7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7995 touch conftest.a
7996 ln conftest.a conftest.b 2>&5 || hard_links=no
7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998 echo "$as_me:$LINENO: result: $hard_links" >&5
7999echo "${ECHO_T}$hard_links" >&6
8000 if test "$hard_links" = no; then
8001 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8002echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8003 need_locks=warn
8004 fi
8005else
8006 need_locks=no
8007fi
8008
8009echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8010echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8011
8012 runpath_var=
8013 allow_undefined_flag=
8014 enable_shared_with_static_runtimes=no
8015 archive_cmds=
8016 archive_expsym_cmds=
8017 old_archive_From_new_cmds=
8018 old_archive_from_expsyms_cmds=
8019 export_dynamic_flag_spec=
8020 whole_archive_flag_spec=
8021 thread_safe_flag_spec=
8022 hardcode_libdir_flag_spec=
8023 hardcode_libdir_flag_spec_ld=
8024 hardcode_libdir_separator=
8025 hardcode_direct=no
8026 hardcode_minus_L=no
8027 hardcode_shlibpath_var=unsupported
8028 link_all_deplibs=unknown
8029 hardcode_automatic=no
8030 module_cmds=
8031 module_expsym_cmds=
8032 always_export_symbols=no
8033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8034 # include_expsyms should be a list of space-separated symbols to be *always*
8035 # included in the symbol list
8036 include_expsyms=
8037 # exclude_expsyms can be an extended regexp of symbols to exclude
8038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8040 # as well as any symbol that contains `d'.
8041 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8043 # platforms (ab)use it in PIC code, but their linkers get confused if
8044 # the symbol is explicitly referenced. Since portable code cannot
8045 # rely on this symbol name, it's probably fine to never include it in
8046 # preloaded symbol tables.
8047 extract_expsyms_cmds=
8048 # Just being paranoid about ensuring that cc_basename is set.
8049 for cc_temp in $compiler""; do
8050 case $cc_temp in
8051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8053 \-*) ;;
8054 *) break;;
8055 esac
8056done
8057cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8058
8059 case $host_os in
8060 cygwin* | mingw* | pw32*)
8061 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8062 # When not using gcc, we currently assume that we are using
8063 # Microsoft Visual C++.
8064 if test "$GCC" != yes; then
8065 with_gnu_ld=no
8066 fi
8067 ;;
8068 interix*)
8069 # we just hope/assume this is gcc and not c89 (= MSVC++)
8070 with_gnu_ld=yes
8071 ;;
8072 openbsd*)
8073 with_gnu_ld=no
8074 ;;
8075 esac
8076
8077 ld_shlibs=yes
8078 if test "$with_gnu_ld" = yes; then
8079 # If archive_cmds runs LD, not CC, wlarc should be empty
8080 wlarc='${wl}'
8081
8082 # Set some defaults for GNU ld with shared library support. These
8083 # are reset later if shared libraries are not supported. Putting them
8084 # here allows them to be overridden if necessary.
8085 runpath_var=LD_RUN_PATH
8086 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8087 export_dynamic_flag_spec='${wl}--export-dynamic'
8088 # ancient GNU ld didn't support --whole-archive et. al.
8089 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8090 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8091 else
8092 whole_archive_flag_spec=
8093 fi
8094 supports_anon_versioning=no
8095 case `$LD -v 2>/dev/null` in
8096 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8099 *\ 2.11.*) ;; # other 2.11 versions
8100 *) supports_anon_versioning=yes ;;
8101 esac
8102
8103 # See if GNU ld supports shared libraries.
8104 case $host_os in
8105 aix3* | aix4* | aix5*)
8106 # On AIX/PPC, the GNU linker is very broken
8107 if test "$host_cpu" != ia64; then
8108 ld_shlibs=no
8109 cat <<EOF 1>&2
8110
8111*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8112*** to be unable to reliably create shared libraries on AIX.
8113*** Therefore, libtool is disabling shared libraries support. If you
8114*** really care for shared libraries, you may want to modify your PATH
8115*** so that a non-GNU linker is found, and then restart.
8116
8117EOF
8118 fi
8119 ;;
8120
8121 amigaos*)
8122 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)'
8123 hardcode_libdir_flag_spec='-L$libdir'
8124 hardcode_minus_L=yes
8125
8126 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8127 # that the semantics of dynamic libraries on AmigaOS, at least up
8128 # to version 4, is to share data among multiple programs linked
8129 # with the same dynamic library. Since this doesn't match the
8130 # behavior of shared libraries on other platforms, we can't use
8131 # them.
8132 ld_shlibs=no
8133 ;;
8134
8135 beos*)
8136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8137 allow_undefined_flag=unsupported
8138 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8139 # support --undefined. This deserves some investigation. FIXME
8140 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141 else
8142 ld_shlibs=no
8143 fi
8144 ;;
8145
8146 cygwin* | mingw* | pw32*)
8147 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8148 # as there is no search path for DLLs.
8149 hardcode_libdir_flag_spec='-L$libdir'
8150 allow_undefined_flag=unsupported
8151 always_export_symbols=no
8152 enable_shared_with_static_runtimes=yes
8153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8154
8155 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8157 # If the export-symbols file already is a .def file (1st line
8158 # is EXPORTS), use it as is; otherwise, prepend...
8159 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8160 cp $export_symbols $output_objdir/$soname.def;
8161 else
8162 echo EXPORTS > $output_objdir/$soname.def;
8163 cat $export_symbols >> $output_objdir/$soname.def;
8164 fi~
8165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166 else
8167 ld_shlibs=no
8168 fi
8169 ;;
8170
8171 interix3*)
8172 hardcode_direct=no
8173 hardcode_shlibpath_var=no
8174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175 export_dynamic_flag_spec='${wl}-E'
8176 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8177 # Instead, shared libraries are loaded at an image base (0x10000000 by
8178 # default) and relocated if they conflict, which is a slow very memory
8179 # consuming and fragmenting process. To avoid this, we pick a random,
8180 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8181 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8183 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'
8184 ;;
8185
8186 linux*)
8187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8188 tmp_addflag=
8189 case $cc_basename,$host_cpu in
8190 pgcc*) # Portland Group C compiler
8191 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'
8192 tmp_addflag=' $pic_flag'
8193 ;;
8194 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8195 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'
8196 tmp_addflag=' $pic_flag -Mnomain' ;;
8197 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8198 tmp_addflag=' -i_dynamic' ;;
8199 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8200 tmp_addflag=' -i_dynamic -nofor_main' ;;
8201 ifc* | ifort*) # Intel Fortran compiler
8202 tmp_addflag=' -nofor_main' ;;
8203 esac
8204 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205
8206 if test $supports_anon_versioning = yes; then
8207 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8209 $echo "local: *; };" >> $output_objdir/$libname.ver~
8210 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8211 fi
8212 link_all_deplibs=no
8213 else
8214 ld_shlibs=no
8215 fi
8216 ;;
8217
8218 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8220 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8221 wlarc=
8222 else
8223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8225 fi
8226 ;;
8227
8228 solaris*)
8229 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8230 ld_shlibs=no
8231 cat <<EOF 1>&2
8232
8233*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8234*** create shared libraries on Solaris systems. Therefore, libtool
8235*** is disabling shared libraries support. We urge you to upgrade GNU
8236*** binutils to release 2.9.1 or newer. Another option is to modify
8237*** your PATH or compiler configuration so that the native linker is
8238*** used, and then restart.
8239
8240EOF
8241 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8244 else
8245 ld_shlibs=no
8246 fi
8247 ;;
8248
8249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8250 case `$LD -v 2>&1` in
8251 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8252 ld_shlibs=no
8253 cat <<_LT_EOF 1>&2
8254
8255*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8256*** reliably create shared libraries on SCO systems. Therefore, libtool
8257*** is disabling shared libraries support. We urge you to upgrade GNU
8258*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8259*** your PATH or compiler configuration so that the native linker is
8260*** used, and then restart.
8261
8262_LT_EOF
8263 ;;
8264 *)
8265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8266 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8269 else
8270 ld_shlibs=no
8271 fi
8272 ;;
8273 esac
8274 ;;
8275
8276 sunos4*)
8277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278 wlarc=
8279 hardcode_direct=yes
8280 hardcode_shlibpath_var=no
8281 ;;
8282
8283 *)
8284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
8291 esac
8292
8293 if test "$ld_shlibs" = no; then
8294 runpath_var=
8295 hardcode_libdir_flag_spec=
8296 export_dynamic_flag_spec=
8297 whole_archive_flag_spec=
8298 fi
8299 else
8300 # PORTME fill in a description of your system's linker (not GNU ld)
8301 case $host_os in
8302 aix3*)
8303 allow_undefined_flag=unsupported
8304 always_export_symbols=yes
8305 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'
8306 # Note: this linker hardcodes the directories in LIBPATH if there
8307 # are no directories specified by -L.
8308 hardcode_minus_L=yes
8309 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8310 # Neither direct hardcoding nor static linking is supported with a
8311 # broken collect2.
8312 hardcode_direct=unsupported
8313 fi
8314 ;;
8315
8316 aix4* | aix5*)
8317 if test "$host_cpu" = ia64; then
8318 # On IA64, the linker does run time linking by default, so we don't
8319 # have to do anything special.
8320 aix_use_runtimelinking=no
8321 exp_sym_flag='-Bexport'
8322 no_entry_flag=""
8323 else
8324 # If we're using GNU nm, then we don't want the "-C" option.
8325 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8326 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8327 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'
8328 else
8329 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'
8330 fi
8331 aix_use_runtimelinking=no
8332
8333 # Test if we are trying to use run time linking or normal
8334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8335 # need to do runtime linking.
8336 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8337 for ld_flag in $LDFLAGS; do
8338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8339 aix_use_runtimelinking=yes
8340 break
8341 fi
8342 done
8343 ;;
8344 esac
8345
8346 exp_sym_flag='-bexport'
8347 no_entry_flag='-bnoentry'
8348 fi
8349
8350 # When large executables or shared objects are built, AIX ld can
8351 # have problems creating the table of contents. If linking a library
8352 # or program results in "error TOC overflow" add -mminimal-toc to
8353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8355
8356 archive_cmds=''
8357 hardcode_direct=yes
8358 hardcode_libdir_separator=':'
8359 link_all_deplibs=yes
8360
8361 if test "$GCC" = yes; then
8362 case $host_os in aix4.[012]|aix4.[012].*)
8363 # We only want to do this on AIX 4.2 and lower, the check
8364 # below for broken collect2 doesn't work under 4.3+
8365 collect2name=`${CC} -print-prog-name=collect2`
8366 if test -f "$collect2name" && \
8367 strings "$collect2name" | grep resolve_lib_name >/dev/null
8368 then
8369 # We have reworked collect2
8370 hardcode_direct=yes
8371 else
8372 # We have old collect2
8373 hardcode_direct=unsupported
8374 # It fails to find uninstalled libraries when the uninstalled
8375 # path is not listed in the libpath. Setting hardcode_minus_L
8376 # to unsupported forces relinking
8377 hardcode_minus_L=yes
8378 hardcode_libdir_flag_spec='-L$libdir'
8379 hardcode_libdir_separator=
8380 fi
8381 ;;
8382 esac
8383 shared_flag='-shared'
8384 if test "$aix_use_runtimelinking" = yes; then
8385 shared_flag="$shared_flag "'${wl}-G'
8386 fi
8387 else
8388 # not using gcc
8389 if test "$host_cpu" = ia64; then
8390 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8391 # chokes on -Wl,-G. The following line is correct:
8392 shared_flag='-G'
8393 else
8394 if test "$aix_use_runtimelinking" = yes; then
8395 shared_flag='${wl}-G'
8396 else
8397 shared_flag='${wl}-bM:SRE'
8398 fi
8399 fi
8400 fi
8401
8402 # It seems that -bexpall does not export symbols beginning with
8403 # underscore (_), so it is better to generate a list of symbols to export.
8404 always_export_symbols=yes
8405 if test "$aix_use_runtimelinking" = yes; then
8406 # Warning - without using the other runtime loading flags (-brtl),
8407 # -berok will link without error, but may produce a broken library.
8408 allow_undefined_flag='-berok'
8409 # Determine the default libpath from the value encoded in an empty executable.
8410 cat >conftest.$ac_ext <<_ACEOF
8411/* confdefs.h. */
8412_ACEOF
8413cat confdefs.h >>conftest.$ac_ext
8414cat >>conftest.$ac_ext <<_ACEOF
8415/* end confdefs.h. */
8416
8417int
8418main ()
8419{
8420
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext conftest$ac_exeext
8426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; } &&
8440 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446
8447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8448}'`
8449# Check for a 64-bit object if we didn't find anything.
8450if 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; }
8451}'`; fi
8452else
8453 echo "$as_me: failed program was:" >&5
8454sed 's/^/| /' conftest.$ac_ext >&5
8455
8456fi
8457rm -f conftest.err conftest.$ac_objext \
8458 conftest$ac_exeext conftest.$ac_ext
8459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8460
8461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8462 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"
8463 else
8464 if test "$host_cpu" = ia64; then
8465 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8466 allow_undefined_flag="-z nodefs"
8467 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"
8468 else
8469 # Determine the default libpath from the value encoded in an empty executable.
8470 cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476
8477int
8478main ()
8479{
8480
8481 ;
8482 return 0;
8483}
8484_ACEOF
8485rm -f conftest.$ac_objext conftest$ac_exeext
8486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506
8507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8508}'`
8509# Check for a 64-bit object if we didn't find anything.
8510if 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; }
8511}'`; fi
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516fi
8517rm -f conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8520
8521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8522 # Warning - without using the other run time loading flags,
8523 # -berok will link without error, but may produce a broken library.
8524 no_undefined_flag=' ${wl}-bernotok'
8525 allow_undefined_flag=' ${wl}-berok'
8526 # Exported symbols can be pulled into shared objects from archives
8527 whole_archive_flag_spec='$convenience'
8528 archive_cmds_need_lc=yes
8529 # This is similar to how AIX traditionally builds its shared libraries.
8530 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'
8531 fi
8532 fi
8533 ;;
8534
8535 amigaos*)
8536 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)'
8537 hardcode_libdir_flag_spec='-L$libdir'
8538 hardcode_minus_L=yes
8539 # see comment about different semantics on the GNU ld section
8540 ld_shlibs=no
8541 ;;
8542
8543 bsdi[45]*)
8544 export_dynamic_flag_spec=-rdynamic
8545 ;;
8546
8547 cygwin* | mingw* | pw32*)
8548 # When not using gcc, we currently assume that we are using
8549 # Microsoft Visual C++.
8550 # hardcode_libdir_flag_spec is actually meaningless, as there is
8551 # no search path for DLLs.
8552 hardcode_libdir_flag_spec=' '
8553 allow_undefined_flag=unsupported
8554 # Tell ltmain to make .lib files, not .a files.
8555 libext=lib
8556 # Tell ltmain to make .dll files, not .so files.
8557 shrext_cmds=".dll"
8558 # FIXME: Setting linknames here is a bad hack.
8559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8560 # The linker will automatically build a .lib file if we build a DLL.
8561 old_archive_From_new_cmds='true'
8562 # FIXME: Should let the user specify the lib program.
8563 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8564 fix_srcfile_path='`cygpath -w "$srcfile"`'
8565 enable_shared_with_static_runtimes=yes
8566 ;;
8567
8568 darwin* | rhapsody*)
8569 case $host_os in
8570 rhapsody* | darwin1.[012])
8571 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8572 ;;
8573 *) # Darwin 1.3 on
8574 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8575 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576 else
8577 case ${MACOSX_DEPLOYMENT_TARGET} in
8578 10.[012])
8579 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8580 ;;
8581 10.*)
8582 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8583 ;;
8584 esac
8585 fi
8586 ;;
8587 esac
8588 archive_cmds_need_lc=no
8589 hardcode_direct=no
8590 hardcode_automatic=yes
8591 hardcode_shlibpath_var=unsupported
8592 whole_archive_flag_spec=''
8593 link_all_deplibs=yes
8594 if test "$GCC" = yes ; then
8595 output_verbose_link_cmd='echo'
8596 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599 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}'
8600 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}'
8601 else
8602 case $cc_basename in
8603 xlc*)
8604 output_verbose_link_cmd='echo'
8605 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8606 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8607 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8608 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}'
8609 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}'
8610 ;;
8611 *)
8612 ld_shlibs=no
8613 ;;
8614 esac
8615 fi
8616 ;;
8617
8618 dgux*)
8619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_shlibpath_var=no
8622 ;;
8623
8624 freebsd1*)
8625 ld_shlibs=no
8626 ;;
8627
8628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8629 # support. Future versions do this automatically, but an explicit c++rt0.o
8630 # does not break anything, and helps significantly (at the cost of a little
8631 # extra space).
8632 freebsd2.2*)
8633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8634 hardcode_libdir_flag_spec='-R$libdir'
8635 hardcode_direct=yes
8636 hardcode_shlibpath_var=no
8637 ;;
8638
8639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8640 freebsd2*)
8641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8642 hardcode_direct=yes
8643 hardcode_minus_L=yes
8644 hardcode_shlibpath_var=no
8645 ;;
8646
8647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8648 freebsd* | dragonfly*)
8649 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8650 hardcode_libdir_flag_spec='-R$libdir'
8651 hardcode_direct=yes
8652 hardcode_shlibpath_var=no
8653 ;;
8654
8655 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8656 kfreebsd*-gnu)
8657 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8658 hardcode_libdir_flag_spec='-R$libdir'
8659 hardcode_direct=yes
8660 hardcode_shlibpath_var=no
8661 link_all_deplibs=no
8662 ;;
8663
8664 hpux9*)
8665 if test "$GCC" = yes; then
8666 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'
8667 else
8668 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'
8669 fi
8670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8671 hardcode_libdir_separator=:
8672 hardcode_direct=yes
8673
8674 # hardcode_minus_L: Not really in the search PATH,
8675 # but as the default location of the library.
8676 hardcode_minus_L=yes
8677 export_dynamic_flag_spec='${wl}-E'
8678 ;;
8679
8680 hpux10*)
8681 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8683 else
8684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8685 fi
8686 if test "$with_gnu_ld" = no; then
8687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8688 hardcode_libdir_separator=:
8689
8690 hardcode_direct=yes
8691 export_dynamic_flag_spec='${wl}-E'
8692
8693 # hardcode_minus_L: Not really in the search PATH,
8694 # but as the default location of the library.
8695 hardcode_minus_L=yes
8696 fi
8697 ;;
8698
8699 hpux11*)
8700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8701 case $host_cpu in
8702 hppa*64*)
8703 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 ;;
8705 ia64*)
8706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8707 ;;
8708 *)
8709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8710 ;;
8711 esac
8712 else
8713 case $host_cpu in
8714 hppa*64*)
8715 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 ;;
8717 ia64*)
8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8719 ;;
8720 *)
8721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722 ;;
8723 esac
8724 fi
8725 if test "$with_gnu_ld" = no; then
8726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727 hardcode_libdir_separator=:
8728
8729 case $host_cpu in
8730 hppa*64*|ia64*)
8731 hardcode_libdir_flag_spec_ld='+b $libdir'
8732 hardcode_direct=no
8733 hardcode_shlibpath_var=no
8734 ;;
8735 *)
8736 hardcode_direct=yes
8737 export_dynamic_flag_spec='${wl}-E'
8738
8739 # hardcode_minus_L: Not really in the search PATH,
8740 # but as the default location of the library.
8741 hardcode_minus_L=yes
8742 ;;
8743 esac
8744 fi
8745 ;;
8746
8747 irix5* | irix6* | nonstopux*)
8748 if test "$GCC" = yes; then
8749 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'
8750 else
8751 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'
8752 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8753 fi
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755 hardcode_libdir_separator=:
8756 link_all_deplibs=yes
8757 ;;
8758
8759 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8762 else
8763 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8764 fi
8765 hardcode_libdir_flag_spec='-R$libdir'
8766 hardcode_direct=yes
8767 hardcode_shlibpath_var=no
8768 ;;
8769
8770 newsos6)
8771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_direct=yes
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 hardcode_libdir_separator=:
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 openbsd*)
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8783 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8785 export_dynamic_flag_spec='${wl}-E'
8786 else
8787 case $host_os in
8788 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_libdir_flag_spec='-R$libdir'
8791 ;;
8792 *)
8793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 ;;
8796 esac
8797 fi
8798 ;;
8799
8800 os2*)
8801 hardcode_libdir_flag_spec='-L$libdir'
8802 hardcode_minus_L=yes
8803 allow_undefined_flag=unsupported
8804 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'
8805 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8806 ;;
8807
8808 osf3*)
8809 if test "$GCC" = yes; then
8810 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8811 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'
8812 else
8813 allow_undefined_flag=' -expect_unresolved \*'
8814 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'
8815 fi
8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817 hardcode_libdir_separator=:
8818 ;;
8819
8820 osf4* | osf5*) # as osf3* with the addition of -msym flag
8821 if test "$GCC" = yes; then
8822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8823 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'
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 else
8826 allow_undefined_flag=' -expect_unresolved \*'
8827 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'
8828 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8829 $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'
8830
8831 # Both c and cxx compiler support -rpath directly
8832 hardcode_libdir_flag_spec='-rpath $libdir'
8833 fi
8834 hardcode_libdir_separator=:
8835 ;;
8836
8837 solaris*)
8838 no_undefined_flag=' -z text'
8839 if test "$GCC" = yes; then
8840 wlarc='${wl}'
8841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8843 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8844 else
8845 wlarc=''
8846 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8849 fi
8850 hardcode_libdir_flag_spec='-R$libdir'
8851 hardcode_shlibpath_var=no
8852 case $host_os in
8853 solaris2.[0-5] | solaris2.[0-5].*) ;;
8854 *)
8855 # The compiler driver will combine linker options so we
8856 # cannot just pass the convience library names through
8857 # without $wl, iff we do not link with $LD.
8858 # Luckily, gcc supports the same syntax we need for Sun Studio.
8859 # Supported since Solaris 2.6 (maybe 2.5.1?)
8860 case $wlarc in
8861 '')
8862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8863 *)
8864 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' ;;
8865 esac ;;
8866 esac
8867 link_all_deplibs=yes
8868 ;;
8869
8870 sunos4*)
8871 if test "x$host_vendor" = xsequent; then
8872 # Use $CC to link under sequent, because it throws in some extra .o
8873 # files that make .init and .fini sections work.
8874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8875 else
8876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8877 fi
8878 hardcode_libdir_flag_spec='-L$libdir'
8879 hardcode_direct=yes
8880 hardcode_minus_L=yes
8881 hardcode_shlibpath_var=no
8882 ;;
8883
8884 sysv4)
8885 case $host_vendor in
8886 sni)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_direct=yes # is this really true???
8889 ;;
8890 siemens)
8891 ## LD is ld it makes a PLAMLIB
8892 ## CC just makes a GrossModule.
8893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8894 reload_cmds='$CC -r -o $output$reload_objs'
8895 hardcode_direct=no
8896 ;;
8897 motorola)
8898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8900 ;;
8901 esac
8902 runpath_var='LD_RUN_PATH'
8903 hardcode_shlibpath_var=no
8904 ;;
8905
8906 sysv4.3*)
8907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908 hardcode_shlibpath_var=no
8909 export_dynamic_flag_spec='-Bexport'
8910 ;;
8911
8912 sysv4*MP*)
8913 if test -d /usr/nec; then
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_shlibpath_var=no
8916 runpath_var=LD_RUN_PATH
8917 hardcode_runpath_var=yes
8918 ld_shlibs=yes
8919 fi
8920 ;;
8921
8922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8923 no_undefined_flag='${wl}-z,text'
8924 archive_cmds_need_lc=no
8925 hardcode_shlibpath_var=no
8926 runpath_var='LD_RUN_PATH'
8927
8928 if test "$GCC" = yes; then
8929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 else
8932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8934 fi
8935 ;;
8936
8937 sysv5* | sco3.2v5* | sco5v6*)
8938 # Note: We can NOT use -z defs as we might desire, because we do not
8939 # link with -lc, and that would cause any symbols used from libc to
8940 # always be unresolved, which means just about no library would
8941 # ever link correctly. If we're not using GNU ld we use -z text
8942 # though, which does catch some bad symbols but isn't as heavy-handed
8943 # as -z defs.
8944 no_undefined_flag='${wl}-z,text'
8945 allow_undefined_flag='${wl}-z,nodefs'
8946 archive_cmds_need_lc=no
8947 hardcode_shlibpath_var=no
8948 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8949 hardcode_libdir_separator=':'
8950 link_all_deplibs=yes
8951 export_dynamic_flag_spec='${wl}-Bexport'
8952 runpath_var='LD_RUN_PATH'
8953
8954 if test "$GCC" = yes; then
8955 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 else
8958 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960 fi
8961 ;;
8962
8963 uts4*)
8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_libdir_flag_spec='-L$libdir'
8966 hardcode_shlibpath_var=no
8967 ;;
8968
8969 *)
8970 ld_shlibs=no
8971 ;;
8972 esac
8973 fi
8974
8975echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8976echo "${ECHO_T}$ld_shlibs" >&6
8977test "$ld_shlibs" = no && can_build_shared=no
8978
8979#
8980# Do we need to explicitly link libc?
8981#
8982case "x$archive_cmds_need_lc" in
8983x|xyes)
8984 # Assume -lc should be added
8985 archive_cmds_need_lc=yes
8986
8987 if test "$enable_shared" = yes && test "$GCC" = yes; then
8988 case $archive_cmds in
8989 *'~'*)
8990 # FIXME: we may have to deal with multi-command sequences.
8991 ;;
8992 '$CC '*)
8993 # Test whether the compiler implicitly links with -lc since on some
8994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8995 # to ld, don't add -lc before -lgcc.
8996 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8997echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8998 $rm conftest*
8999 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002 (eval $ac_compile) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } 2>conftest.err; then
9006 soname=conftest
9007 lib=conftest
9008 libobjs=conftest.$ac_objext
9009 deplibs=
9010 wl=$lt_prog_compiler_wl
9011 pic_flag=$lt_prog_compiler_pic
9012 compiler_flags=-v
9013 linker_flags=-v
9014 verstring=
9015 output_objdir=.
9016 libname=conftest
9017 lt_save_allow_undefined_flag=$allow_undefined_flag
9018 allow_undefined_flag=
9019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9020 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }
9024 then
9025 archive_cmds_need_lc=no
9026 else
9027 archive_cmds_need_lc=yes
9028 fi
9029 allow_undefined_flag=$lt_save_allow_undefined_flag
9030 else
9031 cat conftest.err 1>&5
9032 fi
9033 $rm conftest*
9034 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9035echo "${ECHO_T}$archive_cmds_need_lc" >&6
9036 ;;
9037 esac
9038 fi
9039 ;;
9040esac
9041
9042echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9044library_names_spec=
9045libname_spec='lib$name'
9046soname_spec=
9047shrext_cmds=".so"
9048postinstall_cmds=
9049postuninstall_cmds=
9050finish_cmds=
9051finish_eval=
9052shlibpath_var=
9053shlibpath_overrides_runpath=unknown
9054version_type=none
9055dynamic_linker="$host_os ld.so"
9056sys_lib_dlsearch_path_spec="/lib /usr/lib"
9057if test "$GCC" = yes; then
9058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9060 # if the path contains ";" then we assume it to be the separator
9061 # otherwise default to the standard path separator (i.e. ":") - it is
9062 # assumed that no part of a normal pathname contains ";" but that should
9063 # okay in the real world where ";" in dirpaths is itself problematic.
9064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9065 else
9066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9067 fi
9068else
9069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9070fi
9071need_lib_prefix=unknown
9072hardcode_into_libs=no
9073
9074# when you set need_version to no, make sure it does not cause -set_version
9075# flags to be left without arguments
9076need_version=unknown
9077
9078case $host_os in
9079aix3*)
9080 version_type=linux
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9082 shlibpath_var=LIBPATH
9083
9084 # AIX 3 has no versioning support, so we append a major version to the name.
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 ;;
9087
9088aix4* | aix5*)
9089 version_type=linux
9090 need_lib_prefix=no
9091 need_version=no
9092 hardcode_into_libs=yes
9093 if test "$host_cpu" = ia64; then
9094 # AIX 5 supports IA64
9095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 else
9098 # With GCC up to 2.95.x, collect2 would create an import file
9099 # for dependence libraries. The import file would start with
9100 # the line `#! .'. This would cause the generated library to
9101 # depend on `.', always an invalid library. This was fixed in
9102 # development snapshots of GCC prior to 3.0.
9103 case $host_os in
9104 aix4 | aix4.[01] | aix4.[01].*)
9105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9106 echo ' yes '
9107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9108 :
9109 else
9110 can_build_shared=no
9111 fi
9112 ;;
9113 esac
9114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9115 # soname into executable. Probably we can add versioning support to
9116 # collect2, so additional links can be useful in future.
9117 if test "$aix_use_runtimelinking" = yes; then
9118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9119 # instead of lib<name>.a to let people know that these are not
9120 # typical AIX shared libraries.
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 else
9123 # We preserve .a as extension for shared libraries through AIX4.2
9124 # and later when we are not doing run time linking.
9125 library_names_spec='${libname}${release}.a $libname.a'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 fi
9128 shlibpath_var=LIBPATH
9129 fi
9130 ;;
9131
9132amigaos*)
9133 library_names_spec='$libname.ixlibrary $libname.a'
9134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9135 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'
9136 ;;
9137
9138beos*)
9139 library_names_spec='${libname}${shared_ext}'
9140 dynamic_linker="$host_os ld.so"
9141 shlibpath_var=LIBRARY_PATH
9142 ;;
9143
9144bsdi[45]*)
9145 version_type=linux
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9153 # the default ld.so.conf also contains /usr/contrib/lib and
9154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9155 # libtool to hard-code these into programs
9156 ;;
9157
9158cygwin* | mingw* | pw32*)
9159 version_type=windows
9160 shrext_cmds=".dll"
9161 need_version=no
9162 need_lib_prefix=no
9163
9164 case $GCC,$host_os in
9165 yes,cygwin* | yes,mingw* | yes,pw32*)
9166 library_names_spec='$libname.dll.a'
9167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9168 postinstall_cmds='base_file=`basename \${file}`~
9169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9170 dldir=$destdir/`dirname \$dlpath`~
9171 test -d \$dldir || mkdir -p \$dldir~
9172 $install_prog $dir/$dlname \$dldir/$dlname~
9173 chmod a+x \$dldir/$dlname'
9174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9175 dlpath=$dir/\$dldll~
9176 $rm \$dlpath'
9177 shlibpath_overrides_runpath=yes
9178
9179 case $host_os in
9180 cygwin*)
9181 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9182 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9183 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9184 ;;
9185 mingw*)
9186 # MinGW DLLs use traditional 'lib' prefix
9187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9189 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9190 # It is most probably a Windows format PATH printed by
9191 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9192 # path with ; separators, and with drive letters. We can handle the
9193 # drive letters (cygwin fileutils understands them), so leave them,
9194 # especially as we might pass files found there to a mingw objdump,
9195 # which wouldn't understand a cygwinified path. Ahh.
9196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9197 else
9198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 fi
9200 ;;
9201 pw32*)
9202 # pw32 DLLs use 'pw' prefix rather than 'lib'
9203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9204 ;;
9205 esac
9206 ;;
9207
9208 *)
9209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9210 ;;
9211 esac
9212 dynamic_linker='Win32 ld.exe'
9213 # FIXME: first we should search . and the directory the executable is in
9214 shlibpath_var=PATH
9215 ;;
9216
9217darwin* | rhapsody*)
9218 dynamic_linker="$host_os dyld"
9219 version_type=darwin
9220 need_lib_prefix=no
9221 need_version=no
9222 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9223 soname_spec='${libname}${release}${major}$shared_ext'
9224 shlibpath_overrides_runpath=yes
9225 shlibpath_var=DYLD_LIBRARY_PATH
9226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9227 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9228 if test "$GCC" = yes; then
9229 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"`
9230 else
9231 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9232 fi
9233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9234 ;;
9235
9236dgux*)
9237 version_type=linux
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 ;;
9244
9245freebsd1*)
9246 dynamic_linker=no
9247 ;;
9248
9249kfreebsd*-gnu)
9250 version_type=linux
9251 need_lib_prefix=no
9252 need_version=no
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=no
9257 hardcode_into_libs=yes
9258 dynamic_linker='GNU ld.so'
9259 ;;
9260
9261freebsd* | dragonfly*)
9262 # DragonFly does not have aout. When/if they implement a new
9263 # versioning mechanism, adjust this.
9264 if test -x /usr/bin/objformat; then
9265 objformat=`/usr/bin/objformat`
9266 else
9267 case $host_os in
9268 freebsd[123]*) objformat=aout ;;
9269 *) objformat=elf ;;
9270 esac
9271 fi
9272 version_type=freebsd-$objformat
9273 case $version_type in
9274 freebsd-elf*)
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276 need_version=no
9277 need_lib_prefix=no
9278 ;;
9279 freebsd-*)
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9281 need_version=yes
9282 ;;
9283 esac
9284 shlibpath_var=LD_LIBRARY_PATH
9285 case $host_os in
9286 freebsd2*)
9287 shlibpath_overrides_runpath=yes
9288 ;;
9289 freebsd3.[01]* | freebsdelf3.[01]*)
9290 shlibpath_overrides_runpath=yes
9291 hardcode_into_libs=yes
9292 ;;
9293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9295 shlibpath_overrides_runpath=no
9296 hardcode_into_libs=yes
9297 ;;
9298 freebsd*) # from 4.6 on
9299 shlibpath_overrides_runpath=yes
9300 hardcode_into_libs=yes
9301 ;;
9302 esac
9303 ;;
9304
9305gnu*)
9306 version_type=linux
9307 need_lib_prefix=no
9308 need_version=no
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 hardcode_into_libs=yes
9313 ;;
9314
9315hpux9* | hpux10* | hpux11*)
9316 # Give a soname corresponding to the major version so that dld.sl refuses to
9317 # link against other versions.
9318 version_type=sunos
9319 need_lib_prefix=no
9320 need_version=no
9321 case $host_cpu in
9322 ia64*)
9323 shrext_cmds='.so'
9324 hardcode_into_libs=yes
9325 dynamic_linker="$host_os dld.so"
9326 shlibpath_var=LD_LIBRARY_PATH
9327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 if test "X$HPUX_IA64_MODE" = X32; then
9331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9332 else
9333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9334 fi
9335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9336 ;;
9337 hppa*64*)
9338 shrext_cmds='.sl'
9339 hardcode_into_libs=yes
9340 dynamic_linker="$host_os dld.sl"
9341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9347 ;;
9348 *)
9349 shrext_cmds='.sl'
9350 dynamic_linker="$host_os dld.sl"
9351 shlibpath_var=SHLIB_PATH
9352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 ;;
9356 esac
9357 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9358 postinstall_cmds='chmod 555 $lib'
9359 ;;
9360
9361interix3*)
9362 version_type=linux
9363 need_lib_prefix=no
9364 need_version=no
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=no
9370 hardcode_into_libs=yes
9371 ;;
9372
9373irix5* | irix6* | nonstopux*)
9374 case $host_os in
9375 nonstopux*) version_type=nonstopux ;;
9376 *)
9377 if test "$lt_cv_prog_gnu_ld" = yes; then
9378 version_type=linux
9379 else
9380 version_type=irix
9381 fi ;;
9382 esac
9383 need_lib_prefix=no
9384 need_version=no
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9387 case $host_os in
9388 irix5* | nonstopux*)
9389 libsuff= shlibsuff=
9390 ;;
9391 *)
9392 case $LD in # libtool.m4 will add one of these switches to LD
9393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9394 libsuff= shlibsuff= libmagic=32-bit;;
9395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9396 libsuff=32 shlibsuff=N32 libmagic=N32;;
9397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9399 *) libsuff= shlibsuff= libmagic=never-match;;
9400 esac
9401 ;;
9402 esac
9403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9404 shlibpath_overrides_runpath=no
9405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9407 hardcode_into_libs=yes
9408 ;;
9409
9410# No shared lib support for Linux oldld, aout, or coff.
9411linux*oldld* | linux*aout* | linux*coff*)
9412 dynamic_linker=no
9413 ;;
9414
9415# This must be Linux ELF.
9416linux*)
9417 version_type=linux
9418 need_lib_prefix=no
9419 need_version=no
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=no
9425 # This implies no fast_install, which is unacceptable.
9426 # Some rework will be needed to allow for fast_install
9427 # before this can be enabled.
9428 hardcode_into_libs=yes
9429
9430 # Append ld.so.conf contents to the search path
9431 if test -f /etc/ld.so.conf; then
9432 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9434 fi
9435
9436 # We used to test for /lib/ld.so.1 and disable shared libraries on
9437 # powerpc, because MkLinux only supported shared libraries with the
9438 # GNU dynamic linker. Since this was broken with cross compilers,
9439 # most powerpc-linux boxes support dynamic linking these days and
9440 # people can always --disable-shared, the test was removed, and we
9441 # assume the GNU/Linux dynamic linker is in use.
9442 dynamic_linker='GNU/Linux ld.so'
9443 ;;
9444
9445netbsdelf*-gnu)
9446 version_type=linux
9447 need_lib_prefix=no
9448 need_version=no
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=no
9453 hardcode_into_libs=yes
9454 dynamic_linker='NetBSD ld.elf_so'
9455 ;;
9456
9457knetbsd*-gnu)
9458 version_type=linux
9459 need_lib_prefix=no
9460 need_version=no
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 dynamic_linker='GNU ld.so'
9467 ;;
9468
9469netbsd*)
9470 version_type=sunos
9471 need_lib_prefix=no
9472 need_version=no
9473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9476 dynamic_linker='NetBSD (a.out) ld.so'
9477 else
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 dynamic_linker='NetBSD ld.elf_so'
9481 fi
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9484 hardcode_into_libs=yes
9485 ;;
9486
9487newsos6)
9488 version_type=linux
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9492 ;;
9493
9494nto-qnx*)
9495 version_type=linux
9496 need_lib_prefix=no
9497 need_version=no
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9502 ;;
9503
9504openbsd*)
9505 version_type=sunos
9506 sys_lib_dlsearch_path_spec="/usr/lib"
9507 need_lib_prefix=no
9508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9509 case $host_os in
9510 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9511 *) need_version=no ;;
9512 esac
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517 case $host_os in
9518 openbsd2.[89] | openbsd2.[89].*)
9519 shlibpath_overrides_runpath=no
9520 ;;
9521 *)
9522 shlibpath_overrides_runpath=yes
9523 ;;
9524 esac
9525 else
9526 shlibpath_overrides_runpath=yes
9527 fi
9528 ;;
9529
9530os2*)
9531 libname_spec='$name'
9532 shrext_cmds=".dll"
9533 need_lib_prefix=no
9534 library_names_spec='$libname${shared_ext} $libname.a'
9535 dynamic_linker='OS/2 ld.exe'
9536 shlibpath_var=LIBPATH
9537 ;;
9538
9539osf3* | osf4* | osf5*)
9540 version_type=osf
9541 need_lib_prefix=no
9542 need_version=no
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9548 ;;
9549
9550solaris*)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=yes
9558 hardcode_into_libs=yes
9559 # ldd complains unless libraries are executable
9560 postinstall_cmds='chmod +x $lib'
9561 ;;
9562
9563sunos4*)
9564 version_type=sunos
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9569 if test "$with_gnu_ld" = yes; then
9570 need_lib_prefix=no
9571 fi
9572 need_version=yes
9573 ;;
9574
9575sysv4 | sysv4.3*)
9576 version_type=linux
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 case $host_vendor in
9581 sni)
9582 shlibpath_overrides_runpath=no
9583 need_lib_prefix=no
9584 export_dynamic_flag_spec='${wl}-Blargedynsym'
9585 runpath_var=LD_RUN_PATH
9586 ;;
9587 siemens)
9588 need_lib_prefix=no
9589 ;;
9590 motorola)
9591 need_lib_prefix=no
9592 need_version=no
9593 shlibpath_overrides_runpath=no
9594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9595 ;;
9596 esac
9597 ;;
9598
9599sysv4*MP*)
9600 if test -d /usr/nec ;then
9601 version_type=linux
9602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9603 soname_spec='$libname${shared_ext}.$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 fi
9606 ;;
9607
9608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9609 version_type=freebsd-elf
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 hardcode_into_libs=yes
9616 if test "$with_gnu_ld" = yes; then
9617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9618 shlibpath_overrides_runpath=no
9619 else
9620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9621 shlibpath_overrides_runpath=yes
9622 case $host_os in
9623 sco3.2v5*)
9624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9625 ;;
9626 esac
9627 fi
9628 sys_lib_dlsearch_path_spec='/usr/lib'
9629 ;;
9630
9631uts4*)
9632 version_type=linux
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 ;;
9637
9638*)
9639 dynamic_linker=no
9640 ;;
9641esac
9642echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9643echo "${ECHO_T}$dynamic_linker" >&6
9644test "$dynamic_linker" = no && can_build_shared=no
9645
9646variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9647if test "$GCC" = yes; then
9648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9649fi
9650
9651echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9652echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9653hardcode_action=
9654if test -n "$hardcode_libdir_flag_spec" || \
9655 test -n "$runpath_var" || \
9656 test "X$hardcode_automatic" = "Xyes" ; then
9657
9658 # We can hardcode non-existant directories.
9659 if test "$hardcode_direct" != no &&
9660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9661 # have to relink, otherwise we might link with an installed library
9662 # when we should be linking with a yet-to-be-installed one
9663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9664 test "$hardcode_minus_L" != no; then
9665 # Linking always hardcodes the temporary library directory.
9666 hardcode_action=relink
9667 else
9668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9669 hardcode_action=immediate
9670 fi
9671else
9672 # We cannot hardcode anything, or else we can only hardcode existing
9673 # directories.
9674 hardcode_action=unsupported
9675fi
9676echo "$as_me:$LINENO: result: $hardcode_action" >&5
9677echo "${ECHO_T}$hardcode_action" >&6
9678
9679if test "$hardcode_action" = relink; then
9680 # Fast installation is not supported
9681 enable_fast_install=no
9682elif test "$shlibpath_overrides_runpath" = yes ||
9683 test "$enable_shared" = no; then
9684 # Fast installation is not necessary
9685 enable_fast_install=needless
9686fi
9687
9688striplib=
9689old_striplib=
9690echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9691echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9692if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9693 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9694 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9695 echo "$as_me:$LINENO: result: yes" >&5
9696echo "${ECHO_T}yes" >&6
9697else
9698# FIXME - insert some real tests, host_os isn't really good enough
9699 case $host_os in
9700 darwin*)
9701 if test -n "$STRIP" ; then
9702 striplib="$STRIP -x"
9703 echo "$as_me:$LINENO: result: yes" >&5
9704echo "${ECHO_T}yes" >&6
9705 else
9706 echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
9708fi
9709 ;;
9710 *)
9711 echo "$as_me:$LINENO: result: no" >&5
9712echo "${ECHO_T}no" >&6
9713 ;;
9714 esac
9715fi
9716
9717if test "x$enable_dlopen" != xyes; then
9718 enable_dlopen=unknown
9719 enable_dlopen_self=unknown
9720 enable_dlopen_self_static=unknown
9721else
9722 lt_cv_dlopen=no
9723 lt_cv_dlopen_libs=
9724
9725 case $host_os in
9726 beos*)
9727 lt_cv_dlopen="load_add_on"
9728 lt_cv_dlopen_libs=
9729 lt_cv_dlopen_self=yes
9730 ;;
9731
9732 mingw* | pw32*)
9733 lt_cv_dlopen="LoadLibrary"
9734 lt_cv_dlopen_libs=
9735 ;;
9736
9737 cygwin*)
9738 lt_cv_dlopen="dlopen"
9739 lt_cv_dlopen_libs=
9740 ;;
9741
9742 darwin*)
9743 # if libdl is installed we need to link against it
9744 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9745echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9746if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748else
9749 ac_check_lib_save_LIBS=$LIBS
9750LIBS="-ldl $LIBS"
9751cat >conftest.$ac_ext <<_ACEOF
9752/* confdefs.h. */
9753_ACEOF
9754cat confdefs.h >>conftest.$ac_ext
9755cat >>conftest.$ac_ext <<_ACEOF
9756/* end confdefs.h. */
9757
9758/* Override any gcc2 internal prototype to avoid an error. */
9759#ifdef __cplusplus
9760extern "C"
9761#endif
9762/* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9764char dlopen ();
9765int
9766main ()
9767{
9768dlopen ();
9769 ;
9770 return 0;
9771}
9772_ACEOF
9773rm -f conftest.$ac_objext conftest$ac_exeext
9774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_dl_dlopen=yes
9795else
9796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
9799ac_cv_lib_dl_dlopen=no
9800fi
9801rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
9804fi
9805echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9806echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9807if test $ac_cv_lib_dl_dlopen = yes; then
9808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9809else
9810
9811 lt_cv_dlopen="dyld"
9812 lt_cv_dlopen_libs=
9813 lt_cv_dlopen_self=yes
9814
9815fi
9816
9817 ;;
9818
9819 *)
9820 echo "$as_me:$LINENO: checking for shl_load" >&5
9821echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9822if test "${ac_cv_func_shl_load+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
9831/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833#define shl_load innocuous_shl_load
9834
9835/* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char shl_load (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9839
9840#ifdef __STDC__
9841# include <limits.h>
9842#else
9843# include <assert.h>
9844#endif
9845
9846#undef shl_load
9847
9848/* Override any gcc2 internal prototype to avoid an error. */
9849#ifdef __cplusplus
9850extern "C"
9851{
9852#endif
9853/* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855char shl_load ();
9856/* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859#if defined (__stub_shl_load) || defined (__stub___shl_load)
9860choke me
9861#else
9862char (*f) () = shl_load;
9863#endif
9864#ifdef __cplusplus
9865}
9866#endif
9867
9868int
9869main ()
9870{
9871return f != shl_load;
9872 ;
9873 return 0;
9874}
9875_ACEOF
9876rm -f conftest.$ac_objext conftest$ac_exeext
9877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_func_shl_load=yes
9898else
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902ac_cv_func_shl_load=no
9903fi
9904rm -f conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906fi
9907echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9908echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9909if test $ac_cv_func_shl_load = yes; then
9910 lt_cv_dlopen="shl_load"
9911else
9912 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9913echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9914if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917 ac_check_lib_save_LIBS=$LIBS
9918LIBS="-ldld $LIBS"
9919cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925
9926/* Override any gcc2 internal prototype to avoid an error. */
9927#ifdef __cplusplus
9928extern "C"
9929#endif
9930/* We use char because int might match the return type of a gcc2
9931 builtin and then its argument prototype would still apply. */
9932char shl_load ();
9933int
9934main ()
9935{
9936shl_load ();
9937 ;
9938 return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_cv_lib_dld_shl_load=yes
9963else
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967ac_cv_lib_dld_shl_load=no
9968fi
9969rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971LIBS=$ac_check_lib_save_LIBS
9972fi
9973echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9974echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9975if test $ac_cv_lib_dld_shl_load = yes; then
9976 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9977else
9978 echo "$as_me:$LINENO: checking for dlopen" >&5
9979echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9980if test "${ac_cv_func_dlopen+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983 cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h. */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h. */
9989/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9991#define dlopen innocuous_dlopen
9992
9993/* System header to define __stub macros and hopefully few prototypes,
9994 which can conflict with char dlopen (); below.
9995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9996 <limits.h> exists even on freestanding compilers. */
9997
9998#ifdef __STDC__
9999# include <limits.h>
10000#else
10001# include <assert.h>
10002#endif
10003
10004#undef dlopen
10005
10006/* Override any gcc2 internal prototype to avoid an error. */
10007#ifdef __cplusplus
10008extern "C"
10009{
10010#endif
10011/* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10013char dlopen ();
10014/* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017#if defined (__stub_dlopen) || defined (__stub___dlopen)
10018choke me
10019#else
10020char (*f) () = dlopen;
10021#endif
10022#ifdef __cplusplus
10023}
10024#endif
10025
10026int
10027main ()
10028{
10029return f != dlopen;
10030 ;
10031 return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_func_dlopen=yes
10056else
10057 echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
10060ac_cv_func_dlopen=no
10061fi
10062rm -f conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064fi
10065echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10066echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10067if test $ac_cv_func_dlopen = yes; then
10068 lt_cv_dlopen="dlopen"
10069else
10070 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10071echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10072if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074else
10075 ac_check_lib_save_LIBS=$LIBS
10076LIBS="-ldl $LIBS"
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083
10084/* Override any gcc2 internal prototype to avoid an error. */
10085#ifdef __cplusplus
10086extern "C"
10087#endif
10088/* We use char because int might match the return type of a gcc2
10089 builtin and then its argument prototype would still apply. */
10090char dlopen ();
10091int
10092main ()
10093{
10094dlopen ();
10095 ;
10096 return 0;
10097}
10098_ACEOF
10099rm -f conftest.$ac_objext conftest$ac_exeext
10100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101 (eval $ac_link) 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_lib_dl_dlopen=yes
10121else
10122 echo "$as_me: failed program was:" >&5
10123sed 's/^/| /' conftest.$ac_ext >&5
10124
10125ac_cv_lib_dl_dlopen=no
10126fi
10127rm -f conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129LIBS=$ac_check_lib_save_LIBS
10130fi
10131echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10132echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10133if test $ac_cv_lib_dl_dlopen = yes; then
10134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10135else
10136 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10137echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10138if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140else
10141 ac_check_lib_save_LIBS=$LIBS
10142LIBS="-lsvld $LIBS"
10143cat >conftest.$ac_ext <<_ACEOF
10144/* confdefs.h. */
10145_ACEOF
10146cat confdefs.h >>conftest.$ac_ext
10147cat >>conftest.$ac_ext <<_ACEOF
10148/* end confdefs.h. */
10149
10150/* Override any gcc2 internal prototype to avoid an error. */
10151#ifdef __cplusplus
10152extern "C"
10153#endif
10154/* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10156char dlopen ();
10157int
10158main ()
10159{
10160dlopen ();
10161 ;
10162 return 0;
10163}
10164_ACEOF
10165rm -f conftest.$ac_objext conftest$ac_exeext
10166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10167 (eval $ac_link) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_lib_svld_dlopen=yes
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
10191ac_cv_lib_svld_dlopen=no
10192fi
10193rm -f conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195LIBS=$ac_check_lib_save_LIBS
10196fi
10197echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10198echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10199if test $ac_cv_lib_svld_dlopen = yes; then
10200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10201else
10202 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10203echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10204if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206else
10207 ac_check_lib_save_LIBS=$LIBS
10208LIBS="-ldld $LIBS"
10209cat >conftest.$ac_ext <<_ACEOF
10210/* confdefs.h. */
10211_ACEOF
10212cat confdefs.h >>conftest.$ac_ext
10213cat >>conftest.$ac_ext <<_ACEOF
10214/* end confdefs.h. */
10215
10216/* Override any gcc2 internal prototype to avoid an error. */
10217#ifdef __cplusplus
10218extern "C"
10219#endif
10220/* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222char dld_link ();
10223int
10224main ()
10225{
10226dld_link ();
10227 ;
10228 return 0;
10229}
10230_ACEOF
10231rm -f conftest.$ac_objext conftest$ac_exeext
10232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest$ac_exeext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 ac_cv_lib_dld_dld_link=yes
10253else
10254 echo "$as_me: failed program was:" >&5
10255sed 's/^/| /' conftest.$ac_ext >&5
10256
10257ac_cv_lib_dld_dld_link=no
10258fi
10259rm -f conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261LIBS=$ac_check_lib_save_LIBS
10262fi
10263echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10264echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10265if test $ac_cv_lib_dld_dld_link = yes; then
10266 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10267fi
10268
10269
10270fi
10271
10272
10273fi
10274
10275
10276fi
10277
10278
10279fi
10280
10281
10282fi
10283
10284 ;;
10285 esac
10286
10287 if test "x$lt_cv_dlopen" != xno; then
10288 enable_dlopen=yes
10289 else
10290 enable_dlopen=no
10291 fi
10292
10293 case $lt_cv_dlopen in
10294 dlopen)
10295 save_CPPFLAGS="$CPPFLAGS"
10296 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10297
10298 save_LDFLAGS="$LDFLAGS"
10299 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10300
10301 save_LIBS="$LIBS"
10302 LIBS="$lt_cv_dlopen_libs $LIBS"
10303
10304 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10305echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10306if test "${lt_cv_dlopen_self+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 if test "$cross_compiling" = yes; then :
10310 lt_cv_dlopen_self=cross
10311else
10312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313 lt_status=$lt_dlunknown
10314 cat > conftest.$ac_ext <<EOF
10315#line 10315 "configure"
10316#include "confdefs.h"
10317
10318#if HAVE_DLFCN_H
10319#include <dlfcn.h>
10320#endif
10321
10322#include <stdio.h>
10323
10324#ifdef RTLD_GLOBAL
10325# define LT_DLGLOBAL RTLD_GLOBAL
10326#else
10327# ifdef DL_GLOBAL
10328# define LT_DLGLOBAL DL_GLOBAL
10329# else
10330# define LT_DLGLOBAL 0
10331# endif
10332#endif
10333
10334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335 find out it does not work in some platform. */
10336#ifndef LT_DLLAZY_OR_NOW
10337# ifdef RTLD_LAZY
10338# define LT_DLLAZY_OR_NOW RTLD_LAZY
10339# else
10340# ifdef DL_LAZY
10341# define LT_DLLAZY_OR_NOW DL_LAZY
10342# else
10343# ifdef RTLD_NOW
10344# define LT_DLLAZY_OR_NOW RTLD_NOW
10345# else
10346# ifdef DL_NOW
10347# define LT_DLLAZY_OR_NOW DL_NOW
10348# else
10349# define LT_DLLAZY_OR_NOW 0
10350# endif
10351# endif
10352# endif
10353# endif
10354#endif
10355
10356#ifdef __cplusplus
10357extern "C" void exit (int);
10358#endif
10359
10360void fnord() { int i=42;}
10361int main ()
10362{
10363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364 int status = $lt_dlunknown;
10365
10366 if (self)
10367 {
10368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370 /* dlclose (self); */
10371 }
10372 else
10373 puts (dlerror ());
10374
10375 exit (status);
10376}
10377EOF
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10383 (./conftest; exit; ) >&5 2>/dev/null
10384 lt_status=$?
10385 case x$lt_status in
10386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10388 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10389 esac
10390 else :
10391 # compilation failed
10392 lt_cv_dlopen_self=no
10393 fi
10394fi
10395rm -fr conftest*
10396
10397
10398fi
10399echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10400echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10401
10402 if test "x$lt_cv_dlopen_self" = xyes; then
10403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10404 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10405echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10406if test "${lt_cv_dlopen_self_static+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 if test "$cross_compiling" = yes; then :
10410 lt_cv_dlopen_self_static=cross
10411else
10412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10413 lt_status=$lt_dlunknown
10414 cat > conftest.$ac_ext <<EOF
10415#line 10415 "configure"
10416#include "confdefs.h"
10417
10418#if HAVE_DLFCN_H
10419#include <dlfcn.h>
10420#endif
10421
10422#include <stdio.h>
10423
10424#ifdef RTLD_GLOBAL
10425# define LT_DLGLOBAL RTLD_GLOBAL
10426#else
10427# ifdef DL_GLOBAL
10428# define LT_DLGLOBAL DL_GLOBAL
10429# else
10430# define LT_DLGLOBAL 0
10431# endif
10432#endif
10433
10434/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10435 find out it does not work in some platform. */
10436#ifndef LT_DLLAZY_OR_NOW
10437# ifdef RTLD_LAZY
10438# define LT_DLLAZY_OR_NOW RTLD_LAZY
10439# else
10440# ifdef DL_LAZY
10441# define LT_DLLAZY_OR_NOW DL_LAZY
10442# else
10443# ifdef RTLD_NOW
10444# define LT_DLLAZY_OR_NOW RTLD_NOW
10445# else
10446# ifdef DL_NOW
10447# define LT_DLLAZY_OR_NOW DL_NOW
10448# else
10449# define LT_DLLAZY_OR_NOW 0
10450# endif
10451# endif
10452# endif
10453# endif
10454#endif
10455
10456#ifdef __cplusplus
10457extern "C" void exit (int);
10458#endif
10459
10460void fnord() { int i=42;}
10461int main ()
10462{
10463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10464 int status = $lt_dlunknown;
10465
10466 if (self)
10467 {
10468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10469 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10470 /* dlclose (self); */
10471 }
10472 else
10473 puts (dlerror ());
10474
10475 exit (status);
10476}
10477EOF
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479 (eval $ac_link) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10483 (./conftest; exit; ) >&5 2>/dev/null
10484 lt_status=$?
10485 case x$lt_status in
10486 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10487 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10488 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10489 esac
10490 else :
10491 # compilation failed
10492 lt_cv_dlopen_self_static=no
10493 fi
10494fi
10495rm -fr conftest*
10496
10497
10498fi
10499echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10500echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10501 fi
10502
10503 CPPFLAGS="$save_CPPFLAGS"
10504 LDFLAGS="$save_LDFLAGS"
10505 LIBS="$save_LIBS"
10506 ;;
10507 esac
10508
10509 case $lt_cv_dlopen_self in
10510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10511 *) enable_dlopen_self=unknown ;;
10512 esac
10513
10514 case $lt_cv_dlopen_self_static in
10515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10516 *) enable_dlopen_self_static=unknown ;;
10517 esac
10518fi
10519
10520
10521# Report which library types will actually be built
10522echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10523echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10524echo "$as_me:$LINENO: result: $can_build_shared" >&5
10525echo "${ECHO_T}$can_build_shared" >&6
10526
10527echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10528echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10529test "$can_build_shared" = "no" && enable_shared=no
10530
10531# On AIX, shared libraries and static libraries use the same namespace, and
10532# are all built from PIC.
10533case $host_os in
10534aix3*)
10535 test "$enable_shared" = yes && enable_static=no
10536 if test -n "$RANLIB"; then
10537 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10538 postinstall_cmds='$RANLIB $lib'
10539 fi
10540 ;;
10541
10542aix4* | aix5*)
10543 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10544 test "$enable_shared" = yes && enable_static=no
10545 fi
10546 ;;
10547esac
10548echo "$as_me:$LINENO: result: $enable_shared" >&5
10549echo "${ECHO_T}$enable_shared" >&6
10550
10551echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10552echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10553# Make sure either enable_shared or enable_static is yes.
10554test "$enable_shared" = yes || enable_static=yes
10555echo "$as_me:$LINENO: result: $enable_static" >&5
10556echo "${ECHO_T}$enable_static" >&6
10557
10558# The else clause should only fire when bootstrapping the
10559# libtool distribution, otherwise you forgot to ship ltmain.sh
10560# with your package, and you will get complaints that there are
10561# no rules to generate ltmain.sh.
10562if test -f "$ltmain"; then
10563 # See if we are running on zsh, and set the options which allow our commands through
10564 # without removal of \ escapes.
10565 if test -n "${ZSH_VERSION+set}" ; then
10566 setopt NO_GLOB_SUBST
10567 fi
10568 # Now quote all the things that may contain metacharacters while being
10569 # careful not to overquote the AC_SUBSTed values. We take copies of the
10570 # variables and quote the copies for generation of the libtool script.
10571 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10572 SED SHELL STRIP \
10573 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10574 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10575 deplibs_check_method reload_flag reload_cmds need_locks \
10576 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10577 lt_cv_sys_global_symbol_to_c_name_address \
10578 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10579 old_postinstall_cmds old_postuninstall_cmds \
10580 compiler \
10581 CC \
10582 LD \
10583 lt_prog_compiler_wl \
10584 lt_prog_compiler_pic \
10585 lt_prog_compiler_static \
10586 lt_prog_compiler_no_builtin_flag \
10587 export_dynamic_flag_spec \
10588 thread_safe_flag_spec \
10589 whole_archive_flag_spec \
10590 enable_shared_with_static_runtimes \
10591 old_archive_cmds \
10592 old_archive_from_new_cmds \
10593 predep_objects \
10594 postdep_objects \
10595 predeps \
10596 postdeps \
10597 compiler_lib_search_path \
10598 archive_cmds \
10599 archive_expsym_cmds \
10600 postinstall_cmds \
10601 postuninstall_cmds \
10602 old_archive_from_expsyms_cmds \
10603 allow_undefined_flag \
10604 no_undefined_flag \
10605 export_symbols_cmds \
10606 hardcode_libdir_flag_spec \
10607 hardcode_libdir_flag_spec_ld \
10608 hardcode_libdir_separator \
10609 hardcode_automatic \
10610 module_cmds \
10611 module_expsym_cmds \
10612 lt_cv_prog_compiler_c_o \
10613 exclude_expsyms \
10614 include_expsyms; do
10615
10616 case $var in
10617 old_archive_cmds | \
10618 old_archive_from_new_cmds | \
10619 archive_cmds | \
10620 archive_expsym_cmds | \
10621 module_cmds | \
10622 module_expsym_cmds | \
10623 old_archive_from_expsyms_cmds | \
10624 export_symbols_cmds | \
10625 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10626 postinstall_cmds | postuninstall_cmds | \
10627 old_postinstall_cmds | old_postuninstall_cmds | \
10628 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10629 # Double-quote double-evaled strings.
10630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10631 ;;
10632 *)
10633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10634 ;;
10635 esac
10636 done
10637
10638 case $lt_echo in
10639 *'\$0 --fallback-echo"')
10640 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10641 ;;
10642 esac
10643
10644cfgfile="${ofile}T"
10645 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10646 $rm -f "$cfgfile"
10647 { echo "$as_me:$LINENO: creating $ofile" >&5
10648echo "$as_me: creating $ofile" >&6;}
10649
10650 cat <<__EOF__ >> "$cfgfile"
10651#! $SHELL
10652
10653# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10654# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10655# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10656#
10657# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10658# Free Software Foundation, Inc.
10659#
10660# This file is part of GNU Libtool:
10661# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10662#
10663# This program is free software; you can redistribute it and/or modify
10664# it under the terms of the GNU General Public License as published by
10665# the Free Software Foundation; either version 2 of the License, or
10666# (at your option) any later version.
10667#
10668# This program is distributed in the hope that it will be useful, but
10669# WITHOUT ANY WARRANTY; without even the implied warranty of
10670# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10671# General Public License for more details.
10672#
10673# You should have received a copy of the GNU General Public License
10674# along with this program; if not, write to the Free Software
10675# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10676#
10677# As a special exception to the GNU General Public License, if you
10678# distribute this file as part of a program that contains a
10679# configuration script generated by Autoconf, you may include it under
10680# the same distribution terms that you use for the rest of that program.
10681
10682# A sed program that does not truncate output.
10683SED=$lt_SED
10684
10685# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10686Xsed="$SED -e 1s/^X//"
10687
10688# The HP-UX ksh and POSIX shell print the target directory to stdout
10689# if CDPATH is set.
10690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10691
10692# The names of the tagged configurations supported by this script.
10693available_tags=
10694
10695# ### BEGIN LIBTOOL CONFIG
10696
10697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10698
10699# Shell to use when invoking shell scripts.
10700SHELL=$lt_SHELL
10701
10702# Whether or not to build shared libraries.
10703build_libtool_libs=$enable_shared
10704
10705# Whether or not to build static libraries.
10706build_old_libs=$enable_static
10707
10708# Whether or not to add -lc for building shared libraries.
10709build_libtool_need_lc=$archive_cmds_need_lc
10710
10711# Whether or not to disallow shared libs when runtime libs are static
10712allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10713
10714# Whether or not to optimize for fast installation.
10715fast_install=$enable_fast_install
10716
10717# The host system.
10718host_alias=$host_alias
10719host=$host
10720host_os=$host_os
10721
10722# The build system.
10723build_alias=$build_alias
10724build=$build
10725build_os=$build_os
10726
10727# An echo program that does not interpret backslashes.
10728echo=$lt_echo
10729
10730# The archiver.
10731AR=$lt_AR
10732AR_FLAGS=$lt_AR_FLAGS
10733
10734# A C compiler.
10735LTCC=$lt_LTCC
10736
10737# LTCC compiler flags.
10738LTCFLAGS=$lt_LTCFLAGS
10739
10740# A language-specific compiler.
10741CC=$lt_compiler
10742
10743# Is the compiler the GNU C compiler?
10744with_gcc=$GCC
10745
10746# An ERE matcher.
10747EGREP=$lt_EGREP
10748
10749# The linker used to build libraries.
10750LD=$lt_LD
10751
10752# Whether we need hard or soft links.
10753LN_S=$lt_LN_S
10754
10755# A BSD-compatible nm program.
10756NM=$lt_NM
10757
10758# A symbol stripping program
10759STRIP=$lt_STRIP
10760
10761# Used to examine libraries when file_magic_cmd begins "file"
10762MAGIC_CMD=$MAGIC_CMD
10763
10764# Used on cygwin: DLL creation program.
10765DLLTOOL="$DLLTOOL"
10766
10767# Used on cygwin: object dumper.
10768OBJDUMP="$OBJDUMP"
10769
10770# Used on cygwin: assembler.
10771AS="$AS"
10772
10773# The name of the directory that contains temporary libtool files.
10774objdir=$objdir
10775
10776# How to create reloadable object files.
10777reload_flag=$lt_reload_flag
10778reload_cmds=$lt_reload_cmds
10779
10780# How to pass a linker flag through the compiler.
10781wl=$lt_lt_prog_compiler_wl
10782
10783# Object file suffix (normally "o").
10784objext="$ac_objext"
10785
10786# Old archive suffix (normally "a").
10787libext="$libext"
10788
10789# Shared library suffix (normally ".so").
10790shrext_cmds='$shrext_cmds'
10791
10792# Executable file suffix (normally "").
10793exeext="$exeext"
10794
10795# Additional compiler flags for building library objects.
10796pic_flag=$lt_lt_prog_compiler_pic
10797pic_mode=$pic_mode
10798
10799# What is the maximum length of a command?
10800max_cmd_len=$lt_cv_sys_max_cmd_len
10801
10802# Does compiler simultaneously support -c and -o options?
10803compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10804
10805# Must we lock files when doing compilation?
10806need_locks=$lt_need_locks
10807
10808# Do we need the lib prefix for modules?
10809need_lib_prefix=$need_lib_prefix
10810
10811# Do we need a version for libraries?
10812need_version=$need_version
10813
10814# Whether dlopen is supported.
10815dlopen_support=$enable_dlopen
10816
10817# Whether dlopen of programs is supported.
10818dlopen_self=$enable_dlopen_self
10819
10820# Whether dlopen of statically linked programs is supported.
10821dlopen_self_static=$enable_dlopen_self_static
10822
10823# Compiler flag to prevent dynamic linking.
10824link_static_flag=$lt_lt_prog_compiler_static
10825
10826# Compiler flag to turn off builtin functions.
10827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10828
10829# Compiler flag to allow reflexive dlopens.
10830export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10831
10832# Compiler flag to generate shared objects directly from archives.
10833whole_archive_flag_spec=$lt_whole_archive_flag_spec
10834
10835# Compiler flag to generate thread-safe objects.
10836thread_safe_flag_spec=$lt_thread_safe_flag_spec
10837
10838# Library versioning type.
10839version_type=$version_type
10840
10841# Format of library name prefix.
10842libname_spec=$lt_libname_spec
10843
10844# List of archive names. First name is the real one, the rest are links.
10845# The last name is the one that the linker finds with -lNAME.
10846library_names_spec=$lt_library_names_spec
10847
10848# The coded name of the library, if different from the real name.
10849soname_spec=$lt_soname_spec
10850
10851# Commands used to build and install an old-style archive.
10852RANLIB=$lt_RANLIB
10853old_archive_cmds=$lt_old_archive_cmds
10854old_postinstall_cmds=$lt_old_postinstall_cmds
10855old_postuninstall_cmds=$lt_old_postuninstall_cmds
10856
10857# Create an old-style archive from a shared archive.
10858old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10859
10860# Create a temporary old-style archive to link instead of a shared archive.
10861old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10862
10863# Commands used to build and install a shared archive.
10864archive_cmds=$lt_archive_cmds
10865archive_expsym_cmds=$lt_archive_expsym_cmds
10866postinstall_cmds=$lt_postinstall_cmds
10867postuninstall_cmds=$lt_postuninstall_cmds
10868
10869# Commands used to build a loadable module (assumed same as above if empty)
10870module_cmds=$lt_module_cmds
10871module_expsym_cmds=$lt_module_expsym_cmds
10872
10873# Commands to strip libraries.
10874old_striplib=$lt_old_striplib
10875striplib=$lt_striplib
10876
10877# Dependencies to place before the objects being linked to create a
10878# shared library.
10879predep_objects=$lt_predep_objects
10880
10881# Dependencies to place after the objects being linked to create a
10882# shared library.
10883postdep_objects=$lt_postdep_objects
10884
10885# Dependencies to place before the objects being linked to create a
10886# shared library.
10887predeps=$lt_predeps
10888
10889# Dependencies to place after the objects being linked to create a
10890# shared library.
10891postdeps=$lt_postdeps
10892
10893# The library search path used internally by the compiler when linking
10894# a shared library.
10895compiler_lib_search_path=$lt_compiler_lib_search_path
10896
10897# Method to check whether dependent libraries are shared objects.
10898deplibs_check_method=$lt_deplibs_check_method
10899
10900# Command to use when deplibs_check_method == file_magic.
10901file_magic_cmd=$lt_file_magic_cmd
10902
10903# Flag that allows shared libraries with undefined symbols to be built.
10904allow_undefined_flag=$lt_allow_undefined_flag
10905
10906# Flag that forces no undefined symbols.
10907no_undefined_flag=$lt_no_undefined_flag
10908
10909# Commands used to finish a libtool library installation in a directory.
10910finish_cmds=$lt_finish_cmds
10911
10912# Same as above, but a single script fragment to be evaled but not shown.
10913finish_eval=$lt_finish_eval
10914
10915# Take the output of nm and produce a listing of raw symbols and C names.
10916global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10917
10918# Transform the output of nm in a proper C declaration
10919global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10920
10921# Transform the output of nm in a C name address pair
10922global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10923
10924# This is the shared library runtime path variable.
10925runpath_var=$runpath_var
10926
10927# This is the shared library path variable.
10928shlibpath_var=$shlibpath_var
10929
10930# Is shlibpath searched before the hard-coded library search path?
10931shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10932
10933# How to hardcode a shared library path into an executable.
10934hardcode_action=$hardcode_action
10935
10936# Whether we should hardcode library paths into libraries.
10937hardcode_into_libs=$hardcode_into_libs
10938
10939# Flag to hardcode \$libdir into a binary during linking.
10940# This must work even if \$libdir does not exist.
10941hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10942
10943# If ld is used when linking, flag to hardcode \$libdir into
10944# a binary during linking. This must work even if \$libdir does
10945# not exist.
10946hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10947
10948# Whether we need a single -rpath flag with a separated argument.
10949hardcode_libdir_separator=$lt_hardcode_libdir_separator
10950
10951# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10952# resulting binary.
10953hardcode_direct=$hardcode_direct
10954
10955# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10956# resulting binary.
10957hardcode_minus_L=$hardcode_minus_L
10958
10959# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10960# the resulting binary.
10961hardcode_shlibpath_var=$hardcode_shlibpath_var
10962
10963# Set to yes if building a shared library automatically hardcodes DIR into the library
10964# and all subsequent libraries and executables linked against it.
10965hardcode_automatic=$hardcode_automatic
10966
10967# Variables whose values should be saved in libtool wrapper scripts and
10968# restored at relink time.
10969variables_saved_for_relink="$variables_saved_for_relink"
10970
10971# Whether libtool must link a program against all its dependency libraries.
10972link_all_deplibs=$link_all_deplibs
10973
10974# Compile-time system search path for libraries
10975sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10976
10977# Run-time system search path for libraries
10978sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10979
10980# Fix the shell variable \$srcfile for the compiler.
10981fix_srcfile_path="$fix_srcfile_path"
10982
10983# Set to yes if exported symbols are required.
10984always_export_symbols=$always_export_symbols
10985
10986# The commands to list exported symbols.
10987export_symbols_cmds=$lt_export_symbols_cmds
10988
10989# The commands to extract the exported symbol list from a shared archive.
10990extract_expsyms_cmds=$lt_extract_expsyms_cmds
10991
10992# Symbols that should not be listed in the preloaded symbols.
10993exclude_expsyms=$lt_exclude_expsyms
10994
10995# Symbols that must always be exported.
10996include_expsyms=$lt_include_expsyms
10997
10998# ### END LIBTOOL CONFIG
10999
11000__EOF__
11001
11002
11003 case $host_os in
11004 aix3*)
11005 cat <<\EOF >> "$cfgfile"
11006
11007# AIX sometimes has problems with the GCC collect2 program. For some
11008# reason, if we set the COLLECT_NAMES environment variable, the problems
11009# vanish in a puff of smoke.
11010if test "X${COLLECT_NAMES+set}" != Xset; then
11011 COLLECT_NAMES=
11012 export COLLECT_NAMES
11013fi
11014EOF
11015 ;;
11016 esac
11017
11018 # We use sed instead of cat because bash on DJGPP gets confused if
11019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11020 # text mode, it properly converts lines to CR/LF. This bash problem
11021 # is reportedly fixed, but why not run on old versions too?
11022 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11023
11024 mv -f "$cfgfile" "$ofile" || \
11025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11026 chmod +x "$ofile"
11027
11028else
11029 # If there is no Makefile yet, we rely on a make rule to execute
11030 # `config.status --recheck' to rerun these tests and create the
11031 # libtool script then.
11032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11033 if test -f "$ltmain_in"; then
11034 test -f Makefile && make "$ltmain"
11035 fi
11036fi
11037
11038
11039ac_ext=c
11040ac_cpp='$CPP $CPPFLAGS'
11041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11043ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044
11045CC="$lt_save_CC"
11046
11047
11048# Check whether --with-tags or --without-tags was given.
11049if test "${with_tags+set}" = set; then
11050 withval="$with_tags"
11051 tagnames="$withval"
11052fi;
11053
11054if test -f "$ltmain" && test -n "$tagnames"; then
11055 if test ! -f "${ofile}"; then
11056 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11057echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11058 fi
11059
11060 if test -z "$LTCC"; then
11061 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11062 if test -z "$LTCC"; then
11063 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11064echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11065 else
11066 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11067echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11068 fi
11069 fi
11070 if test -z "$LTCFLAGS"; then
11071 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11072 fi
11073
11074 # Extract list of available tagged configurations in $ofile.
11075 # Note that this assumes the entire list is on one line.
11076 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11077
11078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11079 for tagname in $tagnames; do
11080 IFS="$lt_save_ifs"
11081 # Check whether tagname contains only valid characters
11082 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11083 "") ;;
11084 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11085echo "$as_me: error: invalid tag name: $tagname" >&2;}
11086 { (exit 1); exit 1; }; }
11087 ;;
11088 esac
11089
11090 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11091 then
11092 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11093echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11094 { (exit 1); exit 1; }; }
11095 fi
11096
11097 # Update the list of available tags.
11098 if test -n "$tagname"; then
11099 echo appending configuration tag \"$tagname\" to $ofile
11100
11101 case $tagname in
11102 CXX)
11103 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11104 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11105 (test "X$CXX" != "Xg++"))) ; then
11106 ac_ext=cc
11107ac_cpp='$CXXCPP $CPPFLAGS'
11108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11111
11112
11113
11114
11115archive_cmds_need_lc_CXX=no
11116allow_undefined_flag_CXX=
11117always_export_symbols_CXX=no
11118archive_expsym_cmds_CXX=
11119export_dynamic_flag_spec_CXX=
11120hardcode_direct_CXX=no
11121hardcode_libdir_flag_spec_CXX=
11122hardcode_libdir_flag_spec_ld_CXX=
11123hardcode_libdir_separator_CXX=
11124hardcode_minus_L_CXX=no
11125hardcode_shlibpath_var_CXX=unsupported
11126hardcode_automatic_CXX=no
11127module_cmds_CXX=
11128module_expsym_cmds_CXX=
11129link_all_deplibs_CXX=unknown
11130old_archive_cmds_CXX=$old_archive_cmds
11131no_undefined_flag_CXX=
11132whole_archive_flag_spec_CXX=
11133enable_shared_with_static_runtimes_CXX=no
11134
11135# Dependencies to place before and after the object being linked:
11136predep_objects_CXX=
11137postdep_objects_CXX=
11138predeps_CXX=
11139postdeps_CXX=
11140compiler_lib_search_path_CXX=
11141
11142# Source file extension for C++ test sources.
11143ac_ext=cpp
11144
11145# Object file extension for compiled C++ test sources.
11146objext=o
11147objext_CXX=$objext
11148
11149# Code to be used in simple compile tests
11150lt_simple_compile_test_code="int some_variable = 0;\n"
11151
11152# Code to be used in simple link tests
11153lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11154
11155# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11156
11157# If no C compiler was specified, use CC.
11158LTCC=${LTCC-"$CC"}
11159
11160# If no C compiler flags were specified, use CFLAGS.
11161LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11162
11163# Allow CC to be a program name with arguments.
11164compiler=$CC
11165
11166
11167# save warnings/boilerplate of simple test code
11168ac_outfile=conftest.$ac_objext
11169printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11170eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11171_lt_compiler_boilerplate=`cat conftest.err`
11172$rm conftest*
11173
11174ac_outfile=conftest.$ac_objext
11175printf "$lt_simple_link_test_code" >conftest.$ac_ext
11176eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11177_lt_linker_boilerplate=`cat conftest.err`
11178$rm conftest*
11179
11180
11181# Allow CC to be a program name with arguments.
11182lt_save_CC=$CC
11183lt_save_LD=$LD
11184lt_save_GCC=$GCC
11185GCC=$GXX
11186lt_save_with_gnu_ld=$with_gnu_ld
11187lt_save_path_LD=$lt_cv_path_LD
11188if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11189 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11190else
11191 $as_unset lt_cv_prog_gnu_ld
11192fi
11193if test -n "${lt_cv_path_LDCXX+set}"; then
11194 lt_cv_path_LD=$lt_cv_path_LDCXX
11195else
11196 $as_unset lt_cv_path_LD
11197fi
11198test -z "${LDCXX+set}" || LD=$LDCXX
11199CC=${CXX-"c++"}
11200compiler=$CC
11201compiler_CXX=$CC
11202for cc_temp in $compiler""; do
11203 case $cc_temp in
11204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11206 \-*) ;;
11207 *) break;;
11208 esac
11209done
11210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11211
11212
11213# We don't want -fno-exception wen compiling C++ code, so set the
11214# no_builtin_flag separately
11215if test "$GXX" = yes; then
11216 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11217else
11218 lt_prog_compiler_no_builtin_flag_CXX=
11219fi
11220
11221if test "$GXX" = yes; then
11222 # Set up default GNU C++ configuration
11223
11224
11225# Check whether --with-gnu-ld or --without-gnu-ld was given.
11226if test "${with_gnu_ld+set}" = set; then
11227 withval="$with_gnu_ld"
11228 test "$withval" = no || with_gnu_ld=yes
11229else
11230 with_gnu_ld=no
11231fi;
11232ac_prog=ld
11233if test "$GCC" = yes; then
11234 # Check if gcc -print-prog-name=ld gives a path.
11235 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11236echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11237 case $host in
11238 *-*-mingw*)
11239 # gcc leaves a trailing carriage return which upsets mingw
11240 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11241 *)
11242 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11243 esac
11244 case $ac_prog in
11245 # Accept absolute paths.
11246 [\\/]* | ?:[\\/]*)
11247 re_direlt='/[^/][^/]*/\.\./'
11248 # Canonicalize the pathname of ld
11249 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11250 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11251 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11252 done
11253 test -z "$LD" && LD="$ac_prog"
11254 ;;
11255 "")
11256 # If it fails, then pretend we aren't using GCC.
11257 ac_prog=ld
11258 ;;
11259 *)
11260 # If it is relative, then search for the first ld in PATH.
11261 with_gnu_ld=unknown
11262 ;;
11263 esac
11264elif test "$with_gnu_ld" = yes; then
11265 echo "$as_me:$LINENO: checking for GNU ld" >&5
11266echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11267else
11268 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11269echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11270fi
11271if test "${lt_cv_path_LD+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 if test -z "$LD"; then
11275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11276 for ac_dir in $PATH; do
11277 IFS="$lt_save_ifs"
11278 test -z "$ac_dir" && ac_dir=.
11279 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11280 lt_cv_path_LD="$ac_dir/$ac_prog"
11281 # Check to see if the program is GNU ld. I'd rather use --version,
11282 # but apparently some variants of GNU ld only accept -v.
11283 # Break only if it was the GNU/non-GNU ld that we prefer.
11284 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11285 *GNU* | *'with BFD'*)
11286 test "$with_gnu_ld" != no && break
11287 ;;
11288 *)
11289 test "$with_gnu_ld" != yes && break
11290 ;;
11291 esac
11292 fi
11293 done
11294 IFS="$lt_save_ifs"
11295else
11296 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11297fi
11298fi
11299
11300LD="$lt_cv_path_LD"
11301if test -n "$LD"; then
11302 echo "$as_me:$LINENO: result: $LD" >&5
11303echo "${ECHO_T}$LD" >&6
11304else
11305 echo "$as_me:$LINENO: result: no" >&5
11306echo "${ECHO_T}no" >&6
11307fi
11308test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11309echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11310 { (exit 1); exit 1; }; }
11311echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11312echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11313if test "${lt_cv_prog_gnu_ld+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11317case `$LD -v 2>&1 </dev/null` in
11318*GNU* | *'with BFD'*)
11319 lt_cv_prog_gnu_ld=yes
11320 ;;
11321*)
11322 lt_cv_prog_gnu_ld=no
11323 ;;
11324esac
11325fi
11326echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11327echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11328with_gnu_ld=$lt_cv_prog_gnu_ld
11329
11330
11331
11332 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11333 # archiving commands below assume that GNU ld is being used.
11334 if test "$with_gnu_ld" = yes; then
11335 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11336 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'
11337
11338 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11340
11341 # If archive_cmds runs LD, not CC, wlarc should be empty
11342 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11343 # investigate it a little bit more. (MM)
11344 wlarc='${wl}'
11345
11346 # ancient GNU ld didn't support --whole-archive et. al.
11347 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11348 grep 'no-whole-archive' > /dev/null; then
11349 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11350 else
11351 whole_archive_flag_spec_CXX=
11352 fi
11353 else
11354 with_gnu_ld=no
11355 wlarc=
11356
11357 # A generic and very simple default shared library creation
11358 # command for GNU C++ for the case where it uses the native
11359 # linker, instead of GNU ld. If possible, this setting should
11360 # overridden to take advantage of the native linker features on
11361 # the platform it is being used on.
11362 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11363 fi
11364
11365 # Commands to make compiler produce verbose output that lists
11366 # what "hidden" libraries, object files and flags are used when
11367 # linking a shared library.
11368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11369
11370else
11371 GXX=no
11372 with_gnu_ld=no
11373 wlarc=
11374fi
11375
11376# PORTME: fill in a description of your system's C++ link characteristics
11377echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11378echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11379ld_shlibs_CXX=yes
11380case $host_os in
11381 aix3*)
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 ;;
11385 aix4* | aix5*)
11386 if test "$host_cpu" = ia64; then
11387 # On IA64, the linker does run time linking by default, so we don't
11388 # have to do anything special.
11389 aix_use_runtimelinking=no
11390 exp_sym_flag='-Bexport'
11391 no_entry_flag=""
11392 else
11393 aix_use_runtimelinking=no
11394
11395 # Test if we are trying to use run time linking or normal
11396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11397 # need to do runtime linking.
11398 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11399 for ld_flag in $LDFLAGS; do
11400 case $ld_flag in
11401 *-brtl*)
11402 aix_use_runtimelinking=yes
11403 break
11404 ;;
11405 esac
11406 done
11407 ;;
11408 esac
11409
11410 exp_sym_flag='-bexport'
11411 no_entry_flag='-bnoentry'
11412 fi
11413
11414 # When large executables or shared objects are built, AIX ld can
11415 # have problems creating the table of contents. If linking a library
11416 # or program results in "error TOC overflow" add -mminimal-toc to
11417 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11418 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11419
11420 archive_cmds_CXX=''
11421 hardcode_direct_CXX=yes
11422 hardcode_libdir_separator_CXX=':'
11423 link_all_deplibs_CXX=yes
11424
11425 if test "$GXX" = yes; then
11426 case $host_os in aix4.[012]|aix4.[012].*)
11427 # We only want to do this on AIX 4.2 and lower, the check
11428 # below for broken collect2 doesn't work under 4.3+
11429 collect2name=`${CC} -print-prog-name=collect2`
11430 if test -f "$collect2name" && \
11431 strings "$collect2name" | grep resolve_lib_name >/dev/null
11432 then
11433 # We have reworked collect2
11434 hardcode_direct_CXX=yes
11435 else
11436 # We have old collect2
11437 hardcode_direct_CXX=unsupported
11438 # It fails to find uninstalled libraries when the uninstalled
11439 # path is not listed in the libpath. Setting hardcode_minus_L
11440 # to unsupported forces relinking
11441 hardcode_minus_L_CXX=yes
11442 hardcode_libdir_flag_spec_CXX='-L$libdir'
11443 hardcode_libdir_separator_CXX=
11444 fi
11445 ;;
11446 esac
11447 shared_flag='-shared'
11448 if test "$aix_use_runtimelinking" = yes; then
11449 shared_flag="$shared_flag "'${wl}-G'
11450 fi
11451 else
11452 # not using gcc
11453 if test "$host_cpu" = ia64; then
11454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11455 # chokes on -Wl,-G. The following line is correct:
11456 shared_flag='-G'
11457 else
11458 if test "$aix_use_runtimelinking" = yes; then
11459 shared_flag='${wl}-G'
11460 else
11461 shared_flag='${wl}-bM:SRE'
11462 fi
11463 fi
11464 fi
11465
11466 # It seems that -bexpall does not export symbols beginning with
11467 # underscore (_), so it is better to generate a list of symbols to export.
11468 always_export_symbols_CXX=yes
11469 if test "$aix_use_runtimelinking" = yes; then
11470 # Warning - without using the other runtime loading flags (-brtl),
11471 # -berok will link without error, but may produce a broken library.
11472 allow_undefined_flag_CXX='-berok'
11473 # Determine the default libpath from the value encoded in an empty executable.
11474 cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
11480
11481int
11482main ()
11483{
11484
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext conftest$ac_exeext
11490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510
11511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11512}'`
11513# Check for a 64-bit object if we didn't find anything.
11514if 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; }
11515}'`; fi
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520fi
11521rm -f conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11524
11525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11526
11527 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"
11528 else
11529 if test "$host_cpu" = ia64; then
11530 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11531 allow_undefined_flag_CXX="-z nodefs"
11532 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"
11533 else
11534 # Determine the default libpath from the value encoded in an empty executable.
11535 cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h. */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h. */
11541
11542int
11543main ()
11544{
11545
11546 ;
11547 return 0;
11548}
11549_ACEOF
11550rm -f conftest.$ac_objext conftest$ac_exeext
11551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552 (eval $ac_link) 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571
11572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11573}'`
11574# Check for a 64-bit object if we didn't find anything.
11575if 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; }
11576}'`; fi
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581fi
11582rm -f conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11585
11586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11587 # Warning - without using the other run time loading flags,
11588 # -berok will link without error, but may produce a broken library.
11589 no_undefined_flag_CXX=' ${wl}-bernotok'
11590 allow_undefined_flag_CXX=' ${wl}-berok'
11591 # Exported symbols can be pulled into shared objects from archives
11592 whole_archive_flag_spec_CXX='$convenience'
11593 archive_cmds_need_lc_CXX=yes
11594 # This is similar to how AIX traditionally builds its shared libraries.
11595 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'
11596 fi
11597 fi
11598 ;;
11599
11600 beos*)
11601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11602 allow_undefined_flag_CXX=unsupported
11603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11604 # support --undefined. This deserves some investigation. FIXME
11605 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11606 else
11607 ld_shlibs_CXX=no
11608 fi
11609 ;;
11610
11611 chorus*)
11612 case $cc_basename in
11613 *)
11614 # FIXME: insert proper C++ library support
11615 ld_shlibs_CXX=no
11616 ;;
11617 esac
11618 ;;
11619
11620 cygwin* | mingw* | pw32*)
11621 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11622 # as there is no search path for DLLs.
11623 hardcode_libdir_flag_spec_CXX='-L$libdir'
11624 allow_undefined_flag_CXX=unsupported
11625 always_export_symbols_CXX=no
11626 enable_shared_with_static_runtimes_CXX=yes
11627
11628 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11629 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'
11630 # If the export-symbols file already is a .def file (1st line
11631 # is EXPORTS), use it as is; otherwise, prepend...
11632 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11633 cp $export_symbols $output_objdir/$soname.def;
11634 else
11635 echo EXPORTS > $output_objdir/$soname.def;
11636 cat $export_symbols >> $output_objdir/$soname.def;
11637 fi~
11638 $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'
11639 else
11640 ld_shlibs_CXX=no
11641 fi
11642 ;;
11643 darwin* | rhapsody*)
11644 case $host_os in
11645 rhapsody* | darwin1.[012])
11646 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11647 ;;
11648 *) # Darwin 1.3 on
11649 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11650 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11651 else
11652 case ${MACOSX_DEPLOYMENT_TARGET} in
11653 10.[012])
11654 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11655 ;;
11656 10.*)
11657 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11658 ;;
11659 esac
11660 fi
11661 ;;
11662 esac
11663 archive_cmds_need_lc_CXX=no
11664 hardcode_direct_CXX=no
11665 hardcode_automatic_CXX=yes
11666 hardcode_shlibpath_var_CXX=unsupported
11667 whole_archive_flag_spec_CXX=''
11668 link_all_deplibs_CXX=yes
11669
11670 if test "$GXX" = yes ; then
11671 lt_int_apple_cc_single_mod=no
11672 output_verbose_link_cmd='echo'
11673 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11674 lt_int_apple_cc_single_mod=yes
11675 fi
11676 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11677 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11678 else
11679 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'
11680 fi
11681 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11682 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11683 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11684 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}'
11685 else
11686 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}'
11687 fi
11688 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}'
11689 else
11690 case $cc_basename in
11691 xlc*)
11692 output_verbose_link_cmd='echo'
11693 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'
11694 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11695 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11696 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}'
11697 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}'
11698 ;;
11699 *)
11700 ld_shlibs_CXX=no
11701 ;;
11702 esac
11703 fi
11704 ;;
11705
11706 dgux*)
11707 case $cc_basename in
11708 ec++*)
11709 # FIXME: insert proper C++ library support
11710 ld_shlibs_CXX=no
11711 ;;
11712 ghcx*)
11713 # Green Hills C++ Compiler
11714 # FIXME: insert proper C++ library support
11715 ld_shlibs_CXX=no
11716 ;;
11717 *)
11718 # FIXME: insert proper C++ library support
11719 ld_shlibs_CXX=no
11720 ;;
11721 esac
11722 ;;
11723 freebsd[12]*)
11724 # C++ shared libraries reported to be fairly broken before switch to ELF
11725 ld_shlibs_CXX=no
11726 ;;
11727 freebsd-elf*)
11728 archive_cmds_need_lc_CXX=no
11729 ;;
11730 freebsd* | kfreebsd*-gnu | dragonfly*)
11731 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11732 # conventions
11733 ld_shlibs_CXX=yes
11734 ;;
11735 gnu*)
11736 ;;
11737 hpux9*)
11738 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11739 hardcode_libdir_separator_CXX=:
11740 export_dynamic_flag_spec_CXX='${wl}-E'
11741 hardcode_direct_CXX=yes
11742 hardcode_minus_L_CXX=yes # Not in the search PATH,
11743 # but as the default
11744 # location of the library.
11745
11746 case $cc_basename in
11747 CC*)
11748 # FIXME: insert proper C++ library support
11749 ld_shlibs_CXX=no
11750 ;;
11751 aCC*)
11752 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'
11753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
11756 #
11757 # There doesn't appear to be a way to prevent this compiler from
11758 # explicitly linking system object files so we need to strip them
11759 # from the output so that they don't get included in the library
11760 # dependencies.
11761 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'
11762 ;;
11763 *)
11764 if test "$GXX" = yes; then
11765 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'
11766 else
11767 # FIXME: insert proper C++ library support
11768 ld_shlibs_CXX=no
11769 fi
11770 ;;
11771 esac
11772 ;;
11773 hpux10*|hpux11*)
11774 if test $with_gnu_ld = no; then
11775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11776 hardcode_libdir_separator_CXX=:
11777
11778 case $host_cpu in
11779 hppa*64*|ia64*)
11780 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11781 ;;
11782 *)
11783 export_dynamic_flag_spec_CXX='${wl}-E'
11784 ;;
11785 esac
11786 fi
11787 case $host_cpu in
11788 hppa*64*|ia64*)
11789 hardcode_direct_CXX=no
11790 hardcode_shlibpath_var_CXX=no
11791 ;;
11792 *)
11793 hardcode_direct_CXX=yes
11794 hardcode_minus_L_CXX=yes # Not in the search PATH,
11795 # but as the default
11796 # location of the library.
11797 ;;
11798 esac
11799
11800 case $cc_basename in
11801 CC*)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 aCC*)
11806 case $host_cpu in
11807 hppa*64*)
11808 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11809 ;;
11810 ia64*)
11811 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11812 ;;
11813 *)
11814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11815 ;;
11816 esac
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11820 #
11821 # There doesn't appear to be a way to prevent this compiler from
11822 # explicitly linking system object files so we need to strip them
11823 # from the output so that they don't get included in the library
11824 # dependencies.
11825 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'
11826 ;;
11827 *)
11828 if test "$GXX" = yes; then
11829 if test $with_gnu_ld = no; then
11830 case $host_cpu in
11831 hppa*64*)
11832 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11833 ;;
11834 ia64*)
11835 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11836 ;;
11837 *)
11838 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'
11839 ;;
11840 esac
11841 fi
11842 else
11843 # FIXME: insert proper C++ library support
11844 ld_shlibs_CXX=no
11845 fi
11846 ;;
11847 esac
11848 ;;
11849 interix3*)
11850 hardcode_direct_CXX=no
11851 hardcode_shlibpath_var_CXX=no
11852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11853 export_dynamic_flag_spec_CXX='${wl}-E'
11854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11855 # Instead, shared libraries are loaded at an image base (0x10000000 by
11856 # default) and relocated if they conflict, which is a slow very memory
11857 # consuming and fragmenting process. To avoid this, we pick a random,
11858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11860 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'
11861 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'
11862 ;;
11863 irix5* | irix6*)
11864 case $cc_basename in
11865 CC*)
11866 # SGI C++
11867 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'
11868
11869 # Archives containing C++ object files must be created using
11870 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11871 # necessary to make sure instantiated templates are included
11872 # in the archive.
11873 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11874 ;;
11875 *)
11876 if test "$GXX" = yes; then
11877 if test "$with_gnu_ld" = no; then
11878 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'
11879 else
11880 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'
11881 fi
11882 fi
11883 link_all_deplibs_CXX=yes
11884 ;;
11885 esac
11886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11887 hardcode_libdir_separator_CXX=:
11888 ;;
11889 linux*)
11890 case $cc_basename in
11891 KCC*)
11892 # Kuck and Associates, Inc. (KAI) C++ Compiler
11893
11894 # KCC will only create a shared library if the output file
11895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11896 # to its proper name (with version) after linking.
11897 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'
11898 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'
11899 # Commands to make compiler produce verbose output that lists
11900 # what "hidden" libraries, object files and flags are used when
11901 # linking a shared library.
11902 #
11903 # There doesn't appear to be a way to prevent this compiler from
11904 # explicitly linking system object files so we need to strip them
11905 # from the output so that they don't get included in the library
11906 # dependencies.
11907 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'
11908
11909 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11911
11912 # Archives containing C++ object files must be created using
11913 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11914 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11915 ;;
11916 icpc*)
11917 # Intel C++
11918 with_gnu_ld=yes
11919 # version 8.0 and above of icpc choke on multiply defined symbols
11920 # if we add $predep_objects and $postdep_objects, however 7.1 and
11921 # earlier do not add the objects themselves.
11922 case `$CC -V 2>&1` in
11923 *"Version 7."*)
11924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925 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'
11926 ;;
11927 *) # Version 8.0 or newer
11928 tmp_idyn=
11929 case $host_cpu in
11930 ia64*) tmp_idyn=' -i_dynamic';;
11931 esac
11932 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11933 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'
11934 ;;
11935 esac
11936 archive_cmds_need_lc_CXX=no
11937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11939 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11940 ;;
11941 pgCC*)
11942 # Portland Group C++ compiler
11943 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11944 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'
11945
11946 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948 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'
11949 ;;
11950 cxx*)
11951 # Compaq C++
11952 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11953 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'
11954
11955 runpath_var=LD_RUN_PATH
11956 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11957 hardcode_libdir_separator_CXX=:
11958
11959 # Commands to make compiler produce verbose output that lists
11960 # what "hidden" libraries, object files and flags are used when
11961 # linking a shared library.
11962 #
11963 # There doesn't appear to be a way to prevent this compiler from
11964 # explicitly linking system object files so we need to strip them
11965 # from the output so that they don't get included in the library
11966 # dependencies.
11967 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'
11968 ;;
11969 esac
11970 ;;
11971 lynxos*)
11972 # FIXME: insert proper C++ library support
11973 ld_shlibs_CXX=no
11974 ;;
11975 m88k*)
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 ;;
11979 mvs*)
11980 case $cc_basename in
11981 cxx*)
11982 # FIXME: insert proper C++ library support
11983 ld_shlibs_CXX=no
11984 ;;
11985 *)
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11988 ;;
11989 esac
11990 ;;
11991 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11993 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11994 wlarc=
11995 hardcode_libdir_flag_spec_CXX='-R$libdir'
11996 hardcode_direct_CXX=yes
11997 hardcode_shlibpath_var_CXX=no
11998 fi
11999 # Workaround some broken pre-1.5 toolchains
12000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12001 ;;
12002 openbsd2*)
12003 # C++ shared libraries are fairly broken
12004 ld_shlibs_CXX=no
12005 ;;
12006 openbsd*)
12007 hardcode_direct_CXX=yes
12008 hardcode_shlibpath_var_CXX=no
12009 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12010 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12012 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12013 export_dynamic_flag_spec_CXX='${wl}-E'
12014 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12015 fi
12016 output_verbose_link_cmd='echo'
12017 ;;
12018 osf3*)
12019 case $cc_basename in
12020 KCC*)
12021 # Kuck and Associates, Inc. (KAI) C++ Compiler
12022
12023 # KCC will only create a shared library if the output file
12024 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12025 # to its proper name (with version) after linking.
12026 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'
12027
12028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12029 hardcode_libdir_separator_CXX=:
12030
12031 # Archives containing C++ object files must be created using
12032 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12033 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12034
12035 ;;
12036 RCC*)
12037 # Rational C++ 2.4.1
12038 # FIXME: insert proper C++ library support
12039 ld_shlibs_CXX=no
12040 ;;
12041 cxx*)
12042 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12043 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'
12044
12045 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12046 hardcode_libdir_separator_CXX=:
12047
12048 # Commands to make compiler produce verbose output that lists
12049 # what "hidden" libraries, object files and flags are used when
12050 # linking a shared library.
12051 #
12052 # There doesn't appear to be a way to prevent this compiler from
12053 # explicitly linking system object files so we need to strip them
12054 # from the output so that they don't get included in the library
12055 # dependencies.
12056 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'
12057 ;;
12058 *)
12059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12060 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12061 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'
12062
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12064 hardcode_libdir_separator_CXX=:
12065
12066 # Commands to make compiler produce verbose output that lists
12067 # what "hidden" libraries, object files and flags are used when
12068 # linking a shared library.
12069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12070
12071 else
12072 # FIXME: insert proper C++ library support
12073 ld_shlibs_CXX=no
12074 fi
12075 ;;
12076 esac
12077 ;;
12078 osf4* | osf5*)
12079 case $cc_basename in
12080 KCC*)
12081 # Kuck and Associates, Inc. (KAI) C++ Compiler
12082
12083 # KCC will only create a shared library if the output file
12084 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12085 # to its proper name (with version) after linking.
12086 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'
12087
12088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12089 hardcode_libdir_separator_CXX=:
12090
12091 # Archives containing C++ object files must be created using
12092 # the KAI C++ compiler.
12093 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12094 ;;
12095 RCC*)
12096 # Rational C++ 2.4.1
12097 # FIXME: insert proper C++ library support
12098 ld_shlibs_CXX=no
12099 ;;
12100 cxx*)
12101 allow_undefined_flag_CXX=' -expect_unresolved \*'
12102 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'
12103 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12104 echo "-hidden">> $lib.exp~
12105 $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~
12106 $rm $lib.exp'
12107
12108 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12109 hardcode_libdir_separator_CXX=:
12110
12111 # Commands to make compiler produce verbose output that lists
12112 # what "hidden" libraries, object files and flags are used when
12113 # linking a shared library.
12114 #
12115 # There doesn't appear to be a way to prevent this compiler from
12116 # explicitly linking system object files so we need to strip them
12117 # from the output so that they don't get included in the library
12118 # dependencies.
12119 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'
12120 ;;
12121 *)
12122 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12123 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12124 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'
12125
12126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12127 hardcode_libdir_separator_CXX=:
12128
12129 # Commands to make compiler produce verbose output that lists
12130 # what "hidden" libraries, object files and flags are used when
12131 # linking a shared library.
12132 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12133
12134 else
12135 # FIXME: insert proper C++ library support
12136 ld_shlibs_CXX=no
12137 fi
12138 ;;
12139 esac
12140 ;;
12141 psos*)
12142 # FIXME: insert proper C++ library support
12143 ld_shlibs_CXX=no
12144 ;;
12145 sunos4*)
12146 case $cc_basename in
12147 CC*)
12148 # Sun C++ 4.x
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12151 ;;
12152 lcc*)
12153 # Lucid
12154 # FIXME: insert proper C++ library support
12155 ld_shlibs_CXX=no
12156 ;;
12157 *)
12158 # FIXME: insert proper C++ library support
12159 ld_shlibs_CXX=no
12160 ;;
12161 esac
12162 ;;
12163 solaris*)
12164 case $cc_basename in
12165 CC*)
12166 # Sun C++ 4.2, 5.x and Centerline C++
12167 archive_cmds_need_lc_CXX=yes
12168 no_undefined_flag_CXX=' -zdefs'
12169 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12170 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12171 $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'
12172
12173 hardcode_libdir_flag_spec_CXX='-R$libdir'
12174 hardcode_shlibpath_var_CXX=no
12175 case $host_os in
12176 solaris2.[0-5] | solaris2.[0-5].*) ;;
12177 *)
12178 # The C++ compiler is used as linker so we must use $wl
12179 # flag to pass the commands to the underlying system
12180 # linker. We must also pass each convience library through
12181 # to the system linker between allextract/defaultextract.
12182 # The C++ compiler will combine linker options so we
12183 # cannot just pass the convience library names through
12184 # without $wl.
12185 # Supported since Solaris 2.6 (maybe 2.5.1?)
12186 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'
12187 ;;
12188 esac
12189 link_all_deplibs_CXX=yes
12190
12191 output_verbose_link_cmd='echo'
12192
12193 # Archives containing C++ object files must be created using
12194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12195 # necessary to make sure instantiated templates are included
12196 # in the archive.
12197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12198 ;;
12199 gcx*)
12200 # Green Hills C++ Compiler
12201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12202
12203 # The C++ compiler must be used to create the archive.
12204 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12205 ;;
12206 *)
12207 # GNU C++ compiler with Solaris linker
12208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12210 if $CC --version | grep -v '^2\.7' > /dev/null; then
12211 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12214
12215 # Commands to make compiler produce verbose output that lists
12216 # what "hidden" libraries, object files and flags are used when
12217 # linking a shared library.
12218 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12219 else
12220 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12221 # platform.
12222 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12223 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12224 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12225
12226 # Commands to make compiler produce verbose output that lists
12227 # what "hidden" libraries, object files and flags are used when
12228 # linking a shared library.
12229 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12230 fi
12231
12232 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12233 fi
12234 ;;
12235 esac
12236 ;;
12237 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12238 no_undefined_flag_CXX='${wl}-z,text'
12239 archive_cmds_need_lc_CXX=no
12240 hardcode_shlibpath_var_CXX=no
12241 runpath_var='LD_RUN_PATH'
12242
12243 case $cc_basename in
12244 CC*)
12245 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12246 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12247 ;;
12248 *)
12249 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12250 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12251 ;;
12252 esac
12253 ;;
12254 sysv5* | sco3.2v5* | sco5v6*)
12255 # Note: We can NOT use -z defs as we might desire, because we do not
12256 # link with -lc, and that would cause any symbols used from libc to
12257 # always be unresolved, which means just about no library would
12258 # ever link correctly. If we're not using GNU ld we use -z text
12259 # though, which does catch some bad symbols but isn't as heavy-handed
12260 # as -z defs.
12261 # For security reasons, it is highly recommended that you always
12262 # use absolute paths for naming shared libraries, and exclude the
12263 # DT_RUNPATH tag from executables and libraries. But doing so
12264 # requires that you compile everything twice, which is a pain.
12265 # So that behaviour is only enabled if SCOABSPATH is set to a
12266 # non-empty value in the environment. Most likely only useful for
12267 # creating official distributions of packages.
12268 # This is a hack until libtool officially supports absolute path
12269 # names for shared libraries.
12270 no_undefined_flag_CXX='${wl}-z,text'
12271 allow_undefined_flag_CXX='${wl}-z,nodefs'
12272 archive_cmds_need_lc_CXX=no
12273 hardcode_shlibpath_var_CXX=no
12274 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12275 hardcode_libdir_separator_CXX=':'
12276 link_all_deplibs_CXX=yes
12277 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12278 runpath_var='LD_RUN_PATH'
12279
12280 case $cc_basename in
12281 CC*)
12282 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 ;;
12285 *)
12286 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 ;;
12289 esac
12290 ;;
12291 tandem*)
12292 case $cc_basename in
12293 NCC*)
12294 # NonStop-UX NCC 3.20
12295 # FIXME: insert proper C++ library support
12296 ld_shlibs_CXX=no
12297 ;;
12298 *)
12299 # FIXME: insert proper C++ library support
12300 ld_shlibs_CXX=no
12301 ;;
12302 esac
12303 ;;
12304 vxworks*)
12305 # FIXME: insert proper C++ library support
12306 ld_shlibs_CXX=no
12307 ;;
12308 *)
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12311 ;;
12312esac
12313echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12314echo "${ECHO_T}$ld_shlibs_CXX" >&6
12315test "$ld_shlibs_CXX" = no && can_build_shared=no
12316
12317GCC_CXX="$GXX"
12318LD_CXX="$LD"
12319
12320
12321cat > conftest.$ac_ext <<EOF
12322class Foo
12323{
12324public:
12325 Foo (void) { a = 0; }
12326private:
12327 int a;
12328};
12329EOF
12330
12331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12332 (eval $ac_compile) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; then
12336 # Parse the compiler output and extract the necessary
12337 # objects, libraries and library flags.
12338
12339 # Sentinel used to keep track of whether or not we are before
12340 # the conftest object file.
12341 pre_test_object_deps_done=no
12342
12343 # The `*' in the case matches for architectures that use `case' in
12344 # $output_verbose_cmd can trigger glob expansion during the loop
12345 # eval without this substitution.
12346 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12347
12348 for p in `eval $output_verbose_link_cmd`; do
12349 case $p in
12350
12351 -L* | -R* | -l*)
12352 # Some compilers place space between "-{L,R}" and the path.
12353 # Remove the space.
12354 if test $p = "-L" \
12355 || test $p = "-R"; then
12356 prev=$p
12357 continue
12358 else
12359 prev=
12360 fi
12361
12362 if test "$pre_test_object_deps_done" = no; then
12363 case $p in
12364 -L* | -R*)
12365 # Internal compiler library paths should come after those
12366 # provided the user. The postdeps already come after the
12367 # user supplied libs so there is no need to process them.
12368 if test -z "$compiler_lib_search_path_CXX"; then
12369 compiler_lib_search_path_CXX="${prev}${p}"
12370 else
12371 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12372 fi
12373 ;;
12374 # The "-l" case would never come before the object being
12375 # linked, so don't bother handling this case.
12376 esac
12377 else
12378 if test -z "$postdeps_CXX"; then
12379 postdeps_CXX="${prev}${p}"
12380 else
12381 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12382 fi
12383 fi
12384 ;;
12385
12386 *.$objext)
12387 # This assumes that the test object file only shows up
12388 # once in the compiler output.
12389 if test "$p" = "conftest.$objext"; then
12390 pre_test_object_deps_done=yes
12391 continue
12392 fi
12393
12394 if test "$pre_test_object_deps_done" = no; then
12395 if test -z "$predep_objects_CXX"; then
12396 predep_objects_CXX="$p"
12397 else
12398 predep_objects_CXX="$predep_objects_CXX $p"
12399 fi
12400 else
12401 if test -z "$postdep_objects_CXX"; then
12402 postdep_objects_CXX="$p"
12403 else
12404 postdep_objects_CXX="$postdep_objects_CXX $p"
12405 fi
12406 fi
12407 ;;
12408
12409 *) ;; # Ignore the rest.
12410
12411 esac
12412 done
12413
12414 # Clean up.
12415 rm -f a.out a.exe
12416else
12417 echo "libtool.m4: error: problem compiling CXX test program"
12418fi
12419
12420$rm -f confest.$objext
12421
12422# PORTME: override above test on systems where it is broken
12423case $host_os in
12424interix3*)
12425 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12426 # hack all around it, let's just trust "g++" to DTRT.
12427 predep_objects_CXX=
12428 postdep_objects_CXX=
12429 postdeps_CXX=
12430 ;;
12431
12432solaris*)
12433 case $cc_basename in
12434 CC*)
12435 # Adding this requires a known-good setup of shared libraries for
12436 # Sun compiler versions before 5.6, else PIC objects from an old
12437 # archive will be linked into the output, leading to subtle bugs.
12438 postdeps_CXX='-lCstd -lCrun'
12439 ;;
12440 esac
12441 ;;
12442esac
12443
12444
12445case " $postdeps_CXX " in
12446*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12447esac
12448
12449lt_prog_compiler_wl_CXX=
12450lt_prog_compiler_pic_CXX=
12451lt_prog_compiler_static_CXX=
12452
12453echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12454echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12455
12456 # C++ specific cases for pic, static, wl, etc.
12457 if test "$GXX" = yes; then
12458 lt_prog_compiler_wl_CXX='-Wl,'
12459 lt_prog_compiler_static_CXX='-static'
12460
12461 case $host_os in
12462 aix*)
12463 # All AIX code is PIC.
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_CXX='-Bstatic'
12467 fi
12468 ;;
12469 amigaos*)
12470 # FIXME: we need at least 68020 code to build shared libraries, but
12471 # adding the `-m68020' flag to GCC prevents building anything better,
12472 # like `-m68040'.
12473 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12474 ;;
12475 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12476 # PIC is the default for these OSes.
12477 ;;
12478 mingw* | os2* | pw32*)
12479 # This hack is so that the source file can tell whether it is being
12480 # built for inclusion in a dll (and should export symbols for example).
12481 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12482 ;;
12483 darwin* | rhapsody*)
12484 # PIC is the default on this platform
12485 # Common symbols not allowed in MH_DYLIB files
12486 lt_prog_compiler_pic_CXX='-fno-common'
12487 ;;
12488 *djgpp*)
12489 # DJGPP does not support shared libraries at all
12490 lt_prog_compiler_pic_CXX=
12491 ;;
12492 interix3*)
12493 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12494 # Instead, we relocate shared libraries at runtime.
12495 ;;
12496 sysv4*MP*)
12497 if test -d /usr/nec; then
12498 lt_prog_compiler_pic_CXX=-Kconform_pic
12499 fi
12500 ;;
12501 hpux*)
12502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12503 # not for PA HP-UX.
12504 case $host_cpu in
12505 hppa*64*|ia64*)
12506 ;;
12507 *)
12508 lt_prog_compiler_pic_CXX='-fPIC'
12509 ;;
12510 esac
12511 ;;
12512 *)
12513 lt_prog_compiler_pic_CXX='-fPIC'
12514 ;;
12515 esac
12516 else
12517 case $host_os in
12518 aix4* | aix5*)
12519 # All AIX code is PIC.
12520 if test "$host_cpu" = ia64; then
12521 # AIX 5 now supports IA64 processor
12522 lt_prog_compiler_static_CXX='-Bstatic'
12523 else
12524 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12525 fi
12526 ;;
12527 chorus*)
12528 case $cc_basename in
12529 cxch68*)
12530 # Green Hills C++ Compiler
12531 # _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"
12532 ;;
12533 esac
12534 ;;
12535 darwin*)
12536 # PIC is the default on this platform
12537 # Common symbols not allowed in MH_DYLIB files
12538 case $cc_basename in
12539 xlc*)
12540 lt_prog_compiler_pic_CXX='-qnocommon'
12541 lt_prog_compiler_wl_CXX='-Wl,'
12542 ;;
12543 esac
12544 ;;
12545 dgux*)
12546 case $cc_basename in
12547 ec++*)
12548 lt_prog_compiler_pic_CXX='-KPIC'
12549 ;;
12550 ghcx*)
12551 # Green Hills C++ Compiler
12552 lt_prog_compiler_pic_CXX='-pic'
12553 ;;
12554 *)
12555 ;;
12556 esac
12557 ;;
12558 freebsd* | kfreebsd*-gnu | dragonfly*)
12559 # FreeBSD uses GNU C++
12560 ;;
12561 hpux9* | hpux10* | hpux11*)
12562 case $cc_basename in
12563 CC*)
12564 lt_prog_compiler_wl_CXX='-Wl,'
12565 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12566 if test "$host_cpu" != ia64; then
12567 lt_prog_compiler_pic_CXX='+Z'
12568 fi
12569 ;;
12570 aCC*)
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12573 case $host_cpu in
12574 hppa*64*|ia64*)
12575 # +Z the default
12576 ;;
12577 *)
12578 lt_prog_compiler_pic_CXX='+Z'
12579 ;;
12580 esac
12581 ;;
12582 *)
12583 ;;
12584 esac
12585 ;;
12586 interix*)
12587 # This is c89, which is MS Visual C++ (no shared libs)
12588 # Anyone wants to do a port?
12589 ;;
12590 irix5* | irix6* | nonstopux*)
12591 case $cc_basename in
12592 CC*)
12593 lt_prog_compiler_wl_CXX='-Wl,'
12594 lt_prog_compiler_static_CXX='-non_shared'
12595 # CC pic flag -KPIC is the default.
12596 ;;
12597 *)
12598 ;;
12599 esac
12600 ;;
12601 linux*)
12602 case $cc_basename in
12603 KCC*)
12604 # KAI C++ Compiler
12605 lt_prog_compiler_wl_CXX='--backend -Wl,'
12606 lt_prog_compiler_pic_CXX='-fPIC'
12607 ;;
12608 icpc* | ecpc*)
12609 # Intel C++
12610 lt_prog_compiler_wl_CXX='-Wl,'
12611 lt_prog_compiler_pic_CXX='-KPIC'
12612 lt_prog_compiler_static_CXX='-static'
12613 ;;
12614 pgCC*)
12615 # Portland Group C++ compiler.
12616 lt_prog_compiler_wl_CXX='-Wl,'
12617 lt_prog_compiler_pic_CXX='-fpic'
12618 lt_prog_compiler_static_CXX='-Bstatic'
12619 ;;
12620 cxx*)
12621 # Compaq C++
12622 # Make sure the PIC flag is empty. It appears that all Alpha
12623 # Linux and Compaq Tru64 Unix objects are PIC.
12624 lt_prog_compiler_pic_CXX=
12625 lt_prog_compiler_static_CXX='-non_shared'
12626 ;;
12627 *)
12628 ;;
12629 esac
12630 ;;
12631 lynxos*)
12632 ;;
12633 m88k*)
12634 ;;
12635 mvs*)
12636 case $cc_basename in
12637 cxx*)
12638 lt_prog_compiler_pic_CXX='-W c,exportall'
12639 ;;
12640 *)
12641 ;;
12642 esac
12643 ;;
12644 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12645 ;;
12646 osf3* | osf4* | osf5*)
12647 case $cc_basename in
12648 KCC*)
12649 lt_prog_compiler_wl_CXX='--backend -Wl,'
12650 ;;
12651 RCC*)
12652 # Rational C++ 2.4.1
12653 lt_prog_compiler_pic_CXX='-pic'
12654 ;;
12655 cxx*)
12656 # Digital/Compaq C++
12657 lt_prog_compiler_wl_CXX='-Wl,'
12658 # Make sure the PIC flag is empty. It appears that all Alpha
12659 # Linux and Compaq Tru64 Unix objects are PIC.
12660 lt_prog_compiler_pic_CXX=
12661 lt_prog_compiler_static_CXX='-non_shared'
12662 ;;
12663 *)
12664 ;;
12665 esac
12666 ;;
12667 psos*)
12668 ;;
12669 solaris*)
12670 case $cc_basename in
12671 CC*)
12672 # Sun C++ 4.2, 5.x and Centerline C++
12673 lt_prog_compiler_pic_CXX='-KPIC'
12674 lt_prog_compiler_static_CXX='-Bstatic'
12675 lt_prog_compiler_wl_CXX='-Qoption ld '
12676 ;;
12677 gcx*)
12678 # Green Hills C++ Compiler
12679 lt_prog_compiler_pic_CXX='-PIC'
12680 ;;
12681 *)
12682 ;;
12683 esac
12684 ;;
12685 sunos4*)
12686 case $cc_basename in
12687 CC*)
12688 # Sun C++ 4.x
12689 lt_prog_compiler_pic_CXX='-pic'
12690 lt_prog_compiler_static_CXX='-Bstatic'
12691 ;;
12692 lcc*)
12693 # Lucid
12694 lt_prog_compiler_pic_CXX='-pic'
12695 ;;
12696 *)
12697 ;;
12698 esac
12699 ;;
12700 tandem*)
12701 case $cc_basename in
12702 NCC*)
12703 # NonStop-UX NCC 3.20
12704 lt_prog_compiler_pic_CXX='-KPIC'
12705 ;;
12706 *)
12707 ;;
12708 esac
12709 ;;
12710 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12711 case $cc_basename in
12712 CC*)
12713 lt_prog_compiler_wl_CXX='-Wl,'
12714 lt_prog_compiler_pic_CXX='-KPIC'
12715 lt_prog_compiler_static_CXX='-Bstatic'
12716 ;;
12717 esac
12718 ;;
12719 vxworks*)
12720 ;;
12721 *)
12722 lt_prog_compiler_can_build_shared_CXX=no
12723 ;;
12724 esac
12725 fi
12726
12727echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12728echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12729
12730#
12731# Check to make sure the PIC flag actually works.
12732#
12733if test -n "$lt_prog_compiler_pic_CXX"; then
12734
12735echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12736echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12737if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740 lt_prog_compiler_pic_works_CXX=no
12741 ac_outfile=conftest.$ac_objext
12742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12743 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12744 # Insert the option either (1) after the last *FLAGS variable, or
12745 # (2) before a word containing "conftest.", or (3) at the end.
12746 # Note that $ac_compile itself does not contain backslashes and begins
12747 # with a dollar sign (not a hyphen), so the echo should work correctly.
12748 # The option is referenced via a variable to avoid confusing sed.
12749 lt_compile=`echo "$ac_compile" | $SED \
12750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12752 -e 's:$: $lt_compiler_flag:'`
12753 (eval echo "\"\$as_me:12753: $lt_compile\"" >&5)
12754 (eval "$lt_compile" 2>conftest.err)
12755 ac_status=$?
12756 cat conftest.err >&5
12757 echo "$as_me:12757: \$? = $ac_status" >&5
12758 if (exit $ac_status) && test -s "$ac_outfile"; then
12759 # The compiler can only warn and ignore the option if not recognized
12760 # So say no if there are warnings other than the usual output.
12761 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12764 lt_prog_compiler_pic_works_CXX=yes
12765 fi
12766 fi
12767 $rm conftest*
12768
12769fi
12770echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12771echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12772
12773if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12774 case $lt_prog_compiler_pic_CXX in
12775 "" | " "*) ;;
12776 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12777 esac
12778else
12779 lt_prog_compiler_pic_CXX=
12780 lt_prog_compiler_can_build_shared_CXX=no
12781fi
12782
12783fi
12784case $host_os in
12785 # For platforms which do not support PIC, -DPIC is meaningless:
12786 *djgpp*)
12787 lt_prog_compiler_pic_CXX=
12788 ;;
12789 *)
12790 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12791 ;;
12792esac
12793
12794#
12795# Check to make sure the static flag actually works.
12796#
12797wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12798echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12799echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12800if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802else
12803 lt_prog_compiler_static_works_CXX=no
12804 save_LDFLAGS="$LDFLAGS"
12805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12806 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12808 # The linker can only warn and ignore the option if not recognized
12809 # So say no if there are warnings
12810 if test -s conftest.err; then
12811 # Append any errors to the config.log.
12812 cat conftest.err 1>&5
12813 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12815 if diff conftest.exp conftest.er2 >/dev/null; then
12816 lt_prog_compiler_static_works_CXX=yes
12817 fi
12818 else
12819 lt_prog_compiler_static_works_CXX=yes
12820 fi
12821 fi
12822 $rm conftest*
12823 LDFLAGS="$save_LDFLAGS"
12824
12825fi
12826echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12827echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12828
12829if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12830 :
12831else
12832 lt_prog_compiler_static_CXX=
12833fi
12834
12835
12836echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12837echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12838if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840else
12841 lt_cv_prog_compiler_c_o_CXX=no
12842 $rm -r conftest 2>/dev/null
12843 mkdir conftest
12844 cd conftest
12845 mkdir out
12846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12847
12848 lt_compiler_flag="-o out/conftest2.$ac_objext"
12849 # Insert the option either (1) after the last *FLAGS variable, or
12850 # (2) before a word containing "conftest.", or (3) at the end.
12851 # Note that $ac_compile itself does not contain backslashes and begins
12852 # with a dollar sign (not a hyphen), so the echo should work correctly.
12853 lt_compile=`echo "$ac_compile" | $SED \
12854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12856 -e 's:$: $lt_compiler_flag:'`
12857 (eval echo "\"\$as_me:12857: $lt_compile\"" >&5)
12858 (eval "$lt_compile" 2>out/conftest.err)
12859 ac_status=$?
12860 cat out/conftest.err >&5
12861 echo "$as_me:12861: \$? = $ac_status" >&5
12862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12863 then
12864 # The compiler can only warn and ignore the option if not recognized
12865 # So say no if there are warnings
12866 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12869 lt_cv_prog_compiler_c_o_CXX=yes
12870 fi
12871 fi
12872 chmod u+w . 2>&5
12873 $rm conftest*
12874 # SGI C++ compiler will create directory out/ii_files/ for
12875 # template instantiation
12876 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12877 $rm out/* && rmdir out
12878 cd ..
12879 rmdir conftest
12880 $rm conftest*
12881
12882fi
12883echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12884echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12885
12886
12887hard_links="nottested"
12888if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12889 # do not overwrite the value of need_locks provided by the user
12890 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12891echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12892 hard_links=yes
12893 $rm conftest*
12894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12895 touch conftest.a
12896 ln conftest.a conftest.b 2>&5 || hard_links=no
12897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12898 echo "$as_me:$LINENO: result: $hard_links" >&5
12899echo "${ECHO_T}$hard_links" >&6
12900 if test "$hard_links" = no; then
12901 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12902echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12903 need_locks=warn
12904 fi
12905else
12906 need_locks=no
12907fi
12908
12909echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12910echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12911
12912 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12913 case $host_os in
12914 aix4* | aix5*)
12915 # If we're using GNU nm, then we don't want the "-C" option.
12916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12917 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12918 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'
12919 else
12920 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'
12921 fi
12922 ;;
12923 pw32*)
12924 export_symbols_cmds_CXX="$ltdll_cmds"
12925 ;;
12926 cygwin* | mingw*)
12927 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'
12928 ;;
12929 kfreebsd*-gnu)
12930 link_all_deplibs_CXX=no
12931 ;;
12932 linux*)
12933 link_all_deplibs_CXX=no
12934 ;;
12935 *)
12936 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12937 ;;
12938 esac
12939
12940echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12941echo "${ECHO_T}$ld_shlibs_CXX" >&6
12942test "$ld_shlibs_CXX" = no && can_build_shared=no
12943
12944#
12945# Do we need to explicitly link libc?
12946#
12947case "x$archive_cmds_need_lc_CXX" in
12948x|xyes)
12949 # Assume -lc should be added
12950 archive_cmds_need_lc_CXX=yes
12951
12952 if test "$enable_shared" = yes && test "$GCC" = yes; then
12953 case $archive_cmds_CXX in
12954 *'~'*)
12955 # FIXME: we may have to deal with multi-command sequences.
12956 ;;
12957 '$CC '*)
12958 # Test whether the compiler implicitly links with -lc since on some
12959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12960 # to ld, don't add -lc before -lgcc.
12961 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12962echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12963 $rm conftest*
12964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12965
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } 2>conftest.err; then
12971 soname=conftest
12972 lib=conftest
12973 libobjs=conftest.$ac_objext
12974 deplibs=
12975 wl=$lt_prog_compiler_wl_CXX
12976 pic_flag=$lt_prog_compiler_pic_CXX
12977 compiler_flags=-v
12978 linker_flags=-v
12979 verstring=
12980 output_objdir=.
12981 libname=conftest
12982 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12983 allow_undefined_flag_CXX=
12984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12985 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }
12989 then
12990 archive_cmds_need_lc_CXX=no
12991 else
12992 archive_cmds_need_lc_CXX=yes
12993 fi
12994 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12995 else
12996 cat conftest.err 1>&5
12997 fi
12998 $rm conftest*
12999 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13000echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13001 ;;
13002 esac
13003 fi
13004 ;;
13005esac
13006
13007echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13008echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13009library_names_spec=
13010libname_spec='lib$name'
13011soname_spec=
13012shrext_cmds=".so"
13013postinstall_cmds=
13014postuninstall_cmds=
13015finish_cmds=
13016finish_eval=
13017shlibpath_var=
13018shlibpath_overrides_runpath=unknown
13019version_type=none
13020dynamic_linker="$host_os ld.so"
13021sys_lib_dlsearch_path_spec="/lib /usr/lib"
13022if test "$GCC" = yes; then
13023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13024 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13025 # if the path contains ";" then we assume it to be the separator
13026 # otherwise default to the standard path separator (i.e. ":") - it is
13027 # assumed that no part of a normal pathname contains ";" but that should
13028 # okay in the real world where ";" in dirpaths is itself problematic.
13029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13030 else
13031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13032 fi
13033else
13034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13035fi
13036need_lib_prefix=unknown
13037hardcode_into_libs=no
13038
13039# when you set need_version to no, make sure it does not cause -set_version
13040# flags to be left without arguments
13041need_version=unknown
13042
13043case $host_os in
13044aix3*)
13045 version_type=linux
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13047 shlibpath_var=LIBPATH
13048
13049 # AIX 3 has no versioning support, so we append a major version to the name.
13050 soname_spec='${libname}${release}${shared_ext}$major'
13051 ;;
13052
13053aix4* | aix5*)
13054 version_type=linux
13055 need_lib_prefix=no
13056 need_version=no
13057 hardcode_into_libs=yes
13058 if test "$host_cpu" = ia64; then
13059 # AIX 5 supports IA64
13060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13061 shlibpath_var=LD_LIBRARY_PATH
13062 else
13063 # With GCC up to 2.95.x, collect2 would create an import file
13064 # for dependence libraries. The import file would start with
13065 # the line `#! .'. This would cause the generated library to
13066 # depend on `.', always an invalid library. This was fixed in
13067 # development snapshots of GCC prior to 3.0.
13068 case $host_os in
13069 aix4 | aix4.[01] | aix4.[01].*)
13070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13071 echo ' yes '
13072 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13073 :
13074 else
13075 can_build_shared=no
13076 fi
13077 ;;
13078 esac
13079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13080 # soname into executable. Probably we can add versioning support to
13081 # collect2, so additional links can be useful in future.
13082 if test "$aix_use_runtimelinking" = yes; then
13083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13084 # instead of lib<name>.a to let people know that these are not
13085 # typical AIX shared libraries.
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13087 else
13088 # We preserve .a as extension for shared libraries through AIX4.2
13089 # and later when we are not doing run time linking.
13090 library_names_spec='${libname}${release}.a $libname.a'
13091 soname_spec='${libname}${release}${shared_ext}$major'
13092 fi
13093 shlibpath_var=LIBPATH
13094 fi
13095 ;;
13096
13097amigaos*)
13098 library_names_spec='$libname.ixlibrary $libname.a'
13099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13100 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'
13101 ;;
13102
13103beos*)
13104 library_names_spec='${libname}${shared_ext}'
13105 dynamic_linker="$host_os ld.so"
13106 shlibpath_var=LIBRARY_PATH
13107 ;;
13108
13109bsdi[45]*)
13110 version_type=linux
13111 need_version=no
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13117 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13118 # the default ld.so.conf also contains /usr/contrib/lib and
13119 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13120 # libtool to hard-code these into programs
13121 ;;
13122
13123cygwin* | mingw* | pw32*)
13124 version_type=windows
13125 shrext_cmds=".dll"
13126 need_version=no
13127 need_lib_prefix=no
13128
13129 case $GCC,$host_os in
13130 yes,cygwin* | yes,mingw* | yes,pw32*)
13131 library_names_spec='$libname.dll.a'
13132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13133 postinstall_cmds='base_file=`basename \${file}`~
13134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13135 dldir=$destdir/`dirname \$dlpath`~
13136 test -d \$dldir || mkdir -p \$dldir~
13137 $install_prog $dir/$dlname \$dldir/$dlname~
13138 chmod a+x \$dldir/$dlname'
13139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13140 dlpath=$dir/\$dldll~
13141 $rm \$dlpath'
13142 shlibpath_overrides_runpath=yes
13143
13144 case $host_os in
13145 cygwin*)
13146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13148 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13149 ;;
13150 mingw*)
13151 # MinGW DLLs use traditional 'lib' prefix
13152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13153 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13154 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13155 # It is most probably a Windows format PATH printed by
13156 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13157 # path with ; separators, and with drive letters. We can handle the
13158 # drive letters (cygwin fileutils understands them), so leave them,
13159 # especially as we might pass files found there to a mingw objdump,
13160 # which wouldn't understand a cygwinified path. Ahh.
13161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13162 else
13163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13164 fi
13165 ;;
13166 pw32*)
13167 # pw32 DLLs use 'pw' prefix rather than 'lib'
13168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13169 ;;
13170 esac
13171 ;;
13172
13173 *)
13174 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13175 ;;
13176 esac
13177 dynamic_linker='Win32 ld.exe'
13178 # FIXME: first we should search . and the directory the executable is in
13179 shlibpath_var=PATH
13180 ;;
13181
13182darwin* | rhapsody*)
13183 dynamic_linker="$host_os dyld"
13184 version_type=darwin
13185 need_lib_prefix=no
13186 need_version=no
13187 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13188 soname_spec='${libname}${release}${major}$shared_ext'
13189 shlibpath_overrides_runpath=yes
13190 shlibpath_var=DYLD_LIBRARY_PATH
13191 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13192 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13193 if test "$GCC" = yes; then
13194 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"`
13195 else
13196 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13197 fi
13198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13199 ;;
13200
13201dgux*)
13202 version_type=linux
13203 need_lib_prefix=no
13204 need_version=no
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 ;;
13209
13210freebsd1*)
13211 dynamic_linker=no
13212 ;;
13213
13214kfreebsd*-gnu)
13215 version_type=linux
13216 need_lib_prefix=no
13217 need_version=no
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 shlibpath_overrides_runpath=no
13222 hardcode_into_libs=yes
13223 dynamic_linker='GNU ld.so'
13224 ;;
13225
13226freebsd* | dragonfly*)
13227 # DragonFly does not have aout. When/if they implement a new
13228 # versioning mechanism, adjust this.
13229 if test -x /usr/bin/objformat; then
13230 objformat=`/usr/bin/objformat`
13231 else
13232 case $host_os in
13233 freebsd[123]*) objformat=aout ;;
13234 *) objformat=elf ;;
13235 esac
13236 fi
13237 version_type=freebsd-$objformat
13238 case $version_type in
13239 freebsd-elf*)
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13241 need_version=no
13242 need_lib_prefix=no
13243 ;;
13244 freebsd-*)
13245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13246 need_version=yes
13247 ;;
13248 esac
13249 shlibpath_var=LD_LIBRARY_PATH
13250 case $host_os in
13251 freebsd2*)
13252 shlibpath_overrides_runpath=yes
13253 ;;
13254 freebsd3.[01]* | freebsdelf3.[01]*)
13255 shlibpath_overrides_runpath=yes
13256 hardcode_into_libs=yes
13257 ;;
13258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13260 shlibpath_overrides_runpath=no
13261 hardcode_into_libs=yes
13262 ;;
13263 freebsd*) # from 4.6 on
13264 shlibpath_overrides_runpath=yes
13265 hardcode_into_libs=yes
13266 ;;
13267 esac
13268 ;;
13269
13270gnu*)
13271 version_type=linux
13272 need_lib_prefix=no
13273 need_version=no
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13275 soname_spec='${libname}${release}${shared_ext}$major'
13276 shlibpath_var=LD_LIBRARY_PATH
13277 hardcode_into_libs=yes
13278 ;;
13279
13280hpux9* | hpux10* | hpux11*)
13281 # Give a soname corresponding to the major version so that dld.sl refuses to
13282 # link against other versions.
13283 version_type=sunos
13284 need_lib_prefix=no
13285 need_version=no
13286 case $host_cpu in
13287 ia64*)
13288 shrext_cmds='.so'
13289 hardcode_into_libs=yes
13290 dynamic_linker="$host_os dld.so"
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 if test "X$HPUX_IA64_MODE" = X32; then
13296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13297 else
13298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13299 fi
13300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13301 ;;
13302 hppa*64*)
13303 shrext_cmds='.sl'
13304 hardcode_into_libs=yes
13305 dynamic_linker="$host_os dld.sl"
13306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13309 soname_spec='${libname}${release}${shared_ext}$major'
13310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13312 ;;
13313 *)
13314 shrext_cmds='.sl'
13315 dynamic_linker="$host_os dld.sl"
13316 shlibpath_var=SHLIB_PATH
13317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13319 soname_spec='${libname}${release}${shared_ext}$major'
13320 ;;
13321 esac
13322 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13323 postinstall_cmds='chmod 555 $lib'
13324 ;;
13325
13326interix3*)
13327 version_type=linux
13328 need_lib_prefix=no
13329 need_version=no
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13333 shlibpath_var=LD_LIBRARY_PATH
13334 shlibpath_overrides_runpath=no
13335 hardcode_into_libs=yes
13336 ;;
13337
13338irix5* | irix6* | nonstopux*)
13339 case $host_os in
13340 nonstopux*) version_type=nonstopux ;;
13341 *)
13342 if test "$lt_cv_prog_gnu_ld" = yes; then
13343 version_type=linux
13344 else
13345 version_type=irix
13346 fi ;;
13347 esac
13348 need_lib_prefix=no
13349 need_version=no
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13352 case $host_os in
13353 irix5* | nonstopux*)
13354 libsuff= shlibsuff=
13355 ;;
13356 *)
13357 case $LD in # libtool.m4 will add one of these switches to LD
13358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13359 libsuff= shlibsuff= libmagic=32-bit;;
13360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13361 libsuff=32 shlibsuff=N32 libmagic=N32;;
13362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13364 *) libsuff= shlibsuff= libmagic=never-match;;
13365 esac
13366 ;;
13367 esac
13368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13369 shlibpath_overrides_runpath=no
13370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13372 hardcode_into_libs=yes
13373 ;;
13374
13375# No shared lib support for Linux oldld, aout, or coff.
13376linux*oldld* | linux*aout* | linux*coff*)
13377 dynamic_linker=no
13378 ;;
13379
13380# This must be Linux ELF.
13381linux*)
13382 version_type=linux
13383 need_lib_prefix=no
13384 need_version=no
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 shlibpath_overrides_runpath=no
13390 # This implies no fast_install, which is unacceptable.
13391 # Some rework will be needed to allow for fast_install
13392 # before this can be enabled.
13393 hardcode_into_libs=yes
13394
13395 # Append ld.so.conf contents to the search path
13396 if test -f /etc/ld.so.conf; then
13397 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13399 fi
13400
13401 # We used to test for /lib/ld.so.1 and disable shared libraries on
13402 # powerpc, because MkLinux only supported shared libraries with the
13403 # GNU dynamic linker. Since this was broken with cross compilers,
13404 # most powerpc-linux boxes support dynamic linking these days and
13405 # people can always --disable-shared, the test was removed, and we
13406 # assume the GNU/Linux dynamic linker is in use.
13407 dynamic_linker='GNU/Linux ld.so'
13408 ;;
13409
13410netbsdelf*-gnu)
13411 version_type=linux
13412 need_lib_prefix=no
13413 need_version=no
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=no
13418 hardcode_into_libs=yes
13419 dynamic_linker='NetBSD ld.elf_so'
13420 ;;
13421
13422knetbsd*-gnu)
13423 version_type=linux
13424 need_lib_prefix=no
13425 need_version=no
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427 soname_spec='${libname}${release}${shared_ext}$major'
13428 shlibpath_var=LD_LIBRARY_PATH
13429 shlibpath_overrides_runpath=no
13430 hardcode_into_libs=yes
13431 dynamic_linker='GNU ld.so'
13432 ;;
13433
13434netbsd*)
13435 version_type=sunos
13436 need_lib_prefix=no
13437 need_version=no
13438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13441 dynamic_linker='NetBSD (a.out) ld.so'
13442 else
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 dynamic_linker='NetBSD ld.elf_so'
13446 fi
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13449 hardcode_into_libs=yes
13450 ;;
13451
13452newsos6)
13453 version_type=linux
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 ;;
13458
13459nto-qnx*)
13460 version_type=linux
13461 need_lib_prefix=no
13462 need_version=no
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 shlibpath_var=LD_LIBRARY_PATH
13466 shlibpath_overrides_runpath=yes
13467 ;;
13468
13469openbsd*)
13470 version_type=sunos
13471 sys_lib_dlsearch_path_spec="/usr/lib"
13472 need_lib_prefix=no
13473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13474 case $host_os in
13475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13476 *) need_version=no ;;
13477 esac
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13482 case $host_os in
13483 openbsd2.[89] | openbsd2.[89].*)
13484 shlibpath_overrides_runpath=no
13485 ;;
13486 *)
13487 shlibpath_overrides_runpath=yes
13488 ;;
13489 esac
13490 else
13491 shlibpath_overrides_runpath=yes
13492 fi
13493 ;;
13494
13495os2*)
13496 libname_spec='$name'
13497 shrext_cmds=".dll"
13498 need_lib_prefix=no
13499 library_names_spec='$libname${shared_ext} $libname.a'
13500 dynamic_linker='OS/2 ld.exe'
13501 shlibpath_var=LIBPATH
13502 ;;
13503
13504osf3* | osf4* | osf5*)
13505 version_type=osf
13506 need_lib_prefix=no
13507 need_version=no
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13513 ;;
13514
13515solaris*)
13516 version_type=linux
13517 need_lib_prefix=no
13518 need_version=no
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=yes
13523 hardcode_into_libs=yes
13524 # ldd complains unless libraries are executable
13525 postinstall_cmds='chmod +x $lib'
13526 ;;
13527
13528sunos4*)
13529 version_type=sunos
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 shlibpath_overrides_runpath=yes
13534 if test "$with_gnu_ld" = yes; then
13535 need_lib_prefix=no
13536 fi
13537 need_version=yes
13538 ;;
13539
13540sysv4 | sysv4.3*)
13541 version_type=linux
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543 soname_spec='${libname}${release}${shared_ext}$major'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 case $host_vendor in
13546 sni)
13547 shlibpath_overrides_runpath=no
13548 need_lib_prefix=no
13549 export_dynamic_flag_spec='${wl}-Blargedynsym'
13550 runpath_var=LD_RUN_PATH
13551 ;;
13552 siemens)
13553 need_lib_prefix=no
13554 ;;
13555 motorola)
13556 need_lib_prefix=no
13557 need_version=no
13558 shlibpath_overrides_runpath=no
13559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13560 ;;
13561 esac
13562 ;;
13563
13564sysv4*MP*)
13565 if test -d /usr/nec ;then
13566 version_type=linux
13567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13568 soname_spec='$libname${shared_ext}.$major'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 fi
13571 ;;
13572
13573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13574 version_type=freebsd-elf
13575 need_lib_prefix=no
13576 need_version=no
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13578 soname_spec='${libname}${release}${shared_ext}$major'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 hardcode_into_libs=yes
13581 if test "$with_gnu_ld" = yes; then
13582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13583 shlibpath_overrides_runpath=no
13584 else
13585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13586 shlibpath_overrides_runpath=yes
13587 case $host_os in
13588 sco3.2v5*)
13589 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13590 ;;
13591 esac
13592 fi
13593 sys_lib_dlsearch_path_spec='/usr/lib'
13594 ;;
13595
13596uts4*)
13597 version_type=linux
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13599 soname_spec='${libname}${release}${shared_ext}$major'
13600 shlibpath_var=LD_LIBRARY_PATH
13601 ;;
13602
13603*)
13604 dynamic_linker=no
13605 ;;
13606esac
13607echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13608echo "${ECHO_T}$dynamic_linker" >&6
13609test "$dynamic_linker" = no && can_build_shared=no
13610
13611variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13612if test "$GCC" = yes; then
13613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13614fi
13615
13616echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13617echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13618hardcode_action_CXX=
13619if test -n "$hardcode_libdir_flag_spec_CXX" || \
13620 test -n "$runpath_var_CXX" || \
13621 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13622
13623 # We can hardcode non-existant directories.
13624 if test "$hardcode_direct_CXX" != no &&
13625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13626 # have to relink, otherwise we might link with an installed library
13627 # when we should be linking with a yet-to-be-installed one
13628 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13629 test "$hardcode_minus_L_CXX" != no; then
13630 # Linking always hardcodes the temporary library directory.
13631 hardcode_action_CXX=relink
13632 else
13633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13634 hardcode_action_CXX=immediate
13635 fi
13636else
13637 # We cannot hardcode anything, or else we can only hardcode existing
13638 # directories.
13639 hardcode_action_CXX=unsupported
13640fi
13641echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13642echo "${ECHO_T}$hardcode_action_CXX" >&6
13643
13644if test "$hardcode_action_CXX" = relink; then
13645 # Fast installation is not supported
13646 enable_fast_install=no
13647elif test "$shlibpath_overrides_runpath" = yes ||
13648 test "$enable_shared" = no; then
13649 # Fast installation is not necessary
13650 enable_fast_install=needless
13651fi
13652
13653
13654# The else clause should only fire when bootstrapping the
13655# libtool distribution, otherwise you forgot to ship ltmain.sh
13656# with your package, and you will get complaints that there are
13657# no rules to generate ltmain.sh.
13658if test -f "$ltmain"; then
13659 # See if we are running on zsh, and set the options which allow our commands through
13660 # without removal of \ escapes.
13661 if test -n "${ZSH_VERSION+set}" ; then
13662 setopt NO_GLOB_SUBST
13663 fi
13664 # Now quote all the things that may contain metacharacters while being
13665 # careful not to overquote the AC_SUBSTed values. We take copies of the
13666 # variables and quote the copies for generation of the libtool script.
13667 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13668 SED SHELL STRIP \
13669 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13670 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13671 deplibs_check_method reload_flag reload_cmds need_locks \
13672 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13673 lt_cv_sys_global_symbol_to_c_name_address \
13674 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13675 old_postinstall_cmds old_postuninstall_cmds \
13676 compiler_CXX \
13677 CC_CXX \
13678 LD_CXX \
13679 lt_prog_compiler_wl_CXX \
13680 lt_prog_compiler_pic_CXX \
13681 lt_prog_compiler_static_CXX \
13682 lt_prog_compiler_no_builtin_flag_CXX \
13683 export_dynamic_flag_spec_CXX \
13684 thread_safe_flag_spec_CXX \
13685 whole_archive_flag_spec_CXX \
13686 enable_shared_with_static_runtimes_CXX \
13687 old_archive_cmds_CXX \
13688 old_archive_from_new_cmds_CXX \
13689 predep_objects_CXX \
13690 postdep_objects_CXX \
13691 predeps_CXX \
13692 postdeps_CXX \
13693 compiler_lib_search_path_CXX \
13694 archive_cmds_CXX \
13695 archive_expsym_cmds_CXX \
13696 postinstall_cmds_CXX \
13697 postuninstall_cmds_CXX \
13698 old_archive_from_expsyms_cmds_CXX \
13699 allow_undefined_flag_CXX \
13700 no_undefined_flag_CXX \
13701 export_symbols_cmds_CXX \
13702 hardcode_libdir_flag_spec_CXX \
13703 hardcode_libdir_flag_spec_ld_CXX \
13704 hardcode_libdir_separator_CXX \
13705 hardcode_automatic_CXX \
13706 module_cmds_CXX \
13707 module_expsym_cmds_CXX \
13708 lt_cv_prog_compiler_c_o_CXX \
13709 exclude_expsyms_CXX \
13710 include_expsyms_CXX; do
13711
13712 case $var in
13713 old_archive_cmds_CXX | \
13714 old_archive_from_new_cmds_CXX | \
13715 archive_cmds_CXX | \
13716 archive_expsym_cmds_CXX | \
13717 module_cmds_CXX | \
13718 module_expsym_cmds_CXX | \
13719 old_archive_from_expsyms_cmds_CXX | \
13720 export_symbols_cmds_CXX | \
13721 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13722 postinstall_cmds | postuninstall_cmds | \
13723 old_postinstall_cmds | old_postuninstall_cmds | \
13724 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13725 # Double-quote double-evaled strings.
13726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13727 ;;
13728 *)
13729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13730 ;;
13731 esac
13732 done
13733
13734 case $lt_echo in
13735 *'\$0 --fallback-echo"')
13736 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13737 ;;
13738 esac
13739
13740cfgfile="$ofile"
13741
13742 cat <<__EOF__ >> "$cfgfile"
13743# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13744
13745# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13746
13747# Shell to use when invoking shell scripts.
13748SHELL=$lt_SHELL
13749
13750# Whether or not to build shared libraries.
13751build_libtool_libs=$enable_shared
13752
13753# Whether or not to build static libraries.
13754build_old_libs=$enable_static
13755
13756# Whether or not to add -lc for building shared libraries.
13757build_libtool_need_lc=$archive_cmds_need_lc_CXX
13758
13759# Whether or not to disallow shared libs when runtime libs are static
13760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13761
13762# Whether or not to optimize for fast installation.
13763fast_install=$enable_fast_install
13764
13765# The host system.
13766host_alias=$host_alias
13767host=$host
13768host_os=$host_os
13769
13770# The build system.
13771build_alias=$build_alias
13772build=$build
13773build_os=$build_os
13774
13775# An echo program that does not interpret backslashes.
13776echo=$lt_echo
13777
13778# The archiver.
13779AR=$lt_AR
13780AR_FLAGS=$lt_AR_FLAGS
13781
13782# A C compiler.
13783LTCC=$lt_LTCC
13784
13785# LTCC compiler flags.
13786LTCFLAGS=$lt_LTCFLAGS
13787
13788# A language-specific compiler.
13789CC=$lt_compiler_CXX
13790
13791# Is the compiler the GNU C compiler?
13792with_gcc=$GCC_CXX
13793
13794# An ERE matcher.
13795EGREP=$lt_EGREP
13796
13797# The linker used to build libraries.
13798LD=$lt_LD_CXX
13799
13800# Whether we need hard or soft links.
13801LN_S=$lt_LN_S
13802
13803# A BSD-compatible nm program.
13804NM=$lt_NM
13805
13806# A symbol stripping program
13807STRIP=$lt_STRIP
13808
13809# Used to examine libraries when file_magic_cmd begins "file"
13810MAGIC_CMD=$MAGIC_CMD
13811
13812# Used on cygwin: DLL creation program.
13813DLLTOOL="$DLLTOOL"
13814
13815# Used on cygwin: object dumper.
13816OBJDUMP="$OBJDUMP"
13817
13818# Used on cygwin: assembler.
13819AS="$AS"
13820
13821# The name of the directory that contains temporary libtool files.
13822objdir=$objdir
13823
13824# How to create reloadable object files.
13825reload_flag=$lt_reload_flag
13826reload_cmds=$lt_reload_cmds
13827
13828# How to pass a linker flag through the compiler.
13829wl=$lt_lt_prog_compiler_wl_CXX
13830
13831# Object file suffix (normally "o").
13832objext="$ac_objext"
13833
13834# Old archive suffix (normally "a").
13835libext="$libext"
13836
13837# Shared library suffix (normally ".so").
13838shrext_cmds='$shrext_cmds'
13839
13840# Executable file suffix (normally "").
13841exeext="$exeext"
13842
13843# Additional compiler flags for building library objects.
13844pic_flag=$lt_lt_prog_compiler_pic_CXX
13845pic_mode=$pic_mode
13846
13847# What is the maximum length of a command?
13848max_cmd_len=$lt_cv_sys_max_cmd_len
13849
13850# Does compiler simultaneously support -c and -o options?
13851compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13852
13853# Must we lock files when doing compilation?
13854need_locks=$lt_need_locks
13855
13856# Do we need the lib prefix for modules?
13857need_lib_prefix=$need_lib_prefix
13858
13859# Do we need a version for libraries?
13860need_version=$need_version
13861
13862# Whether dlopen is supported.
13863dlopen_support=$enable_dlopen
13864
13865# Whether dlopen of programs is supported.
13866dlopen_self=$enable_dlopen_self
13867
13868# Whether dlopen of statically linked programs is supported.
13869dlopen_self_static=$enable_dlopen_self_static
13870
13871# Compiler flag to prevent dynamic linking.
13872link_static_flag=$lt_lt_prog_compiler_static_CXX
13873
13874# Compiler flag to turn off builtin functions.
13875no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13876
13877# Compiler flag to allow reflexive dlopens.
13878export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13879
13880# Compiler flag to generate shared objects directly from archives.
13881whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13882
13883# Compiler flag to generate thread-safe objects.
13884thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13885
13886# Library versioning type.
13887version_type=$version_type
13888
13889# Format of library name prefix.
13890libname_spec=$lt_libname_spec
13891
13892# List of archive names. First name is the real one, the rest are links.
13893# The last name is the one that the linker finds with -lNAME.
13894library_names_spec=$lt_library_names_spec
13895
13896# The coded name of the library, if different from the real name.
13897soname_spec=$lt_soname_spec
13898
13899# Commands used to build and install an old-style archive.
13900RANLIB=$lt_RANLIB
13901old_archive_cmds=$lt_old_archive_cmds_CXX
13902old_postinstall_cmds=$lt_old_postinstall_cmds
13903old_postuninstall_cmds=$lt_old_postuninstall_cmds
13904
13905# Create an old-style archive from a shared archive.
13906old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13907
13908# Create a temporary old-style archive to link instead of a shared archive.
13909old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13910
13911# Commands used to build and install a shared archive.
13912archive_cmds=$lt_archive_cmds_CXX
13913archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13914postinstall_cmds=$lt_postinstall_cmds
13915postuninstall_cmds=$lt_postuninstall_cmds
13916
13917# Commands used to build a loadable module (assumed same as above if empty)
13918module_cmds=$lt_module_cmds_CXX
13919module_expsym_cmds=$lt_module_expsym_cmds_CXX
13920
13921# Commands to strip libraries.
13922old_striplib=$lt_old_striplib
13923striplib=$lt_striplib
13924
13925# Dependencies to place before the objects being linked to create a
13926# shared library.
13927predep_objects=$lt_predep_objects_CXX
13928
13929# Dependencies to place after the objects being linked to create a
13930# shared library.
13931postdep_objects=$lt_postdep_objects_CXX
13932
13933# Dependencies to place before the objects being linked to create a
13934# shared library.
13935predeps=$lt_predeps_CXX
13936
13937# Dependencies to place after the objects being linked to create a
13938# shared library.
13939postdeps=$lt_postdeps_CXX
13940
13941# The library search path used internally by the compiler when linking
13942# a shared library.
13943compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13944
13945# Method to check whether dependent libraries are shared objects.
13946deplibs_check_method=$lt_deplibs_check_method
13947
13948# Command to use when deplibs_check_method == file_magic.
13949file_magic_cmd=$lt_file_magic_cmd
13950
13951# Flag that allows shared libraries with undefined symbols to be built.
13952allow_undefined_flag=$lt_allow_undefined_flag_CXX
13953
13954# Flag that forces no undefined symbols.
13955no_undefined_flag=$lt_no_undefined_flag_CXX
13956
13957# Commands used to finish a libtool library installation in a directory.
13958finish_cmds=$lt_finish_cmds
13959
13960# Same as above, but a single script fragment to be evaled but not shown.
13961finish_eval=$lt_finish_eval
13962
13963# Take the output of nm and produce a listing of raw symbols and C names.
13964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13965
13966# Transform the output of nm in a proper C declaration
13967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13968
13969# Transform the output of nm in a C name address pair
13970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13971
13972# This is the shared library runtime path variable.
13973runpath_var=$runpath_var
13974
13975# This is the shared library path variable.
13976shlibpath_var=$shlibpath_var
13977
13978# Is shlibpath searched before the hard-coded library search path?
13979shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13980
13981# How to hardcode a shared library path into an executable.
13982hardcode_action=$hardcode_action_CXX
13983
13984# Whether we should hardcode library paths into libraries.
13985hardcode_into_libs=$hardcode_into_libs
13986
13987# Flag to hardcode \$libdir into a binary during linking.
13988# This must work even if \$libdir does not exist.
13989hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13990
13991# If ld is used when linking, flag to hardcode \$libdir into
13992# a binary during linking. This must work even if \$libdir does
13993# not exist.
13994hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13995
13996# Whether we need a single -rpath flag with a separated argument.
13997hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13998
13999# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14000# resulting binary.
14001hardcode_direct=$hardcode_direct_CXX
14002
14003# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14004# resulting binary.
14005hardcode_minus_L=$hardcode_minus_L_CXX
14006
14007# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14008# the resulting binary.
14009hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14010
14011# Set to yes if building a shared library automatically hardcodes DIR into the library
14012# and all subsequent libraries and executables linked against it.
14013hardcode_automatic=$hardcode_automatic_CXX
14014
14015# Variables whose values should be saved in libtool wrapper scripts and
14016# restored at relink time.
14017variables_saved_for_relink="$variables_saved_for_relink"
14018
14019# Whether libtool must link a program against all its dependency libraries.
14020link_all_deplibs=$link_all_deplibs_CXX
14021
14022# Compile-time system search path for libraries
14023sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14024
14025# Run-time system search path for libraries
14026sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14027
14028# Fix the shell variable \$srcfile for the compiler.
14029fix_srcfile_path="$fix_srcfile_path_CXX"
14030
14031# Set to yes if exported symbols are required.
14032always_export_symbols=$always_export_symbols_CXX
14033
14034# The commands to list exported symbols.
14035export_symbols_cmds=$lt_export_symbols_cmds_CXX
14036
14037# The commands to extract the exported symbol list from a shared archive.
14038extract_expsyms_cmds=$lt_extract_expsyms_cmds
14039
14040# Symbols that should not be listed in the preloaded symbols.
14041exclude_expsyms=$lt_exclude_expsyms_CXX
14042
14043# Symbols that must always be exported.
14044include_expsyms=$lt_include_expsyms_CXX
14045
14046# ### END LIBTOOL TAG CONFIG: $tagname
14047
14048__EOF__
14049
14050
14051else
14052 # If there is no Makefile yet, we rely on a make rule to execute
14053 # `config.status --recheck' to rerun these tests and create the
14054 # libtool script then.
14055 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14056 if test -f "$ltmain_in"; then
14057 test -f Makefile && make "$ltmain"
14058 fi
14059fi
14060
14061
14062ac_ext=c
14063ac_cpp='$CPP $CPPFLAGS'
14064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066ac_compiler_gnu=$ac_cv_c_compiler_gnu
14067
14068CC=$lt_save_CC
14069LDCXX=$LD
14070LD=$lt_save_LD
14071GCC=$lt_save_GCC
14072with_gnu_ldcxx=$with_gnu_ld
14073with_gnu_ld=$lt_save_with_gnu_ld
14074lt_cv_path_LDCXX=$lt_cv_path_LD
14075lt_cv_path_LD=$lt_save_path_LD
14076lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14077lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14078
14079 else
14080 tagname=""
14081 fi
14082 ;;
14083
14084 F77)
14085 if test -n "$F77" && test "X$F77" != "Xno"; then
14086
14087ac_ext=f
14088ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14089ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14090ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14091
14092
14093archive_cmds_need_lc_F77=no
14094allow_undefined_flag_F77=
14095always_export_symbols_F77=no
14096archive_expsym_cmds_F77=
14097export_dynamic_flag_spec_F77=
14098hardcode_direct_F77=no
14099hardcode_libdir_flag_spec_F77=
14100hardcode_libdir_flag_spec_ld_F77=
14101hardcode_libdir_separator_F77=
14102hardcode_minus_L_F77=no
14103hardcode_automatic_F77=no
14104module_cmds_F77=
14105module_expsym_cmds_F77=
14106link_all_deplibs_F77=unknown
14107old_archive_cmds_F77=$old_archive_cmds
14108no_undefined_flag_F77=
14109whole_archive_flag_spec_F77=
14110enable_shared_with_static_runtimes_F77=no
14111
14112# Source file extension for f77 test sources.
14113ac_ext=f
14114
14115# Object file extension for compiled f77 test sources.
14116objext=o
14117objext_F77=$objext
14118
14119# Code to be used in simple compile tests
14120lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14121
14122# Code to be used in simple link tests
14123lt_simple_link_test_code=" program t\n end\n"
14124
14125# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14126
14127# If no C compiler was specified, use CC.
14128LTCC=${LTCC-"$CC"}
14129
14130# If no C compiler flags were specified, use CFLAGS.
14131LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14132
14133# Allow CC to be a program name with arguments.
14134compiler=$CC
14135
14136
14137# save warnings/boilerplate of simple test code
14138ac_outfile=conftest.$ac_objext
14139printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14141_lt_compiler_boilerplate=`cat conftest.err`
14142$rm conftest*
14143
14144ac_outfile=conftest.$ac_objext
14145printf "$lt_simple_link_test_code" >conftest.$ac_ext
14146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14147_lt_linker_boilerplate=`cat conftest.err`
14148$rm conftest*
14149
14150
14151# Allow CC to be a program name with arguments.
14152lt_save_CC="$CC"
14153CC=${F77-"f77"}
14154compiler=$CC
14155compiler_F77=$CC
14156for cc_temp in $compiler""; do
14157 case $cc_temp in
14158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14160 \-*) ;;
14161 *) break;;
14162 esac
14163done
14164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14165
14166
14167echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14168echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14169echo "$as_me:$LINENO: result: $can_build_shared" >&5
14170echo "${ECHO_T}$can_build_shared" >&6
14171
14172echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14173echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14174test "$can_build_shared" = "no" && enable_shared=no
14175
14176# On AIX, shared libraries and static libraries use the same namespace, and
14177# are all built from PIC.
14178case $host_os in
14179aix3*)
14180 test "$enable_shared" = yes && enable_static=no
14181 if test -n "$RANLIB"; then
14182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14183 postinstall_cmds='$RANLIB $lib'
14184 fi
14185 ;;
14186aix4* | aix5*)
14187 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14188 test "$enable_shared" = yes && enable_static=no
14189 fi
14190 ;;
14191esac
14192echo "$as_me:$LINENO: result: $enable_shared" >&5
14193echo "${ECHO_T}$enable_shared" >&6
14194
14195echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14196echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14197# Make sure either enable_shared or enable_static is yes.
14198test "$enable_shared" = yes || enable_static=yes
14199echo "$as_me:$LINENO: result: $enable_static" >&5
14200echo "${ECHO_T}$enable_static" >&6
14201
14202GCC_F77="$G77"
14203LD_F77="$LD"
14204
14205lt_prog_compiler_wl_F77=
14206lt_prog_compiler_pic_F77=
14207lt_prog_compiler_static_F77=
14208
14209echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14210echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14211
14212 if test "$GCC" = yes; then
14213 lt_prog_compiler_wl_F77='-Wl,'
14214 lt_prog_compiler_static_F77='-static'
14215
14216 case $host_os in
14217 aix*)
14218 # All AIX code is PIC.
14219 if test "$host_cpu" = ia64; then
14220 # AIX 5 now supports IA64 processor
14221 lt_prog_compiler_static_F77='-Bstatic'
14222 fi
14223 ;;
14224
14225 amigaos*)
14226 # FIXME: we need at least 68020 code to build shared libraries, but
14227 # adding the `-m68020' flag to GCC prevents building anything better,
14228 # like `-m68040'.
14229 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14230 ;;
14231
14232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14233 # PIC is the default for these OSes.
14234 ;;
14235
14236 mingw* | pw32* | os2*)
14237 # This hack is so that the source file can tell whether it is being
14238 # built for inclusion in a dll (and should export symbols for example).
14239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14240 ;;
14241
14242 darwin* | rhapsody*)
14243 # PIC is the default on this platform
14244 # Common symbols not allowed in MH_DYLIB files
14245 lt_prog_compiler_pic_F77='-fno-common'
14246 ;;
14247
14248 interix3*)
14249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14250 # Instead, we relocate shared libraries at runtime.
14251 ;;
14252
14253 msdosdjgpp*)
14254 # Just because we use GCC doesn't mean we suddenly get shared libraries
14255 # on systems that don't support them.
14256 lt_prog_compiler_can_build_shared_F77=no
14257 enable_shared=no
14258 ;;
14259
14260 sysv4*MP*)
14261 if test -d /usr/nec; then
14262 lt_prog_compiler_pic_F77=-Kconform_pic
14263 fi
14264 ;;
14265
14266 hpux*)
14267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14268 # not for PA HP-UX.
14269 case $host_cpu in
14270 hppa*64*|ia64*)
14271 # +Z the default
14272 ;;
14273 *)
14274 lt_prog_compiler_pic_F77='-fPIC'
14275 ;;
14276 esac
14277 ;;
14278
14279 *)
14280 lt_prog_compiler_pic_F77='-fPIC'
14281 ;;
14282 esac
14283 else
14284 # PORTME Check for flag to pass linker flags through the system compiler.
14285 case $host_os in
14286 aix*)
14287 lt_prog_compiler_wl_F77='-Wl,'
14288 if test "$host_cpu" = ia64; then
14289 # AIX 5 now supports IA64 processor
14290 lt_prog_compiler_static_F77='-Bstatic'
14291 else
14292 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14293 fi
14294 ;;
14295 darwin*)
14296 # PIC is the default on this platform
14297 # Common symbols not allowed in MH_DYLIB files
14298 case $cc_basename in
14299 xlc*)
14300 lt_prog_compiler_pic_F77='-qnocommon'
14301 lt_prog_compiler_wl_F77='-Wl,'
14302 ;;
14303 esac
14304 ;;
14305
14306 mingw* | pw32* | os2*)
14307 # This hack is so that the source file can tell whether it is being
14308 # built for inclusion in a dll (and should export symbols for example).
14309 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14310 ;;
14311
14312 hpux9* | hpux10* | hpux11*)
14313 lt_prog_compiler_wl_F77='-Wl,'
14314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14315 # not for PA HP-UX.
14316 case $host_cpu in
14317 hppa*64*|ia64*)
14318 # +Z the default
14319 ;;
14320 *)
14321 lt_prog_compiler_pic_F77='+Z'
14322 ;;
14323 esac
14324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14325 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14326 ;;
14327
14328 irix5* | irix6* | nonstopux*)
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 # PIC (with -KPIC) is the default.
14331 lt_prog_compiler_static_F77='-non_shared'
14332 ;;
14333
14334 newsos6)
14335 lt_prog_compiler_pic_F77='-KPIC'
14336 lt_prog_compiler_static_F77='-Bstatic'
14337 ;;
14338
14339 linux*)
14340 case $cc_basename in
14341 icc* | ecc*)
14342 lt_prog_compiler_wl_F77='-Wl,'
14343 lt_prog_compiler_pic_F77='-KPIC'
14344 lt_prog_compiler_static_F77='-static'
14345 ;;
14346 pgcc* | pgf77* | pgf90* | pgf95*)
14347 # Portland Group compilers (*not* the Pentium gcc compiler,
14348 # which looks to be a dead project)
14349 lt_prog_compiler_wl_F77='-Wl,'
14350 lt_prog_compiler_pic_F77='-fpic'
14351 lt_prog_compiler_static_F77='-Bstatic'
14352 ;;
14353 ccc*)
14354 lt_prog_compiler_wl_F77='-Wl,'
14355 # All Alpha code is PIC.
14356 lt_prog_compiler_static_F77='-non_shared'
14357 ;;
14358 esac
14359 ;;
14360
14361 osf3* | osf4* | osf5*)
14362 lt_prog_compiler_wl_F77='-Wl,'
14363 # All OSF/1 code is PIC.
14364 lt_prog_compiler_static_F77='-non_shared'
14365 ;;
14366
14367 solaris*)
14368 lt_prog_compiler_pic_F77='-KPIC'
14369 lt_prog_compiler_static_F77='-Bstatic'
14370 case $cc_basename in
14371 f77* | f90* | f95*)
14372 lt_prog_compiler_wl_F77='-Qoption ld ';;
14373 *)
14374 lt_prog_compiler_wl_F77='-Wl,';;
14375 esac
14376 ;;
14377
14378 sunos4*)
14379 lt_prog_compiler_wl_F77='-Qoption ld '
14380 lt_prog_compiler_pic_F77='-PIC'
14381 lt_prog_compiler_static_F77='-Bstatic'
14382 ;;
14383
14384 sysv4 | sysv4.2uw2* | sysv4.3*)
14385 lt_prog_compiler_wl_F77='-Wl,'
14386 lt_prog_compiler_pic_F77='-KPIC'
14387 lt_prog_compiler_static_F77='-Bstatic'
14388 ;;
14389
14390 sysv4*MP*)
14391 if test -d /usr/nec ;then
14392 lt_prog_compiler_pic_F77='-Kconform_pic'
14393 lt_prog_compiler_static_F77='-Bstatic'
14394 fi
14395 ;;
14396
14397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14398 lt_prog_compiler_wl_F77='-Wl,'
14399 lt_prog_compiler_pic_F77='-KPIC'
14400 lt_prog_compiler_static_F77='-Bstatic'
14401 ;;
14402
14403 unicos*)
14404 lt_prog_compiler_wl_F77='-Wl,'
14405 lt_prog_compiler_can_build_shared_F77=no
14406 ;;
14407
14408 uts4*)
14409 lt_prog_compiler_pic_F77='-pic'
14410 lt_prog_compiler_static_F77='-Bstatic'
14411 ;;
14412
14413 *)
14414 lt_prog_compiler_can_build_shared_F77=no
14415 ;;
14416 esac
14417 fi
14418
14419echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14420echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14421
14422#
14423# Check to make sure the PIC flag actually works.
14424#
14425if test -n "$lt_prog_compiler_pic_F77"; then
14426
14427echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14428echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14429if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14431else
14432 lt_prog_compiler_pic_works_F77=no
14433 ac_outfile=conftest.$ac_objext
14434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14435 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14436 # Insert the option either (1) after the last *FLAGS variable, or
14437 # (2) before a word containing "conftest.", or (3) at the end.
14438 # Note that $ac_compile itself does not contain backslashes and begins
14439 # with a dollar sign (not a hyphen), so the echo should work correctly.
14440 # The option is referenced via a variable to avoid confusing sed.
14441 lt_compile=`echo "$ac_compile" | $SED \
14442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14444 -e 's:$: $lt_compiler_flag:'`
14445 (eval echo "\"\$as_me:14445: $lt_compile\"" >&5)
14446 (eval "$lt_compile" 2>conftest.err)
14447 ac_status=$?
14448 cat conftest.err >&5
14449 echo "$as_me:14449: \$? = $ac_status" >&5
14450 if (exit $ac_status) && test -s "$ac_outfile"; then
14451 # The compiler can only warn and ignore the option if not recognized
14452 # So say no if there are warnings other than the usual output.
14453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14456 lt_prog_compiler_pic_works_F77=yes
14457 fi
14458 fi
14459 $rm conftest*
14460
14461fi
14462echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14463echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14464
14465if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14466 case $lt_prog_compiler_pic_F77 in
14467 "" | " "*) ;;
14468 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14469 esac
14470else
14471 lt_prog_compiler_pic_F77=
14472 lt_prog_compiler_can_build_shared_F77=no
14473fi
14474
14475fi
14476case $host_os in
14477 # For platforms which do not support PIC, -DPIC is meaningless:
14478 *djgpp*)
14479 lt_prog_compiler_pic_F77=
14480 ;;
14481 *)
14482 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14483 ;;
14484esac
14485
14486#
14487# Check to make sure the static flag actually works.
14488#
14489wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14490echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14491echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14492if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 lt_prog_compiler_static_works_F77=no
14496 save_LDFLAGS="$LDFLAGS"
14497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14498 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14500 # The linker can only warn and ignore the option if not recognized
14501 # So say no if there are warnings
14502 if test -s conftest.err; then
14503 # Append any errors to the config.log.
14504 cat conftest.err 1>&5
14505 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14507 if diff conftest.exp conftest.er2 >/dev/null; then
14508 lt_prog_compiler_static_works_F77=yes
14509 fi
14510 else
14511 lt_prog_compiler_static_works_F77=yes
14512 fi
14513 fi
14514 $rm conftest*
14515 LDFLAGS="$save_LDFLAGS"
14516
14517fi
14518echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14519echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14520
14521if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14522 :
14523else
14524 lt_prog_compiler_static_F77=
14525fi
14526
14527
14528echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14529echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14530if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 lt_cv_prog_compiler_c_o_F77=no
14534 $rm -r conftest 2>/dev/null
14535 mkdir conftest
14536 cd conftest
14537 mkdir out
14538 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14539
14540 lt_compiler_flag="-o out/conftest2.$ac_objext"
14541 # Insert the option either (1) after the last *FLAGS variable, or
14542 # (2) before a word containing "conftest.", or (3) at the end.
14543 # Note that $ac_compile itself does not contain backslashes and begins
14544 # with a dollar sign (not a hyphen), so the echo should work correctly.
14545 lt_compile=`echo "$ac_compile" | $SED \
14546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14548 -e 's:$: $lt_compiler_flag:'`
14549 (eval echo "\"\$as_me:14549: $lt_compile\"" >&5)
14550 (eval "$lt_compile" 2>out/conftest.err)
14551 ac_status=$?
14552 cat out/conftest.err >&5
14553 echo "$as_me:14553: \$? = $ac_status" >&5
14554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14555 then
14556 # The compiler can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14561 lt_cv_prog_compiler_c_o_F77=yes
14562 fi
14563 fi
14564 chmod u+w . 2>&5
14565 $rm conftest*
14566 # SGI C++ compiler will create directory out/ii_files/ for
14567 # template instantiation
14568 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14569 $rm out/* && rmdir out
14570 cd ..
14571 rmdir conftest
14572 $rm conftest*
14573
14574fi
14575echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14576echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14577
14578
14579hard_links="nottested"
14580if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14581 # do not overwrite the value of need_locks provided by the user
14582 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14583echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14584 hard_links=yes
14585 $rm conftest*
14586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14587 touch conftest.a
14588 ln conftest.a conftest.b 2>&5 || hard_links=no
14589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14590 echo "$as_me:$LINENO: result: $hard_links" >&5
14591echo "${ECHO_T}$hard_links" >&6
14592 if test "$hard_links" = no; then
14593 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14594echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14595 need_locks=warn
14596 fi
14597else
14598 need_locks=no
14599fi
14600
14601echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14602echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14603
14604 runpath_var=
14605 allow_undefined_flag_F77=
14606 enable_shared_with_static_runtimes_F77=no
14607 archive_cmds_F77=
14608 archive_expsym_cmds_F77=
14609 old_archive_From_new_cmds_F77=
14610 old_archive_from_expsyms_cmds_F77=
14611 export_dynamic_flag_spec_F77=
14612 whole_archive_flag_spec_F77=
14613 thread_safe_flag_spec_F77=
14614 hardcode_libdir_flag_spec_F77=
14615 hardcode_libdir_flag_spec_ld_F77=
14616 hardcode_libdir_separator_F77=
14617 hardcode_direct_F77=no
14618 hardcode_minus_L_F77=no
14619 hardcode_shlibpath_var_F77=unsupported
14620 link_all_deplibs_F77=unknown
14621 hardcode_automatic_F77=no
14622 module_cmds_F77=
14623 module_expsym_cmds_F77=
14624 always_export_symbols_F77=no
14625 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14626 # include_expsyms should be a list of space-separated symbols to be *always*
14627 # included in the symbol list
14628 include_expsyms_F77=
14629 # exclude_expsyms can be an extended regexp of symbols to exclude
14630 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14631 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14632 # as well as any symbol that contains `d'.
14633 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14634 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14635 # platforms (ab)use it in PIC code, but their linkers get confused if
14636 # the symbol is explicitly referenced. Since portable code cannot
14637 # rely on this symbol name, it's probably fine to never include it in
14638 # preloaded symbol tables.
14639 extract_expsyms_cmds=
14640 # Just being paranoid about ensuring that cc_basename is set.
14641 for cc_temp in $compiler""; do
14642 case $cc_temp in
14643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14645 \-*) ;;
14646 *) break;;
14647 esac
14648done
14649cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14650
14651 case $host_os in
14652 cygwin* | mingw* | pw32*)
14653 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14654 # When not using gcc, we currently assume that we are using
14655 # Microsoft Visual C++.
14656 if test "$GCC" != yes; then
14657 with_gnu_ld=no
14658 fi
14659 ;;
14660 interix*)
14661 # we just hope/assume this is gcc and not c89 (= MSVC++)
14662 with_gnu_ld=yes
14663 ;;
14664 openbsd*)
14665 with_gnu_ld=no
14666 ;;
14667 esac
14668
14669 ld_shlibs_F77=yes
14670 if test "$with_gnu_ld" = yes; then
14671 # If archive_cmds runs LD, not CC, wlarc should be empty
14672 wlarc='${wl}'
14673
14674 # Set some defaults for GNU ld with shared library support. These
14675 # are reset later if shared libraries are not supported. Putting them
14676 # here allows them to be overridden if necessary.
14677 runpath_var=LD_RUN_PATH
14678 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14679 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14680 # ancient GNU ld didn't support --whole-archive et. al.
14681 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14682 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14683 else
14684 whole_archive_flag_spec_F77=
14685 fi
14686 supports_anon_versioning=no
14687 case `$LD -v 2>/dev/null` in
14688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14691 *\ 2.11.*) ;; # other 2.11 versions
14692 *) supports_anon_versioning=yes ;;
14693 esac
14694
14695 # See if GNU ld supports shared libraries.
14696 case $host_os in
14697 aix3* | aix4* | aix5*)
14698 # On AIX/PPC, the GNU linker is very broken
14699 if test "$host_cpu" != ia64; then
14700 ld_shlibs_F77=no
14701 cat <<EOF 1>&2
14702
14703*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14704*** to be unable to reliably create shared libraries on AIX.
14705*** Therefore, libtool is disabling shared libraries support. If you
14706*** really care for shared libraries, you may want to modify your PATH
14707*** so that a non-GNU linker is found, and then restart.
14708
14709EOF
14710 fi
14711 ;;
14712
14713 amigaos*)
14714 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)'
14715 hardcode_libdir_flag_spec_F77='-L$libdir'
14716 hardcode_minus_L_F77=yes
14717
14718 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14719 # that the semantics of dynamic libraries on AmigaOS, at least up
14720 # to version 4, is to share data among multiple programs linked
14721 # with the same dynamic library. Since this doesn't match the
14722 # behavior of shared libraries on other platforms, we can't use
14723 # them.
14724 ld_shlibs_F77=no
14725 ;;
14726
14727 beos*)
14728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14729 allow_undefined_flag_F77=unsupported
14730 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14731 # support --undefined. This deserves some investigation. FIXME
14732 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14733 else
14734 ld_shlibs_F77=no
14735 fi
14736 ;;
14737
14738 cygwin* | mingw* | pw32*)
14739 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14740 # as there is no search path for DLLs.
14741 hardcode_libdir_flag_spec_F77='-L$libdir'
14742 allow_undefined_flag_F77=unsupported
14743 always_export_symbols_F77=no
14744 enable_shared_with_static_runtimes_F77=yes
14745 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14746
14747 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14748 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14749 # If the export-symbols file already is a .def file (1st line
14750 # is EXPORTS), use it as is; otherwise, prepend...
14751 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14752 cp $export_symbols $output_objdir/$soname.def;
14753 else
14754 echo EXPORTS > $output_objdir/$soname.def;
14755 cat $export_symbols >> $output_objdir/$soname.def;
14756 fi~
14757 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14758 else
14759 ld_shlibs_F77=no
14760 fi
14761 ;;
14762
14763 interix3*)
14764 hardcode_direct_F77=no
14765 hardcode_shlibpath_var_F77=no
14766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14767 export_dynamic_flag_spec_F77='${wl}-E'
14768 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14769 # Instead, shared libraries are loaded at an image base (0x10000000 by
14770 # default) and relocated if they conflict, which is a slow very memory
14771 # consuming and fragmenting process. To avoid this, we pick a random,
14772 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14773 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14774 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'
14775 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'
14776 ;;
14777
14778 linux*)
14779 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14780 tmp_addflag=
14781 case $cc_basename,$host_cpu in
14782 pgcc*) # Portland Group C compiler
14783 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'
14784 tmp_addflag=' $pic_flag'
14785 ;;
14786 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14787 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'
14788 tmp_addflag=' $pic_flag -Mnomain' ;;
14789 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14790 tmp_addflag=' -i_dynamic' ;;
14791 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14792 tmp_addflag=' -i_dynamic -nofor_main' ;;
14793 ifc* | ifort*) # Intel Fortran compiler
14794 tmp_addflag=' -nofor_main' ;;
14795 esac
14796 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14797
14798 if test $supports_anon_versioning = yes; then
14799 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14801 $echo "local: *; };" >> $output_objdir/$libname.ver~
14802 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14803 fi
14804 link_all_deplibs_F77=no
14805 else
14806 ld_shlibs_F77=no
14807 fi
14808 ;;
14809
14810 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14812 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14813 wlarc=
14814 else
14815 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14817 fi
14818 ;;
14819
14820 solaris*)
14821 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14822 ld_shlibs_F77=no
14823 cat <<EOF 1>&2
14824
14825*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14826*** create shared libraries on Solaris systems. Therefore, libtool
14827*** is disabling shared libraries support. We urge you to upgrade GNU
14828*** binutils to release 2.9.1 or newer. Another option is to modify
14829*** your PATH or compiler configuration so that the native linker is
14830*** used, and then restart.
14831
14832EOF
14833 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14836 else
14837 ld_shlibs_F77=no
14838 fi
14839 ;;
14840
14841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14842 case `$LD -v 2>&1` in
14843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14844 ld_shlibs_F77=no
14845 cat <<_LT_EOF 1>&2
14846
14847*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14848*** reliably create shared libraries on SCO systems. Therefore, libtool
14849*** is disabling shared libraries support. We urge you to upgrade GNU
14850*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14851*** your PATH or compiler configuration so that the native linker is
14852*** used, and then restart.
14853
14854_LT_EOF
14855 ;;
14856 *)
14857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14858 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14860 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14861 else
14862 ld_shlibs_F77=no
14863 fi
14864 ;;
14865 esac
14866 ;;
14867
14868 sunos4*)
14869 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14870 wlarc=
14871 hardcode_direct_F77=yes
14872 hardcode_shlibpath_var_F77=no
14873 ;;
14874
14875 *)
14876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14879 else
14880 ld_shlibs_F77=no
14881 fi
14882 ;;
14883 esac
14884
14885 if test "$ld_shlibs_F77" = no; then
14886 runpath_var=
14887 hardcode_libdir_flag_spec_F77=
14888 export_dynamic_flag_spec_F77=
14889 whole_archive_flag_spec_F77=
14890 fi
14891 else
14892 # PORTME fill in a description of your system's linker (not GNU ld)
14893 case $host_os in
14894 aix3*)
14895 allow_undefined_flag_F77=unsupported
14896 always_export_symbols_F77=yes
14897 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'
14898 # Note: this linker hardcodes the directories in LIBPATH if there
14899 # are no directories specified by -L.
14900 hardcode_minus_L_F77=yes
14901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14902 # Neither direct hardcoding nor static linking is supported with a
14903 # broken collect2.
14904 hardcode_direct_F77=unsupported
14905 fi
14906 ;;
14907
14908 aix4* | aix5*)
14909 if test "$host_cpu" = ia64; then
14910 # On IA64, the linker does run time linking by default, so we don't
14911 # have to do anything special.
14912 aix_use_runtimelinking=no
14913 exp_sym_flag='-Bexport'
14914 no_entry_flag=""
14915 else
14916 # If we're using GNU nm, then we don't want the "-C" option.
14917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14919 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'
14920 else
14921 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'
14922 fi
14923 aix_use_runtimelinking=no
14924
14925 # Test if we are trying to use run time linking or normal
14926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14927 # need to do runtime linking.
14928 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14929 for ld_flag in $LDFLAGS; do
14930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14931 aix_use_runtimelinking=yes
14932 break
14933 fi
14934 done
14935 ;;
14936 esac
14937
14938 exp_sym_flag='-bexport'
14939 no_entry_flag='-bnoentry'
14940 fi
14941
14942 # When large executables or shared objects are built, AIX ld can
14943 # have problems creating the table of contents. If linking a library
14944 # or program results in "error TOC overflow" add -mminimal-toc to
14945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14947
14948 archive_cmds_F77=''
14949 hardcode_direct_F77=yes
14950 hardcode_libdir_separator_F77=':'
14951 link_all_deplibs_F77=yes
14952
14953 if test "$GCC" = yes; then
14954 case $host_os in aix4.[012]|aix4.[012].*)
14955 # We only want to do this on AIX 4.2 and lower, the check
14956 # below for broken collect2 doesn't work under 4.3+
14957 collect2name=`${CC} -print-prog-name=collect2`
14958 if test -f "$collect2name" && \
14959 strings "$collect2name" | grep resolve_lib_name >/dev/null
14960 then
14961 # We have reworked collect2
14962 hardcode_direct_F77=yes
14963 else
14964 # We have old collect2
14965 hardcode_direct_F77=unsupported
14966 # It fails to find uninstalled libraries when the uninstalled
14967 # path is not listed in the libpath. Setting hardcode_minus_L
14968 # to unsupported forces relinking
14969 hardcode_minus_L_F77=yes
14970 hardcode_libdir_flag_spec_F77='-L$libdir'
14971 hardcode_libdir_separator_F77=
14972 fi
14973 ;;
14974 esac
14975 shared_flag='-shared'
14976 if test "$aix_use_runtimelinking" = yes; then
14977 shared_flag="$shared_flag "'${wl}-G'
14978 fi
14979 else
14980 # not using gcc
14981 if test "$host_cpu" = ia64; then
14982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14983 # chokes on -Wl,-G. The following line is correct:
14984 shared_flag='-G'
14985 else
14986 if test "$aix_use_runtimelinking" = yes; then
14987 shared_flag='${wl}-G'
14988 else
14989 shared_flag='${wl}-bM:SRE'
14990 fi
14991 fi
14992 fi
14993
14994 # It seems that -bexpall does not export symbols beginning with
14995 # underscore (_), so it is better to generate a list of symbols to export.
14996 always_export_symbols_F77=yes
14997 if test "$aix_use_runtimelinking" = yes; then
14998 # Warning - without using the other runtime loading flags (-brtl),
14999 # -berok will link without error, but may produce a broken library.
15000 allow_undefined_flag_F77='-berok'
15001 # Determine the default libpath from the value encoded in an empty executable.
15002 cat >conftest.$ac_ext <<_ACEOF
15003 program main
15004
15005 end
15006_ACEOF
15007rm -f conftest.$ac_objext conftest$ac_exeext
15008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15009 (eval $ac_link) 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
15022 { ac_try='test -s conftest$ac_exeext'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028
15029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15030}'`
15031# Check for a 64-bit object if we didn't find anything.
15032if 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; }
15033}'`; fi
15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
15038fi
15039rm -f conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15042
15043 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15044 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"
15045 else
15046 if test "$host_cpu" = ia64; then
15047 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15048 allow_undefined_flag_F77="-z nodefs"
15049 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"
15050 else
15051 # Determine the default libpath from the value encoded in an empty executable.
15052 cat >conftest.$ac_ext <<_ACEOF
15053 program main
15054
15055 end
15056_ACEOF
15057rm -f conftest.$ac_objext conftest$ac_exeext
15058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078
15079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15080}'`
15081# Check for a 64-bit object if we didn't find anything.
15082if 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; }
15083}'`; fi
15084else
15085 echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
15088fi
15089rm -f conftest.err conftest.$ac_objext \
15090 conftest$ac_exeext conftest.$ac_ext
15091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15092
15093 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15094 # Warning - without using the other run time loading flags,
15095 # -berok will link without error, but may produce a broken library.
15096 no_undefined_flag_F77=' ${wl}-bernotok'
15097 allow_undefined_flag_F77=' ${wl}-berok'
15098 # Exported symbols can be pulled into shared objects from archives
15099 whole_archive_flag_spec_F77='$convenience'
15100 archive_cmds_need_lc_F77=yes
15101 # This is similar to how AIX traditionally builds its shared libraries.
15102 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'
15103 fi
15104 fi
15105 ;;
15106
15107 amigaos*)
15108 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)'
15109 hardcode_libdir_flag_spec_F77='-L$libdir'
15110 hardcode_minus_L_F77=yes
15111 # see comment about different semantics on the GNU ld section
15112 ld_shlibs_F77=no
15113 ;;
15114
15115 bsdi[45]*)
15116 export_dynamic_flag_spec_F77=-rdynamic
15117 ;;
15118
15119 cygwin* | mingw* | pw32*)
15120 # When not using gcc, we currently assume that we are using
15121 # Microsoft Visual C++.
15122 # hardcode_libdir_flag_spec is actually meaningless, as there is
15123 # no search path for DLLs.
15124 hardcode_libdir_flag_spec_F77=' '
15125 allow_undefined_flag_F77=unsupported
15126 # Tell ltmain to make .lib files, not .a files.
15127 libext=lib
15128 # Tell ltmain to make .dll files, not .so files.
15129 shrext_cmds=".dll"
15130 # FIXME: Setting linknames here is a bad hack.
15131 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15132 # The linker will automatically build a .lib file if we build a DLL.
15133 old_archive_From_new_cmds_F77='true'
15134 # FIXME: Should let the user specify the lib program.
15135 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15136 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15137 enable_shared_with_static_runtimes_F77=yes
15138 ;;
15139
15140 darwin* | rhapsody*)
15141 case $host_os in
15142 rhapsody* | darwin1.[012])
15143 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15144 ;;
15145 *) # Darwin 1.3 on
15146 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15147 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15148 else
15149 case ${MACOSX_DEPLOYMENT_TARGET} in
15150 10.[012])
15151 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15152 ;;
15153 10.*)
15154 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15155 ;;
15156 esac
15157 fi
15158 ;;
15159 esac
15160 archive_cmds_need_lc_F77=no
15161 hardcode_direct_F77=no
15162 hardcode_automatic_F77=yes
15163 hardcode_shlibpath_var_F77=unsupported
15164 whole_archive_flag_spec_F77=''
15165 link_all_deplibs_F77=yes
15166 if test "$GCC" = yes ; then
15167 output_verbose_link_cmd='echo'
15168 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15169 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15170 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15171 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}'
15172 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}'
15173 else
15174 case $cc_basename in
15175 xlc*)
15176 output_verbose_link_cmd='echo'
15177 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15178 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15180 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}'
15181 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}'
15182 ;;
15183 *)
15184 ld_shlibs_F77=no
15185 ;;
15186 esac
15187 fi
15188 ;;
15189
15190 dgux*)
15191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15192 hardcode_libdir_flag_spec_F77='-L$libdir'
15193 hardcode_shlibpath_var_F77=no
15194 ;;
15195
15196 freebsd1*)
15197 ld_shlibs_F77=no
15198 ;;
15199
15200 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15201 # support. Future versions do this automatically, but an explicit c++rt0.o
15202 # does not break anything, and helps significantly (at the cost of a little
15203 # extra space).
15204 freebsd2.2*)
15205 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15206 hardcode_libdir_flag_spec_F77='-R$libdir'
15207 hardcode_direct_F77=yes
15208 hardcode_shlibpath_var_F77=no
15209 ;;
15210
15211 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15212 freebsd2*)
15213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15214 hardcode_direct_F77=yes
15215 hardcode_minus_L_F77=yes
15216 hardcode_shlibpath_var_F77=no
15217 ;;
15218
15219 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15220 freebsd* | dragonfly*)
15221 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15222 hardcode_libdir_flag_spec_F77='-R$libdir'
15223 hardcode_direct_F77=yes
15224 hardcode_shlibpath_var_F77=no
15225 ;;
15226
15227 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
15228 kfreebsd*-gnu)
15229 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15230 hardcode_libdir_flag_spec_F77='-R$libdir'
15231 hardcode_direct_F77=yes
15232 hardcode_shlibpath_var_F77=no
15233 link_all_deplibs_F77=no
15234 ;;
15235
15236 hpux9*)
15237 if test "$GCC" = yes; then
15238 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'
15239 else
15240 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'
15241 fi
15242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15243 hardcode_libdir_separator_F77=:
15244 hardcode_direct_F77=yes
15245
15246 # hardcode_minus_L: Not really in the search PATH,
15247 # but as the default location of the library.
15248 hardcode_minus_L_F77=yes
15249 export_dynamic_flag_spec_F77='${wl}-E'
15250 ;;
15251
15252 hpux10*)
15253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15254 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255 else
15256 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15257 fi
15258 if test "$with_gnu_ld" = no; then
15259 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15260 hardcode_libdir_separator_F77=:
15261
15262 hardcode_direct_F77=yes
15263 export_dynamic_flag_spec_F77='${wl}-E'
15264
15265 # hardcode_minus_L: Not really in the search PATH,
15266 # but as the default location of the library.
15267 hardcode_minus_L_F77=yes
15268 fi
15269 ;;
15270
15271 hpux11*)
15272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15273 case $host_cpu in
15274 hppa*64*)
15275 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15276 ;;
15277 ia64*)
15278 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15279 ;;
15280 *)
15281 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15282 ;;
15283 esac
15284 else
15285 case $host_cpu in
15286 hppa*64*)
15287 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15288 ;;
15289 ia64*)
15290 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15291 ;;
15292 *)
15293 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15294 ;;
15295 esac
15296 fi
15297 if test "$with_gnu_ld" = no; then
15298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15299 hardcode_libdir_separator_F77=:
15300
15301 case $host_cpu in
15302 hppa*64*|ia64*)
15303 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15304 hardcode_direct_F77=no
15305 hardcode_shlibpath_var_F77=no
15306 ;;
15307 *)
15308 hardcode_direct_F77=yes
15309 export_dynamic_flag_spec_F77='${wl}-E'
15310
15311 # hardcode_minus_L: Not really in the search PATH,
15312 # but as the default location of the library.
15313 hardcode_minus_L_F77=yes
15314 ;;
15315 esac
15316 fi
15317 ;;
15318
15319 irix5* | irix6* | nonstopux*)
15320 if test "$GCC" = yes; then
15321 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'
15322 else
15323 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'
15324 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15325 fi
15326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15327 hardcode_libdir_separator_F77=:
15328 link_all_deplibs_F77=yes
15329 ;;
15330
15331 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15333 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15334 else
15335 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15336 fi
15337 hardcode_libdir_flag_spec_F77='-R$libdir'
15338 hardcode_direct_F77=yes
15339 hardcode_shlibpath_var_F77=no
15340 ;;
15341
15342 newsos6)
15343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_direct_F77=yes
15345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15346 hardcode_libdir_separator_F77=:
15347 hardcode_shlibpath_var_F77=no
15348 ;;
15349
15350 openbsd*)
15351 hardcode_direct_F77=yes
15352 hardcode_shlibpath_var_F77=no
15353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15354 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15356 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15357 export_dynamic_flag_spec_F77='${wl}-E'
15358 else
15359 case $host_os in
15360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15362 hardcode_libdir_flag_spec_F77='-R$libdir'
15363 ;;
15364 *)
15365 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15366 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15367 ;;
15368 esac
15369 fi
15370 ;;
15371
15372 os2*)
15373 hardcode_libdir_flag_spec_F77='-L$libdir'
15374 hardcode_minus_L_F77=yes
15375 allow_undefined_flag_F77=unsupported
15376 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'
15377 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15378 ;;
15379
15380 osf3*)
15381 if test "$GCC" = yes; then
15382 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15383 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'
15384 else
15385 allow_undefined_flag_F77=' -expect_unresolved \*'
15386 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'
15387 fi
15388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15389 hardcode_libdir_separator_F77=:
15390 ;;
15391
15392 osf4* | osf5*) # as osf3* with the addition of -msym flag
15393 if test "$GCC" = yes; then
15394 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15395 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'
15396 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15397 else
15398 allow_undefined_flag_F77=' -expect_unresolved \*'
15399 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'
15400 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~
15401 $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'
15402
15403 # Both c and cxx compiler support -rpath directly
15404 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15405 fi
15406 hardcode_libdir_separator_F77=:
15407 ;;
15408
15409 solaris*)
15410 no_undefined_flag_F77=' -z text'
15411 if test "$GCC" = yes; then
15412 wlarc='${wl}'
15413 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15416 else
15417 wlarc=''
15418 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15421 fi
15422 hardcode_libdir_flag_spec_F77='-R$libdir'
15423 hardcode_shlibpath_var_F77=no
15424 case $host_os in
15425 solaris2.[0-5] | solaris2.[0-5].*) ;;
15426 *)
15427 # The compiler driver will combine linker options so we
15428 # cannot just pass the convience library names through
15429 # without $wl, iff we do not link with $LD.
15430 # Luckily, gcc supports the same syntax we need for Sun Studio.
15431 # Supported since Solaris 2.6 (maybe 2.5.1?)
15432 case $wlarc in
15433 '')
15434 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15435 *)
15436 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' ;;
15437 esac ;;
15438 esac
15439 link_all_deplibs_F77=yes
15440 ;;
15441
15442 sunos4*)
15443 if test "x$host_vendor" = xsequent; then
15444 # Use $CC to link under sequent, because it throws in some extra .o
15445 # files that make .init and .fini sections work.
15446 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15447 else
15448 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15449 fi
15450 hardcode_libdir_flag_spec_F77='-L$libdir'
15451 hardcode_direct_F77=yes
15452 hardcode_minus_L_F77=yes
15453 hardcode_shlibpath_var_F77=no
15454 ;;
15455
15456 sysv4)
15457 case $host_vendor in
15458 sni)
15459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct_F77=yes # is this really true???
15461 ;;
15462 siemens)
15463 ## LD is ld it makes a PLAMLIB
15464 ## CC just makes a GrossModule.
15465 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15466 reload_cmds_F77='$CC -r -o $output$reload_objs'
15467 hardcode_direct_F77=no
15468 ;;
15469 motorola)
15470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15472 ;;
15473 esac
15474 runpath_var='LD_RUN_PATH'
15475 hardcode_shlibpath_var_F77=no
15476 ;;
15477
15478 sysv4.3*)
15479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 hardcode_shlibpath_var_F77=no
15481 export_dynamic_flag_spec_F77='-Bexport'
15482 ;;
15483
15484 sysv4*MP*)
15485 if test -d /usr/nec; then
15486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_shlibpath_var_F77=no
15488 runpath_var=LD_RUN_PATH
15489 hardcode_runpath_var=yes
15490 ld_shlibs_F77=yes
15491 fi
15492 ;;
15493
15494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15495 no_undefined_flag_F77='${wl}-z,text'
15496 archive_cmds_need_lc_F77=no
15497 hardcode_shlibpath_var_F77=no
15498 runpath_var='LD_RUN_PATH'
15499
15500 if test "$GCC" = yes; then
15501 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15503 else
15504 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 fi
15507 ;;
15508
15509 sysv5* | sco3.2v5* | sco5v6*)
15510 # Note: We can NOT use -z defs as we might desire, because we do not
15511 # link with -lc, and that would cause any symbols used from libc to
15512 # always be unresolved, which means just about no library would
15513 # ever link correctly. If we're not using GNU ld we use -z text
15514 # though, which does catch some bad symbols but isn't as heavy-handed
15515 # as -z defs.
15516 no_undefined_flag_F77='${wl}-z,text'
15517 allow_undefined_flag_F77='${wl}-z,nodefs'
15518 archive_cmds_need_lc_F77=no
15519 hardcode_shlibpath_var_F77=no
15520 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15521 hardcode_libdir_separator_F77=':'
15522 link_all_deplibs_F77=yes
15523 export_dynamic_flag_spec_F77='${wl}-Bexport'
15524 runpath_var='LD_RUN_PATH'
15525
15526 if test "$GCC" = yes; then
15527 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 else
15530 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 fi
15533 ;;
15534
15535 uts4*)
15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_libdir_flag_spec_F77='-L$libdir'
15538 hardcode_shlibpath_var_F77=no
15539 ;;
15540
15541 *)
15542 ld_shlibs_F77=no
15543 ;;
15544 esac
15545 fi
15546
15547echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15548echo "${ECHO_T}$ld_shlibs_F77" >&6
15549test "$ld_shlibs_F77" = no && can_build_shared=no
15550
15551#
15552# Do we need to explicitly link libc?
15553#
15554case "x$archive_cmds_need_lc_F77" in
15555x|xyes)
15556 # Assume -lc should be added
15557 archive_cmds_need_lc_F77=yes
15558
15559 if test "$enable_shared" = yes && test "$GCC" = yes; then
15560 case $archive_cmds_F77 in
15561 *'~'*)
15562 # FIXME: we may have to deal with multi-command sequences.
15563 ;;
15564 '$CC '*)
15565 # Test whether the compiler implicitly links with -lc since on some
15566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15567 # to ld, don't add -lc before -lgcc.
15568 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15570 $rm conftest*
15571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15572
15573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574 (eval $ac_compile) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } 2>conftest.err; then
15578 soname=conftest
15579 lib=conftest
15580 libobjs=conftest.$ac_objext
15581 deplibs=
15582 wl=$lt_prog_compiler_wl_F77
15583 pic_flag=$lt_prog_compiler_pic_F77
15584 compiler_flags=-v
15585 linker_flags=-v
15586 verstring=
15587 output_objdir=.
15588 libname=conftest
15589 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15590 allow_undefined_flag_F77=
15591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15592 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }
15596 then
15597 archive_cmds_need_lc_F77=no
15598 else
15599 archive_cmds_need_lc_F77=yes
15600 fi
15601 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15602 else
15603 cat conftest.err 1>&5
15604 fi
15605 $rm conftest*
15606 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15607echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15608 ;;
15609 esac
15610 fi
15611 ;;
15612esac
15613
15614echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15616library_names_spec=
15617libname_spec='lib$name'
15618soname_spec=
15619shrext_cmds=".so"
15620postinstall_cmds=
15621postuninstall_cmds=
15622finish_cmds=
15623finish_eval=
15624shlibpath_var=
15625shlibpath_overrides_runpath=unknown
15626version_type=none
15627dynamic_linker="$host_os ld.so"
15628sys_lib_dlsearch_path_spec="/lib /usr/lib"
15629if test "$GCC" = yes; then
15630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15632 # if the path contains ";" then we assume it to be the separator
15633 # otherwise default to the standard path separator (i.e. ":") - it is
15634 # assumed that no part of a normal pathname contains ";" but that should
15635 # okay in the real world where ";" in dirpaths is itself problematic.
15636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15637 else
15638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15639 fi
15640else
15641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15642fi
15643need_lib_prefix=unknown
15644hardcode_into_libs=no
15645
15646# when you set need_version to no, make sure it does not cause -set_version
15647# flags to be left without arguments
15648need_version=unknown
15649
15650case $host_os in
15651aix3*)
15652 version_type=linux
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15654 shlibpath_var=LIBPATH
15655
15656 # AIX 3 has no versioning support, so we append a major version to the name.
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 ;;
15659
15660aix4* | aix5*)
15661 version_type=linux
15662 need_lib_prefix=no
15663 need_version=no
15664 hardcode_into_libs=yes
15665 if test "$host_cpu" = ia64; then
15666 # AIX 5 supports IA64
15667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 else
15670 # With GCC up to 2.95.x, collect2 would create an import file
15671 # for dependence libraries. The import file would start with
15672 # the line `#! .'. This would cause the generated library to
15673 # depend on `.', always an invalid library. This was fixed in
15674 # development snapshots of GCC prior to 3.0.
15675 case $host_os in
15676 aix4 | aix4.[01] | aix4.[01].*)
15677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15678 echo ' yes '
15679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15680 :
15681 else
15682 can_build_shared=no
15683 fi
15684 ;;
15685 esac
15686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15687 # soname into executable. Probably we can add versioning support to
15688 # collect2, so additional links can be useful in future.
15689 if test "$aix_use_runtimelinking" = yes; then
15690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15691 # instead of lib<name>.a to let people know that these are not
15692 # typical AIX shared libraries.
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 else
15695 # We preserve .a as extension for shared libraries through AIX4.2
15696 # and later when we are not doing run time linking.
15697 library_names_spec='${libname}${release}.a $libname.a'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 fi
15700 shlibpath_var=LIBPATH
15701 fi
15702 ;;
15703
15704amigaos*)
15705 library_names_spec='$libname.ixlibrary $libname.a'
15706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15707 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'
15708 ;;
15709
15710beos*)
15711 library_names_spec='${libname}${shared_ext}'
15712 dynamic_linker="$host_os ld.so"
15713 shlibpath_var=LIBRARY_PATH
15714 ;;
15715
15716bsdi[45]*)
15717 version_type=linux
15718 need_version=no
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15725 # the default ld.so.conf also contains /usr/contrib/lib and
15726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15727 # libtool to hard-code these into programs
15728 ;;
15729
15730cygwin* | mingw* | pw32*)
15731 version_type=windows
15732 shrext_cmds=".dll"
15733 need_version=no
15734 need_lib_prefix=no
15735
15736 case $GCC,$host_os in
15737 yes,cygwin* | yes,mingw* | yes,pw32*)
15738 library_names_spec='$libname.dll.a'
15739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15740 postinstall_cmds='base_file=`basename \${file}`~
15741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15742 dldir=$destdir/`dirname \$dlpath`~
15743 test -d \$dldir || mkdir -p \$dldir~
15744 $install_prog $dir/$dlname \$dldir/$dlname~
15745 chmod a+x \$dldir/$dlname'
15746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15747 dlpath=$dir/\$dldll~
15748 $rm \$dlpath'
15749 shlibpath_overrides_runpath=yes
15750
15751 case $host_os in
15752 cygwin*)
15753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15756 ;;
15757 mingw*)
15758 # MinGW DLLs use traditional 'lib' prefix
15759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15762 # It is most probably a Windows format PATH printed by
15763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15764 # path with ; separators, and with drive letters. We can handle the
15765 # drive letters (cygwin fileutils understands them), so leave them,
15766 # especially as we might pass files found there to a mingw objdump,
15767 # which wouldn't understand a cygwinified path. Ahh.
15768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15769 else
15770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15771 fi
15772 ;;
15773 pw32*)
15774 # pw32 DLLs use 'pw' prefix rather than 'lib'
15775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15776 ;;
15777 esac
15778 ;;
15779
15780 *)
15781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15782 ;;
15783 esac
15784 dynamic_linker='Win32 ld.exe'
15785 # FIXME: first we should search . and the directory the executable is in
15786 shlibpath_var=PATH
15787 ;;
15788
15789darwin* | rhapsody*)
15790 dynamic_linker="$host_os dyld"
15791 version_type=darwin
15792 need_lib_prefix=no
15793 need_version=no
15794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15795 soname_spec='${libname}${release}${major}$shared_ext'
15796 shlibpath_overrides_runpath=yes
15797 shlibpath_var=DYLD_LIBRARY_PATH
15798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15800 if test "$GCC" = yes; then
15801 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"`
15802 else
15803 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15804 fi
15805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15806 ;;
15807
15808dgux*)
15809 version_type=linux
15810 need_lib_prefix=no
15811 need_version=no
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 ;;
15816
15817freebsd1*)
15818 dynamic_linker=no
15819 ;;
15820
15821kfreebsd*-gnu)
15822 version_type=linux
15823 need_lib_prefix=no
15824 need_version=no
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=no
15829 hardcode_into_libs=yes
15830 dynamic_linker='GNU ld.so'
15831 ;;
15832
15833freebsd* | dragonfly*)
15834 # DragonFly does not have aout. When/if they implement a new
15835 # versioning mechanism, adjust this.
15836 if test -x /usr/bin/objformat; then
15837 objformat=`/usr/bin/objformat`
15838 else
15839 case $host_os in
15840 freebsd[123]*) objformat=aout ;;
15841 *) objformat=elf ;;
15842 esac
15843 fi
15844 version_type=freebsd-$objformat
15845 case $version_type in
15846 freebsd-elf*)
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15848 need_version=no
15849 need_lib_prefix=no
15850 ;;
15851 freebsd-*)
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15853 need_version=yes
15854 ;;
15855 esac
15856 shlibpath_var=LD_LIBRARY_PATH
15857 case $host_os in
15858 freebsd2*)
15859 shlibpath_overrides_runpath=yes
15860 ;;
15861 freebsd3.[01]* | freebsdelf3.[01]*)
15862 shlibpath_overrides_runpath=yes
15863 hardcode_into_libs=yes
15864 ;;
15865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15867 shlibpath_overrides_runpath=no
15868 hardcode_into_libs=yes
15869 ;;
15870 freebsd*) # from 4.6 on
15871 shlibpath_overrides_runpath=yes
15872 hardcode_into_libs=yes
15873 ;;
15874 esac
15875 ;;
15876
15877gnu*)
15878 version_type=linux
15879 need_lib_prefix=no
15880 need_version=no
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 hardcode_into_libs=yes
15885 ;;
15886
15887hpux9* | hpux10* | hpux11*)
15888 # Give a soname corresponding to the major version so that dld.sl refuses to
15889 # link against other versions.
15890 version_type=sunos
15891 need_lib_prefix=no
15892 need_version=no
15893 case $host_cpu in
15894 ia64*)
15895 shrext_cmds='.so'
15896 hardcode_into_libs=yes
15897 dynamic_linker="$host_os dld.so"
15898 shlibpath_var=LD_LIBRARY_PATH
15899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 soname_spec='${libname}${release}${shared_ext}$major'
15902 if test "X$HPUX_IA64_MODE" = X32; then
15903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15904 else
15905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15906 fi
15907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15908 ;;
15909 hppa*64*)
15910 shrext_cmds='.sl'
15911 hardcode_into_libs=yes
15912 dynamic_linker="$host_os dld.sl"
15913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 ;;
15920 *)
15921 shrext_cmds='.sl'
15922 dynamic_linker="$host_os dld.sl"
15923 shlibpath_var=SHLIB_PATH
15924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926 soname_spec='${libname}${release}${shared_ext}$major'
15927 ;;
15928 esac
15929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15930 postinstall_cmds='chmod 555 $lib'
15931 ;;
15932
15933interix3*)
15934 version_type=linux
15935 need_lib_prefix=no
15936 need_version=no
15937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15938 soname_spec='${libname}${release}${shared_ext}$major'
15939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 shlibpath_overrides_runpath=no
15942 hardcode_into_libs=yes
15943 ;;
15944
15945irix5* | irix6* | nonstopux*)
15946 case $host_os in
15947 nonstopux*) version_type=nonstopux ;;
15948 *)
15949 if test "$lt_cv_prog_gnu_ld" = yes; then
15950 version_type=linux
15951 else
15952 version_type=irix
15953 fi ;;
15954 esac
15955 need_lib_prefix=no
15956 need_version=no
15957 soname_spec='${libname}${release}${shared_ext}$major'
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15959 case $host_os in
15960 irix5* | nonstopux*)
15961 libsuff= shlibsuff=
15962 ;;
15963 *)
15964 case $LD in # libtool.m4 will add one of these switches to LD
15965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15966 libsuff= shlibsuff= libmagic=32-bit;;
15967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15968 libsuff=32 shlibsuff=N32 libmagic=N32;;
15969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15971 *) libsuff= shlibsuff= libmagic=never-match;;
15972 esac
15973 ;;
15974 esac
15975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15976 shlibpath_overrides_runpath=no
15977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15979 hardcode_into_libs=yes
15980 ;;
15981
15982# No shared lib support for Linux oldld, aout, or coff.
15983linux*oldld* | linux*aout* | linux*coff*)
15984 dynamic_linker=no
15985 ;;
15986
15987# This must be Linux ELF.
15988linux*)
15989 version_type=linux
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=no
15997 # This implies no fast_install, which is unacceptable.
15998 # Some rework will be needed to allow for fast_install
15999 # before this can be enabled.
16000 hardcode_into_libs=yes
16001
16002 # Append ld.so.conf contents to the search path
16003 if test -f /etc/ld.so.conf; then
16004 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16006 fi
16007
16008 # We used to test for /lib/ld.so.1 and disable shared libraries on
16009 # powerpc, because MkLinux only supported shared libraries with the
16010 # GNU dynamic linker. Since this was broken with cross compilers,
16011 # most powerpc-linux boxes support dynamic linking these days and
16012 # people can always --disable-shared, the test was removed, and we
16013 # assume the GNU/Linux dynamic linker is in use.
16014 dynamic_linker='GNU/Linux ld.so'
16015 ;;
16016
16017netbsdelf*-gnu)
16018 version_type=linux
16019 need_lib_prefix=no
16020 need_version=no
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=no
16025 hardcode_into_libs=yes
16026 dynamic_linker='NetBSD ld.elf_so'
16027 ;;
16028
16029knetbsd*-gnu)
16030 version_type=linux
16031 need_lib_prefix=no
16032 need_version=no
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 shlibpath_overrides_runpath=no
16037 hardcode_into_libs=yes
16038 dynamic_linker='GNU ld.so'
16039 ;;
16040
16041netbsd*)
16042 version_type=sunos
16043 need_lib_prefix=no
16044 need_version=no
16045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16048 dynamic_linker='NetBSD (a.out) ld.so'
16049 else
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 dynamic_linker='NetBSD ld.elf_so'
16053 fi
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=yes
16056 hardcode_into_libs=yes
16057 ;;
16058
16059newsos6)
16060 version_type=linux
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 ;;
16065
16066nto-qnx*)
16067 version_type=linux
16068 need_lib_prefix=no
16069 need_version=no
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16071 soname_spec='${libname}${release}${shared_ext}$major'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 shlibpath_overrides_runpath=yes
16074 ;;
16075
16076openbsd*)
16077 version_type=sunos
16078 sys_lib_dlsearch_path_spec="/usr/lib"
16079 need_lib_prefix=no
16080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16081 case $host_os in
16082 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16083 *) need_version=no ;;
16084 esac
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16089 case $host_os in
16090 openbsd2.[89] | openbsd2.[89].*)
16091 shlibpath_overrides_runpath=no
16092 ;;
16093 *)
16094 shlibpath_overrides_runpath=yes
16095 ;;
16096 esac
16097 else
16098 shlibpath_overrides_runpath=yes
16099 fi
16100 ;;
16101
16102os2*)
16103 libname_spec='$name'
16104 shrext_cmds=".dll"
16105 need_lib_prefix=no
16106 library_names_spec='$libname${shared_ext} $libname.a'
16107 dynamic_linker='OS/2 ld.exe'
16108 shlibpath_var=LIBPATH
16109 ;;
16110
16111osf3* | osf4* | osf5*)
16112 version_type=osf
16113 need_lib_prefix=no
16114 need_version=no
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16120 ;;
16121
16122solaris*)
16123 version_type=linux
16124 need_lib_prefix=no
16125 need_version=no
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=yes
16130 hardcode_into_libs=yes
16131 # ldd complains unless libraries are executable
16132 postinstall_cmds='chmod +x $lib'
16133 ;;
16134
16135sunos4*)
16136 version_type=sunos
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16138 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 if test "$with_gnu_ld" = yes; then
16142 need_lib_prefix=no
16143 fi
16144 need_version=yes
16145 ;;
16146
16147sysv4 | sysv4.3*)
16148 version_type=linux
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 shlibpath_var=LD_LIBRARY_PATH
16152 case $host_vendor in
16153 sni)
16154 shlibpath_overrides_runpath=no
16155 need_lib_prefix=no
16156 export_dynamic_flag_spec='${wl}-Blargedynsym'
16157 runpath_var=LD_RUN_PATH
16158 ;;
16159 siemens)
16160 need_lib_prefix=no
16161 ;;
16162 motorola)
16163 need_lib_prefix=no
16164 need_version=no
16165 shlibpath_overrides_runpath=no
16166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16167 ;;
16168 esac
16169 ;;
16170
16171sysv4*MP*)
16172 if test -d /usr/nec ;then
16173 version_type=linux
16174 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16175 soname_spec='$libname${shared_ext}.$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 fi
16178 ;;
16179
16180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16181 version_type=freebsd-elf
16182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 hardcode_into_libs=yes
16188 if test "$with_gnu_ld" = yes; then
16189 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16190 shlibpath_overrides_runpath=no
16191 else
16192 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16193 shlibpath_overrides_runpath=yes
16194 case $host_os in
16195 sco3.2v5*)
16196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16197 ;;
16198 esac
16199 fi
16200 sys_lib_dlsearch_path_spec='/usr/lib'
16201 ;;
16202
16203uts4*)
16204 version_type=linux
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 ;;
16209
16210*)
16211 dynamic_linker=no
16212 ;;
16213esac
16214echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16215echo "${ECHO_T}$dynamic_linker" >&6
16216test "$dynamic_linker" = no && can_build_shared=no
16217
16218variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16219if test "$GCC" = yes; then
16220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16221fi
16222
16223echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16224echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16225hardcode_action_F77=
16226if test -n "$hardcode_libdir_flag_spec_F77" || \
16227 test -n "$runpath_var_F77" || \
16228 test "X$hardcode_automatic_F77" = "Xyes" ; then
16229
16230 # We can hardcode non-existant directories.
16231 if test "$hardcode_direct_F77" != no &&
16232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16233 # have to relink, otherwise we might link with an installed library
16234 # when we should be linking with a yet-to-be-installed one
16235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16236 test "$hardcode_minus_L_F77" != no; then
16237 # Linking always hardcodes the temporary library directory.
16238 hardcode_action_F77=relink
16239 else
16240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16241 hardcode_action_F77=immediate
16242 fi
16243else
16244 # We cannot hardcode anything, or else we can only hardcode existing
16245 # directories.
16246 hardcode_action_F77=unsupported
16247fi
16248echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16249echo "${ECHO_T}$hardcode_action_F77" >&6
16250
16251if test "$hardcode_action_F77" = relink; then
16252 # Fast installation is not supported
16253 enable_fast_install=no
16254elif test "$shlibpath_overrides_runpath" = yes ||
16255 test "$enable_shared" = no; then
16256 # Fast installation is not necessary
16257 enable_fast_install=needless
16258fi
16259
16260
16261# The else clause should only fire when bootstrapping the
16262# libtool distribution, otherwise you forgot to ship ltmain.sh
16263# with your package, and you will get complaints that there are
16264# no rules to generate ltmain.sh.
16265if test -f "$ltmain"; then
16266 # See if we are running on zsh, and set the options which allow our commands through
16267 # without removal of \ escapes.
16268 if test -n "${ZSH_VERSION+set}" ; then
16269 setopt NO_GLOB_SUBST
16270 fi
16271 # Now quote all the things that may contain metacharacters while being
16272 # careful not to overquote the AC_SUBSTed values. We take copies of the
16273 # variables and quote the copies for generation of the libtool script.
16274 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16275 SED SHELL STRIP \
16276 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16277 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16278 deplibs_check_method reload_flag reload_cmds need_locks \
16279 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16280 lt_cv_sys_global_symbol_to_c_name_address \
16281 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16282 old_postinstall_cmds old_postuninstall_cmds \
16283 compiler_F77 \
16284 CC_F77 \
16285 LD_F77 \
16286 lt_prog_compiler_wl_F77 \
16287 lt_prog_compiler_pic_F77 \
16288 lt_prog_compiler_static_F77 \
16289 lt_prog_compiler_no_builtin_flag_F77 \
16290 export_dynamic_flag_spec_F77 \
16291 thread_safe_flag_spec_F77 \
16292 whole_archive_flag_spec_F77 \
16293 enable_shared_with_static_runtimes_F77 \
16294 old_archive_cmds_F77 \
16295 old_archive_from_new_cmds_F77 \
16296 predep_objects_F77 \
16297 postdep_objects_F77 \
16298 predeps_F77 \
16299 postdeps_F77 \
16300 compiler_lib_search_path_F77 \
16301 archive_cmds_F77 \
16302 archive_expsym_cmds_F77 \
16303 postinstall_cmds_F77 \
16304 postuninstall_cmds_F77 \
16305 old_archive_from_expsyms_cmds_F77 \
16306 allow_undefined_flag_F77 \
16307 no_undefined_flag_F77 \
16308 export_symbols_cmds_F77 \
16309 hardcode_libdir_flag_spec_F77 \
16310 hardcode_libdir_flag_spec_ld_F77 \
16311 hardcode_libdir_separator_F77 \
16312 hardcode_automatic_F77 \
16313 module_cmds_F77 \
16314 module_expsym_cmds_F77 \
16315 lt_cv_prog_compiler_c_o_F77 \
16316 exclude_expsyms_F77 \
16317 include_expsyms_F77; do
16318
16319 case $var in
16320 old_archive_cmds_F77 | \
16321 old_archive_from_new_cmds_F77 | \
16322 archive_cmds_F77 | \
16323 archive_expsym_cmds_F77 | \
16324 module_cmds_F77 | \
16325 module_expsym_cmds_F77 | \
16326 old_archive_from_expsyms_cmds_F77 | \
16327 export_symbols_cmds_F77 | \
16328 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16329 postinstall_cmds | postuninstall_cmds | \
16330 old_postinstall_cmds | old_postuninstall_cmds | \
16331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16332 # Double-quote double-evaled strings.
16333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16334 ;;
16335 *)
16336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16337 ;;
16338 esac
16339 done
16340
16341 case $lt_echo in
16342 *'\$0 --fallback-echo"')
16343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16344 ;;
16345 esac
16346
16347cfgfile="$ofile"
16348
16349 cat <<__EOF__ >> "$cfgfile"
16350# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16351
16352# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16353
16354# Shell to use when invoking shell scripts.
16355SHELL=$lt_SHELL
16356
16357# Whether or not to build shared libraries.
16358build_libtool_libs=$enable_shared
16359
16360# Whether or not to build static libraries.
16361build_old_libs=$enable_static
16362
16363# Whether or not to add -lc for building shared libraries.
16364build_libtool_need_lc=$archive_cmds_need_lc_F77
16365
16366# Whether or not to disallow shared libs when runtime libs are static
16367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16368
16369# Whether or not to optimize for fast installation.
16370fast_install=$enable_fast_install
16371
16372# The host system.
16373host_alias=$host_alias
16374host=$host
16375host_os=$host_os
16376
16377# The build system.
16378build_alias=$build_alias
16379build=$build
16380build_os=$build_os
16381
16382# An echo program that does not interpret backslashes.
16383echo=$lt_echo
16384
16385# The archiver.
16386AR=$lt_AR
16387AR_FLAGS=$lt_AR_FLAGS
16388
16389# A C compiler.
16390LTCC=$lt_LTCC
16391
16392# LTCC compiler flags.
16393LTCFLAGS=$lt_LTCFLAGS
16394
16395# A language-specific compiler.
16396CC=$lt_compiler_F77
16397
16398# Is the compiler the GNU C compiler?
16399with_gcc=$GCC_F77
16400
16401# An ERE matcher.
16402EGREP=$lt_EGREP
16403
16404# The linker used to build libraries.
16405LD=$lt_LD_F77
16406
16407# Whether we need hard or soft links.
16408LN_S=$lt_LN_S
16409
16410# A BSD-compatible nm program.
16411NM=$lt_NM
16412
16413# A symbol stripping program
16414STRIP=$lt_STRIP
16415
16416# Used to examine libraries when file_magic_cmd begins "file"
16417MAGIC_CMD=$MAGIC_CMD
16418
16419# Used on cygwin: DLL creation program.
16420DLLTOOL="$DLLTOOL"
16421
16422# Used on cygwin: object dumper.
16423OBJDUMP="$OBJDUMP"
16424
16425# Used on cygwin: assembler.
16426AS="$AS"
16427
16428# The name of the directory that contains temporary libtool files.
16429objdir=$objdir
16430
16431# How to create reloadable object files.
16432reload_flag=$lt_reload_flag
16433reload_cmds=$lt_reload_cmds
16434
16435# How to pass a linker flag through the compiler.
16436wl=$lt_lt_prog_compiler_wl_F77
16437
16438# Object file suffix (normally "o").
16439objext="$ac_objext"
16440
16441# Old archive suffix (normally "a").
16442libext="$libext"
16443
16444# Shared library suffix (normally ".so").
16445shrext_cmds='$shrext_cmds'
16446
16447# Executable file suffix (normally "").
16448exeext="$exeext"
16449
16450# Additional compiler flags for building library objects.
16451pic_flag=$lt_lt_prog_compiler_pic_F77
16452pic_mode=$pic_mode
16453
16454# What is the maximum length of a command?
16455max_cmd_len=$lt_cv_sys_max_cmd_len
16456
16457# Does compiler simultaneously support -c and -o options?
16458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16459
16460# Must we lock files when doing compilation?
16461need_locks=$lt_need_locks
16462
16463# Do we need the lib prefix for modules?
16464need_lib_prefix=$need_lib_prefix
16465
16466# Do we need a version for libraries?
16467need_version=$need_version
16468
16469# Whether dlopen is supported.
16470dlopen_support=$enable_dlopen
16471
16472# Whether dlopen of programs is supported.
16473dlopen_self=$enable_dlopen_self
16474
16475# Whether dlopen of statically linked programs is supported.
16476dlopen_self_static=$enable_dlopen_self_static
16477
16478# Compiler flag to prevent dynamic linking.
16479link_static_flag=$lt_lt_prog_compiler_static_F77
16480
16481# Compiler flag to turn off builtin functions.
16482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16483
16484# Compiler flag to allow reflexive dlopens.
16485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16486
16487# Compiler flag to generate shared objects directly from archives.
16488whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16489
16490# Compiler flag to generate thread-safe objects.
16491thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16492
16493# Library versioning type.
16494version_type=$version_type
16495
16496# Format of library name prefix.
16497libname_spec=$lt_libname_spec
16498
16499# List of archive names. First name is the real one, the rest are links.
16500# The last name is the one that the linker finds with -lNAME.
16501library_names_spec=$lt_library_names_spec
16502
16503# The coded name of the library, if different from the real name.
16504soname_spec=$lt_soname_spec
16505
16506# Commands used to build and install an old-style archive.
16507RANLIB=$lt_RANLIB
16508old_archive_cmds=$lt_old_archive_cmds_F77
16509old_postinstall_cmds=$lt_old_postinstall_cmds
16510old_postuninstall_cmds=$lt_old_postuninstall_cmds
16511
16512# Create an old-style archive from a shared archive.
16513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16514
16515# Create a temporary old-style archive to link instead of a shared archive.
16516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16517
16518# Commands used to build and install a shared archive.
16519archive_cmds=$lt_archive_cmds_F77
16520archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16521postinstall_cmds=$lt_postinstall_cmds
16522postuninstall_cmds=$lt_postuninstall_cmds
16523
16524# Commands used to build a loadable module (assumed same as above if empty)
16525module_cmds=$lt_module_cmds_F77
16526module_expsym_cmds=$lt_module_expsym_cmds_F77
16527
16528# Commands to strip libraries.
16529old_striplib=$lt_old_striplib
16530striplib=$lt_striplib
16531
16532# Dependencies to place before the objects being linked to create a
16533# shared library.
16534predep_objects=$lt_predep_objects_F77
16535
16536# Dependencies to place after the objects being linked to create a
16537# shared library.
16538postdep_objects=$lt_postdep_objects_F77
16539
16540# Dependencies to place before the objects being linked to create a
16541# shared library.
16542predeps=$lt_predeps_F77
16543
16544# Dependencies to place after the objects being linked to create a
16545# shared library.
16546postdeps=$lt_postdeps_F77
16547
16548# The library search path used internally by the compiler when linking
16549# a shared library.
16550compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16551
16552# Method to check whether dependent libraries are shared objects.
16553deplibs_check_method=$lt_deplibs_check_method
16554
16555# Command to use when deplibs_check_method == file_magic.
16556file_magic_cmd=$lt_file_magic_cmd
16557
16558# Flag that allows shared libraries with undefined symbols to be built.
16559allow_undefined_flag=$lt_allow_undefined_flag_F77
16560
16561# Flag that forces no undefined symbols.
16562no_undefined_flag=$lt_no_undefined_flag_F77
16563
16564# Commands used to finish a libtool library installation in a directory.
16565finish_cmds=$lt_finish_cmds
16566
16567# Same as above, but a single script fragment to be evaled but not shown.
16568finish_eval=$lt_finish_eval
16569
16570# Take the output of nm and produce a listing of raw symbols and C names.
16571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16572
16573# Transform the output of nm in a proper C declaration
16574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16575
16576# Transform the output of nm in a C name address pair
16577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16578
16579# This is the shared library runtime path variable.
16580runpath_var=$runpath_var
16581
16582# This is the shared library path variable.
16583shlibpath_var=$shlibpath_var
16584
16585# Is shlibpath searched before the hard-coded library search path?
16586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16587
16588# How to hardcode a shared library path into an executable.
16589hardcode_action=$hardcode_action_F77
16590
16591# Whether we should hardcode library paths into libraries.
16592hardcode_into_libs=$hardcode_into_libs
16593
16594# Flag to hardcode \$libdir into a binary during linking.
16595# This must work even if \$libdir does not exist.
16596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16597
16598# If ld is used when linking, flag to hardcode \$libdir into
16599# a binary during linking. This must work even if \$libdir does
16600# not exist.
16601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16602
16603# Whether we need a single -rpath flag with a separated argument.
16604hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16605
16606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16607# resulting binary.
16608hardcode_direct=$hardcode_direct_F77
16609
16610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16611# resulting binary.
16612hardcode_minus_L=$hardcode_minus_L_F77
16613
16614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16615# the resulting binary.
16616hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16617
16618# Set to yes if building a shared library automatically hardcodes DIR into the library
16619# and all subsequent libraries and executables linked against it.
16620hardcode_automatic=$hardcode_automatic_F77
16621
16622# Variables whose values should be saved in libtool wrapper scripts and
16623# restored at relink time.
16624variables_saved_for_relink="$variables_saved_for_relink"
16625
16626# Whether libtool must link a program against all its dependency libraries.
16627link_all_deplibs=$link_all_deplibs_F77
16628
16629# Compile-time system search path for libraries
16630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16631
16632# Run-time system search path for libraries
16633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16634
16635# Fix the shell variable \$srcfile for the compiler.
16636fix_srcfile_path="$fix_srcfile_path_F77"
16637
16638# Set to yes if exported symbols are required.
16639always_export_symbols=$always_export_symbols_F77
16640
16641# The commands to list exported symbols.
16642export_symbols_cmds=$lt_export_symbols_cmds_F77
16643
16644# The commands to extract the exported symbol list from a shared archive.
16645extract_expsyms_cmds=$lt_extract_expsyms_cmds
16646
16647# Symbols that should not be listed in the preloaded symbols.
16648exclude_expsyms=$lt_exclude_expsyms_F77
16649
16650# Symbols that must always be exported.
16651include_expsyms=$lt_include_expsyms_F77
16652
16653# ### END LIBTOOL TAG CONFIG: $tagname
16654
16655__EOF__
16656
16657
16658else
16659 # If there is no Makefile yet, we rely on a make rule to execute
16660 # `config.status --recheck' to rerun these tests and create the
16661 # libtool script then.
16662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16663 if test -f "$ltmain_in"; then
16664 test -f Makefile && make "$ltmain"
16665 fi
16666fi
16667
16668
16669ac_ext=c
16670ac_cpp='$CPP $CPPFLAGS'
16671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16673ac_compiler_gnu=$ac_cv_c_compiler_gnu
16674
16675CC="$lt_save_CC"
16676
16677 else
16678 tagname=""
16679 fi
16680 ;;
16681
16682 GCJ)
16683 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16684
16685
16686
16687# Source file extension for Java test sources.
16688ac_ext=java
16689
16690# Object file extension for compiled Java test sources.
16691objext=o
16692objext_GCJ=$objext
16693
16694# Code to be used in simple compile tests
16695lt_simple_compile_test_code="class foo {}\n"
16696
16697# Code to be used in simple link tests
16698lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16699
16700# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16701
16702# If no C compiler was specified, use CC.
16703LTCC=${LTCC-"$CC"}
16704
16705# If no C compiler flags were specified, use CFLAGS.
16706LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16707
16708# Allow CC to be a program name with arguments.
16709compiler=$CC
16710
16711
16712# save warnings/boilerplate of simple test code
16713ac_outfile=conftest.$ac_objext
16714printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16716_lt_compiler_boilerplate=`cat conftest.err`
16717$rm conftest*
16718
16719ac_outfile=conftest.$ac_objext
16720printf "$lt_simple_link_test_code" >conftest.$ac_ext
16721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16722_lt_linker_boilerplate=`cat conftest.err`
16723$rm conftest*
16724
16725
16726# Allow CC to be a program name with arguments.
16727lt_save_CC="$CC"
16728CC=${GCJ-"gcj"}
16729compiler=$CC
16730compiler_GCJ=$CC
16731for cc_temp in $compiler""; do
16732 case $cc_temp in
16733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16735 \-*) ;;
16736 *) break;;
16737 esac
16738done
16739cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16740
16741
16742# GCJ did not exist at the time GCC didn't implicitly link libc in.
16743archive_cmds_need_lc_GCJ=no
16744
16745old_archive_cmds_GCJ=$old_archive_cmds
16746
16747
16748lt_prog_compiler_no_builtin_flag_GCJ=
16749
16750if test "$GCC" = yes; then
16751 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16752
16753
16754echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16755echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16756if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758else
16759 lt_cv_prog_compiler_rtti_exceptions=no
16760 ac_outfile=conftest.$ac_objext
16761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16762 lt_compiler_flag="-fno-rtti -fno-exceptions"
16763 # Insert the option either (1) after the last *FLAGS variable, or
16764 # (2) before a word containing "conftest.", or (3) at the end.
16765 # Note that $ac_compile itself does not contain backslashes and begins
16766 # with a dollar sign (not a hyphen), so the echo should work correctly.
16767 # The option is referenced via a variable to avoid confusing sed.
16768 lt_compile=`echo "$ac_compile" | $SED \
16769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16771 -e 's:$: $lt_compiler_flag:'`
16772 (eval echo "\"\$as_me:16772: $lt_compile\"" >&5)
16773 (eval "$lt_compile" 2>conftest.err)
16774 ac_status=$?
16775 cat conftest.err >&5
16776 echo "$as_me:16776: \$? = $ac_status" >&5
16777 if (exit $ac_status) && test -s "$ac_outfile"; then
16778 # The compiler can only warn and ignore the option if not recognized
16779 # So say no if there are warnings other than the usual output.
16780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16783 lt_cv_prog_compiler_rtti_exceptions=yes
16784 fi
16785 fi
16786 $rm conftest*
16787
16788fi
16789echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16790echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16791
16792if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16793 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16794else
16795 :
16796fi
16797
16798fi
16799
16800lt_prog_compiler_wl_GCJ=
16801lt_prog_compiler_pic_GCJ=
16802lt_prog_compiler_static_GCJ=
16803
16804echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16805echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16806
16807 if test "$GCC" = yes; then
16808 lt_prog_compiler_wl_GCJ='-Wl,'
16809 lt_prog_compiler_static_GCJ='-static'
16810
16811 case $host_os in
16812 aix*)
16813 # All AIX code is PIC.
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 now supports IA64 processor
16816 lt_prog_compiler_static_GCJ='-Bstatic'
16817 fi
16818 ;;
16819
16820 amigaos*)
16821 # FIXME: we need at least 68020 code to build shared libraries, but
16822 # adding the `-m68020' flag to GCC prevents building anything better,
16823 # like `-m68040'.
16824 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16825 ;;
16826
16827 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16828 # PIC is the default for these OSes.
16829 ;;
16830
16831 mingw* | pw32* | os2*)
16832 # This hack is so that the source file can tell whether it is being
16833 # built for inclusion in a dll (and should export symbols for example).
16834 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16835 ;;
16836
16837 darwin* | rhapsody*)
16838 # PIC is the default on this platform
16839 # Common symbols not allowed in MH_DYLIB files
16840 lt_prog_compiler_pic_GCJ='-fno-common'
16841 ;;
16842
16843 interix3*)
16844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16845 # Instead, we relocate shared libraries at runtime.
16846 ;;
16847
16848 msdosdjgpp*)
16849 # Just because we use GCC doesn't mean we suddenly get shared libraries
16850 # on systems that don't support them.
16851 lt_prog_compiler_can_build_shared_GCJ=no
16852 enable_shared=no
16853 ;;
16854
16855 sysv4*MP*)
16856 if test -d /usr/nec; then
16857 lt_prog_compiler_pic_GCJ=-Kconform_pic
16858 fi
16859 ;;
16860
16861 hpux*)
16862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16863 # not for PA HP-UX.
16864 case $host_cpu in
16865 hppa*64*|ia64*)
16866 # +Z the default
16867 ;;
16868 *)
16869 lt_prog_compiler_pic_GCJ='-fPIC'
16870 ;;
16871 esac
16872 ;;
16873
16874 *)
16875 lt_prog_compiler_pic_GCJ='-fPIC'
16876 ;;
16877 esac
16878 else
16879 # PORTME Check for flag to pass linker flags through the system compiler.
16880 case $host_os in
16881 aix*)
16882 lt_prog_compiler_wl_GCJ='-Wl,'
16883 if test "$host_cpu" = ia64; then
16884 # AIX 5 now supports IA64 processor
16885 lt_prog_compiler_static_GCJ='-Bstatic'
16886 else
16887 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16888 fi
16889 ;;
16890 darwin*)
16891 # PIC is the default on this platform
16892 # Common symbols not allowed in MH_DYLIB files
16893 case $cc_basename in
16894 xlc*)
16895 lt_prog_compiler_pic_GCJ='-qnocommon'
16896 lt_prog_compiler_wl_GCJ='-Wl,'
16897 ;;
16898 esac
16899 ;;
16900
16901 mingw* | pw32* | os2*)
16902 # This hack is so that the source file can tell whether it is being
16903 # built for inclusion in a dll (and should export symbols for example).
16904 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16905 ;;
16906
16907 hpux9* | hpux10* | hpux11*)
16908 lt_prog_compiler_wl_GCJ='-Wl,'
16909 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16910 # not for PA HP-UX.
16911 case $host_cpu in
16912 hppa*64*|ia64*)
16913 # +Z the default
16914 ;;
16915 *)
16916 lt_prog_compiler_pic_GCJ='+Z'
16917 ;;
16918 esac
16919 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16920 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16921 ;;
16922
16923 irix5* | irix6* | nonstopux*)
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16925 # PIC (with -KPIC) is the default.
16926 lt_prog_compiler_static_GCJ='-non_shared'
16927 ;;
16928
16929 newsos6)
16930 lt_prog_compiler_pic_GCJ='-KPIC'
16931 lt_prog_compiler_static_GCJ='-Bstatic'
16932 ;;
16933
16934 linux*)
16935 case $cc_basename in
16936 icc* | ecc*)
16937 lt_prog_compiler_wl_GCJ='-Wl,'
16938 lt_prog_compiler_pic_GCJ='-KPIC'
16939 lt_prog_compiler_static_GCJ='-static'
16940 ;;
16941 pgcc* | pgf77* | pgf90* | pgf95*)
16942 # Portland Group compilers (*not* the Pentium gcc compiler,
16943 # which looks to be a dead project)
16944 lt_prog_compiler_wl_GCJ='-Wl,'
16945 lt_prog_compiler_pic_GCJ='-fpic'
16946 lt_prog_compiler_static_GCJ='-Bstatic'
16947 ;;
16948 ccc*)
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 # All Alpha code is PIC.
16951 lt_prog_compiler_static_GCJ='-non_shared'
16952 ;;
16953 esac
16954 ;;
16955
16956 osf3* | osf4* | osf5*)
16957 lt_prog_compiler_wl_GCJ='-Wl,'
16958 # All OSF/1 code is PIC.
16959 lt_prog_compiler_static_GCJ='-non_shared'
16960 ;;
16961
16962 solaris*)
16963 lt_prog_compiler_pic_GCJ='-KPIC'
16964 lt_prog_compiler_static_GCJ='-Bstatic'
16965 case $cc_basename in
16966 f77* | f90* | f95*)
16967 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16968 *)
16969 lt_prog_compiler_wl_GCJ='-Wl,';;
16970 esac
16971 ;;
16972
16973 sunos4*)
16974 lt_prog_compiler_wl_GCJ='-Qoption ld '
16975 lt_prog_compiler_pic_GCJ='-PIC'
16976 lt_prog_compiler_static_GCJ='-Bstatic'
16977 ;;
16978
16979 sysv4 | sysv4.2uw2* | sysv4.3*)
16980 lt_prog_compiler_wl_GCJ='-Wl,'
16981 lt_prog_compiler_pic_GCJ='-KPIC'
16982 lt_prog_compiler_static_GCJ='-Bstatic'
16983 ;;
16984
16985 sysv4*MP*)
16986 if test -d /usr/nec ;then
16987 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16988 lt_prog_compiler_static_GCJ='-Bstatic'
16989 fi
16990 ;;
16991
16992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16993 lt_prog_compiler_wl_GCJ='-Wl,'
16994 lt_prog_compiler_pic_GCJ='-KPIC'
16995 lt_prog_compiler_static_GCJ='-Bstatic'
16996 ;;
16997
16998 unicos*)
16999 lt_prog_compiler_wl_GCJ='-Wl,'
17000 lt_prog_compiler_can_build_shared_GCJ=no
17001 ;;
17002
17003 uts4*)
17004 lt_prog_compiler_pic_GCJ='-pic'
17005 lt_prog_compiler_static_GCJ='-Bstatic'
17006 ;;
17007
17008 *)
17009 lt_prog_compiler_can_build_shared_GCJ=no
17010 ;;
17011 esac
17012 fi
17013
17014echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17015echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17016
17017#
17018# Check to make sure the PIC flag actually works.
17019#
17020if test -n "$lt_prog_compiler_pic_GCJ"; then
17021
17022echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17023echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17024if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026else
17027 lt_prog_compiler_pic_works_GCJ=no
17028 ac_outfile=conftest.$ac_objext
17029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17030 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17031 # Insert the option either (1) after the last *FLAGS variable, or
17032 # (2) before a word containing "conftest.", or (3) at the end.
17033 # Note that $ac_compile itself does not contain backslashes and begins
17034 # with a dollar sign (not a hyphen), so the echo should work correctly.
17035 # The option is referenced via a variable to avoid confusing sed.
17036 lt_compile=`echo "$ac_compile" | $SED \
17037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17039 -e 's:$: $lt_compiler_flag:'`
17040 (eval echo "\"\$as_me:17040: $lt_compile\"" >&5)
17041 (eval "$lt_compile" 2>conftest.err)
17042 ac_status=$?
17043 cat conftest.err >&5
17044 echo "$as_me:17044: \$? = $ac_status" >&5
17045 if (exit $ac_status) && test -s "$ac_outfile"; then
17046 # The compiler can only warn and ignore the option if not recognized
17047 # So say no if there are warnings other than the usual output.
17048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17050 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17051 lt_prog_compiler_pic_works_GCJ=yes
17052 fi
17053 fi
17054 $rm conftest*
17055
17056fi
17057echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17058echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17059
17060if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17061 case $lt_prog_compiler_pic_GCJ in
17062 "" | " "*) ;;
17063 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17064 esac
17065else
17066 lt_prog_compiler_pic_GCJ=
17067 lt_prog_compiler_can_build_shared_GCJ=no
17068fi
17069
17070fi
17071case $host_os in
17072 # For platforms which do not support PIC, -DPIC is meaningless:
17073 *djgpp*)
17074 lt_prog_compiler_pic_GCJ=
17075 ;;
17076 *)
17077 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17078 ;;
17079esac
17080
17081#
17082# Check to make sure the static flag actually works.
17083#
17084wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17085echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17086echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17087if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17089else
17090 lt_prog_compiler_static_works_GCJ=no
17091 save_LDFLAGS="$LDFLAGS"
17092 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17093 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17095 # The linker can only warn and ignore the option if not recognized
17096 # So say no if there are warnings
17097 if test -s conftest.err; then
17098 # Append any errors to the config.log.
17099 cat conftest.err 1>&5
17100 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17102 if diff conftest.exp conftest.er2 >/dev/null; then
17103 lt_prog_compiler_static_works_GCJ=yes
17104 fi
17105 else
17106 lt_prog_compiler_static_works_GCJ=yes
17107 fi
17108 fi
17109 $rm conftest*
17110 LDFLAGS="$save_LDFLAGS"
17111
17112fi
17113echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17114echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17115
17116if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17117 :
17118else
17119 lt_prog_compiler_static_GCJ=
17120fi
17121
17122
17123echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17124echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17125if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 lt_cv_prog_compiler_c_o_GCJ=no
17129 $rm -r conftest 2>/dev/null
17130 mkdir conftest
17131 cd conftest
17132 mkdir out
17133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17134
17135 lt_compiler_flag="-o out/conftest2.$ac_objext"
17136 # Insert the option either (1) after the last *FLAGS variable, or
17137 # (2) before a word containing "conftest.", or (3) at the end.
17138 # Note that $ac_compile itself does not contain backslashes and begins
17139 # with a dollar sign (not a hyphen), so the echo should work correctly.
17140 lt_compile=`echo "$ac_compile" | $SED \
17141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17143 -e 's:$: $lt_compiler_flag:'`
17144 (eval echo "\"\$as_me:17144: $lt_compile\"" >&5)
17145 (eval "$lt_compile" 2>out/conftest.err)
17146 ac_status=$?
17147 cat out/conftest.err >&5
17148 echo "$as_me:17148: \$? = $ac_status" >&5
17149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17150 then
17151 # The compiler can only warn and ignore the option if not recognized
17152 # So say no if there are warnings
17153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17156 lt_cv_prog_compiler_c_o_GCJ=yes
17157 fi
17158 fi
17159 chmod u+w . 2>&5
17160 $rm conftest*
17161 # SGI C++ compiler will create directory out/ii_files/ for
17162 # template instantiation
17163 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17164 $rm out/* && rmdir out
17165 cd ..
17166 rmdir conftest
17167 $rm conftest*
17168
17169fi
17170echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17171echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17172
17173
17174hard_links="nottested"
17175if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17176 # do not overwrite the value of need_locks provided by the user
17177 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17178echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17179 hard_links=yes
17180 $rm conftest*
17181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17182 touch conftest.a
17183 ln conftest.a conftest.b 2>&5 || hard_links=no
17184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17185 echo "$as_me:$LINENO: result: $hard_links" >&5
17186echo "${ECHO_T}$hard_links" >&6
17187 if test "$hard_links" = no; then
17188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17189echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17190 need_locks=warn
17191 fi
17192else
17193 need_locks=no
17194fi
17195
17196echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17197echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17198
17199 runpath_var=
17200 allow_undefined_flag_GCJ=
17201 enable_shared_with_static_runtimes_GCJ=no
17202 archive_cmds_GCJ=
17203 archive_expsym_cmds_GCJ=
17204 old_archive_From_new_cmds_GCJ=
17205 old_archive_from_expsyms_cmds_GCJ=
17206 export_dynamic_flag_spec_GCJ=
17207 whole_archive_flag_spec_GCJ=
17208 thread_safe_flag_spec_GCJ=
17209 hardcode_libdir_flag_spec_GCJ=
17210 hardcode_libdir_flag_spec_ld_GCJ=
17211 hardcode_libdir_separator_GCJ=
17212 hardcode_direct_GCJ=no
17213 hardcode_minus_L_GCJ=no
17214 hardcode_shlibpath_var_GCJ=unsupported
17215 link_all_deplibs_GCJ=unknown
17216 hardcode_automatic_GCJ=no
17217 module_cmds_GCJ=
17218 module_expsym_cmds_GCJ=
17219 always_export_symbols_GCJ=no
17220 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17221 # include_expsyms should be a list of space-separated symbols to be *always*
17222 # included in the symbol list
17223 include_expsyms_GCJ=
17224 # exclude_expsyms can be an extended regexp of symbols to exclude
17225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17227 # as well as any symbol that contains `d'.
17228 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17230 # platforms (ab)use it in PIC code, but their linkers get confused if
17231 # the symbol is explicitly referenced. Since portable code cannot
17232 # rely on this symbol name, it's probably fine to never include it in
17233 # preloaded symbol tables.
17234 extract_expsyms_cmds=
17235 # Just being paranoid about ensuring that cc_basename is set.
17236 for cc_temp in $compiler""; do
17237 case $cc_temp in
17238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17240 \-*) ;;
17241 *) break;;
17242 esac
17243done
17244cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17245
17246 case $host_os in
17247 cygwin* | mingw* | pw32*)
17248 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17249 # When not using gcc, we currently assume that we are using
17250 # Microsoft Visual C++.
17251 if test "$GCC" != yes; then
17252 with_gnu_ld=no
17253 fi
17254 ;;
17255 interix*)
17256 # we just hope/assume this is gcc and not c89 (= MSVC++)
17257 with_gnu_ld=yes
17258 ;;
17259 openbsd*)
17260 with_gnu_ld=no
17261 ;;
17262 esac
17263
17264 ld_shlibs_GCJ=yes
17265 if test "$with_gnu_ld" = yes; then
17266 # If archive_cmds runs LD, not CC, wlarc should be empty
17267 wlarc='${wl}'
17268
17269 # Set some defaults for GNU ld with shared library support. These
17270 # are reset later if shared libraries are not supported. Putting them
17271 # here allows them to be overridden if necessary.
17272 runpath_var=LD_RUN_PATH
17273 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17274 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17275 # ancient GNU ld didn't support --whole-archive et. al.
17276 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17277 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17278 else
17279 whole_archive_flag_spec_GCJ=
17280 fi
17281 supports_anon_versioning=no
17282 case `$LD -v 2>/dev/null` in
17283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17286 *\ 2.11.*) ;; # other 2.11 versions
17287 *) supports_anon_versioning=yes ;;
17288 esac
17289
17290 # See if GNU ld supports shared libraries.
17291 case $host_os in
17292 aix3* | aix4* | aix5*)
17293 # On AIX/PPC, the GNU linker is very broken
17294 if test "$host_cpu" != ia64; then
17295 ld_shlibs_GCJ=no
17296 cat <<EOF 1>&2
17297
17298*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17299*** to be unable to reliably create shared libraries on AIX.
17300*** Therefore, libtool is disabling shared libraries support. If you
17301*** really care for shared libraries, you may want to modify your PATH
17302*** so that a non-GNU linker is found, and then restart.
17303
17304EOF
17305 fi
17306 ;;
17307
17308 amigaos*)
17309 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)'
17310 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17311 hardcode_minus_L_GCJ=yes
17312
17313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17314 # that the semantics of dynamic libraries on AmigaOS, at least up
17315 # to version 4, is to share data among multiple programs linked
17316 # with the same dynamic library. Since this doesn't match the
17317 # behavior of shared libraries on other platforms, we can't use
17318 # them.
17319 ld_shlibs_GCJ=no
17320 ;;
17321
17322 beos*)
17323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17324 allow_undefined_flag_GCJ=unsupported
17325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17326 # support --undefined. This deserves some investigation. FIXME
17327 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17328 else
17329 ld_shlibs_GCJ=no
17330 fi
17331 ;;
17332
17333 cygwin* | mingw* | pw32*)
17334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17335 # as there is no search path for DLLs.
17336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17337 allow_undefined_flag_GCJ=unsupported
17338 always_export_symbols_GCJ=no
17339 enable_shared_with_static_runtimes_GCJ=yes
17340 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17341
17342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17343 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17344 # If the export-symbols file already is a .def file (1st line
17345 # is EXPORTS), use it as is; otherwise, prepend...
17346 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17347 cp $export_symbols $output_objdir/$soname.def;
17348 else
17349 echo EXPORTS > $output_objdir/$soname.def;
17350 cat $export_symbols >> $output_objdir/$soname.def;
17351 fi~
17352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17353 else
17354 ld_shlibs_GCJ=no
17355 fi
17356 ;;
17357
17358 interix3*)
17359 hardcode_direct_GCJ=no
17360 hardcode_shlibpath_var_GCJ=no
17361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17362 export_dynamic_flag_spec_GCJ='${wl}-E'
17363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17364 # Instead, shared libraries are loaded at an image base (0x10000000 by
17365 # default) and relocated if they conflict, which is a slow very memory
17366 # consuming and fragmenting process. To avoid this, we pick a random,
17367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17369 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'
17370 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'
17371 ;;
17372
17373 linux*)
17374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17375 tmp_addflag=
17376 case $cc_basename,$host_cpu in
17377 pgcc*) # Portland Group C compiler
17378 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'
17379 tmp_addflag=' $pic_flag'
17380 ;;
17381 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17382 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'
17383 tmp_addflag=' $pic_flag -Mnomain' ;;
17384 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17385 tmp_addflag=' -i_dynamic' ;;
17386 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17387 tmp_addflag=' -i_dynamic -nofor_main' ;;
17388 ifc* | ifort*) # Intel Fortran compiler
17389 tmp_addflag=' -nofor_main' ;;
17390 esac
17391 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17392
17393 if test $supports_anon_versioning = yes; then
17394 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17396 $echo "local: *; };" >> $output_objdir/$libname.ver~
17397 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17398 fi
17399 link_all_deplibs_GCJ=no
17400 else
17401 ld_shlibs_GCJ=no
17402 fi
17403 ;;
17404
17405 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17407 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17408 wlarc=
17409 else
17410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17412 fi
17413 ;;
17414
17415 solaris*)
17416 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17417 ld_shlibs_GCJ=no
17418 cat <<EOF 1>&2
17419
17420*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17421*** create shared libraries on Solaris systems. Therefore, libtool
17422*** is disabling shared libraries support. We urge you to upgrade GNU
17423*** binutils to release 2.9.1 or newer. Another option is to modify
17424*** your PATH or compiler configuration so that the native linker is
17425*** used, and then restart.
17426
17427EOF
17428 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17430 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17431 else
17432 ld_shlibs_GCJ=no
17433 fi
17434 ;;
17435
17436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17437 case `$LD -v 2>&1` in
17438 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17439 ld_shlibs_GCJ=no
17440 cat <<_LT_EOF 1>&2
17441
17442*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17443*** reliably create shared libraries on SCO systems. Therefore, libtool
17444*** is disabling shared libraries support. We urge you to upgrade GNU
17445*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17446*** your PATH or compiler configuration so that the native linker is
17447*** used, and then restart.
17448
17449_LT_EOF
17450 ;;
17451 *)
17452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17453 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17456 else
17457 ld_shlibs_GCJ=no
17458 fi
17459 ;;
17460 esac
17461 ;;
17462
17463 sunos4*)
17464 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17465 wlarc=
17466 hardcode_direct_GCJ=yes
17467 hardcode_shlibpath_var_GCJ=no
17468 ;;
17469
17470 *)
17471 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17474 else
17475 ld_shlibs_GCJ=no
17476 fi
17477 ;;
17478 esac
17479
17480 if test "$ld_shlibs_GCJ" = no; then
17481 runpath_var=
17482 hardcode_libdir_flag_spec_GCJ=
17483 export_dynamic_flag_spec_GCJ=
17484 whole_archive_flag_spec_GCJ=
17485 fi
17486 else
17487 # PORTME fill in a description of your system's linker (not GNU ld)
17488 case $host_os in
17489 aix3*)
17490 allow_undefined_flag_GCJ=unsupported
17491 always_export_symbols_GCJ=yes
17492 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'
17493 # Note: this linker hardcodes the directories in LIBPATH if there
17494 # are no directories specified by -L.
17495 hardcode_minus_L_GCJ=yes
17496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17497 # Neither direct hardcoding nor static linking is supported with a
17498 # broken collect2.
17499 hardcode_direct_GCJ=unsupported
17500 fi
17501 ;;
17502
17503 aix4* | aix5*)
17504 if test "$host_cpu" = ia64; then
17505 # On IA64, the linker does run time linking by default, so we don't
17506 # have to do anything special.
17507 aix_use_runtimelinking=no
17508 exp_sym_flag='-Bexport'
17509 no_entry_flag=""
17510 else
17511 # If we're using GNU nm, then we don't want the "-C" option.
17512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17513 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17514 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'
17515 else
17516 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'
17517 fi
17518 aix_use_runtimelinking=no
17519
17520 # Test if we are trying to use run time linking or normal
17521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17522 # need to do runtime linking.
17523 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17524 for ld_flag in $LDFLAGS; do
17525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17526 aix_use_runtimelinking=yes
17527 break
17528 fi
17529 done
17530 ;;
17531 esac
17532
17533 exp_sym_flag='-bexport'
17534 no_entry_flag='-bnoentry'
17535 fi
17536
17537 # When large executables or shared objects are built, AIX ld can
17538 # have problems creating the table of contents. If linking a library
17539 # or program results in "error TOC overflow" add -mminimal-toc to
17540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17542
17543 archive_cmds_GCJ=''
17544 hardcode_direct_GCJ=yes
17545 hardcode_libdir_separator_GCJ=':'
17546 link_all_deplibs_GCJ=yes
17547
17548 if test "$GCC" = yes; then
17549 case $host_os in aix4.[012]|aix4.[012].*)
17550 # We only want to do this on AIX 4.2 and lower, the check
17551 # below for broken collect2 doesn't work under 4.3+
17552 collect2name=`${CC} -print-prog-name=collect2`
17553 if test -f "$collect2name" && \
17554 strings "$collect2name" | grep resolve_lib_name >/dev/null
17555 then
17556 # We have reworked collect2
17557 hardcode_direct_GCJ=yes
17558 else
17559 # We have old collect2
17560 hardcode_direct_GCJ=unsupported
17561 # It fails to find uninstalled libraries when the uninstalled
17562 # path is not listed in the libpath. Setting hardcode_minus_L
17563 # to unsupported forces relinking
17564 hardcode_minus_L_GCJ=yes
17565 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17566 hardcode_libdir_separator_GCJ=
17567 fi
17568 ;;
17569 esac
17570 shared_flag='-shared'
17571 if test "$aix_use_runtimelinking" = yes; then
17572 shared_flag="$shared_flag "'${wl}-G'
17573 fi
17574 else
17575 # not using gcc
17576 if test "$host_cpu" = ia64; then
17577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17578 # chokes on -Wl,-G. The following line is correct:
17579 shared_flag='-G'
17580 else
17581 if test "$aix_use_runtimelinking" = yes; then
17582 shared_flag='${wl}-G'
17583 else
17584 shared_flag='${wl}-bM:SRE'
17585 fi
17586 fi
17587 fi
17588
17589 # It seems that -bexpall does not export symbols beginning with
17590 # underscore (_), so it is better to generate a list of symbols to export.
17591 always_export_symbols_GCJ=yes
17592 if test "$aix_use_runtimelinking" = yes; then
17593 # Warning - without using the other runtime loading flags (-brtl),
17594 # -berok will link without error, but may produce a broken library.
17595 allow_undefined_flag_GCJ='-berok'
17596 # Determine the default libpath from the value encoded in an empty executable.
17597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h. */
17603
17604int
17605main ()
17606{
17607
17608 ;
17609 return 0;
17610}
17611_ACEOF
17612rm -f conftest.$ac_objext conftest$ac_exeext
17613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest$ac_exeext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633
17634aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17635}'`
17636# Check for a 64-bit object if we didn't find anything.
17637if 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; }
17638}'`; fi
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643fi
17644rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17647
17648 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17649 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"
17650 else
17651 if test "$host_cpu" = ia64; then
17652 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17653 allow_undefined_flag_GCJ="-z nodefs"
17654 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"
17655 else
17656 # Determine the default libpath from the value encoded in an empty executable.
17657 cat >conftest.$ac_ext <<_ACEOF
17658/* confdefs.h. */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
17662/* end confdefs.h. */
17663
17664int
17665main ()
17666{
17667
17668 ;
17669 return 0;
17670}
17671_ACEOF
17672rm -f conftest.$ac_objext conftest$ac_exeext
17673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17674 (eval $ac_link) 2>conftest.er1
17675 ac_status=$?
17676 grep -v '^ *+' conftest.er1 >conftest.err
17677 rm -f conftest.er1
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693
17694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17695}'`
17696# Check for a 64-bit object if we didn't find anything.
17697if 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; }
17698}'`; fi
17699else
17700 echo "$as_me: failed program was:" >&5
17701sed 's/^/| /' conftest.$ac_ext >&5
17702
17703fi
17704rm -f conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17706if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17707
17708 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17709 # Warning - without using the other run time loading flags,
17710 # -berok will link without error, but may produce a broken library.
17711 no_undefined_flag_GCJ=' ${wl}-bernotok'
17712 allow_undefined_flag_GCJ=' ${wl}-berok'
17713 # Exported symbols can be pulled into shared objects from archives
17714 whole_archive_flag_spec_GCJ='$convenience'
17715 archive_cmds_need_lc_GCJ=yes
17716 # This is similar to how AIX traditionally builds its shared libraries.
17717 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'
17718 fi
17719 fi
17720 ;;
17721
17722 amigaos*)
17723 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)'
17724 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17725 hardcode_minus_L_GCJ=yes
17726 # see comment about different semantics on the GNU ld section
17727 ld_shlibs_GCJ=no
17728 ;;
17729
17730 bsdi[45]*)
17731 export_dynamic_flag_spec_GCJ=-rdynamic
17732 ;;
17733
17734 cygwin* | mingw* | pw32*)
17735 # When not using gcc, we currently assume that we are using
17736 # Microsoft Visual C++.
17737 # hardcode_libdir_flag_spec is actually meaningless, as there is
17738 # no search path for DLLs.
17739 hardcode_libdir_flag_spec_GCJ=' '
17740 allow_undefined_flag_GCJ=unsupported
17741 # Tell ltmain to make .lib files, not .a files.
17742 libext=lib
17743 # Tell ltmain to make .dll files, not .so files.
17744 shrext_cmds=".dll"
17745 # FIXME: Setting linknames here is a bad hack.
17746 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17747 # The linker will automatically build a .lib file if we build a DLL.
17748 old_archive_From_new_cmds_GCJ='true'
17749 # FIXME: Should let the user specify the lib program.
17750 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17751 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17752 enable_shared_with_static_runtimes_GCJ=yes
17753 ;;
17754
17755 darwin* | rhapsody*)
17756 case $host_os in
17757 rhapsody* | darwin1.[012])
17758 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17759 ;;
17760 *) # Darwin 1.3 on
17761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17762 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17763 else
17764 case ${MACOSX_DEPLOYMENT_TARGET} in
17765 10.[012])
17766 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17767 ;;
17768 10.*)
17769 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17770 ;;
17771 esac
17772 fi
17773 ;;
17774 esac
17775 archive_cmds_need_lc_GCJ=no
17776 hardcode_direct_GCJ=no
17777 hardcode_automatic_GCJ=yes
17778 hardcode_shlibpath_var_GCJ=unsupported
17779 whole_archive_flag_spec_GCJ=''
17780 link_all_deplibs_GCJ=yes
17781 if test "$GCC" = yes ; then
17782 output_verbose_link_cmd='echo'
17783 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17784 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17786 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}'
17787 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}'
17788 else
17789 case $cc_basename in
17790 xlc*)
17791 output_verbose_link_cmd='echo'
17792 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17793 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17795 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}'
17796 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}'
17797 ;;
17798 *)
17799 ld_shlibs_GCJ=no
17800 ;;
17801 esac
17802 fi
17803 ;;
17804
17805 dgux*)
17806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17808 hardcode_shlibpath_var_GCJ=no
17809 ;;
17810
17811 freebsd1*)
17812 ld_shlibs_GCJ=no
17813 ;;
17814
17815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17816 # support. Future versions do this automatically, but an explicit c++rt0.o
17817 # does not break anything, and helps significantly (at the cost of a little
17818 # extra space).
17819 freebsd2.2*)
17820 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17822 hardcode_direct_GCJ=yes
17823 hardcode_shlibpath_var_GCJ=no
17824 ;;
17825
17826 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17827 freebsd2*)
17828 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17829 hardcode_direct_GCJ=yes
17830 hardcode_minus_L_GCJ=yes
17831 hardcode_shlibpath_var_GCJ=no
17832 ;;
17833
17834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17835 freebsd* | dragonfly*)
17836 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17837 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17838 hardcode_direct_GCJ=yes
17839 hardcode_shlibpath_var_GCJ=no
17840 ;;
17841
17842 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
17843 kfreebsd*-gnu)
17844 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17846 hardcode_direct_GCJ=yes
17847 hardcode_shlibpath_var_GCJ=no
17848 link_all_deplibs_GCJ=no
17849 ;;
17850
17851 hpux9*)
17852 if test "$GCC" = yes; then
17853 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'
17854 else
17855 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'
17856 fi
17857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17858 hardcode_libdir_separator_GCJ=:
17859 hardcode_direct_GCJ=yes
17860
17861 # hardcode_minus_L: Not really in the search PATH,
17862 # but as the default location of the library.
17863 hardcode_minus_L_GCJ=yes
17864 export_dynamic_flag_spec_GCJ='${wl}-E'
17865 ;;
17866
17867 hpux10*)
17868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17869 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17870 else
17871 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17872 fi
17873 if test "$with_gnu_ld" = no; then
17874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17875 hardcode_libdir_separator_GCJ=:
17876
17877 hardcode_direct_GCJ=yes
17878 export_dynamic_flag_spec_GCJ='${wl}-E'
17879
17880 # hardcode_minus_L: Not really in the search PATH,
17881 # but as the default location of the library.
17882 hardcode_minus_L_GCJ=yes
17883 fi
17884 ;;
17885
17886 hpux11*)
17887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17888 case $host_cpu in
17889 hppa*64*)
17890 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17891 ;;
17892 ia64*)
17893 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17894 ;;
17895 *)
17896 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17897 ;;
17898 esac
17899 else
17900 case $host_cpu in
17901 hppa*64*)
17902 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17903 ;;
17904 ia64*)
17905 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17906 ;;
17907 *)
17908 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17909 ;;
17910 esac
17911 fi
17912 if test "$with_gnu_ld" = no; then
17913 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17914 hardcode_libdir_separator_GCJ=:
17915
17916 case $host_cpu in
17917 hppa*64*|ia64*)
17918 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17919 hardcode_direct_GCJ=no
17920 hardcode_shlibpath_var_GCJ=no
17921 ;;
17922 *)
17923 hardcode_direct_GCJ=yes
17924 export_dynamic_flag_spec_GCJ='${wl}-E'
17925
17926 # hardcode_minus_L: Not really in the search PATH,
17927 # but as the default location of the library.
17928 hardcode_minus_L_GCJ=yes
17929 ;;
17930 esac
17931 fi
17932 ;;
17933
17934 irix5* | irix6* | nonstopux*)
17935 if test "$GCC" = yes; then
17936 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'
17937 else
17938 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'
17939 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17940 fi
17941 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17942 hardcode_libdir_separator_GCJ=:
17943 link_all_deplibs_GCJ=yes
17944 ;;
17945
17946 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17948 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17949 else
17950 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17951 fi
17952 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17953 hardcode_direct_GCJ=yes
17954 hardcode_shlibpath_var_GCJ=no
17955 ;;
17956
17957 newsos6)
17958 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959 hardcode_direct_GCJ=yes
17960 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17961 hardcode_libdir_separator_GCJ=:
17962 hardcode_shlibpath_var_GCJ=no
17963 ;;
17964
17965 openbsd*)
17966 hardcode_direct_GCJ=yes
17967 hardcode_shlibpath_var_GCJ=no
17968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17969 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17970 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17971 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17972 export_dynamic_flag_spec_GCJ='${wl}-E'
17973 else
17974 case $host_os in
17975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17976 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17978 ;;
17979 *)
17980 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17982 ;;
17983 esac
17984 fi
17985 ;;
17986
17987 os2*)
17988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17989 hardcode_minus_L_GCJ=yes
17990 allow_undefined_flag_GCJ=unsupported
17991 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'
17992 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17993 ;;
17994
17995 osf3*)
17996 if test "$GCC" = yes; then
17997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17998 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'
17999 else
18000 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18001 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'
18002 fi
18003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004 hardcode_libdir_separator_GCJ=:
18005 ;;
18006
18007 osf4* | osf5*) # as osf3* with the addition of -msym flag
18008 if test "$GCC" = yes; then
18009 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18010 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'
18011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18012 else
18013 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18014 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'
18015 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~
18016 $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'
18017
18018 # Both c and cxx compiler support -rpath directly
18019 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18020 fi
18021 hardcode_libdir_separator_GCJ=:
18022 ;;
18023
18024 solaris*)
18025 no_undefined_flag_GCJ=' -z text'
18026 if test "$GCC" = yes; then
18027 wlarc='${wl}'
18028 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18029 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18030 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18031 else
18032 wlarc=''
18033 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18036 fi
18037 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18038 hardcode_shlibpath_var_GCJ=no
18039 case $host_os in
18040 solaris2.[0-5] | solaris2.[0-5].*) ;;
18041 *)
18042 # The compiler driver will combine linker options so we
18043 # cannot just pass the convience library names through
18044 # without $wl, iff we do not link with $LD.
18045 # Luckily, gcc supports the same syntax we need for Sun Studio.
18046 # Supported since Solaris 2.6 (maybe 2.5.1?)
18047 case $wlarc in
18048 '')
18049 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18050 *)
18051 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' ;;
18052 esac ;;
18053 esac
18054 link_all_deplibs_GCJ=yes
18055 ;;
18056
18057 sunos4*)
18058 if test "x$host_vendor" = xsequent; then
18059 # Use $CC to link under sequent, because it throws in some extra .o
18060 # files that make .init and .fini sections work.
18061 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18062 else
18063 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18064 fi
18065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18066 hardcode_direct_GCJ=yes
18067 hardcode_minus_L_GCJ=yes
18068 hardcode_shlibpath_var_GCJ=no
18069 ;;
18070
18071 sysv4)
18072 case $host_vendor in
18073 sni)
18074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075 hardcode_direct_GCJ=yes # is this really true???
18076 ;;
18077 siemens)
18078 ## LD is ld it makes a PLAMLIB
18079 ## CC just makes a GrossModule.
18080 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18081 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18082 hardcode_direct_GCJ=no
18083 ;;
18084 motorola)
18085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18087 ;;
18088 esac
18089 runpath_var='LD_RUN_PATH'
18090 hardcode_shlibpath_var_GCJ=no
18091 ;;
18092
18093 sysv4.3*)
18094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_shlibpath_var_GCJ=no
18096 export_dynamic_flag_spec_GCJ='-Bexport'
18097 ;;
18098
18099 sysv4*MP*)
18100 if test -d /usr/nec; then
18101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18102 hardcode_shlibpath_var_GCJ=no
18103 runpath_var=LD_RUN_PATH
18104 hardcode_runpath_var=yes
18105 ld_shlibs_GCJ=yes
18106 fi
18107 ;;
18108
18109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18110 no_undefined_flag_GCJ='${wl}-z,text'
18111 archive_cmds_need_lc_GCJ=no
18112 hardcode_shlibpath_var_GCJ=no
18113 runpath_var='LD_RUN_PATH'
18114
18115 if test "$GCC" = yes; then
18116 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18117 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118 else
18119 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121 fi
18122 ;;
18123
18124 sysv5* | sco3.2v5* | sco5v6*)
18125 # Note: We can NOT use -z defs as we might desire, because we do not
18126 # link with -lc, and that would cause any symbols used from libc to
18127 # always be unresolved, which means just about no library would
18128 # ever link correctly. If we're not using GNU ld we use -z text
18129 # though, which does catch some bad symbols but isn't as heavy-handed
18130 # as -z defs.
18131 no_undefined_flag_GCJ='${wl}-z,text'
18132 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18133 archive_cmds_need_lc_GCJ=no
18134 hardcode_shlibpath_var_GCJ=no
18135 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18136 hardcode_libdir_separator_GCJ=':'
18137 link_all_deplibs_GCJ=yes
18138 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18139 runpath_var='LD_RUN_PATH'
18140
18141 if test "$GCC" = yes; then
18142 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18143 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 else
18145 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147 fi
18148 ;;
18149
18150 uts4*)
18151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18153 hardcode_shlibpath_var_GCJ=no
18154 ;;
18155
18156 *)
18157 ld_shlibs_GCJ=no
18158 ;;
18159 esac
18160 fi
18161
18162echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18163echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18164test "$ld_shlibs_GCJ" = no && can_build_shared=no
18165
18166#
18167# Do we need to explicitly link libc?
18168#
18169case "x$archive_cmds_need_lc_GCJ" in
18170x|xyes)
18171 # Assume -lc should be added
18172 archive_cmds_need_lc_GCJ=yes
18173
18174 if test "$enable_shared" = yes && test "$GCC" = yes; then
18175 case $archive_cmds_GCJ in
18176 *'~'*)
18177 # FIXME: we may have to deal with multi-command sequences.
18178 ;;
18179 '$CC '*)
18180 # Test whether the compiler implicitly links with -lc since on some
18181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18182 # to ld, don't add -lc before -lgcc.
18183 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18184echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18185 $rm conftest*
18186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18187
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189 (eval $ac_compile) 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } 2>conftest.err; then
18193 soname=conftest
18194 lib=conftest
18195 libobjs=conftest.$ac_objext
18196 deplibs=
18197 wl=$lt_prog_compiler_wl_GCJ
18198 pic_flag=$lt_prog_compiler_pic_GCJ
18199 compiler_flags=-v
18200 linker_flags=-v
18201 verstring=
18202 output_objdir=.
18203 libname=conftest
18204 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18205 allow_undefined_flag_GCJ=
18206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18207 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }
18211 then
18212 archive_cmds_need_lc_GCJ=no
18213 else
18214 archive_cmds_need_lc_GCJ=yes
18215 fi
18216 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18217 else
18218 cat conftest.err 1>&5
18219 fi
18220 $rm conftest*
18221 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18222echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18223 ;;
18224 esac
18225 fi
18226 ;;
18227esac
18228
18229echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18230echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18231library_names_spec=
18232libname_spec='lib$name'
18233soname_spec=
18234shrext_cmds=".so"
18235postinstall_cmds=
18236postuninstall_cmds=
18237finish_cmds=
18238finish_eval=
18239shlibpath_var=
18240shlibpath_overrides_runpath=unknown
18241version_type=none
18242dynamic_linker="$host_os ld.so"
18243sys_lib_dlsearch_path_spec="/lib /usr/lib"
18244if test "$GCC" = yes; then
18245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18246 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18247 # if the path contains ";" then we assume it to be the separator
18248 # otherwise default to the standard path separator (i.e. ":") - it is
18249 # assumed that no part of a normal pathname contains ";" but that should
18250 # okay in the real world where ";" in dirpaths is itself problematic.
18251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18252 else
18253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18254 fi
18255else
18256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18257fi
18258need_lib_prefix=unknown
18259hardcode_into_libs=no
18260
18261# when you set need_version to no, make sure it does not cause -set_version
18262# flags to be left without arguments
18263need_version=unknown
18264
18265case $host_os in
18266aix3*)
18267 version_type=linux
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18269 shlibpath_var=LIBPATH
18270
18271 # AIX 3 has no versioning support, so we append a major version to the name.
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 ;;
18274
18275aix4* | aix5*)
18276 version_type=linux
18277 need_lib_prefix=no
18278 need_version=no
18279 hardcode_into_libs=yes
18280 if test "$host_cpu" = ia64; then
18281 # AIX 5 supports IA64
18282 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18283 shlibpath_var=LD_LIBRARY_PATH
18284 else
18285 # With GCC up to 2.95.x, collect2 would create an import file
18286 # for dependence libraries. The import file would start with
18287 # the line `#! .'. This would cause the generated library to
18288 # depend on `.', always an invalid library. This was fixed in
18289 # development snapshots of GCC prior to 3.0.
18290 case $host_os in
18291 aix4 | aix4.[01] | aix4.[01].*)
18292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18293 echo ' yes '
18294 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18295 :
18296 else
18297 can_build_shared=no
18298 fi
18299 ;;
18300 esac
18301 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18302 # soname into executable. Probably we can add versioning support to
18303 # collect2, so additional links can be useful in future.
18304 if test "$aix_use_runtimelinking" = yes; then
18305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18306 # instead of lib<name>.a to let people know that these are not
18307 # typical AIX shared libraries.
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 else
18310 # We preserve .a as extension for shared libraries through AIX4.2
18311 # and later when we are not doing run time linking.
18312 library_names_spec='${libname}${release}.a $libname.a'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 fi
18315 shlibpath_var=LIBPATH
18316 fi
18317 ;;
18318
18319amigaos*)
18320 library_names_spec='$libname.ixlibrary $libname.a'
18321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18322 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'
18323 ;;
18324
18325beos*)
18326 library_names_spec='${libname}${shared_ext}'
18327 dynamic_linker="$host_os ld.so"
18328 shlibpath_var=LIBRARY_PATH
18329 ;;
18330
18331bsdi[45]*)
18332 version_type=linux
18333 need_version=no
18334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18335 soname_spec='${libname}${release}${shared_ext}$major'
18336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18337 shlibpath_var=LD_LIBRARY_PATH
18338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18340 # the default ld.so.conf also contains /usr/contrib/lib and
18341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18342 # libtool to hard-code these into programs
18343 ;;
18344
18345cygwin* | mingw* | pw32*)
18346 version_type=windows
18347 shrext_cmds=".dll"
18348 need_version=no
18349 need_lib_prefix=no
18350
18351 case $GCC,$host_os in
18352 yes,cygwin* | yes,mingw* | yes,pw32*)
18353 library_names_spec='$libname.dll.a'
18354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18355 postinstall_cmds='base_file=`basename \${file}`~
18356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18357 dldir=$destdir/`dirname \$dlpath`~
18358 test -d \$dldir || mkdir -p \$dldir~
18359 $install_prog $dir/$dlname \$dldir/$dlname~
18360 chmod a+x \$dldir/$dlname'
18361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18362 dlpath=$dir/\$dldll~
18363 $rm \$dlpath'
18364 shlibpath_overrides_runpath=yes
18365
18366 case $host_os in
18367 cygwin*)
18368 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18369 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18370 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18371 ;;
18372 mingw*)
18373 # MinGW DLLs use traditional 'lib' prefix
18374 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18376 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18377 # It is most probably a Windows format PATH printed by
18378 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18379 # path with ; separators, and with drive letters. We can handle the
18380 # drive letters (cygwin fileutils understands them), so leave them,
18381 # especially as we might pass files found there to a mingw objdump,
18382 # which wouldn't understand a cygwinified path. Ahh.
18383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18384 else
18385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18386 fi
18387 ;;
18388 pw32*)
18389 # pw32 DLLs use 'pw' prefix rather than 'lib'
18390 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18391 ;;
18392 esac
18393 ;;
18394
18395 *)
18396 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18397 ;;
18398 esac
18399 dynamic_linker='Win32 ld.exe'
18400 # FIXME: first we should search . and the directory the executable is in
18401 shlibpath_var=PATH
18402 ;;
18403
18404darwin* | rhapsody*)
18405 dynamic_linker="$host_os dyld"
18406 version_type=darwin
18407 need_lib_prefix=no
18408 need_version=no
18409 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18410 soname_spec='${libname}${release}${major}$shared_ext'
18411 shlibpath_overrides_runpath=yes
18412 shlibpath_var=DYLD_LIBRARY_PATH
18413 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18414 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18415 if test "$GCC" = yes; then
18416 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"`
18417 else
18418 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18419 fi
18420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18421 ;;
18422
18423dgux*)
18424 version_type=linux
18425 need_lib_prefix=no
18426 need_version=no
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 ;;
18431
18432freebsd1*)
18433 dynamic_linker=no
18434 ;;
18435
18436kfreebsd*-gnu)
18437 version_type=linux
18438 need_lib_prefix=no
18439 need_version=no
18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18441 soname_spec='${libname}${release}${shared_ext}$major'
18442 shlibpath_var=LD_LIBRARY_PATH
18443 shlibpath_overrides_runpath=no
18444 hardcode_into_libs=yes
18445 dynamic_linker='GNU ld.so'
18446 ;;
18447
18448freebsd* | dragonfly*)
18449 # DragonFly does not have aout. When/if they implement a new
18450 # versioning mechanism, adjust this.
18451 if test -x /usr/bin/objformat; then
18452 objformat=`/usr/bin/objformat`
18453 else
18454 case $host_os in
18455 freebsd[123]*) objformat=aout ;;
18456 *) objformat=elf ;;
18457 esac
18458 fi
18459 version_type=freebsd-$objformat
18460 case $version_type in
18461 freebsd-elf*)
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18463 need_version=no
18464 need_lib_prefix=no
18465 ;;
18466 freebsd-*)
18467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18468 need_version=yes
18469 ;;
18470 esac
18471 shlibpath_var=LD_LIBRARY_PATH
18472 case $host_os in
18473 freebsd2*)
18474 shlibpath_overrides_runpath=yes
18475 ;;
18476 freebsd3.[01]* | freebsdelf3.[01]*)
18477 shlibpath_overrides_runpath=yes
18478 hardcode_into_libs=yes
18479 ;;
18480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18482 shlibpath_overrides_runpath=no
18483 hardcode_into_libs=yes
18484 ;;
18485 freebsd*) # from 4.6 on
18486 shlibpath_overrides_runpath=yes
18487 hardcode_into_libs=yes
18488 ;;
18489 esac
18490 ;;
18491
18492gnu*)
18493 version_type=linux
18494 need_lib_prefix=no
18495 need_version=no
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 hardcode_into_libs=yes
18500 ;;
18501
18502hpux9* | hpux10* | hpux11*)
18503 # Give a soname corresponding to the major version so that dld.sl refuses to
18504 # link against other versions.
18505 version_type=sunos
18506 need_lib_prefix=no
18507 need_version=no
18508 case $host_cpu in
18509 ia64*)
18510 shrext_cmds='.so'
18511 hardcode_into_libs=yes
18512 dynamic_linker="$host_os dld.so"
18513 shlibpath_var=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516 soname_spec='${libname}${release}${shared_ext}$major'
18517 if test "X$HPUX_IA64_MODE" = X32; then
18518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18519 else
18520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18521 fi
18522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18523 ;;
18524 hppa*64*)
18525 shrext_cmds='.sl'
18526 hardcode_into_libs=yes
18527 dynamic_linker="$host_os dld.sl"
18528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 soname_spec='${libname}${release}${shared_ext}$major'
18532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18534 ;;
18535 *)
18536 shrext_cmds='.sl'
18537 dynamic_linker="$host_os dld.sl"
18538 shlibpath_var=SHLIB_PATH
18539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541 soname_spec='${libname}${release}${shared_ext}$major'
18542 ;;
18543 esac
18544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18545 postinstall_cmds='chmod 555 $lib'
18546 ;;
18547
18548interix3*)
18549 version_type=linux
18550 need_lib_prefix=no
18551 need_version=no
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18553 soname_spec='${libname}${release}${shared_ext}$major'
18554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 shlibpath_overrides_runpath=no
18557 hardcode_into_libs=yes
18558 ;;
18559
18560irix5* | irix6* | nonstopux*)
18561 case $host_os in
18562 nonstopux*) version_type=nonstopux ;;
18563 *)
18564 if test "$lt_cv_prog_gnu_ld" = yes; then
18565 version_type=linux
18566 else
18567 version_type=irix
18568 fi ;;
18569 esac
18570 need_lib_prefix=no
18571 need_version=no
18572 soname_spec='${libname}${release}${shared_ext}$major'
18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18574 case $host_os in
18575 irix5* | nonstopux*)
18576 libsuff= shlibsuff=
18577 ;;
18578 *)
18579 case $LD in # libtool.m4 will add one of these switches to LD
18580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18581 libsuff= shlibsuff= libmagic=32-bit;;
18582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18583 libsuff=32 shlibsuff=N32 libmagic=N32;;
18584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18585 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18586 *) libsuff= shlibsuff= libmagic=never-match;;
18587 esac
18588 ;;
18589 esac
18590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18591 shlibpath_overrides_runpath=no
18592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18594 hardcode_into_libs=yes
18595 ;;
18596
18597# No shared lib support for Linux oldld, aout, or coff.
18598linux*oldld* | linux*aout* | linux*coff*)
18599 dynamic_linker=no
18600 ;;
18601
18602# This must be Linux ELF.
18603linux*)
18604 version_type=linux
18605 need_lib_prefix=no
18606 need_version=no
18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18610 shlibpath_var=LD_LIBRARY_PATH
18611 shlibpath_overrides_runpath=no
18612 # This implies no fast_install, which is unacceptable.
18613 # Some rework will be needed to allow for fast_install
18614 # before this can be enabled.
18615 hardcode_into_libs=yes
18616
18617 # Append ld.so.conf contents to the search path
18618 if test -f /etc/ld.so.conf; then
18619 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18620 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18621 fi
18622
18623 # We used to test for /lib/ld.so.1 and disable shared libraries on
18624 # powerpc, because MkLinux only supported shared libraries with the
18625 # GNU dynamic linker. Since this was broken with cross compilers,
18626 # most powerpc-linux boxes support dynamic linking these days and
18627 # people can always --disable-shared, the test was removed, and we
18628 # assume the GNU/Linux dynamic linker is in use.
18629 dynamic_linker='GNU/Linux ld.so'
18630 ;;
18631
18632netbsdelf*-gnu)
18633 version_type=linux
18634 need_lib_prefix=no
18635 need_version=no
18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18637 soname_spec='${libname}${release}${shared_ext}$major'
18638 shlibpath_var=LD_LIBRARY_PATH
18639 shlibpath_overrides_runpath=no
18640 hardcode_into_libs=yes
18641 dynamic_linker='NetBSD ld.elf_so'
18642 ;;
18643
18644knetbsd*-gnu)
18645 version_type=linux
18646 need_lib_prefix=no
18647 need_version=no
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18649 soname_spec='${libname}${release}${shared_ext}$major'
18650 shlibpath_var=LD_LIBRARY_PATH
18651 shlibpath_overrides_runpath=no
18652 hardcode_into_libs=yes
18653 dynamic_linker='GNU ld.so'
18654 ;;
18655
18656netbsd*)
18657 version_type=sunos
18658 need_lib_prefix=no
18659 need_version=no
18660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18663 dynamic_linker='NetBSD (a.out) ld.so'
18664 else
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18666 soname_spec='${libname}${release}${shared_ext}$major'
18667 dynamic_linker='NetBSD ld.elf_so'
18668 fi
18669 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes
18671 hardcode_into_libs=yes
18672 ;;
18673
18674newsos6)
18675 version_type=linux
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 shlibpath_overrides_runpath=yes
18679 ;;
18680
18681nto-qnx*)
18682 version_type=linux
18683 need_lib_prefix=no
18684 need_version=no
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686 soname_spec='${libname}${release}${shared_ext}$major'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes
18689 ;;
18690
18691openbsd*)
18692 version_type=sunos
18693 sys_lib_dlsearch_path_spec="/usr/lib"
18694 need_lib_prefix=no
18695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18696 case $host_os in
18697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18698 *) need_version=no ;;
18699 esac
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18702 shlibpath_var=LD_LIBRARY_PATH
18703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18704 case $host_os in
18705 openbsd2.[89] | openbsd2.[89].*)
18706 shlibpath_overrides_runpath=no
18707 ;;
18708 *)
18709 shlibpath_overrides_runpath=yes
18710 ;;
18711 esac
18712 else
18713 shlibpath_overrides_runpath=yes
18714 fi
18715 ;;
18716
18717os2*)
18718 libname_spec='$name'
18719 shrext_cmds=".dll"
18720 need_lib_prefix=no
18721 library_names_spec='$libname${shared_ext} $libname.a'
18722 dynamic_linker='OS/2 ld.exe'
18723 shlibpath_var=LIBPATH
18724 ;;
18725
18726osf3* | osf4* | osf5*)
18727 version_type=osf
18728 need_lib_prefix=no
18729 need_version=no
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18735 ;;
18736
18737solaris*)
18738 version_type=linux
18739 need_lib_prefix=no
18740 need_version=no
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742 soname_spec='${libname}${release}${shared_ext}$major'
18743 shlibpath_var=LD_LIBRARY_PATH
18744 shlibpath_overrides_runpath=yes
18745 hardcode_into_libs=yes
18746 # ldd complains unless libraries are executable
18747 postinstall_cmds='chmod +x $lib'
18748 ;;
18749
18750sunos4*)
18751 version_type=sunos
18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18754 shlibpath_var=LD_LIBRARY_PATH
18755 shlibpath_overrides_runpath=yes
18756 if test "$with_gnu_ld" = yes; then
18757 need_lib_prefix=no
18758 fi
18759 need_version=yes
18760 ;;
18761
18762sysv4 | sysv4.3*)
18763 version_type=linux
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765 soname_spec='${libname}${release}${shared_ext}$major'
18766 shlibpath_var=LD_LIBRARY_PATH
18767 case $host_vendor in
18768 sni)
18769 shlibpath_overrides_runpath=no
18770 need_lib_prefix=no
18771 export_dynamic_flag_spec='${wl}-Blargedynsym'
18772 runpath_var=LD_RUN_PATH
18773 ;;
18774 siemens)
18775 need_lib_prefix=no
18776 ;;
18777 motorola)
18778 need_lib_prefix=no
18779 need_version=no
18780 shlibpath_overrides_runpath=no
18781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18782 ;;
18783 esac
18784 ;;
18785
18786sysv4*MP*)
18787 if test -d /usr/nec ;then
18788 version_type=linux
18789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18790 soname_spec='$libname${shared_ext}.$major'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 fi
18793 ;;
18794
18795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18796 version_type=freebsd-elf
18797 need_lib_prefix=no
18798 need_version=no
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18800 soname_spec='${libname}${release}${shared_ext}$major'
18801 shlibpath_var=LD_LIBRARY_PATH
18802 hardcode_into_libs=yes
18803 if test "$with_gnu_ld" = yes; then
18804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18805 shlibpath_overrides_runpath=no
18806 else
18807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18808 shlibpath_overrides_runpath=yes
18809 case $host_os in
18810 sco3.2v5*)
18811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18812 ;;
18813 esac
18814 fi
18815 sys_lib_dlsearch_path_spec='/usr/lib'
18816 ;;
18817
18818uts4*)
18819 version_type=linux
18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18821 soname_spec='${libname}${release}${shared_ext}$major'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 ;;
18824
18825*)
18826 dynamic_linker=no
18827 ;;
18828esac
18829echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18830echo "${ECHO_T}$dynamic_linker" >&6
18831test "$dynamic_linker" = no && can_build_shared=no
18832
18833variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18834if test "$GCC" = yes; then
18835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18836fi
18837
18838echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18839echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18840hardcode_action_GCJ=
18841if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18842 test -n "$runpath_var_GCJ" || \
18843 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18844
18845 # We can hardcode non-existant directories.
18846 if test "$hardcode_direct_GCJ" != no &&
18847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18848 # have to relink, otherwise we might link with an installed library
18849 # when we should be linking with a yet-to-be-installed one
18850 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18851 test "$hardcode_minus_L_GCJ" != no; then
18852 # Linking always hardcodes the temporary library directory.
18853 hardcode_action_GCJ=relink
18854 else
18855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18856 hardcode_action_GCJ=immediate
18857 fi
18858else
18859 # We cannot hardcode anything, or else we can only hardcode existing
18860 # directories.
18861 hardcode_action_GCJ=unsupported
18862fi
18863echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18864echo "${ECHO_T}$hardcode_action_GCJ" >&6
18865
18866if test "$hardcode_action_GCJ" = relink; then
18867 # Fast installation is not supported
18868 enable_fast_install=no
18869elif test "$shlibpath_overrides_runpath" = yes ||
18870 test "$enable_shared" = no; then
18871 # Fast installation is not necessary
18872 enable_fast_install=needless
18873fi
18874
18875
18876# The else clause should only fire when bootstrapping the
18877# libtool distribution, otherwise you forgot to ship ltmain.sh
18878# with your package, and you will get complaints that there are
18879# no rules to generate ltmain.sh.
18880if test -f "$ltmain"; then
18881 # See if we are running on zsh, and set the options which allow our commands through
18882 # without removal of \ escapes.
18883 if test -n "${ZSH_VERSION+set}" ; then
18884 setopt NO_GLOB_SUBST
18885 fi
18886 # Now quote all the things that may contain metacharacters while being
18887 # careful not to overquote the AC_SUBSTed values. We take copies of the
18888 # variables and quote the copies for generation of the libtool script.
18889 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18890 SED SHELL STRIP \
18891 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18892 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18893 deplibs_check_method reload_flag reload_cmds need_locks \
18894 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18895 lt_cv_sys_global_symbol_to_c_name_address \
18896 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18897 old_postinstall_cmds old_postuninstall_cmds \
18898 compiler_GCJ \
18899 CC_GCJ \
18900 LD_GCJ \
18901 lt_prog_compiler_wl_GCJ \
18902 lt_prog_compiler_pic_GCJ \
18903 lt_prog_compiler_static_GCJ \
18904 lt_prog_compiler_no_builtin_flag_GCJ \
18905 export_dynamic_flag_spec_GCJ \
18906 thread_safe_flag_spec_GCJ \
18907 whole_archive_flag_spec_GCJ \
18908 enable_shared_with_static_runtimes_GCJ \
18909 old_archive_cmds_GCJ \
18910 old_archive_from_new_cmds_GCJ \
18911 predep_objects_GCJ \
18912 postdep_objects_GCJ \
18913 predeps_GCJ \
18914 postdeps_GCJ \
18915 compiler_lib_search_path_GCJ \
18916 archive_cmds_GCJ \
18917 archive_expsym_cmds_GCJ \
18918 postinstall_cmds_GCJ \
18919 postuninstall_cmds_GCJ \
18920 old_archive_from_expsyms_cmds_GCJ \
18921 allow_undefined_flag_GCJ \
18922 no_undefined_flag_GCJ \
18923 export_symbols_cmds_GCJ \
18924 hardcode_libdir_flag_spec_GCJ \
18925 hardcode_libdir_flag_spec_ld_GCJ \
18926 hardcode_libdir_separator_GCJ \
18927 hardcode_automatic_GCJ \
18928 module_cmds_GCJ \
18929 module_expsym_cmds_GCJ \
18930 lt_cv_prog_compiler_c_o_GCJ \
18931 exclude_expsyms_GCJ \
18932 include_expsyms_GCJ; do
18933
18934 case $var in
18935 old_archive_cmds_GCJ | \
18936 old_archive_from_new_cmds_GCJ | \
18937 archive_cmds_GCJ | \
18938 archive_expsym_cmds_GCJ | \
18939 module_cmds_GCJ | \
18940 module_expsym_cmds_GCJ | \
18941 old_archive_from_expsyms_cmds_GCJ | \
18942 export_symbols_cmds_GCJ | \
18943 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18944 postinstall_cmds | postuninstall_cmds | \
18945 old_postinstall_cmds | old_postuninstall_cmds | \
18946 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18947 # Double-quote double-evaled strings.
18948 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18949 ;;
18950 *)
18951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18952 ;;
18953 esac
18954 done
18955
18956 case $lt_echo in
18957 *'\$0 --fallback-echo"')
18958 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18959 ;;
18960 esac
18961
18962cfgfile="$ofile"
18963
18964 cat <<__EOF__ >> "$cfgfile"
18965# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18966
18967# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18968
18969# Shell to use when invoking shell scripts.
18970SHELL=$lt_SHELL
18971
18972# Whether or not to build shared libraries.
18973build_libtool_libs=$enable_shared
18974
18975# Whether or not to build static libraries.
18976build_old_libs=$enable_static
18977
18978# Whether or not to add -lc for building shared libraries.
18979build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18980
18981# Whether or not to disallow shared libs when runtime libs are static
18982allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18983
18984# Whether or not to optimize for fast installation.
18985fast_install=$enable_fast_install
18986
18987# The host system.
18988host_alias=$host_alias
18989host=$host
18990host_os=$host_os
18991
18992# The build system.
18993build_alias=$build_alias
18994build=$build
18995build_os=$build_os
18996
18997# An echo program that does not interpret backslashes.
18998echo=$lt_echo
18999
19000# The archiver.
19001AR=$lt_AR
19002AR_FLAGS=$lt_AR_FLAGS
19003
19004# A C compiler.
19005LTCC=$lt_LTCC
19006
19007# LTCC compiler flags.
19008LTCFLAGS=$lt_LTCFLAGS
19009
19010# A language-specific compiler.
19011CC=$lt_compiler_GCJ
19012
19013# Is the compiler the GNU C compiler?
19014with_gcc=$GCC_GCJ
19015
19016# An ERE matcher.
19017EGREP=$lt_EGREP
19018
19019# The linker used to build libraries.
19020LD=$lt_LD_GCJ
19021
19022# Whether we need hard or soft links.
19023LN_S=$lt_LN_S
19024
19025# A BSD-compatible nm program.
19026NM=$lt_NM
19027
19028# A symbol stripping program
19029STRIP=$lt_STRIP
19030
19031# Used to examine libraries when file_magic_cmd begins "file"
19032MAGIC_CMD=$MAGIC_CMD
19033
19034# Used on cygwin: DLL creation program.
19035DLLTOOL="$DLLTOOL"
19036
19037# Used on cygwin: object dumper.
19038OBJDUMP="$OBJDUMP"
19039
19040# Used on cygwin: assembler.
19041AS="$AS"
19042
19043# The name of the directory that contains temporary libtool files.
19044objdir=$objdir
19045
19046# How to create reloadable object files.
19047reload_flag=$lt_reload_flag
19048reload_cmds=$lt_reload_cmds
19049
19050# How to pass a linker flag through the compiler.
19051wl=$lt_lt_prog_compiler_wl_GCJ
19052
19053# Object file suffix (normally "o").
19054objext="$ac_objext"
19055
19056# Old archive suffix (normally "a").
19057libext="$libext"
19058
19059# Shared library suffix (normally ".so").
19060shrext_cmds='$shrext_cmds'
19061
19062# Executable file suffix (normally "").
19063exeext="$exeext"
19064
19065# Additional compiler flags for building library objects.
19066pic_flag=$lt_lt_prog_compiler_pic_GCJ
19067pic_mode=$pic_mode
19068
19069# What is the maximum length of a command?
19070max_cmd_len=$lt_cv_sys_max_cmd_len
19071
19072# Does compiler simultaneously support -c and -o options?
19073compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19074
19075# Must we lock files when doing compilation?
19076need_locks=$lt_need_locks
19077
19078# Do we need the lib prefix for modules?
19079need_lib_prefix=$need_lib_prefix
19080
19081# Do we need a version for libraries?
19082need_version=$need_version
19083
19084# Whether dlopen is supported.
19085dlopen_support=$enable_dlopen
19086
19087# Whether dlopen of programs is supported.
19088dlopen_self=$enable_dlopen_self
19089
19090# Whether dlopen of statically linked programs is supported.
19091dlopen_self_static=$enable_dlopen_self_static
19092
19093# Compiler flag to prevent dynamic linking.
19094link_static_flag=$lt_lt_prog_compiler_static_GCJ
19095
19096# Compiler flag to turn off builtin functions.
19097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19098
19099# Compiler flag to allow reflexive dlopens.
19100export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19101
19102# Compiler flag to generate shared objects directly from archives.
19103whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19104
19105# Compiler flag to generate thread-safe objects.
19106thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19107
19108# Library versioning type.
19109version_type=$version_type
19110
19111# Format of library name prefix.
19112libname_spec=$lt_libname_spec
19113
19114# List of archive names. First name is the real one, the rest are links.
19115# The last name is the one that the linker finds with -lNAME.
19116library_names_spec=$lt_library_names_spec
19117
19118# The coded name of the library, if different from the real name.
19119soname_spec=$lt_soname_spec
19120
19121# Commands used to build and install an old-style archive.
19122RANLIB=$lt_RANLIB
19123old_archive_cmds=$lt_old_archive_cmds_GCJ
19124old_postinstall_cmds=$lt_old_postinstall_cmds
19125old_postuninstall_cmds=$lt_old_postuninstall_cmds
19126
19127# Create an old-style archive from a shared archive.
19128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19129
19130# Create a temporary old-style archive to link instead of a shared archive.
19131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19132
19133# Commands used to build and install a shared archive.
19134archive_cmds=$lt_archive_cmds_GCJ
19135archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19136postinstall_cmds=$lt_postinstall_cmds
19137postuninstall_cmds=$lt_postuninstall_cmds
19138
19139# Commands used to build a loadable module (assumed same as above if empty)
19140module_cmds=$lt_module_cmds_GCJ
19141module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19142
19143# Commands to strip libraries.
19144old_striplib=$lt_old_striplib
19145striplib=$lt_striplib
19146
19147# Dependencies to place before the objects being linked to create a
19148# shared library.
19149predep_objects=$lt_predep_objects_GCJ
19150
19151# Dependencies to place after the objects being linked to create a
19152# shared library.
19153postdep_objects=$lt_postdep_objects_GCJ
19154
19155# Dependencies to place before the objects being linked to create a
19156# shared library.
19157predeps=$lt_predeps_GCJ
19158
19159# Dependencies to place after the objects being linked to create a
19160# shared library.
19161postdeps=$lt_postdeps_GCJ
19162
19163# The library search path used internally by the compiler when linking
19164# a shared library.
19165compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19166
19167# Method to check whether dependent libraries are shared objects.
19168deplibs_check_method=$lt_deplibs_check_method
19169
19170# Command to use when deplibs_check_method == file_magic.
19171file_magic_cmd=$lt_file_magic_cmd
19172
19173# Flag that allows shared libraries with undefined symbols to be built.
19174allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19175
19176# Flag that forces no undefined symbols.
19177no_undefined_flag=$lt_no_undefined_flag_GCJ
19178
19179# Commands used to finish a libtool library installation in a directory.
19180finish_cmds=$lt_finish_cmds
19181
19182# Same as above, but a single script fragment to be evaled but not shown.
19183finish_eval=$lt_finish_eval
19184
19185# Take the output of nm and produce a listing of raw symbols and C names.
19186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19187
19188# Transform the output of nm in a proper C declaration
19189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19190
19191# Transform the output of nm in a C name address pair
19192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19193
19194# This is the shared library runtime path variable.
19195runpath_var=$runpath_var
19196
19197# This is the shared library path variable.
19198shlibpath_var=$shlibpath_var
19199
19200# Is shlibpath searched before the hard-coded library search path?
19201shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19202
19203# How to hardcode a shared library path into an executable.
19204hardcode_action=$hardcode_action_GCJ
19205
19206# Whether we should hardcode library paths into libraries.
19207hardcode_into_libs=$hardcode_into_libs
19208
19209# Flag to hardcode \$libdir into a binary during linking.
19210# This must work even if \$libdir does not exist.
19211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19212
19213# If ld is used when linking, flag to hardcode \$libdir into
19214# a binary during linking. This must work even if \$libdir does
19215# not exist.
19216hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19217
19218# Whether we need a single -rpath flag with a separated argument.
19219hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19220
19221# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19222# resulting binary.
19223hardcode_direct=$hardcode_direct_GCJ
19224
19225# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19226# resulting binary.
19227hardcode_minus_L=$hardcode_minus_L_GCJ
19228
19229# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19230# the resulting binary.
19231hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19232
19233# Set to yes if building a shared library automatically hardcodes DIR into the library
19234# and all subsequent libraries and executables linked against it.
19235hardcode_automatic=$hardcode_automatic_GCJ
19236
19237# Variables whose values should be saved in libtool wrapper scripts and
19238# restored at relink time.
19239variables_saved_for_relink="$variables_saved_for_relink"
19240
19241# Whether libtool must link a program against all its dependency libraries.
19242link_all_deplibs=$link_all_deplibs_GCJ
19243
19244# Compile-time system search path for libraries
19245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19246
19247# Run-time system search path for libraries
19248sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19249
19250# Fix the shell variable \$srcfile for the compiler.
19251fix_srcfile_path="$fix_srcfile_path_GCJ"
19252
19253# Set to yes if exported symbols are required.
19254always_export_symbols=$always_export_symbols_GCJ
19255
19256# The commands to list exported symbols.
19257export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19258
19259# The commands to extract the exported symbol list from a shared archive.
19260extract_expsyms_cmds=$lt_extract_expsyms_cmds
19261
19262# Symbols that should not be listed in the preloaded symbols.
19263exclude_expsyms=$lt_exclude_expsyms_GCJ
19264
19265# Symbols that must always be exported.
19266include_expsyms=$lt_include_expsyms_GCJ
19267
19268# ### END LIBTOOL TAG CONFIG: $tagname
19269
19270__EOF__
19271
19272
19273else
19274 # If there is no Makefile yet, we rely on a make rule to execute
19275 # `config.status --recheck' to rerun these tests and create the
19276 # libtool script then.
19277 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19278 if test -f "$ltmain_in"; then
19279 test -f Makefile && make "$ltmain"
19280 fi
19281fi
19282
19283
19284ac_ext=c
19285ac_cpp='$CPP $CPPFLAGS'
19286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19288ac_compiler_gnu=$ac_cv_c_compiler_gnu
19289
19290CC="$lt_save_CC"
19291
19292 else
19293 tagname=""
19294 fi
19295 ;;
19296
19297 RC)
19298
19299
19300
19301# Source file extension for RC test sources.
19302ac_ext=rc
19303
19304# Object file extension for compiled RC test sources.
19305objext=o
19306objext_RC=$objext
19307
19308# Code to be used in simple compile tests
19309lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19310
19311# Code to be used in simple link tests
19312lt_simple_link_test_code="$lt_simple_compile_test_code"
19313
19314# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19315
19316# If no C compiler was specified, use CC.
19317LTCC=${LTCC-"$CC"}
19318
19319# If no C compiler flags were specified, use CFLAGS.
19320LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19321
19322# Allow CC to be a program name with arguments.
19323compiler=$CC
19324
19325
19326# save warnings/boilerplate of simple test code
19327ac_outfile=conftest.$ac_objext
19328printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19330_lt_compiler_boilerplate=`cat conftest.err`
19331$rm conftest*
19332
19333ac_outfile=conftest.$ac_objext
19334printf "$lt_simple_link_test_code" >conftest.$ac_ext
19335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19336_lt_linker_boilerplate=`cat conftest.err`
19337$rm conftest*
19338
19339
19340# Allow CC to be a program name with arguments.
19341lt_save_CC="$CC"
19342CC=${RC-"windres"}
19343compiler=$CC
19344compiler_RC=$CC
19345for cc_temp in $compiler""; do
19346 case $cc_temp in
19347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19349 \-*) ;;
19350 *) break;;
19351 esac
19352done
19353cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19354
19355lt_cv_prog_compiler_c_o_RC=yes
19356
19357# The else clause should only fire when bootstrapping the
19358# libtool distribution, otherwise you forgot to ship ltmain.sh
19359# with your package, and you will get complaints that there are
19360# no rules to generate ltmain.sh.
19361if test -f "$ltmain"; then
19362 # See if we are running on zsh, and set the options which allow our commands through
19363 # without removal of \ escapes.
19364 if test -n "${ZSH_VERSION+set}" ; then
19365 setopt NO_GLOB_SUBST
19366 fi
19367 # Now quote all the things that may contain metacharacters while being
19368 # careful not to overquote the AC_SUBSTed values. We take copies of the
19369 # variables and quote the copies for generation of the libtool script.
19370 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19371 SED SHELL STRIP \
19372 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19373 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19374 deplibs_check_method reload_flag reload_cmds need_locks \
19375 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19376 lt_cv_sys_global_symbol_to_c_name_address \
19377 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19378 old_postinstall_cmds old_postuninstall_cmds \
19379 compiler_RC \
19380 CC_RC \
19381 LD_RC \
19382 lt_prog_compiler_wl_RC \
19383 lt_prog_compiler_pic_RC \
19384 lt_prog_compiler_static_RC \
19385 lt_prog_compiler_no_builtin_flag_RC \
19386 export_dynamic_flag_spec_RC \
19387 thread_safe_flag_spec_RC \
19388 whole_archive_flag_spec_RC \
19389 enable_shared_with_static_runtimes_RC \
19390 old_archive_cmds_RC \
19391 old_archive_from_new_cmds_RC \
19392 predep_objects_RC \
19393 postdep_objects_RC \
19394 predeps_RC \
19395 postdeps_RC \
19396 compiler_lib_search_path_RC \
19397 archive_cmds_RC \
19398 archive_expsym_cmds_RC \
19399 postinstall_cmds_RC \
19400 postuninstall_cmds_RC \
19401 old_archive_from_expsyms_cmds_RC \
19402 allow_undefined_flag_RC \
19403 no_undefined_flag_RC \
19404 export_symbols_cmds_RC \
19405 hardcode_libdir_flag_spec_RC \
19406 hardcode_libdir_flag_spec_ld_RC \
19407 hardcode_libdir_separator_RC \
19408 hardcode_automatic_RC \
19409 module_cmds_RC \
19410 module_expsym_cmds_RC \
19411 lt_cv_prog_compiler_c_o_RC \
19412 exclude_expsyms_RC \
19413 include_expsyms_RC; do
19414
19415 case $var in
19416 old_archive_cmds_RC | \
19417 old_archive_from_new_cmds_RC | \
19418 archive_cmds_RC | \
19419 archive_expsym_cmds_RC | \
19420 module_cmds_RC | \
19421 module_expsym_cmds_RC | \
19422 old_archive_from_expsyms_cmds_RC | \
19423 export_symbols_cmds_RC | \
19424 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19425 postinstall_cmds | postuninstall_cmds | \
19426 old_postinstall_cmds | old_postuninstall_cmds | \
19427 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19428 # Double-quote double-evaled strings.
19429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19430 ;;
19431 *)
19432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19433 ;;
19434 esac
19435 done
19436
19437 case $lt_echo in
19438 *'\$0 --fallback-echo"')
19439 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19440 ;;
19441 esac
19442
19443cfgfile="$ofile"
19444
19445 cat <<__EOF__ >> "$cfgfile"
19446# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19447
19448# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19449
19450# Shell to use when invoking shell scripts.
19451SHELL=$lt_SHELL
19452
19453# Whether or not to build shared libraries.
19454build_libtool_libs=$enable_shared
19455
19456# Whether or not to build static libraries.
19457build_old_libs=$enable_static
19458
19459# Whether or not to add -lc for building shared libraries.
19460build_libtool_need_lc=$archive_cmds_need_lc_RC
19461
19462# Whether or not to disallow shared libs when runtime libs are static
19463allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19464
19465# Whether or not to optimize for fast installation.
19466fast_install=$enable_fast_install
19467
19468# The host system.
19469host_alias=$host_alias
19470host=$host
19471host_os=$host_os
19472
19473# The build system.
19474build_alias=$build_alias
19475build=$build
19476build_os=$build_os
19477
19478# An echo program that does not interpret backslashes.
19479echo=$lt_echo
19480
19481# The archiver.
19482AR=$lt_AR
19483AR_FLAGS=$lt_AR_FLAGS
19484
19485# A C compiler.
19486LTCC=$lt_LTCC
19487
19488# LTCC compiler flags.
19489LTCFLAGS=$lt_LTCFLAGS
19490
19491# A language-specific compiler.
19492CC=$lt_compiler_RC
19493
19494# Is the compiler the GNU C compiler?
19495with_gcc=$GCC_RC
19496
19497# An ERE matcher.
19498EGREP=$lt_EGREP
19499
19500# The linker used to build libraries.
19501LD=$lt_LD_RC
19502
19503# Whether we need hard or soft links.
19504LN_S=$lt_LN_S
19505
19506# A BSD-compatible nm program.
19507NM=$lt_NM
19508
19509# A symbol stripping program
19510STRIP=$lt_STRIP
19511
19512# Used to examine libraries when file_magic_cmd begins "file"
19513MAGIC_CMD=$MAGIC_CMD
19514
19515# Used on cygwin: DLL creation program.
19516DLLTOOL="$DLLTOOL"
19517
19518# Used on cygwin: object dumper.
19519OBJDUMP="$OBJDUMP"
19520
19521# Used on cygwin: assembler.
19522AS="$AS"
19523
19524# The name of the directory that contains temporary libtool files.
19525objdir=$objdir
19526
19527# How to create reloadable object files.
19528reload_flag=$lt_reload_flag
19529reload_cmds=$lt_reload_cmds
19530
19531# How to pass a linker flag through the compiler.
19532wl=$lt_lt_prog_compiler_wl_RC
19533
19534# Object file suffix (normally "o").
19535objext="$ac_objext"
19536
19537# Old archive suffix (normally "a").
19538libext="$libext"
19539
19540# Shared library suffix (normally ".so").
19541shrext_cmds='$shrext_cmds'
19542
19543# Executable file suffix (normally "").
19544exeext="$exeext"
19545
19546# Additional compiler flags for building library objects.
19547pic_flag=$lt_lt_prog_compiler_pic_RC
19548pic_mode=$pic_mode
19549
19550# What is the maximum length of a command?
19551max_cmd_len=$lt_cv_sys_max_cmd_len
19552
19553# Does compiler simultaneously support -c and -o options?
19554compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19555
19556# Must we lock files when doing compilation?
19557need_locks=$lt_need_locks
19558
19559# Do we need the lib prefix for modules?
19560need_lib_prefix=$need_lib_prefix
19561
19562# Do we need a version for libraries?
19563need_version=$need_version
19564
19565# Whether dlopen is supported.
19566dlopen_support=$enable_dlopen
19567
19568# Whether dlopen of programs is supported.
19569dlopen_self=$enable_dlopen_self
19570
19571# Whether dlopen of statically linked programs is supported.
19572dlopen_self_static=$enable_dlopen_self_static
19573
19574# Compiler flag to prevent dynamic linking.
19575link_static_flag=$lt_lt_prog_compiler_static_RC
19576
19577# Compiler flag to turn off builtin functions.
19578no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19579
19580# Compiler flag to allow reflexive dlopens.
19581export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19582
19583# Compiler flag to generate shared objects directly from archives.
19584whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19585
19586# Compiler flag to generate thread-safe objects.
19587thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19588
19589# Library versioning type.
19590version_type=$version_type
19591
19592# Format of library name prefix.
19593libname_spec=$lt_libname_spec
19594
19595# List of archive names. First name is the real one, the rest are links.
19596# The last name is the one that the linker finds with -lNAME.
19597library_names_spec=$lt_library_names_spec
19598
19599# The coded name of the library, if different from the real name.
19600soname_spec=$lt_soname_spec
19601
19602# Commands used to build and install an old-style archive.
19603RANLIB=$lt_RANLIB
19604old_archive_cmds=$lt_old_archive_cmds_RC
19605old_postinstall_cmds=$lt_old_postinstall_cmds
19606old_postuninstall_cmds=$lt_old_postuninstall_cmds
19607
19608# Create an old-style archive from a shared archive.
19609old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19610
19611# Create a temporary old-style archive to link instead of a shared archive.
19612old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19613
19614# Commands used to build and install a shared archive.
19615archive_cmds=$lt_archive_cmds_RC
19616archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19617postinstall_cmds=$lt_postinstall_cmds
19618postuninstall_cmds=$lt_postuninstall_cmds
19619
19620# Commands used to build a loadable module (assumed same as above if empty)
19621module_cmds=$lt_module_cmds_RC
19622module_expsym_cmds=$lt_module_expsym_cmds_RC
19623
19624# Commands to strip libraries.
19625old_striplib=$lt_old_striplib
19626striplib=$lt_striplib
19627
19628# Dependencies to place before the objects being linked to create a
19629# shared library.
19630predep_objects=$lt_predep_objects_RC
19631
19632# Dependencies to place after the objects being linked to create a
19633# shared library.
19634postdep_objects=$lt_postdep_objects_RC
19635
19636# Dependencies to place before the objects being linked to create a
19637# shared library.
19638predeps=$lt_predeps_RC
19639
19640# Dependencies to place after the objects being linked to create a
19641# shared library.
19642postdeps=$lt_postdeps_RC
19643
19644# The library search path used internally by the compiler when linking
19645# a shared library.
19646compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19647
19648# Method to check whether dependent libraries are shared objects.
19649deplibs_check_method=$lt_deplibs_check_method
19650
19651# Command to use when deplibs_check_method == file_magic.
19652file_magic_cmd=$lt_file_magic_cmd
19653
19654# Flag that allows shared libraries with undefined symbols to be built.
19655allow_undefined_flag=$lt_allow_undefined_flag_RC
19656
19657# Flag that forces no undefined symbols.
19658no_undefined_flag=$lt_no_undefined_flag_RC
19659
19660# Commands used to finish a libtool library installation in a directory.
19661finish_cmds=$lt_finish_cmds
19662
19663# Same as above, but a single script fragment to be evaled but not shown.
19664finish_eval=$lt_finish_eval
19665
19666# Take the output of nm and produce a listing of raw symbols and C names.
19667global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19668
19669# Transform the output of nm in a proper C declaration
19670global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19671
19672# Transform the output of nm in a C name address pair
19673global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19674
19675# This is the shared library runtime path variable.
19676runpath_var=$runpath_var
19677
19678# This is the shared library path variable.
19679shlibpath_var=$shlibpath_var
19680
19681# Is shlibpath searched before the hard-coded library search path?
19682shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19683
19684# How to hardcode a shared library path into an executable.
19685hardcode_action=$hardcode_action_RC
19686
19687# Whether we should hardcode library paths into libraries.
19688hardcode_into_libs=$hardcode_into_libs
19689
19690# Flag to hardcode \$libdir into a binary during linking.
19691# This must work even if \$libdir does not exist.
19692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19693
19694# If ld is used when linking, flag to hardcode \$libdir into
19695# a binary during linking. This must work even if \$libdir does
19696# not exist.
19697hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19698
19699# Whether we need a single -rpath flag with a separated argument.
19700hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19701
19702# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19703# resulting binary.
19704hardcode_direct=$hardcode_direct_RC
19705
19706# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19707# resulting binary.
19708hardcode_minus_L=$hardcode_minus_L_RC
19709
19710# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19711# the resulting binary.
19712hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19713
19714# Set to yes if building a shared library automatically hardcodes DIR into the library
19715# and all subsequent libraries and executables linked against it.
19716hardcode_automatic=$hardcode_automatic_RC
19717
19718# Variables whose values should be saved in libtool wrapper scripts and
19719# restored at relink time.
19720variables_saved_for_relink="$variables_saved_for_relink"
19721
19722# Whether libtool must link a program against all its dependency libraries.
19723link_all_deplibs=$link_all_deplibs_RC
19724
19725# Compile-time system search path for libraries
19726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19727
19728# Run-time system search path for libraries
19729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19730
19731# Fix the shell variable \$srcfile for the compiler.
19732fix_srcfile_path="$fix_srcfile_path_RC"
19733
19734# Set to yes if exported symbols are required.
19735always_export_symbols=$always_export_symbols_RC
19736
19737# The commands to list exported symbols.
19738export_symbols_cmds=$lt_export_symbols_cmds_RC
19739
19740# The commands to extract the exported symbol list from a shared archive.
19741extract_expsyms_cmds=$lt_extract_expsyms_cmds
19742
19743# Symbols that should not be listed in the preloaded symbols.
19744exclude_expsyms=$lt_exclude_expsyms_RC
19745
19746# Symbols that must always be exported.
19747include_expsyms=$lt_include_expsyms_RC
19748
19749# ### END LIBTOOL TAG CONFIG: $tagname
19750
19751__EOF__
19752
19753
19754else
19755 # If there is no Makefile yet, we rely on a make rule to execute
19756 # `config.status --recheck' to rerun these tests and create the
19757 # libtool script then.
19758 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19759 if test -f "$ltmain_in"; then
19760 test -f Makefile && make "$ltmain"
19761 fi
19762fi
19763
19764
19765ac_ext=c
19766ac_cpp='$CPP $CPPFLAGS'
19767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19769ac_compiler_gnu=$ac_cv_c_compiler_gnu
19770
19771CC="$lt_save_CC"
19772
19773 ;;
19774
19775 *)
19776 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19777echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19778 { (exit 1); exit 1; }; }
19779 ;;
19780 esac
19781
19782 # Append the new tag name to the list of available tags.
19783 if test -n "$tagname" ; then
19784 available_tags="$available_tags $tagname"
19785 fi
19786 fi
19787 done
19788 IFS="$lt_save_ifs"
19789
19790 # Now substitute the updated list of available tags.
19791 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19792 mv "${ofile}T" "$ofile"
19793 chmod +x "$ofile"
19794 else
19795 rm -f "${ofile}T"
19796 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19797echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19798 { (exit 1); exit 1; }; }
19799 fi
19800fi
19801
b3076f16 19802
19803
2f61d1d7 19804# This can be used to rebuild libtool when needed
19805LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19806
19807# Always use our own libtool.
19808LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19809
19810# Prevent multiple expansion
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831echo "$as_me:$LINENO: checking whether ln -s works" >&5
19832echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19833LN_S=$as_ln_s
19834if test "$LN_S" = "ln -s"; then
19835 echo "$as_me:$LINENO: result: yes" >&5
19836echo "${ECHO_T}yes" >&6
b3076f16 19837else
2f61d1d7 19838 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19839echo "${ECHO_T}no, using $LN_S" >&6
b3076f16 19840fi
b3076f16 19841
2f61d1d7 19842echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19843echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19844set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19845if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847else
19848 cat >conftest.make <<\_ACEOF
19849all:
19850 @echo 'ac_maketemp="$(MAKE)"'
19851_ACEOF
19852# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19853eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19854if test -n "$ac_maketemp"; then
19855 eval ac_cv_prog_make_${ac_make}_set=yes
19856else
19857 eval ac_cv_prog_make_${ac_make}_set=no
19858fi
19859rm -f conftest.make
19860fi
19861if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19862 echo "$as_me:$LINENO: result: yes" >&5
19863echo "${ECHO_T}yes" >&6
19864 SET_MAKE=
19865else
19866 echo "$as_me:$LINENO: result: no" >&5
19867echo "${ECHO_T}no" >&6
19868 SET_MAKE="MAKE=${MAKE-make}"
19869fi
b3076f16 19870
19871if test $ac_cv_c_compiler_gnu = yes; then
19872 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
19873echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
19874if test "${ac_cv_prog_gcc_traditional+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876else
19877 ac_pattern="Autoconf.*'x'"
19878 cat >conftest.$ac_ext <<_ACEOF
19879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
19884#include <sgtty.h>
19885Autoconf TIOCGETP
19886_ACEOF
19887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888 $EGREP "$ac_pattern" >/dev/null 2>&1; then
19889 ac_cv_prog_gcc_traditional=yes
19890else
19891 ac_cv_prog_gcc_traditional=no
19892fi
19893rm -f conftest*
19894
19895
19896 if test $ac_cv_prog_gcc_traditional = no; then
19897 cat >conftest.$ac_ext <<_ACEOF
19898/* confdefs.h. */
19899_ACEOF
19900cat confdefs.h >>conftest.$ac_ext
19901cat >>conftest.$ac_ext <<_ACEOF
19902/* end confdefs.h. */
19903#include <termio.h>
19904Autoconf TCGETA
19905_ACEOF
19906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19907 $EGREP "$ac_pattern" >/dev/null 2>&1; then
19908 ac_cv_prog_gcc_traditional=yes
19909fi
19910rm -f conftest*
19911
19912 fi
19913fi
19914echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
19915echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
19916 if test $ac_cv_prog_gcc_traditional = yes; then
19917 CC="$CC -traditional"
19918 fi
19919fi
19920
19921
19922case $target in
19923 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
19924 ANSI_SRC=""
19925 ;;
19926 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
19927 ANSI_SRC=""
19928
19929cat >>confdefs.h <<\_ACEOF
19930#define BROKEN_REGEX 1
19931_ACEOF
19932
19933 BROKEN_REGEX=yes
19934 ;;
19935 *-solaris*)
19936 EXTRA_DEFINE="-D__SOLARIS__"
19937 ANSI_SRC="-fno-builtin"
19938 ;;
19939 *-cygwin)
19940 ANSI_SRC="-fno-builtin"
19941 ;;
19942 *-linux*)
19943 EXTRA_DEFINE="-D_GNU_SOURCE"
19944 ANSI_SRC=""
19945 ;;
19946 *)
19947 ANSI_SRC=""
19948 ;;
19949esac
19950CFLAGS="$CFLAGS $EXTRA_DEFINE"
19951
19952
19953echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19954echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19955if test "${ac_cv_lib_socket_socket+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19957else
19958 ac_check_lib_save_LIBS=$LIBS
19959LIBS="-lsocket $LIBS"
19960cat >conftest.$ac_ext <<_ACEOF
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
19966
19967/* Override any gcc2 internal prototype to avoid an error. */
19968#ifdef __cplusplus
19969extern "C"
19970#endif
19971/* We use char because int might match the return type of a gcc2
19972 builtin and then its argument prototype would still apply. */
19973char socket ();
19974int
19975main ()
19976{
19977socket ();
19978 ;
19979 return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext conftest$ac_exeext
19983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
b8cb2a14 19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest$ac_exeext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 ac_cv_lib_socket_socket=yes
20004else
20005 echo "$as_me: failed program was:" >&5
20006sed 's/^/| /' conftest.$ac_ext >&5
20007
20008ac_cv_lib_socket_socket=no
20009fi
20010rm -f conftest.err conftest.$ac_objext \
20011 conftest$ac_exeext conftest.$ac_ext
20012LIBS=$ac_check_lib_save_LIBS
20013fi
20014echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20015echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
20016if test $ac_cv_lib_socket_socket = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018#define HAVE_LIBSOCKET 1
20019_ACEOF
20020
20021 LIBS="-lsocket $LIBS"
20022
20023fi
20024
20025
20026echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20027echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20028if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030else
20031 ac_check_lib_save_LIBS=$LIBS
20032LIBS="-lnsl $LIBS"
20033cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
20039
20040/* Override any gcc2 internal prototype to avoid an error. */
20041#ifdef __cplusplus
20042extern "C"
20043#endif
20044/* We use char because int might match the return type of a gcc2
20045 builtin and then its argument prototype would still apply. */
20046char gethostbyname ();
20047int
20048main ()
20049{
20050gethostbyname ();
20051 ;
20052 return 0;
20053}
20054_ACEOF
20055rm -f conftest.$ac_objext conftest$ac_exeext
20056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057 (eval $ac_link) 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
b8cb2a14 20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; } &&
20070 { ac_try='test -s conftest$ac_exeext'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 ac_cv_lib_nsl_gethostbyname=yes
20077else
20078 echo "$as_me: failed program was:" >&5
20079sed 's/^/| /' conftest.$ac_ext >&5
20080
20081ac_cv_lib_nsl_gethostbyname=no
20082fi
20083rm -f conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext conftest.$ac_ext
20085LIBS=$ac_check_lib_save_LIBS
20086fi
20087echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20088echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20089if test $ac_cv_lib_nsl_gethostbyname = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091#define HAVE_LIBNSL 1
20092_ACEOF
20093
20094 LIBS="-lnsl $LIBS"
20095
20096fi
20097
20098
20099echo "$as_me:$LINENO: checking for main in -lm" >&5
20100echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
20101if test "${ac_cv_lib_m_main+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104 ac_check_lib_save_LIBS=$LIBS
20105LIBS="-lm $LIBS"
20106cat >conftest.$ac_ext <<_ACEOF
20107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112
20113
20114int
20115main ()
20116{
20117main ();
20118 ;
20119 return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext conftest$ac_exeext
20123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20124 (eval $ac_link) 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } &&
b8cb2a14 20131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_lib_m_main=yes
20144else
20145 echo "$as_me: failed program was:" >&5
20146sed 's/^/| /' conftest.$ac_ext >&5
20147
20148ac_cv_lib_m_main=no
20149fi
20150rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152LIBS=$ac_check_lib_save_LIBS
20153fi
20154echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
20155echo "${ECHO_T}$ac_cv_lib_m_main" >&6
20156if test $ac_cv_lib_m_main = yes; then
20157 cat >>confdefs.h <<_ACEOF
20158#define HAVE_LIBM 1
20159_ACEOF
20160
20161 LIBS="-lm $LIBS"
20162
20163fi
20164
20165
20166echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20167echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20168if test "${ac_cv_header_stdc+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170else
20171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
20177#include <stdlib.h>
20178#include <stdarg.h>
20179#include <string.h>
20180#include <float.h>
20181
20182int
20183main ()
20184{
20185
20186 ;
20187 return 0;
20188}
20189_ACEOF
20190rm -f conftest.$ac_objext
20191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
b8cb2a14 20199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest.$ac_objext'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_header_stdc=yes
20212else
20213 echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216ac_cv_header_stdc=no
20217fi
20218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20219
20220if test $ac_cv_header_stdc = yes; then
20221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20222 cat >conftest.$ac_ext <<_ACEOF
20223/* confdefs.h. */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
20227/* end confdefs.h. */
20228#include <string.h>
20229
20230_ACEOF
20231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20232 $EGREP "memchr" >/dev/null 2>&1; then
20233 :
20234else
20235 ac_cv_header_stdc=no
20236fi
20237rm -f conftest*
20238
20239fi
20240
20241if test $ac_cv_header_stdc = yes; then
20242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20243 cat >conftest.$ac_ext <<_ACEOF
20244/* confdefs.h. */
20245_ACEOF
20246cat confdefs.h >>conftest.$ac_ext
20247cat >>conftest.$ac_ext <<_ACEOF
20248/* end confdefs.h. */
20249#include <stdlib.h>
20250
20251_ACEOF
20252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253 $EGREP "free" >/dev/null 2>&1; then
20254 :
20255else
20256 ac_cv_header_stdc=no
20257fi
20258rm -f conftest*
20259
20260fi
20261
20262if test $ac_cv_header_stdc = yes; then
20263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20264 if test "$cross_compiling" = yes; then
20265 :
20266else
20267 cat >conftest.$ac_ext <<_ACEOF
20268/* confdefs.h. */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h. */
20273#include <ctype.h>
20274#if ((' ' & 0x0FF) == 0x020)
20275# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20276# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20277#else
20278# define ISLOWER(c) \
20279 (('a' <= (c) && (c) <= 'i') \
20280 || ('j' <= (c) && (c) <= 'r') \
20281 || ('s' <= (c) && (c) <= 'z'))
20282# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20283#endif
20284
20285#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20286int
20287main ()
20288{
20289 int i;
20290 for (i = 0; i < 256; i++)
20291 if (XOR (islower (i), ISLOWER (i))
20292 || toupper (i) != TOUPPER (i))
20293 exit(2);
20294 exit (0);
20295}
20296_ACEOF
20297rm -f conftest$ac_exeext
20298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20299 (eval $ac_link) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 :
20309else
20310 echo "$as_me: program exited with status $ac_status" >&5
20311echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314( exit $ac_status )
20315ac_cv_header_stdc=no
20316fi
20317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20318fi
20319fi
20320fi
20321echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20322echo "${ECHO_T}$ac_cv_header_stdc" >&6
20323if test $ac_cv_header_stdc = yes; then
20324
20325cat >>confdefs.h <<\_ACEOF
20326#define STDC_HEADERS 1
20327_ACEOF
20328
20329fi
20330
20331
20332echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20333echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20334if test "${ac_cv_header_time+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336else
20337 cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
20343#include <sys/types.h>
20344#include <sys/time.h>
20345#include <time.h>
20346
20347int
20348main ()
20349{
20350if ((struct tm *) 0)
20351return 0;
20352 ;
20353 return 0;
20354}
20355_ACEOF
20356rm -f conftest.$ac_objext
20357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20358 (eval $ac_compile) 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
b8cb2a14 20365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_header_time=yes
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382ac_cv_header_time=no
20383fi
20384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20385fi
20386echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20387echo "${ECHO_T}$ac_cv_header_time" >&6
20388if test $ac_cv_header_time = yes; then
20389
20390cat >>confdefs.h <<\_ACEOF
20391#define TIME_WITH_SYS_TIME 1
20392_ACEOF
20393
20394fi
20395
20396echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20397echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20398if test "${ac_cv_struct_tm+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
20401 cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h. */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h. */
20407#include <sys/types.h>
20408#include <time.h>
20409
20410int
20411main ()
20412{
20413struct tm *tp; tp->tm_sec;
20414 ;
20415 return 0;
20416}
20417_ACEOF
20418rm -f conftest.$ac_objext
20419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420 (eval $ac_compile) 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
b8cb2a14 20427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_struct_tm=time.h
20440else
20441 echo "$as_me: failed program was:" >&5
20442sed 's/^/| /' conftest.$ac_ext >&5
20443
20444ac_cv_struct_tm=sys/time.h
20445fi
20446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20447fi
20448echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20449echo "${ECHO_T}$ac_cv_struct_tm" >&6
20450if test $ac_cv_struct_tm = sys/time.h; then
20451
20452cat >>confdefs.h <<\_ACEOF
20453#define TM_IN_SYS_TIME 1
20454_ACEOF
20455
20456fi
20457
20458
b3076f16 20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
79886419 20479
20480for ac_header in fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
b3076f16 20481do
20482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20483if eval "test \"\${$as_ac_Header+set}\" = set"; then
20484 echo "$as_me:$LINENO: checking for $ac_header" >&5
20485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20486if eval "test \"\${$as_ac_Header+set}\" = set"; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20488fi
20489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20491else
20492 # Is the header compilable?
20493echo "$as_me:$LINENO: checking $ac_header usability" >&5
20494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20495cat >conftest.$ac_ext <<_ACEOF
20496/* confdefs.h. */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
20500/* end confdefs.h. */
20501$ac_includes_default
20502#include <$ac_header>
20503_ACEOF
20504rm -f conftest.$ac_objext
20505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20506 (eval $ac_compile) 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } &&
b8cb2a14 20513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 ac_header_compiler=yes
20526else
20527 echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530ac_header_compiler=no
20531fi
20532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20534echo "${ECHO_T}$ac_header_compiler" >&6
20535
20536# Is the header present?
20537echo "$as_me:$LINENO: checking $ac_header presence" >&5
20538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20539cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h. */
20545#include <$ac_header>
20546_ACEOF
20547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20549 ac_status=$?
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } >/dev/null; then
20555 if test -s conftest.err; then
20556 ac_cpp_err=$ac_c_preproc_warn_flag
20557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20558 else
20559 ac_cpp_err=
20560 fi
20561else
20562 ac_cpp_err=yes
20563fi
20564if test -z "$ac_cpp_err"; then
20565 ac_header_preproc=yes
20566else
20567 echo "$as_me: failed program was:" >&5
20568sed 's/^/| /' conftest.$ac_ext >&5
20569
20570 ac_header_preproc=no
20571fi
20572rm -f conftest.err conftest.$ac_ext
20573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20574echo "${ECHO_T}$ac_header_preproc" >&6
20575
20576# So? What about this header?
20577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20578 yes:no: )
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20583 ac_header_preproc=yes
20584 ;;
20585 no:yes:* )
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20598 (
20599 cat <<\_ASBOX
ceafd592 20600## --------------------------------------------------- ##
20601## Report this to x2serv-general@lists.sourceforge.net ##
20602## --------------------------------------------------- ##
b3076f16 20603_ASBOX
20604 ) |
20605 sed "s/^/$as_me: WARNING: /" >&2
20606 ;;
20607esac
20608echo "$as_me:$LINENO: checking for $ac_header" >&5
20609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20610if eval "test \"\${$as_ac_Header+set}\" = set"; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612else
20613 eval "$as_ac_Header=\$ac_header_preproc"
20614fi
20615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20617
20618fi
20619if test `eval echo '${'$as_ac_Header'}'` = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20622_ACEOF
20623
20624fi
20625
20626done
20627
20628
2f61d1d7 20629echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
20630echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
20631if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
20634 cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h. */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h. */
2f61d1d7 20640#include <sys/types.h>
20641#include <sys/socket.h>
b3076f16 20642
20643int
20644main ()
20645{
2f61d1d7 20646static struct sockaddr ac_aggr;
20647if (ac_aggr.sa_len)
b3076f16 20648return 0;
20649 ;
20650 return 0;
20651}
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
b8cb2a14 20662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
2f61d1d7 20674 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 20675else
20676 echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679cat >conftest.$ac_ext <<_ACEOF
20680/* confdefs.h. */
20681_ACEOF
20682cat confdefs.h >>conftest.$ac_ext
20683cat >>conftest.$ac_ext <<_ACEOF
20684/* end confdefs.h. */
2f61d1d7 20685#include <sys/types.h>
20686#include <sys/socket.h>
b3076f16 20687
20688int
20689main ()
20690{
2f61d1d7 20691static struct sockaddr ac_aggr;
20692if (sizeof ac_aggr.sa_len)
b3076f16 20693return 0;
20694 ;
20695 return 0;
20696}
20697_ACEOF
20698rm -f conftest.$ac_objext
20699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
b8cb2a14 20707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
2f61d1d7 20719 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 20720else
20721 echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
2f61d1d7 20724ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 20725fi
20726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20727fi
20728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20729fi
2f61d1d7 20730echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
20731echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
20732if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 20733
20734cat >>confdefs.h <<\_ACEOF
2f61d1d7 20735#define HAVE_SOCKADDR_SA_LEN
20736_ACEOF
20737
20738fi
20739
20740echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
20741echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6
20742if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744else
20745 cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751#include <sys/types.h>
20752#include <sys/socket.h>
20753#include <netdb.h>
20754
20755int
20756main ()
20757{
20758static struct addrinfo ac_aggr;
20759if (ac_aggr.ai_flags)
20760return 0;
20761 ;
20762 return 0;
20763}
20764_ACEOF
20765rm -f conftest.$ac_objext
20766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20767 (eval $ac_compile) 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; } &&
20780 { ac_try='test -s conftest.$ac_objext'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 ac_cv_member_struct_addrinfo_ai_flags=yes
20787else
20788 echo "$as_me: failed program was:" >&5
20789sed 's/^/| /' conftest.$ac_ext >&5
20790
20791cat >conftest.$ac_ext <<_ACEOF
20792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
20796/* end confdefs.h. */
20797#include <sys/types.h>
20798#include <sys/socket.h>
20799#include <netdb.h>
20800
20801int
20802main ()
20803{
20804static struct addrinfo ac_aggr;
20805if (sizeof ac_aggr.ai_flags)
20806return 0;
20807 ;
20808 return 0;
20809}
b3076f16 20810_ACEOF
2f61d1d7 20811rm -f conftest.$ac_objext
20812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20813 (eval $ac_compile) 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } &&
20820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_member_struct_addrinfo_ai_flags=yes
20833else
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 20836
2f61d1d7 20837ac_cv_member_struct_addrinfo_ai_flags=no
20838fi
20839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20840fi
20841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 20842fi
2f61d1d7 20843echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
20844echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6
20845if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
20846
20847cat >>confdefs.h <<\_ACEOF
20848#define HAVE_STRUCT_ADDRINFO
20849_ACEOF
b3076f16 20850
2f61d1d7 20851fi
b3076f16 20852
20853
20854for ac_func in gettimeofday
20855do
20856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20857echo "$as_me:$LINENO: checking for $ac_func" >&5
20858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20859if eval "test \"\${$as_ac_var+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861else
20862 cat >conftest.$ac_ext <<_ACEOF
20863/* confdefs.h. */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h. */
20868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20870#define $ac_func innocuous_$ac_func
20871
20872/* System header to define __stub macros and hopefully few prototypes,
20873 which can conflict with char $ac_func (); below.
20874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875 <limits.h> exists even on freestanding compilers. */
20876
20877#ifdef __STDC__
20878# include <limits.h>
20879#else
20880# include <assert.h>
20881#endif
20882
20883#undef $ac_func
20884
20885/* Override any gcc2 internal prototype to avoid an error. */
20886#ifdef __cplusplus
20887extern "C"
20888{
20889#endif
20890/* We use char because int might match the return type of a gcc2
20891 builtin and then its argument prototype would still apply. */
20892char $ac_func ();
20893/* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20897choke me
20898#else
20899char (*f) () = $ac_func;
20900#endif
20901#ifdef __cplusplus
20902}
20903#endif
20904
20905int
20906main ()
20907{
20908return f != $ac_func;
20909 ;
20910 return 0;
20911}
20912_ACEOF
20913rm -f conftest.$ac_objext conftest$ac_exeext
20914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
b8cb2a14 20922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; } &&
20928 { ac_try='test -s conftest$ac_exeext'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
20934 eval "$as_ac_var=yes"
20935else
20936 echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
20939eval "$as_ac_var=no"
20940fi
20941rm -f conftest.err conftest.$ac_objext \
20942 conftest$ac_exeext conftest.$ac_ext
20943fi
20944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20946if test `eval echo '${'$as_ac_var'}'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20949_ACEOF
20950
20951fi
20952done
20953
20954if test $ac_cv_func_gettimeofday = no; then
20955
20956for ac_func in ftime
20957do
20958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20959echo "$as_me:$LINENO: checking for $ac_func" >&5
20960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20961if eval "test \"\${$as_ac_var+set}\" = set"; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963else
20964 cat >conftest.$ac_ext <<_ACEOF
20965/* confdefs.h. */
20966_ACEOF
20967cat confdefs.h >>conftest.$ac_ext
20968cat >>conftest.$ac_ext <<_ACEOF
20969/* end confdefs.h. */
20970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20972#define $ac_func innocuous_$ac_func
20973
20974/* System header to define __stub macros and hopefully few prototypes,
20975 which can conflict with char $ac_func (); below.
20976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20977 <limits.h> exists even on freestanding compilers. */
20978
20979#ifdef __STDC__
20980# include <limits.h>
20981#else
20982# include <assert.h>
20983#endif
20984
20985#undef $ac_func
20986
20987/* Override any gcc2 internal prototype to avoid an error. */
20988#ifdef __cplusplus
20989extern "C"
20990{
20991#endif
20992/* We use char because int might match the return type of a gcc2
20993 builtin and then its argument prototype would still apply. */
20994char $ac_func ();
20995/* The GNU C library defines this for functions which it implements
20996 to always fail with ENOSYS. Some functions are actually named
20997 something starting with __ and the normal name is an alias. */
20998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20999choke me
21000#else
21001char (*f) () = $ac_func;
21002#endif
21003#ifdef __cplusplus
21004}
21005#endif
21006
21007int
21008main ()
21009{
21010return f != $ac_func;
21011 ;
21012 return 0;
21013}
21014_ACEOF
21015rm -f conftest.$ac_objext conftest$ac_exeext
21016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017 (eval $ac_link) 2>conftest.er1
21018 ac_status=$?
21019 grep -v '^ *+' conftest.er1 >conftest.err
21020 rm -f conftest.er1
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
b8cb2a14 21024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; } &&
21030 { ac_try='test -s conftest$ac_exeext'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 eval "$as_ac_var=yes"
21037else
21038 echo "$as_me: failed program was:" >&5
21039sed 's/^/| /' conftest.$ac_ext >&5
21040
21041eval "$as_ac_var=no"
21042fi
21043rm -f conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21045fi
21046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21047echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21048if test `eval echo '${'$as_ac_var'}'` = yes; then
21049 cat >>confdefs.h <<_ACEOF
21050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21051_ACEOF
21052
21053else
2f61d1d7 21054 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
21055echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
b3076f16 21056 { (exit 1); exit 1; }; }
21057fi
21058done
21059
21060fi
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
ceafd592 21077
2f61d1d7 21078
21079for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf
b3076f16 21080do
21081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21082echo "$as_me:$LINENO: checking for $ac_func" >&5
21083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21084if eval "test \"\${$as_ac_var+set}\" = set"; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21086else
21087 cat >conftest.$ac_ext <<_ACEOF
21088/* confdefs.h. */
21089_ACEOF
21090cat confdefs.h >>conftest.$ac_ext
21091cat >>conftest.$ac_ext <<_ACEOF
21092/* end confdefs.h. */
21093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21095#define $ac_func innocuous_$ac_func
21096
21097/* System header to define __stub macros and hopefully few prototypes,
21098 which can conflict with char $ac_func (); below.
21099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100 <limits.h> exists even on freestanding compilers. */
21101
21102#ifdef __STDC__
21103# include <limits.h>
21104#else
21105# include <assert.h>
21106#endif
21107
21108#undef $ac_func
21109
21110/* Override any gcc2 internal prototype to avoid an error. */
21111#ifdef __cplusplus
21112extern "C"
21113{
21114#endif
21115/* We use char because int might match the return type of a gcc2
21116 builtin and then its argument prototype would still apply. */
21117char $ac_func ();
21118/* The GNU C library defines this for functions which it implements
21119 to always fail with ENOSYS. Some functions are actually named
21120 something starting with __ and the normal name is an alias. */
21121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21122choke me
21123#else
21124char (*f) () = $ac_func;
21125#endif
21126#ifdef __cplusplus
21127}
21128#endif
21129
21130int
21131main ()
21132{
21133return f != $ac_func;
21134 ;
21135 return 0;
21136}
21137_ACEOF
21138rm -f conftest.$ac_objext conftest$ac_exeext
21139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
b8cb2a14 21147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; } &&
21153 { ac_try='test -s conftest$ac_exeext'
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 eval "$as_ac_var=yes"
21160else
21161 echo "$as_me: failed program was:" >&5
21162sed 's/^/| /' conftest.$ac_ext >&5
21163
21164eval "$as_ac_var=no"
21165fi
21166rm -f conftest.err conftest.$ac_objext \
21167 conftest$ac_exeext conftest.$ac_ext
21168fi
21169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21171if test `eval echo '${'$as_ac_var'}'` = yes; then
21172 cat >>confdefs.h <<_ACEOF
21173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21174_ACEOF
21175
21176fi
21177done
21178
21179
21180
21181
21182
21183
21184
21185
21186for ac_func in select socket strcspn strspn strtod strtoul
21187do
21188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21189echo "$as_me:$LINENO: checking for $ac_func" >&5
21190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21191if eval "test \"\${$as_ac_var+set}\" = set"; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193else
21194 cat >conftest.$ac_ext <<_ACEOF
21195/* confdefs.h. */
21196_ACEOF
21197cat confdefs.h >>conftest.$ac_ext
21198cat >>conftest.$ac_ext <<_ACEOF
21199/* end confdefs.h. */
21200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21202#define $ac_func innocuous_$ac_func
21203
21204/* System header to define __stub macros and hopefully few prototypes,
21205 which can conflict with char $ac_func (); below.
21206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21207 <limits.h> exists even on freestanding compilers. */
21208
21209#ifdef __STDC__
21210# include <limits.h>
21211#else
21212# include <assert.h>
21213#endif
21214
21215#undef $ac_func
21216
21217/* Override any gcc2 internal prototype to avoid an error. */
21218#ifdef __cplusplus
21219extern "C"
21220{
21221#endif
21222/* We use char because int might match the return type of a gcc2
21223 builtin and then its argument prototype would still apply. */
21224char $ac_func ();
21225/* The GNU C library defines this for functions which it implements
21226 to always fail with ENOSYS. Some functions are actually named
21227 something starting with __ and the normal name is an alias. */
21228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21229choke me
21230#else
21231char (*f) () = $ac_func;
21232#endif
21233#ifdef __cplusplus
21234}
21235#endif
21236
21237int
21238main ()
21239{
21240return f != $ac_func;
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext conftest$ac_exeext
21246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
b8cb2a14 21254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; } &&
21260 { ac_try='test -s conftest$ac_exeext'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; }; then
21266 eval "$as_ac_var=yes"
21267else
21268 echo "$as_me: failed program was:" >&5
21269sed 's/^/| /' conftest.$ac_ext >&5
21270
21271eval "$as_ac_var=no"
21272fi
21273rm -f conftest.err conftest.$ac_objext \
21274 conftest$ac_exeext conftest.$ac_ext
21275fi
21276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21278if test `eval echo '${'$as_ac_var'}'` = yes; then
21279 cat >>confdefs.h <<_ACEOF
21280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21281_ACEOF
21282
21283else
2f61d1d7 21284 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
21285echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 21286 { (exit 1); exit 1; }; }
21287fi
21288done
21289
21290
21291# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21292# for constant arguments. Useless!
21293echo "$as_me:$LINENO: checking for working alloca.h" >&5
21294echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21295if test "${ac_cv_working_alloca_h+set}" = set; then
21296 echo $ECHO_N "(cached) $ECHO_C" >&6
21297else
21298 cat >conftest.$ac_ext <<_ACEOF
21299/* confdefs.h. */
21300_ACEOF
21301cat confdefs.h >>conftest.$ac_ext
21302cat >>conftest.$ac_ext <<_ACEOF
21303/* end confdefs.h. */
21304#include <alloca.h>
21305int
21306main ()
21307{
21308char *p = (char *) alloca (2 * sizeof (int));
21309 ;
21310 return 0;
21311}
21312_ACEOF
21313rm -f conftest.$ac_objext conftest$ac_exeext
21314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315 (eval $ac_link) 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
b8cb2a14 21322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest$ac_exeext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ac_cv_working_alloca_h=yes
21335else
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339ac_cv_working_alloca_h=no
21340fi
21341rm -f conftest.err conftest.$ac_objext \
21342 conftest$ac_exeext conftest.$ac_ext
21343fi
21344echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21345echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21346if test $ac_cv_working_alloca_h = yes; then
21347
21348cat >>confdefs.h <<\_ACEOF
21349#define HAVE_ALLOCA_H 1
21350_ACEOF
21351
21352fi
21353
21354echo "$as_me:$LINENO: checking for alloca" >&5
21355echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21356if test "${ac_cv_func_alloca_works+set}" = set; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21358else
21359 cat >conftest.$ac_ext <<_ACEOF
21360/* confdefs.h. */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h. */
21365#ifdef __GNUC__
21366# define alloca __builtin_alloca
21367#else
21368# ifdef _MSC_VER
21369# include <malloc.h>
21370# define alloca _alloca
21371# else
21372# if HAVE_ALLOCA_H
21373# include <alloca.h>
21374# else
21375# ifdef _AIX
21376 #pragma alloca
21377# else
21378# ifndef alloca /* predefined by HP cc +Olibcalls */
21379char *alloca ();
21380# endif
21381# endif
21382# endif
21383# endif
21384#endif
21385
21386int
21387main ()
21388{
21389char *p = (char *) alloca (1);
21390 ;
21391 return 0;
21392}
21393_ACEOF
21394rm -f conftest.$ac_objext conftest$ac_exeext
21395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396 (eval $ac_link) 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
b8cb2a14 21403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; } &&
21409 { ac_try='test -s conftest$ac_exeext'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21415 ac_cv_func_alloca_works=yes
21416else
21417 echo "$as_me: failed program was:" >&5
21418sed 's/^/| /' conftest.$ac_ext >&5
21419
21420ac_cv_func_alloca_works=no
21421fi
21422rm -f conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
21424fi
21425echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21426echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21427
21428if test $ac_cv_func_alloca_works = yes; then
21429
21430cat >>confdefs.h <<\_ACEOF
21431#define HAVE_ALLOCA 1
21432_ACEOF
21433
21434else
21435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21436# that cause trouble. Some versions do not even contain alloca or
21437# contain a buggy version. If you still want to use their alloca,
21438# use ar to extract alloca.o from them instead of compiling alloca.c.
21439
21440ALLOCA=alloca.$ac_objext
21441
21442cat >>confdefs.h <<\_ACEOF
21443#define C_ALLOCA 1
21444_ACEOF
21445
21446
21447echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21448echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21449if test "${ac_cv_os_cray+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451else
21452 cat >conftest.$ac_ext <<_ACEOF
21453/* confdefs.h. */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h. */
21458#if defined(CRAY) && ! defined(CRAY2)
21459webecray
21460#else
21461wenotbecray
21462#endif
21463
21464_ACEOF
21465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21466 $EGREP "webecray" >/dev/null 2>&1; then
21467 ac_cv_os_cray=yes
21468else
21469 ac_cv_os_cray=no
21470fi
21471rm -f conftest*
21472
21473fi
21474echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21475echo "${ECHO_T}$ac_cv_os_cray" >&6
21476if test $ac_cv_os_cray = yes; then
21477 for ac_func in _getb67 GETB67 getb67; do
21478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21479echo "$as_me:$LINENO: checking for $ac_func" >&5
21480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21481if eval "test \"\${$as_ac_var+set}\" = set"; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483else
21484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21492#define $ac_func innocuous_$ac_func
21493
21494/* System header to define __stub macros and hopefully few prototypes,
21495 which can conflict with char $ac_func (); below.
21496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21497 <limits.h> exists even on freestanding compilers. */
21498
21499#ifdef __STDC__
21500# include <limits.h>
21501#else
21502# include <assert.h>
21503#endif
21504
21505#undef $ac_func
21506
21507/* Override any gcc2 internal prototype to avoid an error. */
21508#ifdef __cplusplus
21509extern "C"
21510{
21511#endif
21512/* We use char because int might match the return type of a gcc2
21513 builtin and then its argument prototype would still apply. */
21514char $ac_func ();
21515/* The GNU C library defines this for functions which it implements
21516 to always fail with ENOSYS. Some functions are actually named
21517 something starting with __ and the normal name is an alias. */
21518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21519choke me
21520#else
21521char (*f) () = $ac_func;
21522#endif
21523#ifdef __cplusplus
21524}
21525#endif
21526
21527int
21528main ()
21529{
21530return f != $ac_func;
21531 ;
21532 return 0;
21533}
21534_ACEOF
21535rm -f conftest.$ac_objext conftest$ac_exeext
21536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21537 (eval $ac_link) 2>conftest.er1
21538 ac_status=$?
21539 grep -v '^ *+' conftest.er1 >conftest.err
21540 rm -f conftest.er1
21541 cat conftest.err >&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } &&
b8cb2a14 21544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; } &&
21550 { ac_try='test -s conftest$ac_exeext'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; }; then
21556 eval "$as_ac_var=yes"
21557else
21558 echo "$as_me: failed program was:" >&5
21559sed 's/^/| /' conftest.$ac_ext >&5
21560
21561eval "$as_ac_var=no"
21562fi
21563rm -f conftest.err conftest.$ac_objext \
21564 conftest$ac_exeext conftest.$ac_ext
21565fi
21566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21568if test `eval echo '${'$as_ac_var'}'` = yes; then
21569
21570cat >>confdefs.h <<_ACEOF
21571#define CRAY_STACKSEG_END $ac_func
21572_ACEOF
21573
21574 break
21575fi
21576
21577 done
21578fi
21579
21580echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21581echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21582if test "${ac_cv_c_stack_direction+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584else
21585 if test "$cross_compiling" = yes; then
21586 ac_cv_c_stack_direction=0
21587else
21588 cat >conftest.$ac_ext <<_ACEOF
21589/* confdefs.h. */
21590_ACEOF
21591cat confdefs.h >>conftest.$ac_ext
21592cat >>conftest.$ac_ext <<_ACEOF
21593/* end confdefs.h. */
21594int
21595find_stack_direction ()
21596{
21597 static char *addr = 0;
21598 auto char dummy;
21599 if (addr == 0)
21600 {
21601 addr = &dummy;
21602 return find_stack_direction ();
21603 }
21604 else
21605 return (&dummy > addr) ? 1 : -1;
21606}
21607
21608int
21609main ()
21610{
21611 exit (find_stack_direction () < 0);
21612}
21613_ACEOF
21614rm -f conftest$ac_exeext
21615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616 (eval $ac_link) 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21621 (eval $ac_try) 2>&5
21622 ac_status=$?
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); }; }; then
21625 ac_cv_c_stack_direction=1
21626else
21627 echo "$as_me: program exited with status $ac_status" >&5
21628echo "$as_me: failed program was:" >&5
21629sed 's/^/| /' conftest.$ac_ext >&5
21630
21631( exit $ac_status )
21632ac_cv_c_stack_direction=-1
21633fi
21634rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21635fi
21636fi
21637echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21638echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21639
21640cat >>confdefs.h <<_ACEOF
21641#define STACK_DIRECTION $ac_cv_c_stack_direction
21642_ACEOF
21643
21644
21645fi
21646
21647
21648
21649for ac_header in stdlib.h unistd.h
21650do
21651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21652if eval "test \"\${$as_ac_Header+set}\" = set"; then
21653 echo "$as_me:$LINENO: checking for $ac_header" >&5
21654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21655if eval "test \"\${$as_ac_Header+set}\" = set"; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657fi
21658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21660else
21661 # Is the header compilable?
21662echo "$as_me:$LINENO: checking $ac_header usability" >&5
21663echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21664cat >conftest.$ac_ext <<_ACEOF
21665/* confdefs.h. */
21666_ACEOF
21667cat confdefs.h >>conftest.$ac_ext
21668cat >>conftest.$ac_ext <<_ACEOF
21669/* end confdefs.h. */
21670$ac_includes_default
21671#include <$ac_header>
21672_ACEOF
21673rm -f conftest.$ac_objext
21674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21675 (eval $ac_compile) 2>conftest.er1
21676 ac_status=$?
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
b8cb2a14 21682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest.$ac_objext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 ac_header_compiler=yes
21695else
21696 echo "$as_me: failed program was:" >&5
21697sed 's/^/| /' conftest.$ac_ext >&5
21698
21699ac_header_compiler=no
21700fi
21701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21703echo "${ECHO_T}$ac_header_compiler" >&6
21704
21705# Is the header present?
21706echo "$as_me:$LINENO: checking $ac_header presence" >&5
21707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21708cat >conftest.$ac_ext <<_ACEOF
21709/* confdefs.h. */
21710_ACEOF
21711cat confdefs.h >>conftest.$ac_ext
21712cat >>conftest.$ac_ext <<_ACEOF
21713/* end confdefs.h. */
21714#include <$ac_header>
21715_ACEOF
21716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } >/dev/null; then
21724 if test -s conftest.err; then
21725 ac_cpp_err=$ac_c_preproc_warn_flag
21726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21727 else
21728 ac_cpp_err=
21729 fi
21730else
21731 ac_cpp_err=yes
21732fi
21733if test -z "$ac_cpp_err"; then
21734 ac_header_preproc=yes
21735else
21736 echo "$as_me: failed program was:" >&5
21737sed 's/^/| /' conftest.$ac_ext >&5
21738
21739 ac_header_preproc=no
21740fi
21741rm -f conftest.err conftest.$ac_ext
21742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21743echo "${ECHO_T}$ac_header_preproc" >&6
21744
21745# So? What about this header?
21746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21747 yes:no: )
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21752 ac_header_preproc=yes
21753 ;;
21754 no:yes:* )
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21767 (
21768 cat <<\_ASBOX
ceafd592 21769## --------------------------------------------------- ##
21770## Report this to x2serv-general@lists.sourceforge.net ##
21771## --------------------------------------------------- ##
b3076f16 21772_ASBOX
21773 ) |
21774 sed "s/^/$as_me: WARNING: /" >&2
21775 ;;
21776esac
21777echo "$as_me:$LINENO: checking for $ac_header" >&5
21778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21779if eval "test \"\${$as_ac_Header+set}\" = set"; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781else
21782 eval "$as_ac_Header=\$ac_header_preproc"
21783fi
21784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21786
21787fi
21788if test `eval echo '${'$as_ac_Header'}'` = yes; then
21789 cat >>confdefs.h <<_ACEOF
21790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21791_ACEOF
21792
21793fi
21794
21795done
21796
21797
21798for ac_func in getpagesize
21799do
21800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21801echo "$as_me:$LINENO: checking for $ac_func" >&5
21802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21803if eval "test \"\${$as_ac_var+set}\" = set"; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806 cat >conftest.$ac_ext <<_ACEOF
21807/* confdefs.h. */
21808_ACEOF
21809cat confdefs.h >>conftest.$ac_ext
21810cat >>conftest.$ac_ext <<_ACEOF
21811/* end confdefs.h. */
21812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21814#define $ac_func innocuous_$ac_func
21815
21816/* System header to define __stub macros and hopefully few prototypes,
21817 which can conflict with char $ac_func (); below.
21818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21819 <limits.h> exists even on freestanding compilers. */
21820
21821#ifdef __STDC__
21822# include <limits.h>
21823#else
21824# include <assert.h>
21825#endif
21826
21827#undef $ac_func
21828
21829/* Override any gcc2 internal prototype to avoid an error. */
21830#ifdef __cplusplus
21831extern "C"
21832{
21833#endif
21834/* We use char because int might match the return type of a gcc2
21835 builtin and then its argument prototype would still apply. */
21836char $ac_func ();
21837/* The GNU C library defines this for functions which it implements
21838 to always fail with ENOSYS. Some functions are actually named
21839 something starting with __ and the normal name is an alias. */
21840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21841choke me
21842#else
21843char (*f) () = $ac_func;
21844#endif
21845#ifdef __cplusplus
21846}
21847#endif
21848
21849int
21850main ()
21851{
21852return f != $ac_func;
21853 ;
21854 return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext conftest$ac_exeext
21858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21859 (eval $ac_link) 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
b8cb2a14 21866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest$ac_exeext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 eval "$as_ac_var=yes"
21879else
21880 echo "$as_me: failed program was:" >&5
21881sed 's/^/| /' conftest.$ac_ext >&5
21882
21883eval "$as_ac_var=no"
21884fi
21885rm -f conftest.err conftest.$ac_objext \
21886 conftest$ac_exeext conftest.$ac_ext
21887fi
21888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21890if test `eval echo '${'$as_ac_var'}'` = yes; then
21891 cat >>confdefs.h <<_ACEOF
21892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21893_ACEOF
21894
21895fi
21896done
21897
21898echo "$as_me:$LINENO: checking for working mmap" >&5
21899echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21900if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21902else
21903 if test "$cross_compiling" = yes; then
21904 ac_cv_func_mmap_fixed_mapped=no
21905else
21906 cat >conftest.$ac_ext <<_ACEOF
21907/* confdefs.h. */
21908_ACEOF
21909cat confdefs.h >>conftest.$ac_ext
21910cat >>conftest.$ac_ext <<_ACEOF
21911/* end confdefs.h. */
21912$ac_includes_default
21913/* malloc might have been renamed as rpl_malloc. */
21914#undef malloc
21915
21916/* Thanks to Mike Haertel and Jim Avera for this test.
21917 Here is a matrix of mmap possibilities:
21918 mmap private not fixed
21919 mmap private fixed at somewhere currently unmapped
21920 mmap private fixed at somewhere already mapped
21921 mmap shared not fixed
21922 mmap shared fixed at somewhere currently unmapped
21923 mmap shared fixed at somewhere already mapped
21924 For private mappings, we should verify that changes cannot be read()
21925 back from the file, nor mmap's back from the file at a different
21926 address. (There have been systems where private was not correctly
21927 implemented like the infamous i386 svr4.0, and systems where the
21928 VM page cache was not coherent with the file system buffer cache
21929 like early versions of FreeBSD and possibly contemporary NetBSD.)
21930 For shared mappings, we should conversely verify that changes get
21931 propagated back to all the places they're supposed to be.
21932
21933 Grep wants private fixed already mapped.
21934 The main things grep needs to know about mmap are:
21935 * does it exist and is it safe to write into the mmap'd area
21936 * how to use it (BSD variants) */
21937
21938#include <fcntl.h>
21939#include <sys/mman.h>
21940
21941#if !STDC_HEADERS && !HAVE_STDLIB_H
21942char *malloc ();
21943#endif
21944
21945/* This mess was copied from the GNU getpagesize.h. */
21946#if !HAVE_GETPAGESIZE
21947/* Assume that all systems that can run configure have sys/param.h. */
21948# if !HAVE_SYS_PARAM_H
21949# define HAVE_SYS_PARAM_H 1
21950# endif
21951
21952# ifdef _SC_PAGESIZE
21953# define getpagesize() sysconf(_SC_PAGESIZE)
21954# else /* no _SC_PAGESIZE */
21955# if HAVE_SYS_PARAM_H
21956# include <sys/param.h>
21957# ifdef EXEC_PAGESIZE
21958# define getpagesize() EXEC_PAGESIZE
21959# else /* no EXEC_PAGESIZE */
21960# ifdef NBPG
21961# define getpagesize() NBPG * CLSIZE
21962# ifndef CLSIZE
21963# define CLSIZE 1
21964# endif /* no CLSIZE */
21965# else /* no NBPG */
21966# ifdef NBPC
21967# define getpagesize() NBPC
21968# else /* no NBPC */
21969# ifdef PAGESIZE
21970# define getpagesize() PAGESIZE
21971# endif /* PAGESIZE */
21972# endif /* no NBPC */
21973# endif /* no NBPG */
21974# endif /* no EXEC_PAGESIZE */
21975# else /* no HAVE_SYS_PARAM_H */
21976# define getpagesize() 8192 /* punt totally */
21977# endif /* no HAVE_SYS_PARAM_H */
21978# endif /* no _SC_PAGESIZE */
21979
21980#endif /* no HAVE_GETPAGESIZE */
21981
21982int
21983main ()
21984{
21985 char *data, *data2, *data3;
21986 int i, pagesize;
21987 int fd;
21988
21989 pagesize = getpagesize ();
21990
21991 /* First, make a file with some known garbage in it. */
21992 data = (char *) malloc (pagesize);
21993 if (!data)
21994 exit (1);
21995 for (i = 0; i < pagesize; ++i)
21996 *(data + i) = rand ();
21997 umask (0);
21998 fd = creat ("conftest.mmap", 0600);
21999 if (fd < 0)
22000 exit (1);
22001 if (write (fd, data, pagesize) != pagesize)
22002 exit (1);
22003 close (fd);
22004
22005 /* Next, try to mmap the file at a fixed address which already has
22006 something else allocated at it. If we can, also make sure that
22007 we see the same garbage. */
22008 fd = open ("conftest.mmap", O_RDWR);
22009 if (fd < 0)
22010 exit (1);
22011 data2 = (char *) malloc (2 * pagesize);
22012 if (!data2)
22013 exit (1);
22014 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22015 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22016 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22017 exit (1);
22018 for (i = 0; i < pagesize; ++i)
22019 if (*(data + i) != *(data2 + i))
22020 exit (1);
22021
22022 /* Finally, make sure that changes to the mapped area do not
22023 percolate back to the file as seen by read(). (This is a bug on
22024 some variants of i386 svr4.0.) */
22025 for (i = 0; i < pagesize; ++i)
22026 *(data2 + i) = *(data2 + i) + 1;
22027 data3 = (char *) malloc (pagesize);
22028 if (!data3)
22029 exit (1);
22030 if (read (fd, data3, pagesize) != pagesize)
22031 exit (1);
22032 for (i = 0; i < pagesize; ++i)
22033 if (*(data + i) != *(data3 + i))
22034 exit (1);
22035 close (fd);
22036 exit (0);
22037}
22038_ACEOF
22039rm -f conftest$ac_exeext
22040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22041 (eval $ac_link) 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 ac_cv_func_mmap_fixed_mapped=yes
22051else
22052 echo "$as_me: program exited with status $ac_status" >&5
22053echo "$as_me: failed program was:" >&5
22054sed 's/^/| /' conftest.$ac_ext >&5
22055
22056( exit $ac_status )
22057ac_cv_func_mmap_fixed_mapped=no
22058fi
22059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22060fi
22061fi
22062echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22063echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22064if test $ac_cv_func_mmap_fixed_mapped = yes; then
22065
22066cat >>confdefs.h <<\_ACEOF
22067#define HAVE_MMAP 1
22068_ACEOF
22069
22070fi
22071rm -f conftest.mmap
22072
22073
22074echo "$as_me:$LINENO: checking for sin_len" >&5
22075echo $ECHO_N "checking for sin_len... $ECHO_C" >&6
22076if test "${ac_cv_sin_len+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078else
22079 cat >conftest.$ac_ext <<_ACEOF
22080/* confdefs.h. */
22081_ACEOF
22082cat confdefs.h >>conftest.$ac_ext
22083cat >>conftest.$ac_ext <<_ACEOF
22084/* end confdefs.h. */
22085#include <sys/types.h>
22086#include <netinet/in.h>
22087int
22088main ()
22089{
22090struct sockaddr_in *sin; sin->sin_len = 0;
22091 ;
22092 return 0;
22093}
22094_ACEOF
22095rm -f conftest.$ac_objext
22096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22097 (eval $ac_compile) 2>conftest.er1
22098 ac_status=$?
22099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } &&
b8cb2a14 22104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22106 (eval $ac_try) 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; } &&
22110 { ac_try='test -s conftest.$ac_objext'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116 ac_cv_sin_len="yes"
22117else
22118 echo "$as_me: failed program was:" >&5
22119sed 's/^/| /' conftest.$ac_ext >&5
22120
22121ac_cv_sin_len="no"
22122fi
22123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22124fi
22125echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
22126echo "${ECHO_T}$ac_cv_sin_len" >&6
22127if test $ac_cv_sin_len = yes ; then
22128
22129cat >>confdefs.h <<\_ACEOF
22130#define HAVE_SIN_LEN 1
22131_ACEOF
22132
22133fi
22134
79886419 22135echo "$as_me:$LINENO: checking for socklen_t" >&5
22136echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22137if test "${ac_cv_type_socklen_t+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22139else
22140 cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146#include <sys/types.h>
22147#include<sys/socket.h>
22148
22149int
22150main ()
22151{
22152if ((socklen_t *) 0)
22153 return 0;
22154if (sizeof (socklen_t))
22155 return 0;
22156 ;
22157 return 0;
22158}
22159_ACEOF
22160rm -f conftest.$ac_objext
22161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22162 (eval $ac_compile) 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } &&
22169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; } &&
22175 { ac_try='test -s conftest.$ac_objext'
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 ac_cv_type_socklen_t=yes
22182else
22183 echo "$as_me: failed program was:" >&5
22184sed 's/^/| /' conftest.$ac_ext >&5
22185
22186ac_cv_type_socklen_t=no
22187fi
22188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22189fi
22190echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22191echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22192if test $ac_cv_type_socklen_t = yes; then
22193 :
22194else
22195
22196 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22197echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
22198 if test "${curl_cv_socklen_t_equiv+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22200else
22201
22202 curl_cv_socklen_t_equiv=
22203 for arg2 in "struct sockaddr" void ; do
22204 for t in int size_t unsigned long "unsigned long" ; do
22205 cat >conftest.$ac_ext <<_ACEOF
22206/* confdefs.h. */
22207_ACEOF
22208cat confdefs.h >>conftest.$ac_ext
22209cat >>conftest.$ac_ext <<_ACEOF
22210/* end confdefs.h. */
22211#include <sys/types.h>
22212#include <sys/socket.h>
22213int getpeername (int $arg2 *, $t *);
22214int
22215main ()
22216{
22217$t len;
22218 getpeername(0, 0, &len);
22219 ;
22220 return 0;
22221}
22222_ACEOF
22223rm -f conftest.$ac_objext
22224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22225 (eval $ac_compile) 2>conftest.er1
22226 ac_status=$?
22227 grep -v '^ *+' conftest.er1 >conftest.err
22228 rm -f conftest.er1
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } &&
22232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest.$ac_objext'
22239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 curl_cv_socklen_t_equiv="$t"
22245 break
22246else
22247 echo "$as_me: failed program was:" >&5
22248sed 's/^/| /' conftest.$ac_ext >&5
22249
22250fi
22251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22252 done
22253 done
22254
22255fi
22256
22257 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
22258echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
22259
22260cat >>confdefs.h <<_ACEOF
22261#define socklen_t $curl_cv_socklen_t_equiv
22262_ACEOF
22263
22264fi
22265
22266
b3076f16 22267OLD_CFLAGS=$CFLAGS
22268CFLAGS="$CFLAGS -W -Wall -Werror"
22269
22270echo "$as_me:$LINENO: checking for time_t format" >&5
22271echo $ECHO_N "checking for time_t format... $ECHO_C" >&6
22272if test "${ac_cv_fmt_time_t+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275
22276ac_cv_fmt_time_t=no
22277cat >conftest.$ac_ext <<_ACEOF
22278#include <sys/types.h>
22279#include <stdio.h>
22280void myfunc(void) {
22281 time_t test=0;
22282 printf("%li", test);
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext
22286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287 (eval $ac_compile) 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
b8cb2a14 22294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest.$ac_objext'
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 ac_cv_fmt_time_t="\"%li\""
22307else
22308 echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311fi
22312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22313if test $ac_cv_fmt_time_t = no; then
22314cat >conftest.$ac_ext <<_ACEOF
22315#include <sys/types.h>
22316#include <stdio.h>
22317void myfunc(void) {
22318 time_t test=0;
22319 printf("%i", test);
22320}
22321_ACEOF
22322rm -f conftest.$ac_objext
22323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324 (eval $ac_compile) 2>conftest.er1
22325 ac_status=$?
22326 grep -v '^ *+' conftest.er1 >conftest.err
22327 rm -f conftest.er1
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
b8cb2a14 22331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest.$ac_objext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_fmt_time_t="\"%i\""
22344else
22345 echo "$as_me: failed program was:" >&5
22346sed 's/^/| /' conftest.$ac_ext >&5
22347
22348fi
22349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22350fi
22351if test $ac_cv_fmt_time_t = no; then
22352{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
22353Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
22354echo "$as_me: error: Cannot detect format string for time_t
22355Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
22356 { (exit 1); exit 1; }; }
22357fi
22358
22359fi
22360
22361
22362cat >>confdefs.h <<_ACEOF
22363#define FMT_TIME_T $ac_cv_fmt_time_t
22364_ACEOF
22365
22366echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
22367echo "${ECHO_T}$ac_cv_fmt_time_t" >&6
22368
22369echo "$as_me:$LINENO: checking for va_copy" >&5
22370echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22371if test "${ac_cv_c_va_copy+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373else
22374 cat >conftest.$ac_ext <<_ACEOF
22375/* confdefs.h. */
22376_ACEOF
22377cat confdefs.h >>conftest.$ac_ext
22378cat >>conftest.$ac_ext <<_ACEOF
22379/* end confdefs.h. */
22380#include <stdarg.h>
22381int
22382main ()
22383{
22384va_list ap1, ap2; va_copy(ap1, ap2);
22385 ;
22386 return 0;
22387}
22388_ACEOF
22389rm -f conftest.$ac_objext conftest$ac_exeext
22390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22391 (eval $ac_link) 2>conftest.er1
22392 ac_status=$?
22393 grep -v '^ *+' conftest.er1 >conftest.err
22394 rm -f conftest.er1
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } &&
b8cb2a14 22398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try='test -s conftest$ac_exeext'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
22410 ac_cv_c_va_copy="yes"
22411else
22412 echo "$as_me: failed program was:" >&5
22413sed 's/^/| /' conftest.$ac_ext >&5
22414
22415ac_cv_c_va_copy="no"
22416
22417fi
22418rm -f conftest.err conftest.$ac_objext \
22419 conftest$ac_exeext conftest.$ac_ext
22420fi
22421echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
22422echo "${ECHO_T}$ac_cv_c_va_copy" >&6
22423if test "$ac_cv_c_va_copy" = "yes" ; then
22424
22425cat >>confdefs.h <<\_ACEOF
22426#define HAVE_VA_COPY 1
22427_ACEOF
22428
22429fi
22430
22431echo "$as_me:$LINENO: checking for __va_copy" >&5
22432echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
22433if test "${ac_cv_c___va_copy+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435else
22436 cat >conftest.$ac_ext <<_ACEOF
22437/* confdefs.h. */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h. */
22442#include <stdarg.h>
22443int
22444main ()
22445{
22446va_list ap1, ap2; __va_copy(ap1, ap2);
22447 ;
22448 return 0;
22449}
22450_ACEOF
22451rm -f conftest.$ac_objext conftest$ac_exeext
22452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22453 (eval $ac_link) 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } &&
b8cb2a14 22460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } &&
22466 { ac_try='test -s conftest$ac_exeext'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; }; then
22472 ac_cv_c___va_copy="yes"
22473else
22474 echo "$as_me: failed program was:" >&5
22475sed 's/^/| /' conftest.$ac_ext >&5
22476
22477ac_cv_c___va_copy="no"
22478
22479fi
22480rm -f conftest.err conftest.$ac_objext \
22481 conftest$ac_exeext conftest.$ac_ext
22482fi
22483echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
22484echo "${ECHO_T}$ac_cv_c___va_copy" >&6
22485if test "$ac_cv_c___va_copy" = "yes" ; then
22486
22487cat >>confdefs.h <<\_ACEOF
22488#define HAVE___VA_COPY 1
22489_ACEOF
22490
22491fi
22492
22493CFLAGS=$OLD_CFLAGS
22494
22495echo "$as_me:$LINENO: checking which malloc to use" >&5
22496echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6
22497
22498# Check whether --with-malloc or --without-malloc was given.
22499if test "${with_malloc+set}" = set; then
22500 withval="$with_malloc"
22501
22502else
22503 withval="system"
22504fi;
22505if test "x$withval" = "xsystem" ; then
22506 echo "$as_me:$LINENO: result: system" >&5
22507echo "${ECHO_T}system" >&6
22508
22509cat >>confdefs.h <<\_ACEOF
22510#define WITH_MALLOC_SYSTEM 1
22511_ACEOF
22512
22513elif test "x$withval" = "xdmalloc" ; then
22514 echo "$as_me:$LINENO: result: dmalloc" >&5
22515echo "${ECHO_T}dmalloc" >&6
22516
22517for ac_header in dmalloc.h
22518do
22519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22520if eval "test \"\${$as_ac_Header+set}\" = set"; then
22521 echo "$as_me:$LINENO: checking for $ac_header" >&5
22522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22523if eval "test \"\${$as_ac_Header+set}\" = set"; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525fi
22526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22528else
22529 # Is the header compilable?
22530echo "$as_me:$LINENO: checking $ac_header usability" >&5
22531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22532cat >conftest.$ac_ext <<_ACEOF
22533/* confdefs.h. */
22534_ACEOF
22535cat confdefs.h >>conftest.$ac_ext
22536cat >>conftest.$ac_ext <<_ACEOF
22537/* end confdefs.h. */
22538$ac_includes_default
22539#include <$ac_header>
22540_ACEOF
22541rm -f conftest.$ac_objext
22542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22543 (eval $ac_compile) 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
b8cb2a14 22550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; } &&
22556 { ac_try='test -s conftest.$ac_objext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 ac_header_compiler=yes
22563else
22564 echo "$as_me: failed program was:" >&5
22565sed 's/^/| /' conftest.$ac_ext >&5
22566
22567ac_header_compiler=no
22568fi
22569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22571echo "${ECHO_T}$ac_header_compiler" >&6
22572
22573# Is the header present?
22574echo "$as_me:$LINENO: checking $ac_header presence" >&5
22575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22576cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582#include <$ac_header>
22583_ACEOF
22584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22586 ac_status=$?
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } >/dev/null; then
22592 if test -s conftest.err; then
22593 ac_cpp_err=$ac_c_preproc_warn_flag
22594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22595 else
22596 ac_cpp_err=
22597 fi
22598else
22599 ac_cpp_err=yes
22600fi
22601if test -z "$ac_cpp_err"; then
22602 ac_header_preproc=yes
22603else
22604 echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607 ac_header_preproc=no
22608fi
22609rm -f conftest.err conftest.$ac_ext
22610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22611echo "${ECHO_T}$ac_header_preproc" >&6
22612
22613# So? What about this header?
22614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22615 yes:no: )
22616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22620 ac_header_preproc=yes
22621 ;;
22622 no:yes:* )
22623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22635 (
22636 cat <<\_ASBOX
ceafd592 22637## --------------------------------------------------- ##
22638## Report this to x2serv-general@lists.sourceforge.net ##
22639## --------------------------------------------------- ##
b3076f16 22640_ASBOX
22641 ) |
22642 sed "s/^/$as_me: WARNING: /" >&2
22643 ;;
22644esac
22645echo "$as_me:$LINENO: checking for $ac_header" >&5
22646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22647if eval "test \"\${$as_ac_Header+set}\" = set"; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649else
22650 eval "$as_ac_Header=\$ac_header_preproc"
22651fi
22652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22654
22655fi
22656if test `eval echo '${'$as_ac_Header'}'` = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22659_ACEOF
22660
22661else
22662 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
22663echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
22664 { (exit 1); exit 1; }; }
22665fi
22666
22667done
22668
22669
22670echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
22671echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
22672if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675 ac_check_lib_save_LIBS=$LIBS
22676LIBS="-ldmalloc $LIBS"
22677cat >conftest.$ac_ext <<_ACEOF
22678/* confdefs.h. */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h. */
22683
22684/* Override any gcc2 internal prototype to avoid an error. */
22685#ifdef __cplusplus
22686extern "C"
22687#endif
22688/* We use char because int might match the return type of a gcc2
22689 builtin and then its argument prototype would still apply. */
22690char malloc ();
22691int
22692main ()
22693{
22694malloc ();
22695 ;
22696 return 0;
22697}
22698_ACEOF
22699rm -f conftest.$ac_objext conftest$ac_exeext
22700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22701 (eval $ac_link) 2>conftest.er1
22702 ac_status=$?
22703 grep -v '^ *+' conftest.er1 >conftest.err
22704 rm -f conftest.er1
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
b8cb2a14 22708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_lib_dmalloc_malloc=yes
22721else
22722 echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
22725ac_cv_lib_dmalloc_malloc=no
22726fi
22727rm -f conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
22729LIBS=$ac_check_lib_save_LIBS
22730fi
22731echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
22732echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
22733if test $ac_cv_lib_dmalloc_malloc = yes; then
22734 cat >>confdefs.h <<_ACEOF
22735#define HAVE_LIBDMALLOC 1
22736_ACEOF
22737
22738 LIBS="-ldmalloc $LIBS"
22739
22740else
22741 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
22742echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
22743 { (exit 1); exit 1; }; }
22744fi
22745
22746
22747cat >>confdefs.h <<\_ACEOF
22748#define WITH_MALLOC_DMALLOC 1
22749_ACEOF
22750
22751elif test "x$withval" = "xmpatrol" ; then
22752 echo "$as_me:$LINENO: result: mpatrol" >&5
22753echo "${ECHO_T}mpatrol" >&6
22754
22755for ac_header in mpatrol.h
22756do
22757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22758if eval "test \"\${$as_ac_Header+set}\" = set"; then
22759 echo "$as_me:$LINENO: checking for $ac_header" >&5
22760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22761if eval "test \"\${$as_ac_Header+set}\" = set"; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22763fi
22764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22766else
22767 # Is the header compilable?
22768echo "$as_me:$LINENO: checking $ac_header usability" >&5
22769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22770cat >conftest.$ac_ext <<_ACEOF
22771/* confdefs.h. */
22772_ACEOF
22773cat confdefs.h >>conftest.$ac_ext
22774cat >>conftest.$ac_ext <<_ACEOF
22775/* end confdefs.h. */
22776$ac_includes_default
22777#include <$ac_header>
22778_ACEOF
22779rm -f conftest.$ac_objext
22780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22781 (eval $ac_compile) 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
b8cb2a14 22788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; } &&
22794 { ac_try='test -s conftest.$ac_objext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 ac_header_compiler=yes
22801else
22802 echo "$as_me: failed program was:" >&5
22803sed 's/^/| /' conftest.$ac_ext >&5
22804
22805ac_header_compiler=no
22806fi
22807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22809echo "${ECHO_T}$ac_header_compiler" >&6
22810
22811# Is the header present?
22812echo "$as_me:$LINENO: checking $ac_header presence" >&5
22813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22814cat >conftest.$ac_ext <<_ACEOF
22815/* confdefs.h. */
22816_ACEOF
22817cat confdefs.h >>conftest.$ac_ext
22818cat >>conftest.$ac_ext <<_ACEOF
22819/* end confdefs.h. */
22820#include <$ac_header>
22821_ACEOF
22822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } >/dev/null; then
22830 if test -s conftest.err; then
22831 ac_cpp_err=$ac_c_preproc_warn_flag
22832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22833 else
22834 ac_cpp_err=
22835 fi
22836else
22837 ac_cpp_err=yes
22838fi
22839if test -z "$ac_cpp_err"; then
22840 ac_header_preproc=yes
22841else
22842 echo "$as_me: failed program was:" >&5
22843sed 's/^/| /' conftest.$ac_ext >&5
22844
22845 ac_header_preproc=no
22846fi
22847rm -f conftest.err conftest.$ac_ext
22848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22849echo "${ECHO_T}$ac_header_preproc" >&6
22850
22851# So? What about this header?
22852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22853 yes:no: )
22854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22858 ac_header_preproc=yes
22859 ;;
22860 no:yes:* )
22861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22873 (
22874 cat <<\_ASBOX
ceafd592 22875## --------------------------------------------------- ##
22876## Report this to x2serv-general@lists.sourceforge.net ##
22877## --------------------------------------------------- ##
b3076f16 22878_ASBOX
22879 ) |
22880 sed "s/^/$as_me: WARNING: /" >&2
22881 ;;
22882esac
22883echo "$as_me:$LINENO: checking for $ac_header" >&5
22884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22885if eval "test \"\${$as_ac_Header+set}\" = set"; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22887else
22888 eval "$as_ac_Header=\$ac_header_preproc"
22889fi
22890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22892
22893fi
22894if test `eval echo '${'$as_ac_Header'}'` = yes; then
22895 cat >>confdefs.h <<_ACEOF
22896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22897_ACEOF
22898
22899else
22900 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
22901echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
22902 { (exit 1); exit 1; }; }
22903fi
22904
22905done
22906
22907
22908echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
22909echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
22910if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22912else
22913 ac_check_lib_save_LIBS=$LIBS
22914LIBS="-lelf $LIBS"
22915cat >conftest.$ac_ext <<_ACEOF
22916/* confdefs.h. */
22917_ACEOF
22918cat confdefs.h >>conftest.$ac_ext
22919cat >>conftest.$ac_ext <<_ACEOF
22920/* end confdefs.h. */
22921
22922/* Override any gcc2 internal prototype to avoid an error. */
22923#ifdef __cplusplus
22924extern "C"
22925#endif
22926/* We use char because int might match the return type of a gcc2
22927 builtin and then its argument prototype would still apply. */
22928char elf_begin ();
22929int
22930main ()
22931{
22932elf_begin ();
22933 ;
22934 return 0;
22935}
22936_ACEOF
22937rm -f conftest.$ac_objext conftest$ac_exeext
22938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22939 (eval $ac_link) 2>conftest.er1
22940 ac_status=$?
22941 grep -v '^ *+' conftest.er1 >conftest.err
22942 rm -f conftest.er1
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } &&
b8cb2a14 22946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; } &&
22952 { ac_try='test -s conftest$ac_exeext'
22953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); }; }; then
22958 ac_cv_lib_elf_elf_begin=yes
22959else
22960 echo "$as_me: failed program was:" >&5
22961sed 's/^/| /' conftest.$ac_ext >&5
22962
22963ac_cv_lib_elf_elf_begin=no
22964fi
22965rm -f conftest.err conftest.$ac_objext \
22966 conftest$ac_exeext conftest.$ac_ext
22967LIBS=$ac_check_lib_save_LIBS
22968fi
22969echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
22970echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
22971if test $ac_cv_lib_elf_elf_begin = yes; then
22972 cat >>confdefs.h <<_ACEOF
22973#define HAVE_LIBELF 1
22974_ACEOF
22975
22976 LIBS="-lelf $LIBS"
22977
22978fi
22979
22980
22981echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
22982echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6
22983if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22985else
22986 ac_check_lib_save_LIBS=$LIBS
22987LIBS="-lmpatrol $LIBS"
22988cat >conftest.$ac_ext <<_ACEOF
22989/* confdefs.h. */
22990_ACEOF
22991cat confdefs.h >>conftest.$ac_ext
22992cat >>conftest.$ac_ext <<_ACEOF
22993/* end confdefs.h. */
22994
22995/* Override any gcc2 internal prototype to avoid an error. */
22996#ifdef __cplusplus
22997extern "C"
22998#endif
22999/* We use char because int might match the return type of a gcc2
23000 builtin and then its argument prototype would still apply. */
23001char __mp_atexit ();
23002int
23003main ()
23004{
23005__mp_atexit ();
23006 ;
23007 return 0;
23008}
23009_ACEOF
23010rm -f conftest.$ac_objext conftest$ac_exeext
23011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23012 (eval $ac_link) 2>conftest.er1
23013 ac_status=$?
23014 grep -v '^ *+' conftest.er1 >conftest.err
23015 rm -f conftest.er1
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
b8cb2a14 23019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; } &&
23025 { ac_try='test -s conftest$ac_exeext'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
23031 ac_cv_lib_mpatrol___mp_atexit=yes
23032else
23033 echo "$as_me: failed program was:" >&5
23034sed 's/^/| /' conftest.$ac_ext >&5
23035
23036ac_cv_lib_mpatrol___mp_atexit=no
23037fi
23038rm -f conftest.err conftest.$ac_objext \
23039 conftest$ac_exeext conftest.$ac_ext
23040LIBS=$ac_check_lib_save_LIBS
23041fi
23042echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
23043echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6
23044if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
23045 cat >>confdefs.h <<_ACEOF
23046#define HAVE_LIBMPATROL 1
23047_ACEOF
23048
23049 LIBS="-lmpatrol $LIBS"
23050
23051else
23052 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
23053echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
23054 { (exit 1); exit 1; }; }
23055fi
23056
23057
23058cat >>confdefs.h <<\_ACEOF
23059#define WITH_MALLOC_MPATROL 1
23060_ACEOF
23061
23062elif test "x$withval" = "xboehm-gc" ; then
23063 echo "$as_me:$LINENO: result: boehm-gc" >&5
23064echo "${ECHO_T}boehm-gc" >&6
23065
23066for ac_header in gc/gc.h
23067do
23068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23069if eval "test \"\${$as_ac_Header+set}\" = set"; then
23070 echo "$as_me:$LINENO: checking for $ac_header" >&5
23071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23072if eval "test \"\${$as_ac_Header+set}\" = set"; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23074fi
23075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23077else
23078 # Is the header compilable?
23079echo "$as_me:$LINENO: checking $ac_header usability" >&5
23080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23081cat >conftest.$ac_ext <<_ACEOF
23082/* confdefs.h. */
23083_ACEOF
23084cat confdefs.h >>conftest.$ac_ext
23085cat >>conftest.$ac_ext <<_ACEOF
23086/* end confdefs.h. */
23087$ac_includes_default
23088#include <$ac_header>
23089_ACEOF
23090rm -f conftest.$ac_objext
23091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23092 (eval $ac_compile) 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } &&
b8cb2a14 23099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 23100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; } &&
23105 { ac_try='test -s conftest.$ac_objext'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; }; then
23111 ac_header_compiler=yes
23112else
23113 echo "$as_me: failed program was:" >&5
23114sed 's/^/| /' conftest.$ac_ext >&5
23115
23116ac_header_compiler=no
23117fi
23118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23120echo "${ECHO_T}$ac_header_compiler" >&6
23121
23122# Is the header present?
23123echo "$as_me:$LINENO: checking $ac_header presence" >&5
23124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23125cat >conftest.$ac_ext <<_ACEOF
23126/* confdefs.h. */
23127_ACEOF
23128cat confdefs.h >>conftest.$ac_ext
23129cat >>conftest.$ac_ext <<_ACEOF
23130/* end confdefs.h. */
23131#include <$ac_header>
23132_ACEOF
23133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } >/dev/null; then
23141 if test -s conftest.err; then
23142 ac_cpp_err=$ac_c_preproc_warn_flag
23143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23144 else
23145 ac_cpp_err=
23146 fi
23147else
23148 ac_cpp_err=yes
23149fi
23150if test -z "$ac_cpp_err"; then
23151 ac_header_preproc=yes
23152else
23153 echo "$as_me: failed program was:" >&5
23154sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 ac_header_preproc=no
23157fi
23158rm -f conftest.err conftest.$ac_ext
23159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23160echo "${ECHO_T}$ac_header_preproc" >&6
23161
23162# So? What about this header?
23163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23164 yes:no: )
23165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23169 ac_header_preproc=yes
23170 ;;
23171 no:yes:* )
23172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23184 (
23185 cat <<\_ASBOX
ceafd592 23186## --------------------------------------------------- ##
23187## Report this to x2serv-general@lists.sourceforge.net ##
23188## --------------------------------------------------- ##
b3076f16 23189_ASBOX
23190 ) |
23191 sed "s/^/$as_me: WARNING: /" >&2
23192 ;;
23193esac
23194echo "$as_me:$LINENO: checking for $ac_header" >&5
23195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23196if eval "test \"\${$as_ac_Header+set}\" = set"; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198else
23199 eval "$as_ac_Header=\$ac_header_preproc"
23200fi
23201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23203
23204fi
23205if test `eval echo '${'$as_ac_Header'}'` = yes; then
23206 cat >>confdefs.h <<_ACEOF
23207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23208_ACEOF
23209
23210else
23211 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
23212echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
23213 { (exit 1); exit 1; }; }
23214fi
23215
23216done
23217
23218
23219echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23220echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23221if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23222 echo $ECHO_N "(cached) $ECHO_C" >&6
23223else
23224 ac_check_lib_save_LIBS=$LIBS
23225LIBS="-ldl $LIBS"
23226cat >conftest.$ac_ext <<_ACEOF
23227/* confdefs.h. */
23228_ACEOF
23229cat confdefs.h >>conftest.$ac_ext
23230cat >>conftest.$ac_ext <<_ACEOF
23231/* end confdefs.h. */
23232
23233/* Override any gcc2 internal prototype to avoid an error. */
23234#ifdef __cplusplus
23235extern "C"
23236#endif
23237/* We use char because int might match the return type of a gcc2
23238 builtin and then its argument prototype would still apply. */
23239char dlopen ();
23240int
23241main ()
23242{
23243dlopen ();
23244 ;
23245 return 0;
23246}
23247_ACEOF
23248rm -f conftest.$ac_objext conftest$ac_exeext
23249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23250 (eval $ac_link) 2>conftest.er1
23251 ac_status=$?
23252 grep -v '^ *+' conftest.er1 >conftest.err
23253 rm -f conftest.er1
23254 cat conftest.err >&5
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } &&
b8cb2a14 23257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; } &&
23263 { ac_try='test -s conftest$ac_exeext'
23264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 (eval $ac_try) 2>&5
23266 ac_status=$?
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 ac_cv_lib_dl_dlopen=yes
23270else
23271 echo "$as_me: failed program was:" >&5
23272sed 's/^/| /' conftest.$ac_ext >&5
23273
23274ac_cv_lib_dl_dlopen=no
23275fi
23276rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23278LIBS=$ac_check_lib_save_LIBS
23279fi
23280echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23281echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23282if test $ac_cv_lib_dl_dlopen = yes; then
23283 cat >>confdefs.h <<_ACEOF
23284#define HAVE_LIBDL 1
23285_ACEOF
23286
23287 LIBS="-ldl $LIBS"
23288
23289else
23290 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
23291echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
23292 { (exit 1); exit 1; }; }
23293fi
23294
23295
23296echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
23297echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6
23298if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23300else
23301 ac_check_lib_save_LIBS=$LIBS
23302LIBS="-lgc $LIBS"
23303cat >conftest.$ac_ext <<_ACEOF
23304/* confdefs.h. */
23305_ACEOF
23306cat confdefs.h >>conftest.$ac_ext
23307cat >>conftest.$ac_ext <<_ACEOF
23308/* end confdefs.h. */
23309
23310/* Override any gcc2 internal prototype to avoid an error. */
23311#ifdef __cplusplus
23312extern "C"
23313#endif
23314/* We use char because int might match the return type of a gcc2
23315 builtin and then its argument prototype would still apply. */
23316char GC_gcollect ();
23317int
23318main ()
23319{
23320GC_gcollect ();
23321 ;
23322 return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext conftest$ac_exeext
23326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23327 (eval $ac_link) 2>conftest.er1
23328 ac_status=$?
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
b8cb2a14 23334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; } &&
23340 { ac_try='test -s conftest$ac_exeext'
23341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342 (eval $ac_try) 2>&5
23343 ac_status=$?
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); }; }; then
23346 ac_cv_lib_gc_GC_gcollect=yes
23347else
23348 echo "$as_me: failed program was:" >&5
23349sed 's/^/| /' conftest.$ac_ext >&5
23350
23351ac_cv_lib_gc_GC_gcollect=no
23352fi
23353rm -f conftest.err conftest.$ac_objext \
23354 conftest$ac_exeext conftest.$ac_ext
23355LIBS=$ac_check_lib_save_LIBS
23356fi
23357echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
23358echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6
23359if test $ac_cv_lib_gc_GC_gcollect = yes; then
23360 cat >>confdefs.h <<_ACEOF
23361#define HAVE_LIBGC 1
23362_ACEOF
23363
23364 LIBS="-lgc $LIBS"
23365
23366else
23367 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
23368echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
23369 { (exit 1); exit 1; }; }
23370fi
23371
23372
23373cat >>confdefs.h <<\_ACEOF
23374#define WITH_MALLOC_BOEHM_GC 1
23375_ACEOF
23376
b8cb2a14 23377elif test "x$withval" = "xx3" ; then
23378 echo "$as_me:$LINENO: result: x3" >&5
23379echo "${ECHO_T}x3" >&6
ec1a68c8 23380
23381cat >>confdefs.h <<\_ACEOF
b8cb2a14 23382#define WITH_MALLOC_X3 1
ec1a68c8 23383_ACEOF
23384
b8cb2a14 23385 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
ceafd592 23386elif test "x$withval" = "xslab" ; then
23387 echo "$as_me:$LINENO: result: slab" >&5
23388echo "${ECHO_T}slab" >&6
23389
23390cat >>confdefs.h <<\_ACEOF
23391#define WITH_MALLOC_SLAB 1
23392_ACEOF
23393
23394 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
b3076f16 23395else
23396 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
23397echo "$as_me: error: Unknown malloc type $withval" >&2;}
23398 { (exit 1); exit 1; }; }
23399fi
23400
23401echo "$as_me:$LINENO: checking which protocol to use" >&5
23402echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6
23403
23404# Check whether --with-protocol or --without-protocol was given.
23405if test "${with_protocol+set}" = set; then
23406 withval="$with_protocol"
23407
23408else
23409 withval="p10"
23410fi;
23411if test "x$withval" = "xp10" ; then
23412 echo "$as_me:$LINENO: result: P10" >&5
23413echo "${ECHO_T}P10" >&6
23414
23415cat >>confdefs.h <<\_ACEOF
23416#define WITH_PROTOCOL_P10 1
23417_ACEOF
23418
2f61d1d7 23419 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
b3076f16 23420 PROTO_FILES=proto-p10.c
23421elif test "x$withval" = "xbahamut" ; then
23422 echo "$as_me:$LINENO: result: Bahamut" >&5
23423echo "${ECHO_T}Bahamut" >&6
23424
23425cat >>confdefs.h <<\_ACEOF
23426#define WITH_PROTOCOL_BAHAMUT 1
23427_ACEOF
23428
2f61d1d7 23429 MODULE_OBJS="$MODULE_OBJS proto-bahamut.\$(OBJEXT)"
b3076f16 23430else
23431 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
23432echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
23433 { (exit 1); exit 1; }; }
23434fi
23435
23436
23437# Check whether --with-getopt or --without-getopt was given.
23438if test "${with_getopt+set}" = set; then
23439 withval="$with_getopt"
23440 if test "$withval" = no; then
23441
23442cat >>confdefs.h <<\_ACEOF
23443#define IGNORE_GETOPT 1
23444_ACEOF
23445
23446fi
23447fi;
23448
23449echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
23450echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6
23451# Check whether --enable-tokens or --disable-tokens was given.
23452if test "${enable_tokens+set}" = set; then
23453 enableval="$enable_tokens"
23454
23455else
23456 enableval=yes
23457fi;
23458if test "z$enableval" = zno ; then
23459 echo "$as_me:$LINENO: result: no" >&5
23460echo "${ECHO_T}no" >&6
23461else
23462
23463cat >>confdefs.h <<\_ACEOF
23464#define ENABLE_TOKENS 1
23465_ACEOF
23466
23467 echo "$as_me:$LINENO: result: yes" >&5
23468echo "${ECHO_T}yes" >&6
23469fi
23470
23471echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
23472echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6
23473# Check whether --enable-debug or --disable-debug was given.
23474if test "${enable_debug+set}" = set; then
23475 enableval="$enable_debug"
23476
23477 CPPFLAGS="$CPPFLAGS"
23478 echo "$as_me:$LINENO: result: yes" >&5
23479echo "${ECHO_T}yes" >&6
23480
23481else
23482
23483 CPPFLAGS="$CPPFLAGS -DNDEBUG"
23484 echo "$as_me:$LINENO: result: no" >&5
23485echo "${ECHO_T}no" >&6
23486
23487fi;
23488
23489if test -e src ; then
23490 if test ! -d src ; then
23491 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
23492echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
23493 { (exit 1); exit 1; }; }
23494 fi
23495else
23496 mkdir src
23497fi
23498echo "$as_me:$LINENO: checking for extra module files" >&5
23499echo $ECHO_N "checking for extra module files... $ECHO_C" >&6
23500MODULE_DEFINES="src/modules-list.h"
23501echo > $MODULE_DEFINES
23502touch $MODULE_DEFINES
23503# Check whether --enable-modules or --disable-modules was given.
23504if test "${enable_modules+set}" = set; then
23505 enableval="$enable_modules"
23506
23507 OIFS="$IFS"
23508 IFS=','
23509 EXTRA_MODULE_OBJS=""
23510 module_list=""
23511 for module in $enableval ; do
23512 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
2f61d1d7 23513 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
b3076f16 23514 module_list="$module_list $module"
23515 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
ec311f39 23516 if test "x$module" = "xtrack" ; then
23517 TRACK="-D HAVE_TRACK"
23518 fi
b3076f16 23519 done
23520 IFS="$OIFS"
23521 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
23522 echo "$as_me:$LINENO: result: $module_list" >&5
23523echo "${ECHO_T}$module_list" >&6
23524
23525else
23526
23527 echo "$as_me:$LINENO: result: none" >&5
23528echo "${ECHO_T}none" >&6
23529
23530fi;
23531
23532MY_SUBDIRS=""
23533RX_INCLUDES=""
23534RX_LIBS=""
23535if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
23536 MY_SUBDIRS="rx $MY_SUBDIRS"
23537 RX_INCLUDES="-I../rx"
23538 RX_LIBS="../rx/librx.a"
23539fi
23540MY_SUBDIRS="$MY_SUBDIRS src"
23541CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
23542if test "z$USE_MAINTAINER_MODE" = zyes ; then
23543 CFLAGS="$CFLAGS -Werror"
23544fi
23545
23546
23547cat >>confdefs.h <<_ACEOF
23548#define CODENAME "${CODENAME}"
23549_ACEOF
23550
23551
23552
23553
23554
ec311f39 23555
b3076f16 23556 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
23557
23558cat >confcache <<\_ACEOF
23559# This file is a shell script that caches the results of configure
23560# tests run on this system so they can be shared between configure
23561# scripts and configure runs, see configure's option --config-cache.
23562# It is not useful on other systems. If it contains results you don't
23563# want to keep, you may remove or edit it.
23564#
23565# config.status only pays attention to the cache file if you give it
23566# the --recheck option to rerun configure.
23567#
23568# `ac_cv_env_foo' variables (set or unset) will be overridden when
23569# loading this file, other *unset* `ac_cv_foo' will be assigned the
23570# following values.
23571
23572_ACEOF
23573
23574# The following way of writing the cache mishandles newlines in values,
23575# but we know of no workaround that is simple, portable, and efficient.
23576# So, don't put newlines in cache variables' values.
23577# Ultrix sh set writes to stderr and can't be redirected directly,
23578# and sets the high bit in the cache file unless we assign to the vars.
23579{
23580 (set) 2>&1 |
23581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23582 *ac_space=\ *)
23583 # `set' does not quote correctly, so add quotes (double-quote
23584 # substitution turns \\\\ into \\, and sed turns \\ into \).
23585 sed -n \
23586 "s/'/'\\\\''/g;
23587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23588 ;;
23589 *)
23590 # `set' quotes correctly as required by POSIX, so do not add quotes.
23591 sed -n \
23592 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23593 ;;
23594 esac;
23595} |
23596 sed '
23597 t clear
23598 : clear
23599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23600 t end
23601 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23602 : end' >>confcache
23603if diff $cache_file confcache >/dev/null 2>&1; then :; else
23604 if test -w $cache_file; then
23605 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23606 cat confcache >$cache_file
23607 else
23608 echo "not updating unwritable cache $cache_file"
23609 fi
23610fi
23611rm -f confcache
23612
23613test "x$prefix" = xNONE && prefix=$ac_default_prefix
23614# Let make expand exec_prefix.
23615test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23616
23617# VPATH may cause trouble with some makes, so we remove $(srcdir),
23618# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23619# trailing colons and then remove the whole line if VPATH becomes empty
23620# (actually we leave an empty line to preserve line numbers).
23621if test "x$srcdir" = x.; then
23622 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23623s/:*\$(srcdir):*/:/;
23624s/:*\${srcdir}:*/:/;
23625s/:*@srcdir@:*/:/;
23626s/^\([^=]*=[ ]*\):*/\1/;
23627s/:*$//;
23628s/^[^=]*=[ ]*$//;
23629}'
23630fi
23631
23632DEFS=-DHAVE_CONFIG_H
23633
23634ac_libobjs=
23635ac_ltlibobjs=
23636for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23637 # 1. Remove the extension, and $U if already installed.
23638 ac_i=`echo "$ac_i" |
23639 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23640 # 2. Add them.
23641 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23642 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23643done
23644LIBOBJS=$ac_libobjs
23645
23646LTLIBOBJS=$ac_ltlibobjs
23647
23648
ec1a68c8 23649if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23650 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23651Usually this means the macro was only invoked conditionally." >&5
23652echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23653Usually this means the macro was only invoked conditionally." >&2;}
23654 { (exit 1); exit 1; }; }
23655fi
23656if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23657 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23658Usually this means the macro was only invoked conditionally." >&5
23659echo "$as_me: error: conditional \"AMDEP\" was never defined.
23660Usually this means the macro was only invoked conditionally." >&2;}
23661 { (exit 1); exit 1; }; }
23662fi
23663if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23664 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23665Usually this means the macro was only invoked conditionally." >&5
23666echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23667Usually this means the macro was only invoked conditionally." >&2;}
23668 { (exit 1); exit 1; }; }
23669fi
23670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23671 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23672Usually this means the macro was only invoked conditionally." >&5
23673echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23674Usually this means the macro was only invoked conditionally." >&2;}
23675 { (exit 1); exit 1; }; }
23676fi
2f61d1d7 23677if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23678 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23679Usually this means the macro was only invoked conditionally." >&5
23680echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23681Usually this means the macro was only invoked conditionally." >&2;}
23682 { (exit 1); exit 1; }; }
23683fi
b3076f16 23684
23685: ${CONFIG_STATUS=./config.status}
23686ac_clean_files_save=$ac_clean_files
23687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23688{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23689echo "$as_me: creating $CONFIG_STATUS" >&6;}
23690cat >$CONFIG_STATUS <<_ACEOF
23691#! $SHELL
23692# Generated by $as_me.
23693# Run this file to recreate the current configuration.
23694# Compiler output produced by configure, useful for debugging
23695# configure, is in config.log if it exists.
23696
23697debug=false
23698ac_cs_recheck=false
23699ac_cs_silent=false
23700SHELL=\${CONFIG_SHELL-$SHELL}
23701_ACEOF
23702
23703cat >>$CONFIG_STATUS <<\_ACEOF
23704## --------------------- ##
23705## M4sh Initialization. ##
23706## --------------------- ##
23707
23708# Be Bourne compatible
23709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23710 emulate sh
23711 NULLCMD=:
23712 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23713 # is contrary to our usage. Disable this feature.
23714 alias -g '${1+"$@"}'='"$@"'
23715elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23716 set -o posix
23717fi
23718DUALCASE=1; export DUALCASE # for MKS sh
23719
23720# Support unset when possible.
23721if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23722 as_unset=unset
23723else
23724 as_unset=false
23725fi
23726
23727
23728# Work around bugs in pre-3.0 UWIN ksh.
23729$as_unset ENV MAIL MAILPATH
23730PS1='$ '
23731PS2='> '
23732PS4='+ '
23733
23734# NLS nuisances.
23735for as_var in \
23736 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23737 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23738 LC_TELEPHONE LC_TIME
23739do
23740 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23741 eval $as_var=C; export $as_var
23742 else
23743 $as_unset $as_var
23744 fi
23745done
23746
23747# Required to use basename.
23748if expr a : '\(a\)' >/dev/null 2>&1; then
23749 as_expr=expr
23750else
23751 as_expr=false
23752fi
23753
23754if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23755 as_basename=basename
23756else
23757 as_basename=false
23758fi
23759
23760
23761# Name of the executable.
23762as_me=`$as_basename "$0" ||
23763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23764 X"$0" : 'X\(//\)$' \| \
23765 X"$0" : 'X\(/\)$' \| \
23766 . : '\(.\)' 2>/dev/null ||
23767echo X/"$0" |
23768 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23769 /^X\/\(\/\/\)$/{ s//\1/; q; }
23770 /^X\/\(\/\).*/{ s//\1/; q; }
23771 s/.*/./; q'`
23772
23773
23774# PATH needs CR, and LINENO needs CR and PATH.
23775# Avoid depending upon Character Ranges.
23776as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23777as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23778as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23779as_cr_digits='0123456789'
23780as_cr_alnum=$as_cr_Letters$as_cr_digits
23781
23782# The user is always right.
23783if test "${PATH_SEPARATOR+set}" != set; then
23784 echo "#! /bin/sh" >conf$$.sh
23785 echo "exit 0" >>conf$$.sh
23786 chmod +x conf$$.sh
23787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23788 PATH_SEPARATOR=';'
23789 else
23790 PATH_SEPARATOR=:
23791 fi
23792 rm -f conf$$.sh
23793fi
23794
23795
23796 as_lineno_1=$LINENO
23797 as_lineno_2=$LINENO
23798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23799 test "x$as_lineno_1" != "x$as_lineno_2" &&
23800 test "x$as_lineno_3" = "x$as_lineno_2" || {
23801 # Find who we are. Look in the path if we contain no path at all
23802 # relative or not.
23803 case $0 in
23804 *[\\/]* ) as_myself=$0 ;;
23805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23806for as_dir in $PATH
23807do
23808 IFS=$as_save_IFS
23809 test -z "$as_dir" && as_dir=.
23810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23811done
23812
23813 ;;
23814 esac
23815 # We did not find ourselves, most probably we were run as `sh COMMAND'
23816 # in which case we are not to be found in the path.
23817 if test "x$as_myself" = x; then
23818 as_myself=$0
23819 fi
23820 if test ! -f "$as_myself"; then
23821 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23822echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23823 { (exit 1); exit 1; }; }
23824 fi
23825 case $CONFIG_SHELL in
23826 '')
23827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23828for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23829do
23830 IFS=$as_save_IFS
23831 test -z "$as_dir" && as_dir=.
23832 for as_base in sh bash ksh sh5; do
23833 case $as_dir in
23834 /*)
23835 if ("$as_dir/$as_base" -c '
23836 as_lineno_1=$LINENO
23837 as_lineno_2=$LINENO
23838 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23839 test "x$as_lineno_1" != "x$as_lineno_2" &&
23840 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23841 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23842 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23843 CONFIG_SHELL=$as_dir/$as_base
23844 export CONFIG_SHELL
23845 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23846 fi;;
23847 esac
23848 done
23849done
23850;;
23851 esac
23852
23853 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23854 # uniformly replaced by the line number. The first 'sed' inserts a
23855 # line-number line before each line; the second 'sed' does the real
23856 # work. The second script uses 'N' to pair each line-number line
23857 # with the numbered line, and appends trailing '-' during
23858 # substitution so that $LINENO is not a special case at line end.
23859 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23860 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23861 sed '=' <$as_myself |
23862 sed '
23863 N
23864 s,$,-,
23865 : loop
23866 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23867 t loop
23868 s,-$,,
23869 s,^['$as_cr_digits']*\n,,
23870 ' >$as_me.lineno &&
23871 chmod +x $as_me.lineno ||
23872 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23873echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23874 { (exit 1); exit 1; }; }
23875
23876 # Don't try to exec as it changes $[0], causing all sort of problems
23877 # (the dirname of $[0] is not the place where we might find the
23878 # original and so on. Autoconf is especially sensible to this).
23879 . ./$as_me.lineno
23880 # Exit status is that of the last command.
23881 exit
23882}
23883
23884
23885case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23886 *c*,-n*) ECHO_N= ECHO_C='
23887' ECHO_T=' ' ;;
23888 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23889 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23890esac
23891
23892if expr a : '\(a\)' >/dev/null 2>&1; then
23893 as_expr=expr
23894else
23895 as_expr=false
23896fi
23897
23898rm -f conf$$ conf$$.exe conf$$.file
23899echo >conf$$.file
23900if ln -s conf$$.file conf$$ 2>/dev/null; then
23901 # We could just check for DJGPP; but this test a) works b) is more generic
23902 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23903 if test -f conf$$.exe; then
23904 # Don't use ln at all; we don't have any links
23905 as_ln_s='cp -p'
23906 else
23907 as_ln_s='ln -s'
23908 fi
23909elif ln conf$$.file conf$$ 2>/dev/null; then
23910 as_ln_s=ln
23911else
23912 as_ln_s='cp -p'
23913fi
23914rm -f conf$$ conf$$.exe conf$$.file
23915
23916if mkdir -p . 2>/dev/null; then
23917 as_mkdir_p=:
23918else
23919 test -d ./-p && rmdir ./-p
23920 as_mkdir_p=false
23921fi
23922
23923as_executable_p="test -f"
23924
23925# Sed expression to map a string onto a valid CPP name.
23926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23927
23928# Sed expression to map a string onto a valid variable name.
23929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23930
23931
23932# IFS
23933# We need space, tab and new line, in precisely that order.
23934as_nl='
23935'
23936IFS=" $as_nl"
23937
23938# CDPATH.
23939$as_unset CDPATH
23940
23941exec 6>&1
23942
23943# Open the log real soon, to keep \$[0] and so on meaningful, and to
23944# report actual input values of CONFIG_FILES etc. instead of their
23945# values after options handling. Logging --version etc. is OK.
23946exec 5>>config.log
23947{
23948 echo
23949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23950## Running $as_me. ##
23951_ASBOX
23952} >&5
23953cat >&5 <<_CSEOF
23954
ceafd592 23955This file was extended by X3 $as_me 1.4, which was
b3076f16 23956generated by GNU Autoconf 2.59. Invocation command line was
23957
23958 CONFIG_FILES = $CONFIG_FILES
23959 CONFIG_HEADERS = $CONFIG_HEADERS
23960 CONFIG_LINKS = $CONFIG_LINKS
23961 CONFIG_COMMANDS = $CONFIG_COMMANDS
23962 $ $0 $@
23963
23964_CSEOF
23965echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23966echo >&5
23967_ACEOF
23968
23969# Files that config.status was made for.
23970if test -n "$ac_config_files"; then
23971 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23972fi
23973
23974if test -n "$ac_config_headers"; then
23975 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23976fi
23977
23978if test -n "$ac_config_links"; then
23979 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23980fi
23981
23982if test -n "$ac_config_commands"; then
23983 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23984fi
23985
23986cat >>$CONFIG_STATUS <<\_ACEOF
23987
23988ac_cs_usage="\
23989\`$as_me' instantiates files from templates according to the
23990current configuration.
23991
23992Usage: $0 [OPTIONS] [FILE]...
23993
23994 -h, --help print this help, then exit
23995 -V, --version print version number, then exit
23996 -q, --quiet do not print progress messages
23997 -d, --debug don't remove temporary files
23998 --recheck update $as_me by reconfiguring in the same conditions
23999 --file=FILE[:TEMPLATE]
24000 instantiate the configuration file FILE
24001 --header=FILE[:TEMPLATE]
24002 instantiate the configuration header FILE
24003
24004Configuration files:
24005$config_files
24006
24007Configuration headers:
24008$config_headers
24009
ec1a68c8 24010Configuration commands:
24011$config_commands
24012
b3076f16 24013Report bugs to <bug-autoconf@gnu.org>."
24014_ACEOF
24015
24016cat >>$CONFIG_STATUS <<_ACEOF
24017ac_cs_version="\\
ceafd592 24018X3 config.status 1.4
b3076f16 24019configured by $0, generated by GNU Autoconf 2.59,
24020 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24021
24022Copyright (C) 2003 Free Software Foundation, Inc.
24023This config.status script is free software; the Free Software Foundation
24024gives unlimited permission to copy, distribute and modify it."
24025srcdir=$srcdir
24026INSTALL="$INSTALL"
24027_ACEOF
24028
24029cat >>$CONFIG_STATUS <<\_ACEOF
24030# If no file are specified by the user, then we need to provide default
24031# value. By we need to know if files were specified by the user.
24032ac_need_defaults=:
24033while test $# != 0
24034do
24035 case $1 in
24036 --*=*)
24037 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24038 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24039 ac_shift=:
24040 ;;
24041 -*)
24042 ac_option=$1
24043 ac_optarg=$2
24044 ac_shift=shift
24045 ;;
24046 *) # This is not an option, so the user has probably given explicit
24047 # arguments.
24048 ac_option=$1
24049 ac_need_defaults=false;;
24050 esac
24051
24052 case $ac_option in
24053 # Handling of the options.
24054_ACEOF
24055cat >>$CONFIG_STATUS <<\_ACEOF
24056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24057 ac_cs_recheck=: ;;
24058 --version | --vers* | -V )
24059 echo "$ac_cs_version"; exit 0 ;;
24060 --he | --h)
24061 # Conflict between --help and --header
24062 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24063Try \`$0 --help' for more information." >&5
24064echo "$as_me: error: ambiguous option: $1
24065Try \`$0 --help' for more information." >&2;}
24066 { (exit 1); exit 1; }; };;
24067 --help | --hel | -h )
24068 echo "$ac_cs_usage"; exit 0 ;;
24069 --debug | --d* | -d )
24070 debug=: ;;
24071 --file | --fil | --fi | --f )
24072 $ac_shift
24073 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24074 ac_need_defaults=false;;
24075 --header | --heade | --head | --hea )
24076 $ac_shift
24077 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24078 ac_need_defaults=false;;
24079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24081 ac_cs_silent=: ;;
24082
24083 # This is an error.
24084 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24085Try \`$0 --help' for more information." >&5
24086echo "$as_me: error: unrecognized option: $1
24087Try \`$0 --help' for more information." >&2;}
24088 { (exit 1); exit 1; }; } ;;
24089
24090 *) ac_config_targets="$ac_config_targets $1" ;;
24091
24092 esac
24093 shift
24094done
24095
24096ac_configure_extra_args=
24097
24098if $ac_cs_silent; then
24099 exec 6>/dev/null
24100 ac_configure_extra_args="$ac_configure_extra_args --silent"
24101fi
24102
24103_ACEOF
24104cat >>$CONFIG_STATUS <<_ACEOF
24105if \$ac_cs_recheck; then
24106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24107 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24108fi
24109
24110_ACEOF
24111
ec1a68c8 24112cat >>$CONFIG_STATUS <<_ACEOF
24113#
24114# INIT-COMMANDS section.
24115#
b3076f16 24116
ec1a68c8 24117AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24118
24119_ACEOF
b3076f16 24120
24121
24122
24123cat >>$CONFIG_STATUS <<\_ACEOF
24124for ac_config_target in $ac_config_targets
24125do
24126 case "$ac_config_target" in
24127 # Handling of arguments.
24128 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24129 "rx/Makefile" ) CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
24130 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
ec1a68c8 24131 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b3076f16 24132 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24133 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24134echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24135 { (exit 1); exit 1; }; };;
24136 esac
24137done
24138
24139# If the user did not use the arguments to specify the items to instantiate,
24140# then the envvar interface is used. Set only those that are not.
24141# We use the long form for the default assignment because of an extremely
24142# bizarre bug on SunOS 4.1.3.
24143if $ac_need_defaults; then
24144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 24146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 24147fi
24148
24149# Have a temporary directory for convenience. Make it in the build tree
24150# simply because there is no reason to put it here, and in addition,
24151# creating and moving files from /tmp can sometimes cause problems.
24152# Create a temporary directory, and hook for its removal unless debugging.
24153$debug ||
24154{
24155 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24156 trap '{ (exit 1); exit 1; }' 1 2 13 15
24157}
24158
24159# Create a (secure) tmp directory for tmp files.
24160
24161{
24162 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24163 test -n "$tmp" && test -d "$tmp"
24164} ||
24165{
24166 tmp=./confstat$$-$RANDOM
24167 (umask 077 && mkdir $tmp)
24168} ||
24169{
24170 echo "$me: cannot create a temporary directory in ." >&2
24171 { (exit 1); exit 1; }
24172}
24173
24174_ACEOF
24175
24176cat >>$CONFIG_STATUS <<_ACEOF
24177
24178#
24179# CONFIG_FILES section.
24180#
24181
24182# No need to generate the scripts if there are no CONFIG_FILES.
24183# This happens for instance when ./config.status config.h
24184if test -n "\$CONFIG_FILES"; then
24185 # Protect against being on the right side of a sed subst in config.status.
24186 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24187 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24188s,@SHELL@,$SHELL,;t t
24189s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24190s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24191s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24192s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24193s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24194s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24195s,@exec_prefix@,$exec_prefix,;t t
24196s,@prefix@,$prefix,;t t
24197s,@program_transform_name@,$program_transform_name,;t t
24198s,@bindir@,$bindir,;t t
24199s,@sbindir@,$sbindir,;t t
24200s,@libexecdir@,$libexecdir,;t t
24201s,@datadir@,$datadir,;t t
24202s,@sysconfdir@,$sysconfdir,;t t
24203s,@sharedstatedir@,$sharedstatedir,;t t
24204s,@localstatedir@,$localstatedir,;t t
24205s,@libdir@,$libdir,;t t
24206s,@includedir@,$includedir,;t t
24207s,@oldincludedir@,$oldincludedir,;t t
24208s,@infodir@,$infodir,;t t
24209s,@mandir@,$mandir,;t t
24210s,@build_alias@,$build_alias,;t t
24211s,@host_alias@,$host_alias,;t t
24212s,@target_alias@,$target_alias,;t t
24213s,@DEFS@,$DEFS,;t t
24214s,@ECHO_C@,$ECHO_C,;t t
24215s,@ECHO_N@,$ECHO_N,;t t
24216s,@ECHO_T@,$ECHO_T,;t t
24217s,@LIBS@,$LIBS,;t t
24218s,@build@,$build,;t t
24219s,@build_cpu@,$build_cpu,;t t
24220s,@build_vendor@,$build_vendor,;t t
24221s,@build_os@,$build_os,;t t
24222s,@host@,$host,;t t
24223s,@host_cpu@,$host_cpu,;t t
24224s,@host_vendor@,$host_vendor,;t t
24225s,@host_os@,$host_os,;t t
24226s,@target@,$target,;t t
24227s,@target_cpu@,$target_cpu,;t t
24228s,@target_vendor@,$target_vendor,;t t
24229s,@target_os@,$target_os,;t t
24230s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24231s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24232s,@INSTALL_DATA@,$INSTALL_DATA,;t t
ec1a68c8 24233s,@CYGPATH_W@,$CYGPATH_W,;t t
b3076f16 24234s,@PACKAGE@,$PACKAGE,;t t
24235s,@VERSION@,$VERSION,;t t
24236s,@ACLOCAL@,$ACLOCAL,;t t
24237s,@AUTOCONF@,$AUTOCONF,;t t
24238s,@AUTOMAKE@,$AUTOMAKE,;t t
24239s,@AUTOHEADER@,$AUTOHEADER,;t t
24240s,@MAKEINFO@,$MAKEINFO,;t t
ec1a68c8 24241s,@install_sh@,$install_sh,;t t
24242s,@STRIP@,$STRIP,;t t
24243s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24244s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24245s,@mkdir_p@,$mkdir_p,;t t
24246s,@AWK@,$AWK,;t t
b3076f16 24247s,@SET_MAKE@,$SET_MAKE,;t t
ec1a68c8 24248s,@am__leading_dot@,$am__leading_dot,;t t
24249s,@AMTAR@,$AMTAR,;t t
24250s,@am__tar@,$am__tar,;t t
24251s,@am__untar@,$am__untar,;t t
b3076f16 24252s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24253s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24254s,@MAINT@,$MAINT,;t t
24255s,@CC@,$CC,;t t
24256s,@CFLAGS@,$CFLAGS,;t t
24257s,@LDFLAGS@,$LDFLAGS,;t t
24258s,@CPPFLAGS@,$CPPFLAGS,;t t
24259s,@ac_ct_CC@,$ac_ct_CC,;t t
24260s,@EXEEXT@,$EXEEXT,;t t
24261s,@OBJEXT@,$OBJEXT,;t t
ec1a68c8 24262s,@DEPDIR@,$DEPDIR,;t t
24263s,@am__include@,$am__include,;t t
24264s,@am__quote@,$am__quote,;t t
24265s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24266s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24267s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24268s,@CCDEPMODE@,$CCDEPMODE,;t t
24269s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24270s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
2f61d1d7 24271s,@EGREP@,$EGREP,;t t
24272s,@LN_S@,$LN_S,;t t
24273s,@ECHO@,$ECHO,;t t
24274s,@AR@,$AR,;t t
24275s,@ac_ct_AR@,$ac_ct_AR,;t t
b3076f16 24276s,@RANLIB@,$RANLIB,;t t
24277s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b3076f16 24278s,@CPP@,$CPP,;t t
2f61d1d7 24279s,@CXX@,$CXX,;t t
24280s,@CXXFLAGS@,$CXXFLAGS,;t t
24281s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24282s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24283s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24284s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24285s,@CXXCPP@,$CXXCPP,;t t
24286s,@F77@,$F77,;t t
24287s,@FFLAGS@,$FFLAGS,;t t
24288s,@ac_ct_F77@,$ac_ct_F77,;t t
24289s,@LIBTOOL@,$LIBTOOL,;t t
b3076f16 24290s,@ALLOCA@,$ALLOCA,;t t
24291s,@MODULE_OBJS@,$MODULE_OBJS,;t t
24292s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
24293s,@RX_INCLUDES@,$RX_INCLUDES,;t t
24294s,@RX_LIBS@,$RX_LIBS,;t t
ec311f39 24295s,@TRACK@,$TRACK,;t t
b3076f16 24296s,@LIBOBJS@,$LIBOBJS,;t t
24297s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24298CEOF
24299
24300_ACEOF
24301
24302 cat >>$CONFIG_STATUS <<\_ACEOF
24303 # Split the substitutions into bite-sized pieces for seds with
24304 # small command number limits, like on Digital OSF/1 and HP-UX.
24305 ac_max_sed_lines=48
24306 ac_sed_frag=1 # Number of current file.
24307 ac_beg=1 # First line for current file.
24308 ac_end=$ac_max_sed_lines # Line after last line for current file.
24309 ac_more_lines=:
24310 ac_sed_cmds=
24311 while $ac_more_lines; do
24312 if test $ac_beg -gt 1; then
24313 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24314 else
24315 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24316 fi
24317 if test ! -s $tmp/subs.frag; then
24318 ac_more_lines=false
24319 else
24320 # The purpose of the label and of the branching condition is to
24321 # speed up the sed processing (if there are no `@' at all, there
24322 # is no need to browse any of the substitutions).
24323 # These are the two extra sed commands mentioned above.
24324 (echo ':t
24325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24326 if test -z "$ac_sed_cmds"; then
24327 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24328 else
24329 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24330 fi
24331 ac_sed_frag=`expr $ac_sed_frag + 1`
24332 ac_beg=$ac_end
24333 ac_end=`expr $ac_end + $ac_max_sed_lines`
24334 fi
24335 done
24336 if test -z "$ac_sed_cmds"; then
24337 ac_sed_cmds=cat
24338 fi
24339fi # test -n "$CONFIG_FILES"
24340
24341_ACEOF
24342cat >>$CONFIG_STATUS <<\_ACEOF
24343for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24345 case $ac_file in
24346 - | *:- | *:-:* ) # input from stdin
24347 cat >$tmp/stdin
24348 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24350 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24352 * ) ac_file_in=$ac_file.in ;;
24353 esac
24354
24355 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24356 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24358 X"$ac_file" : 'X\(//\)[^/]' \| \
24359 X"$ac_file" : 'X\(//\)$' \| \
24360 X"$ac_file" : 'X\(/\)' \| \
24361 . : '\(.\)' 2>/dev/null ||
24362echo X"$ac_file" |
24363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24365 /^X\(\/\/\)$/{ s//\1/; q; }
24366 /^X\(\/\).*/{ s//\1/; q; }
24367 s/.*/./; q'`
24368 { if $as_mkdir_p; then
24369 mkdir -p "$ac_dir"
24370 else
24371 as_dir="$ac_dir"
24372 as_dirs=
24373 while test ! -d "$as_dir"; do
24374 as_dirs="$as_dir $as_dirs"
24375 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24377 X"$as_dir" : 'X\(//\)[^/]' \| \
24378 X"$as_dir" : 'X\(//\)$' \| \
24379 X"$as_dir" : 'X\(/\)' \| \
24380 . : '\(.\)' 2>/dev/null ||
24381echo X"$as_dir" |
24382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24384 /^X\(\/\/\)$/{ s//\1/; q; }
24385 /^X\(\/\).*/{ s//\1/; q; }
24386 s/.*/./; q'`
24387 done
24388 test ! -n "$as_dirs" || mkdir $as_dirs
24389 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24390echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24391 { (exit 1); exit 1; }; }; }
24392
24393 ac_builddir=.
24394
24395if test "$ac_dir" != .; then
24396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24397 # A "../" for each directory in $ac_dir_suffix.
24398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24399else
24400 ac_dir_suffix= ac_top_builddir=
24401fi
24402
24403case $srcdir in
24404 .) # No --srcdir option. We are building in place.
24405 ac_srcdir=.
24406 if test -z "$ac_top_builddir"; then
24407 ac_top_srcdir=.
24408 else
24409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24410 fi ;;
24411 [\\/]* | ?:[\\/]* ) # Absolute path.
24412 ac_srcdir=$srcdir$ac_dir_suffix;
24413 ac_top_srcdir=$srcdir ;;
24414 *) # Relative path.
24415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24417esac
24418
24419# Do not use `cd foo && pwd` to compute absolute paths, because
24420# the directories may not exist.
24421case `pwd` in
24422.) ac_abs_builddir="$ac_dir";;
24423*)
24424 case "$ac_dir" in
24425 .) ac_abs_builddir=`pwd`;;
24426 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24427 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24428 esac;;
24429esac
24430case $ac_abs_builddir in
24431.) ac_abs_top_builddir=${ac_top_builddir}.;;
24432*)
24433 case ${ac_top_builddir}. in
24434 .) ac_abs_top_builddir=$ac_abs_builddir;;
24435 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24436 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24437 esac;;
24438esac
24439case $ac_abs_builddir in
24440.) ac_abs_srcdir=$ac_srcdir;;
24441*)
24442 case $ac_srcdir in
24443 .) ac_abs_srcdir=$ac_abs_builddir;;
24444 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24445 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24446 esac;;
24447esac
24448case $ac_abs_builddir in
24449.) ac_abs_top_srcdir=$ac_top_srcdir;;
24450*)
24451 case $ac_top_srcdir in
24452 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24453 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24454 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24455 esac;;
24456esac
24457
24458
24459 case $INSTALL in
24460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24461 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24462 esac
24463
24464 # Let's still pretend it is `configure' which instantiates (i.e., don't
24465 # use $as_me), people would be surprised to read:
24466 # /* config.h. Generated by config.status. */
24467 if test x"$ac_file" = x-; then
24468 configure_input=
24469 else
24470 configure_input="$ac_file. "
24471 fi
24472 configure_input=$configure_input"Generated from `echo $ac_file_in |
24473 sed 's,.*/,,'` by configure."
24474
24475 # First look for the input files in the build tree, otherwise in the
24476 # src tree.
24477 ac_file_inputs=`IFS=:
24478 for f in $ac_file_in; do
24479 case $f in
24480 -) echo $tmp/stdin ;;
24481 [\\/$]*)
24482 # Absolute (can't be DOS-style, as IFS=:)
24483 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24484echo "$as_me: error: cannot find input file: $f" >&2;}
24485 { (exit 1); exit 1; }; }
24486 echo "$f";;
24487 *) # Relative
24488 if test -f "$f"; then
24489 # Build tree
24490 echo "$f"
24491 elif test -f "$srcdir/$f"; then
24492 # Source tree
24493 echo "$srcdir/$f"
24494 else
24495 # /dev/null tree
24496 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24497echo "$as_me: error: cannot find input file: $f" >&2;}
24498 { (exit 1); exit 1; }; }
24499 fi;;
24500 esac
24501 done` || { (exit 1); exit 1; }
b8cb2a14 24502
24503 if test x"$ac_file" != x-; then
24504 { echo "$as_me:$LINENO: creating $ac_file" >&5
24505echo "$as_me: creating $ac_file" >&6;}
24506 rm -f "$ac_file"
24507 fi
b3076f16 24508_ACEOF
24509cat >>$CONFIG_STATUS <<_ACEOF
24510 sed "$ac_vpsub
24511$extrasub
24512_ACEOF
24513cat >>$CONFIG_STATUS <<\_ACEOF
24514:t
24515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24516s,@configure_input@,$configure_input,;t t
24517s,@srcdir@,$ac_srcdir,;t t
24518s,@abs_srcdir@,$ac_abs_srcdir,;t t
24519s,@top_srcdir@,$ac_top_srcdir,;t t
24520s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24521s,@builddir@,$ac_builddir,;t t
24522s,@abs_builddir@,$ac_abs_builddir,;t t
24523s,@top_builddir@,$ac_top_builddir,;t t
24524s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24525s,@INSTALL@,$ac_INSTALL,;t t
24526" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24527 rm -f $tmp/stdin
24528 if test x"$ac_file" != x-; then
24529 mv $tmp/out $ac_file
24530 else
24531 cat $tmp/out
24532 rm -f $tmp/out
24533 fi
24534
24535done
24536_ACEOF
24537cat >>$CONFIG_STATUS <<\_ACEOF
24538
24539#
24540# CONFIG_HEADER section.
24541#
24542
24543# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24544# NAME is the cpp macro being defined and VALUE is the value it is being given.
24545#
24546# ac_d sets the value in "#define NAME VALUE" lines.
24547ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24548ac_dB='[ ].*$,\1#\2'
24549ac_dC=' '
24550ac_dD=',;t'
24551# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24552ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24553ac_uB='$,\1#\2define\3'
24554ac_uC=' '
24555ac_uD=',;t'
24556
24557for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24559 case $ac_file in
24560 - | *:- | *:-:* ) # input from stdin
24561 cat >$tmp/stdin
24562 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24564 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24566 * ) ac_file_in=$ac_file.in ;;
24567 esac
24568
24569 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24570echo "$as_me: creating $ac_file" >&6;}
24571
24572 # First look for the input files in the build tree, otherwise in the
24573 # src tree.
24574 ac_file_inputs=`IFS=:
24575 for f in $ac_file_in; do
24576 case $f in
24577 -) echo $tmp/stdin ;;
24578 [\\/$]*)
24579 # Absolute (can't be DOS-style, as IFS=:)
24580 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24581echo "$as_me: error: cannot find input file: $f" >&2;}
24582 { (exit 1); exit 1; }; }
24583 # Do quote $f, to prevent DOS paths from being IFS'd.
24584 echo "$f";;
24585 *) # Relative
24586 if test -f "$f"; then
24587 # Build tree
24588 echo "$f"
24589 elif test -f "$srcdir/$f"; then
24590 # Source tree
24591 echo "$srcdir/$f"
24592 else
24593 # /dev/null tree
24594 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24595echo "$as_me: error: cannot find input file: $f" >&2;}
24596 { (exit 1); exit 1; }; }
24597 fi;;
24598 esac
24599 done` || { (exit 1); exit 1; }
24600 # Remove the trailing spaces.
24601 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24602
24603_ACEOF
24604
24605# Transform confdefs.h into two sed scripts, `conftest.defines' and
24606# `conftest.undefs', that substitutes the proper values into
24607# config.h.in to produce config.h. The first handles `#define'
24608# templates, and the second `#undef' templates.
24609# And first: Protect against being on the right side of a sed subst in
24610# config.status. Protect against being in an unquoted here document
24611# in config.status.
24612rm -f conftest.defines conftest.undefs
24613# Using a here document instead of a string reduces the quoting nightmare.
24614# Putting comments in sed scripts is not portable.
24615#
24616# `end' is used to avoid that the second main sed command (meant for
24617# 0-ary CPP macros) applies to n-ary macro definitions.
24618# See the Autoconf documentation for `clear'.
24619cat >confdef2sed.sed <<\_ACEOF
24620s/[\\&,]/\\&/g
24621s,[\\$`],\\&,g
24622t clear
24623: clear
24624s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24625t end
24626s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24627: end
24628_ACEOF
24629# If some macros were called several times there might be several times
24630# the same #defines, which is useless. Nevertheless, we may not want to
24631# sort them, since we want the *last* AC-DEFINE to be honored.
24632uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24633sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24634rm -f confdef2sed.sed
24635
24636# This sed command replaces #undef with comments. This is necessary, for
24637# example, in the case of _POSIX_SOURCE, which is predefined and required
24638# on some systems where configure will not decide to define it.
24639cat >>conftest.undefs <<\_ACEOF
24640s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24641_ACEOF
24642
24643# Break up conftest.defines because some shells have a limit on the size
24644# of here documents, and old seds have small limits too (100 cmds).
24645echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24646echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24647echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24648echo ' :' >>$CONFIG_STATUS
24649rm -f conftest.tail
24650while grep . conftest.defines >/dev/null
24651do
24652 # Write a limited-size here document to $tmp/defines.sed.
24653 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24654 # Speed up: don't consider the non `#define' lines.
24655 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24656 # Work around the forget-to-reset-the-flag bug.
24657 echo 't clr' >>$CONFIG_STATUS
24658 echo ': clr' >>$CONFIG_STATUS
24659 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24660 echo 'CEOF
24661 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24662 rm -f $tmp/in
24663 mv $tmp/out $tmp/in
24664' >>$CONFIG_STATUS
24665 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24666 rm -f conftest.defines
24667 mv conftest.tail conftest.defines
24668done
24669rm -f conftest.defines
24670echo ' fi # grep' >>$CONFIG_STATUS
24671echo >>$CONFIG_STATUS
24672
24673# Break up conftest.undefs because some shells have a limit on the size
24674# of here documents, and old seds have small limits too (100 cmds).
24675echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24676rm -f conftest.tail
24677while grep . conftest.undefs >/dev/null
24678do
24679 # Write a limited-size here document to $tmp/undefs.sed.
24680 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24681 # Speed up: don't consider the non `#undef'
24682 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24683 # Work around the forget-to-reset-the-flag bug.
24684 echo 't clr' >>$CONFIG_STATUS
24685 echo ': clr' >>$CONFIG_STATUS
24686 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24687 echo 'CEOF
24688 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24689 rm -f $tmp/in
24690 mv $tmp/out $tmp/in
24691' >>$CONFIG_STATUS
24692 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24693 rm -f conftest.undefs
24694 mv conftest.tail conftest.undefs
24695done
24696rm -f conftest.undefs
24697
24698cat >>$CONFIG_STATUS <<\_ACEOF
24699 # Let's still pretend it is `configure' which instantiates (i.e., don't
24700 # use $as_me), people would be surprised to read:
24701 # /* config.h. Generated by config.status. */
24702 if test x"$ac_file" = x-; then
24703 echo "/* Generated by configure. */" >$tmp/config.h
24704 else
24705 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24706 fi
24707 cat $tmp/in >>$tmp/config.h
24708 rm -f $tmp/in
24709 if test x"$ac_file" != x-; then
24710 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24711 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24712echo "$as_me: $ac_file is unchanged" >&6;}
24713 else
24714 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716 X"$ac_file" : 'X\(//\)[^/]' \| \
24717 X"$ac_file" : 'X\(//\)$' \| \
24718 X"$ac_file" : 'X\(/\)' \| \
24719 . : '\(.\)' 2>/dev/null ||
24720echo X"$ac_file" |
24721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24723 /^X\(\/\/\)$/{ s//\1/; q; }
24724 /^X\(\/\).*/{ s//\1/; q; }
24725 s/.*/./; q'`
24726 { if $as_mkdir_p; then
24727 mkdir -p "$ac_dir"
24728 else
24729 as_dir="$ac_dir"
24730 as_dirs=
24731 while test ! -d "$as_dir"; do
24732 as_dirs="$as_dir $as_dirs"
24733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24735 X"$as_dir" : 'X\(//\)[^/]' \| \
24736 X"$as_dir" : 'X\(//\)$' \| \
24737 X"$as_dir" : 'X\(/\)' \| \
24738 . : '\(.\)' 2>/dev/null ||
24739echo X"$as_dir" |
24740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24742 /^X\(\/\/\)$/{ s//\1/; q; }
24743 /^X\(\/\).*/{ s//\1/; q; }
24744 s/.*/./; q'`
24745 done
24746 test ! -n "$as_dirs" || mkdir $as_dirs
24747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24748echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24749 { (exit 1); exit 1; }; }; }
24750
24751 rm -f $ac_file
24752 mv $tmp/config.h $ac_file
24753 fi
24754 else
24755 cat $tmp/config.h
24756 rm -f $tmp/config.h
24757 fi
ec1a68c8 24758# Compute $ac_file's index in $config_headers.
24759_am_stamp_count=1
24760for _am_header in $config_headers :; do
24761 case $_am_header in
24762 $ac_file | $ac_file:* )
24763 break ;;
24764 * )
24765 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24766 esac
24767done
24768echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24769$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24770 X$ac_file : 'X\(//\)[^/]' \| \
24771 X$ac_file : 'X\(//\)$' \| \
24772 X$ac_file : 'X\(/\)' \| \
24773 . : '\(.\)' 2>/dev/null ||
24774echo X$ac_file |
24775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24777 /^X\(\/\/\)$/{ s//\1/; q; }
24778 /^X\(\/\).*/{ s//\1/; q; }
24779 s/.*/./; q'`/stamp-h$_am_stamp_count
24780done
24781_ACEOF
24782cat >>$CONFIG_STATUS <<\_ACEOF
24783
24784#
24785# CONFIG_COMMANDS section.
24786#
24787for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24788 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24789 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24790 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24791$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24792 X"$ac_dest" : 'X\(//\)[^/]' \| \
24793 X"$ac_dest" : 'X\(//\)$' \| \
24794 X"$ac_dest" : 'X\(/\)' \| \
24795 . : '\(.\)' 2>/dev/null ||
24796echo X"$ac_dest" |
24797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24799 /^X\(\/\/\)$/{ s//\1/; q; }
24800 /^X\(\/\).*/{ s//\1/; q; }
24801 s/.*/./; q'`
24802 { if $as_mkdir_p; then
24803 mkdir -p "$ac_dir"
24804 else
24805 as_dir="$ac_dir"
24806 as_dirs=
24807 while test ! -d "$as_dir"; do
24808 as_dirs="$as_dir $as_dirs"
24809 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24811 X"$as_dir" : 'X\(//\)[^/]' \| \
24812 X"$as_dir" : 'X\(//\)$' \| \
24813 X"$as_dir" : 'X\(/\)' \| \
24814 . : '\(.\)' 2>/dev/null ||
24815echo X"$as_dir" |
24816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24818 /^X\(\/\/\)$/{ s//\1/; q; }
24819 /^X\(\/\).*/{ s//\1/; q; }
24820 s/.*/./; q'`
24821 done
24822 test ! -n "$as_dirs" || mkdir $as_dirs
24823 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24824echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24825 { (exit 1); exit 1; }; }; }
24826
24827 ac_builddir=.
24828
24829if test "$ac_dir" != .; then
24830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24831 # A "../" for each directory in $ac_dir_suffix.
24832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24833else
24834 ac_dir_suffix= ac_top_builddir=
24835fi
24836
24837case $srcdir in
24838 .) # No --srcdir option. We are building in place.
24839 ac_srcdir=.
24840 if test -z "$ac_top_builddir"; then
24841 ac_top_srcdir=.
24842 else
24843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24844 fi ;;
24845 [\\/]* | ?:[\\/]* ) # Absolute path.
24846 ac_srcdir=$srcdir$ac_dir_suffix;
24847 ac_top_srcdir=$srcdir ;;
24848 *) # Relative path.
24849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24851esac
24852
24853# Do not use `cd foo && pwd` to compute absolute paths, because
24854# the directories may not exist.
24855case `pwd` in
24856.) ac_abs_builddir="$ac_dir";;
24857*)
24858 case "$ac_dir" in
24859 .) ac_abs_builddir=`pwd`;;
24860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24861 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24862 esac;;
24863esac
24864case $ac_abs_builddir in
24865.) ac_abs_top_builddir=${ac_top_builddir}.;;
24866*)
24867 case ${ac_top_builddir}. in
24868 .) ac_abs_top_builddir=$ac_abs_builddir;;
24869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24871 esac;;
24872esac
24873case $ac_abs_builddir in
24874.) ac_abs_srcdir=$ac_srcdir;;
24875*)
24876 case $ac_srcdir in
24877 .) ac_abs_srcdir=$ac_abs_builddir;;
24878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24880 esac;;
24881esac
24882case $ac_abs_builddir in
24883.) ac_abs_top_srcdir=$ac_top_srcdir;;
24884*)
24885 case $ac_top_srcdir in
24886 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24889 esac;;
24890esac
24891
24892
24893 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24894echo "$as_me: executing $ac_dest commands" >&6;}
24895 case $ac_dest in
24896 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24897 # Strip MF so we end up with the name of the file.
24898 mf=`echo "$mf" | sed -e 's/:.*$//'`
24899 # Check whether this is an Automake generated Makefile or not.
24900 # We used to match only the files named `Makefile.in', but
24901 # some people rename them; so instead we look at the file content.
24902 # Grep'ing the first line is not enough: some people post-process
24903 # each Makefile.in and add a new line on top of each file to say so.
24904 # So let's grep whole file.
24905 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24906 dirpart=`(dirname "$mf") 2>/dev/null ||
24907$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24908 X"$mf" : 'X\(//\)[^/]' \| \
24909 X"$mf" : 'X\(//\)$' \| \
24910 X"$mf" : 'X\(/\)' \| \
24911 . : '\(.\)' 2>/dev/null ||
24912echo X"$mf" |
24913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24915 /^X\(\/\/\)$/{ s//\1/; q; }
24916 /^X\(\/\).*/{ s//\1/; q; }
24917 s/.*/./; q'`
24918 else
24919 continue
24920 fi
24921 # Extract the definition of DEPDIR, am__include, and am__quote
24922 # from the Makefile without running `make'.
24923 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24924 test -z "$DEPDIR" && continue
24925 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24926 test -z "am__include" && continue
24927 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24928 # When using ansi2knr, U may be empty or an underscore; expand it
24929 U=`sed -n 's/^U = //p' < "$mf"`
24930 # Find all dependency output files, they are included files with
24931 # $(DEPDIR) in their names. We invoke sed twice because it is the
24932 # simplest approach to changing $(DEPDIR) to its actual value in the
24933 # expansion.
24934 for file in `sed -n "
24935 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24936 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24937 # Make sure the directory exists.
24938 test -f "$dirpart/$file" && continue
24939 fdir=`(dirname "$file") 2>/dev/null ||
24940$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24941 X"$file" : 'X\(//\)[^/]' \| \
24942 X"$file" : 'X\(//\)$' \| \
24943 X"$file" : 'X\(/\)' \| \
24944 . : '\(.\)' 2>/dev/null ||
24945echo X"$file" |
24946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24948 /^X\(\/\/\)$/{ s//\1/; q; }
24949 /^X\(\/\).*/{ s//\1/; q; }
24950 s/.*/./; q'`
24951 { if $as_mkdir_p; then
24952 mkdir -p $dirpart/$fdir
24953 else
24954 as_dir=$dirpart/$fdir
24955 as_dirs=
24956 while test ! -d "$as_dir"; do
24957 as_dirs="$as_dir $as_dirs"
24958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24960 X"$as_dir" : 'X\(//\)[^/]' \| \
24961 X"$as_dir" : 'X\(//\)$' \| \
24962 X"$as_dir" : 'X\(/\)' \| \
24963 . : '\(.\)' 2>/dev/null ||
24964echo X"$as_dir" |
24965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24967 /^X\(\/\/\)$/{ s//\1/; q; }
24968 /^X\(\/\).*/{ s//\1/; q; }
24969 s/.*/./; q'`
24970 done
24971 test ! -n "$as_dirs" || mkdir $as_dirs
24972 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24973echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24974 { (exit 1); exit 1; }; }; }
24975
24976 # echo "creating $dirpart/$file"
24977 echo '# dummy' > "$dirpart/$file"
24978 done
24979done
24980 ;;
24981 esac
b3076f16 24982done
24983_ACEOF
24984
24985cat >>$CONFIG_STATUS <<\_ACEOF
24986
24987{ (exit 0); exit 0; }
24988_ACEOF
24989chmod +x $CONFIG_STATUS
24990ac_clean_files=$ac_clean_files_save
24991
24992
24993# configure is writing to config.log, and then calls config.status.
24994# config.status does its own redirection, appending to config.log.
24995# Unfortunately, on DOS this fails, as config.log is still kept open
24996# by configure, so config.status won't be able to write to it; its
24997# output is simply discarded. So we exec the FD to /dev/null,
24998# effectively closing config.log, so it can be properly (re)opened and
24999# appended to by config.status. When coming back to configure, we
25000# need to make the FD available again.
25001if test "$no_create" != yes; then
25002 ac_cs_success=:
25003 ac_config_status_args=
25004 test "$silent" = yes &&
25005 ac_config_status_args="$ac_config_status_args --quiet"
25006 exec 5>/dev/null
25007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25008 exec 5>>config.log
25009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25010 # would make configure fail if this is the last instruction.
25011 $ac_cs_success || { (exit 1); exit 1; }
25012fi
25013