blob: 82c8309a7d27ece978fb8caec6d0342cfd549a78 [file] [log] [blame]
Mike Dodd8cfa7022010-11-17 11:12:26 -08001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274$*
275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="libop/op_config.h"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DATE OPROFILE_DIR LD KSRC KINC kernel_support_TRUE kernel_support_FALSE KVERS OPROFILE_MODULE_ARCH MODINSTALLDIR JAVA_HOMEDIR BUILD_JVMTI_AGENT_TRUE BUILD_JVMTI_AGENT_FALSE BUILD_JVMPI_AGENT_TRUE BUILD_JVMPI_AGENT_FALSE EXTRA_CFLAGS_MODULE topdir SIZE_T_TYPE PTRDIFF_T_TYPE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_INCLUDES QT_LDFLAGS MOC UIC QT_LIB QT_VERSION XSLTPROC have_xsltproc_TRUE have_xsltproc_FALSE XML_CATALOG XSLTPROC_FLAGS DOCBOOK_ROOT CAT_ENTRY_START CAT_ENTRY_END LIBERTY_LIBS BFD_LIBS POPT_LIBS have_qt_TRUE have_qt_FALSE OP_CFLAGS OP_CXXFLAGS OP_DOCDIR LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977 cat <<_ACEOF
978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004_ACEOF
1005
1006 cat <<\_ACEOF
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013X features:
1014 --x-includes=DIR X include files are in DIR
1015 --x-libraries=DIR X library files are in DIR
1016
1017System types:
1018 --build=BUILD configure for building on BUILD [guessed]
1019 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020_ACEOF
1021fi
1022
1023if test -n "$ac_init_help"; then
1024
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-pch enable precompiled header (default is disabled)
1040 --enable-gcov enable option for gcov coverage testing (default is disabled)
1041 --disable-werror disable -Werror flag (default is enabled for non-release)
1042 --disable-optimization disable optimization flags (default is enabled)
1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
1052 --with-binutils=dir Path to binutils installation to use
1053 --with-binutils-libname Lib dir name under binutils installation; [lib]]
1054 --with-gcc=dir Path to GCC installation to use
1055 --with-kernel-support Use 2.6 kernel (no kernel source tree required)
1056 --with-linux=dir Path to Linux source tree
1057 --with-module-dir=dir Path to module installation directory
1058 --with-java=java-home Path to Java home directory
1059 --with-extra-includes=DIR add extra include paths
1060 --with-extra-libs=DIR add extra library paths
1061 --with-target=cell-be Check BFD support for Cell Broadband Engine SPU profiling
1062 --with-x use the X Window System
1063 --with-qt-dir where the root of Qt is installed
1064 --with-qt-includes where the Qt includes are.
1065 --with-qt-libraries where the Qt library is installed.
1066
1067Some influential environment variables:
1068 CC C compiler command
1069 CFLAGS C compiler flags
1070 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1071 nonstandard directory <lib dir>
1072 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073 headers in a nonstandard directory <include dir>
1074 CPP C preprocessor
1075 CXX C++ compiler command
1076 CXXFLAGS C++ compiler flags
1077 CXXCPP C++ preprocessor
1078 F77 Fortran 77 compiler command
1079 FFLAGS Fortran 77 compiler flags
1080
1081Use these variables to override the choices made by `configure' or to help
1082it to find libraries and programs with nonstandard names/locations.
1083
1084_ACEOF
1085fi
1086
1087if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1089 ac_popdir=`pwd`
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1092 ac_builddir=.
1093
1094if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098else
1099 ac_dir_suffix= ac_top_builddir=
1100fi
1101
1102case $srcdir in
1103 .) # No --srcdir option. We are building in place.
1104 ac_srcdir=.
1105 if test -z "$ac_top_builddir"; then
1106 ac_top_srcdir=.
1107 else
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 fi ;;
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1113 *) # Relative path.
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116esac
1117
1118# Do not use `cd foo && pwd` to compute absolute paths, because
1119# the directories may not exist.
1120case `pwd` in
1121.) ac_abs_builddir="$ac_dir";;
1122*)
1123 case "$ac_dir" in
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127 esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131*)
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_srcdir=$ac_srcdir;;
1140*)
1141 case $ac_srcdir in
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149*)
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 esac;;
1155esac
1156
1157 cd $ac_dir
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1160 echo
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1163 echo
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1167 echo
1168 $ac_configure --help
1169 else
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 fi
1172 cd $ac_popdir
1173 done
1174fi
1175
1176test -n "$ac_init_help" && exit 0
1177if $ac_init_version; then
1178 cat <<\_ACEOF
1179
1180Copyright (C) 2003 Free Software Foundation, Inc.
1181This configure script is free software; the Free Software Foundation
1182gives unlimited permission to copy, distribute and modify it.
1183_ACEOF
1184 exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
1191It was created by $as_me, which was
1192generated by GNU Autoconf 2.59. Invocation command line was
1193
1194 $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
1212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225 IFS=$as_save_IFS
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
1244# Strip out --silent because we don't want to record it for future runs.
1245# Also quote any args containing shell meta-characters.
1246# Make two passes to allow for proper duplicate-argument suppression.
1247ac_configure_args=
1248ac_configure_args0=
1249ac_configure_args1=
1250ac_sep=
1251ac_must_keep_next=false
1252for ac_pass in 1 2
1253do
1254 for ac_arg
1255 do
1256 case $ac_arg in
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 continue ;;
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 esac
1264 case $ac_pass in
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 2)
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
1269 ac_must_keep_next=false # Got value, back to normal.
1270 else
1271 case $ac_arg in
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 esac
1279 ;;
1280 -* ) ac_must_keep_next=true ;;
1281 esac
1282 fi
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1285 ac_sep=" "
1286 ;;
1287 esac
1288 done
1289done
1290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log. We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1300 {
1301 echo
1302
1303 cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308 echo
1309 # The following way of writing the cache mishandles newlines in values,
1310{
1311 (set) 2>&1 |
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 *ac_space=\ *)
1314 sed -n \
1315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 ;;
1318 *)
1319 sed -n \
1320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321 ;;
1322 esac;
1323}
1324 echo
1325
1326 cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331 echo
1332 for ac_var in $ac_subst_vars
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338
1339 if test -n "$ac_subst_files"; then
1340 cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_files
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352 fi
1353
1354 if test -s confdefs.h; then
1355 cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360 echo
1361 sed "/^$/d" confdefs.h | sort
1362 echo
1363 fi
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1367 } >&5
1368 rm -f core *.core &&
1369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 exit $exit_status
1371 ' 0
1372for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 else
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1423 . "$ac_site_file"
1424 fi
1425done
1426
1427if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433 case $cache_file in
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1436 esac
1437 fi
1438else
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441 >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
1448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1454 set,)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,set)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,);;
1463 *)
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
1465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1468echo "$as_me: former value: $ac_old_val" >&2;}
1469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1470echo "$as_me: current value: $ac_new_val" >&2;}
1471 ac_cache_corrupted=:
1472 fi;;
1473 esac
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1476 case $ac_new_val in
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1480 esac
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 esac
1485 fi
1486done
1487if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519am__api_version="1.9"
1520ac_aux_dir=
1521for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522 if test -f $ac_dir/install-sh; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 break
1526 elif test -f $ac_dir/install.sh; then
1527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 break
1530 elif test -f $ac_dir/shtool; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 break
1534 fi
1535done
1536if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539 { (exit 1); exit 1; }; }
1540fi
1541ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545# Find a good install program. We prefer a C program (faster),
1546# so one script is as good as another. But avoid the broken or
1547# incompatible versions:
1548# SysV /etc/install, /usr/sbin/install
1549# SunOS /usr/etc/install
1550# IRIX /sbin/install
1551# AIX /bin/install
1552# AmigaOS /C/install, which installs bootblocks on floppy discs
1553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556# OS/2's system install, which has a completely different semantic
1557# ./install, which can be erroneously created by make from ./install.sh.
1558echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560if test -z "$INSTALL"; then
1561if test "${ac_cv_path_install+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 # Account for people who put trailing slashes in PATH elements.
1570case $as_dir/ in
1571 ./ | .// | /cC/* | \
1572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1574 /usr/ucb/* ) ;;
1575 *)
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1578 # by default.
1579 for ac_prog in ginstall scoinst install; do
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582 if test $ac_prog = install &&
1583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # AIX install. It has an incompatible calling convention.
1585 :
1586 elif test $ac_prog = install &&
1587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588 # program-specific install script used by HP pwplus--don't use.
1589 :
1590 else
1591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1592 break 3
1593 fi
1594 fi
1595 done
1596 done
1597 ;;
1598esac
1599done
1600
1601
1602fi
1603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL=$ac_cv_path_install
1605 else
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL=$ac_install_sh
1611 fi
1612fi
1613echo "$as_me:$LINENO: result: $INSTALL" >&5
1614echo "${ECHO_T}$INSTALL" >&6
1615
1616# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617# It thinks the first close brace ends the variable substitution.
1618test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619
1620test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621
1622test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623
1624echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1626# Just in case
1627sleep 1
1628echo timestamp > conftest.file
1629# Do `set' in a subshell so we don't clobber the current shell's
1630# arguments. Must try -L first in case configure is actually a
1631# symlink; some systems play weird games with the mod time of symlinks
1632# (eg FreeBSD returns the mod time of the symlink's containing
1633# directory).
1634if (
1635 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636 if test "$*" = "X"; then
1637 # -L didn't work.
1638 set X `ls -t $srcdir/configure conftest.file`
1639 fi
1640 rm -f conftest.file
1641 if test "$*" != "X $srcdir/configure conftest.file" \
1642 && test "$*" != "X conftest.file $srcdir/configure"; then
1643
1644 # If neither matched, then we have a broken ls. This can happen
1645 # if, for instance, CONFIG_SHELL is bash and it inherits a
1646 # broken ls alias from the environment. This has actually
1647 # happened. Such a system could not be considered "sane".
1648 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1649alias in your environment" >&5
1650echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1651alias in your environment" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1654
1655 test "$2" = conftest.file
1656 )
1657then
1658 # Ok.
1659 :
1660else
1661 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662Check your system clock" >&5
1663echo "$as_me: error: newly created file is older than distributed files!
1664Check your system clock" >&2;}
1665 { (exit 1); exit 1; }; }
1666fi
1667echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669test "$program_prefix" != NONE &&
1670 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671# Use a double $ so make ignores it.
1672test "$program_suffix" != NONE &&
1673 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674# Double any \ or $. echo might interpret backslashes.
1675# By default was `s,x,x', remove it if useless.
1676cat <<\_ACEOF >conftest.sed
1677s/[\\$]/&&/g;s/;s,x,x,$//
1678_ACEOF
1679program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680rm conftest.sed
1681
1682# expand $ac_aux_dir to an absolute path
1683am_aux_dir=`cd $ac_aux_dir && pwd`
1684
1685test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686# Use eval to expand $SHELL
1687if eval "$MISSING --run true"; then
1688 am_missing_run="$MISSING --run "
1689else
1690 am_missing_run=
1691 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693fi
1694
1695if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696 # We used to keeping the `.' as first argument, in order to
1697 # allow $(mkdir_p) to be used without argument. As in
1698 # $(mkdir_p) $(somedir)
1699 # where $(somedir) is conditionally defined. However this is wrong
1700 # for two reasons:
1701 # 1. if the package is installed by a user who cannot write `.'
1702 # make install will fail,
1703 # 2. the above comment should most certainly read
1704 # $(mkdir_p) $(DESTDIR)$(somedir)
1705 # so it does not work when $(somedir) is undefined and
1706 # $(DESTDIR) is not.
1707 # To support the latter case, we have to write
1708 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709 # so the `.' trick is pointless.
1710 mkdir_p='mkdir -p --'
1711else
1712 # On NextStep and OpenStep, the `mkdir' command does not
1713 # recognize any option. It will interpret all options as
1714 # directories to create, and then abort because `.' already
1715 # exists.
1716 for d in ./-p ./--version;
1717 do
1718 test -d $d && rmdir $d
1719 done
1720 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721 if test -f "$ac_aux_dir/mkinstalldirs"; then
1722 mkdir_p='$(mkinstalldirs)'
1723 else
1724 mkdir_p='$(install_sh) -d'
1725 fi
1726fi
1727
1728for ac_prog in gawk mawk nawk awk
1729do
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731set dummy $ac_prog; ac_word=$2
1732echo "$as_me:$LINENO: checking for $ac_word" >&5
1733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_AWK+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737 if test -n "$AWK"; then
1738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739else
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_AWK="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1750 fi
1751done
1752done
1753
1754fi
1755fi
1756AWK=$ac_cv_prog_AWK
1757if test -n "$AWK"; then
1758 echo "$as_me:$LINENO: result: $AWK" >&5
1759echo "${ECHO_T}$AWK" >&6
1760else
1761 echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
1763fi
1764
1765 test -n "$AWK" && break
1766done
1767
1768echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 cat >conftest.make <<\_ACEOF
1775all:
1776 @echo 'ac_maketemp="$(MAKE)"'
1777_ACEOF
1778# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780if test -n "$ac_maketemp"; then
1781 eval ac_cv_prog_make_${ac_make}_set=yes
1782else
1783 eval ac_cv_prog_make_${ac_make}_set=no
1784fi
1785rm -f conftest.make
1786fi
1787if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788 echo "$as_me:$LINENO: result: yes" >&5
1789echo "${ECHO_T}yes" >&6
1790 SET_MAKE=
1791else
1792 echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794 SET_MAKE="MAKE=${MAKE-make}"
1795fi
1796
1797rm -rf .tst 2>/dev/null
1798mkdir .tst 2>/dev/null
1799if test -d .tst; then
1800 am__leading_dot=.
1801else
1802 am__leading_dot=_
1803fi
1804rmdir .tst 2>/dev/null
1805
1806# test to see if srcdir already configured
1807if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808 test -f $srcdir/config.status; then
1809 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811 { (exit 1); exit 1; }; }
1812fi
1813
1814# test whether we have cygpath
1815if test -z "$CYGPATH_W"; then
1816 if (cygpath --version) >/dev/null 2>/dev/null; then
1817 CYGPATH_W='cygpath -w'
1818 else
1819 CYGPATH_W=echo
1820 fi
1821fi
1822
1823
1824# Define the identity of the package.
1825 PACKAGE=oprofile
1826 VERSION=0.9.6
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE "$PACKAGE"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define VERSION "$VERSION"
1836_ACEOF
1837
1838# Some tools Automake needs.
1839
1840ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1841
1842
1843AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1844
1845
1846AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1847
1848
1849AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1850
1851
1852MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853
1854install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855
1856# Installed binaries are usually stripped using `strip' when the user
1857# run `make install-strip'. However `strip' might not be the right
1858# tool to use in cross-compilation environments, therefore Automake
1859# will honor the `STRIP' environment variable to overrule this program.
1860if test "$cross_compiling" != no; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863set dummy ${ac_tool_prefix}strip; ac_word=$2
1864echo "$as_me:$LINENO: checking for $ac_word" >&5
1865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866if test "${ac_cv_prog_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871else
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883done
1884done
1885
1886fi
1887fi
1888STRIP=$ac_cv_prog_STRIP
1889if test -n "$STRIP"; then
1890 echo "$as_me:$LINENO: result: $STRIP" >&5
1891echo "${ECHO_T}$STRIP" >&6
1892else
1893 echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6
1895fi
1896
1897fi
1898if test -z "$ac_cv_prog_STRIP"; then
1899 ac_ct_STRIP=$STRIP
1900 # Extract the first word of "strip", so it can be a program name with args.
1901set dummy strip; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 if test -n "$ac_ct_STRIP"; then
1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909else
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_STRIP="strip"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921done
1922done
1923
1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925fi
1926fi
1927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928if test -n "$ac_ct_STRIP"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930echo "${ECHO_T}$ac_ct_STRIP" >&6
1931else
1932 echo "$as_me:$LINENO: result: no" >&5
1933echo "${ECHO_T}no" >&6
1934fi
1935
1936 STRIP=$ac_ct_STRIP
1937else
1938 STRIP="$ac_cv_prog_STRIP"
1939fi
1940
1941fi
1942INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943
1944# We need awk for the "check" target. The system "awk" is bad on
1945# some platforms.
1946# Always define AMTAR for backward compatibility.
1947
1948AMTAR=${AMTAR-"${am_missing_run}tar"}
1949
1950am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1951
1952
1953
1954
1955
1956 ac_config_headers="$ac_config_headers config.h"
1957
1958
1959DEPDIR="${am__leading_dot}deps"
1960
1961 ac_config_commands="$ac_config_commands depfiles"
1962
1963
1964am_make=${MAKE-make}
1965cat > confinc << 'END'
1966am__doit:
1967 @echo done
1968.PHONY: am__doit
1969END
1970# If we don't find an include directive, just comment out the code.
1971echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1972echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1973am__include="#"
1974am__quote=
1975_am_result=none
1976# First try GNU make style include.
1977echo "include confinc" > confmf
1978# We grep out `Entering directory' and `Leaving directory'
1979# messages which can occur if `w' ends up in MAKEFLAGS.
1980# In particular we don't look at `^make:' because GNU make might
1981# be invoked under some other name (usually "gmake"), in which
1982# case it prints its new name instead of `make'.
1983if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1984 am__include=include
1985 am__quote=
1986 _am_result=GNU
1987fi
1988# Now try BSD make style include.
1989if test "$am__include" = "#"; then
1990 echo '.include "confinc"' > confmf
1991 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1992 am__include=.include
1993 am__quote="\""
1994 _am_result=BSD
1995 fi
1996fi
1997
1998
1999echo "$as_me:$LINENO: result: $_am_result" >&5
2000echo "${ECHO_T}$_am_result" >&6
2001rm -f confinc confmf
2002
2003# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2004if test "${enable_dependency_tracking+set}" = set; then
2005 enableval="$enable_dependency_tracking"
2006
2007fi;
2008if test "x$enable_dependency_tracking" != xno; then
2009 am_depcomp="$ac_aux_dir/depcomp"
2010 AMDEPBACKSLASH='\'
2011fi
2012
2013
2014if test "x$enable_dependency_tracking" != xno; then
2015 AMDEP_TRUE=
2016 AMDEP_FALSE='#'
2017else
2018 AMDEP_TRUE='#'
2019 AMDEP_FALSE=
2020fi
2021
2022
2023
2024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}gcc; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061 echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065fi
2066if test -z "$ac_cv_prog_CC"; then
2067 ac_ct_CC=$CC
2068 # Extract the first word of "gcc", so it can be a program name with args.
2069set dummy gcc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
2090done
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
2098else
2099 echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103 CC=$ac_ct_CC
2104else
2105 CC="$ac_cv_prog_CC"
2106fi
2107
2108if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111set dummy ${ac_tool_prefix}cc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_CC="${ac_tool_prefix}cc"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131done
2132done
2133
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6
2140else
2141 echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6
2143fi
2144
2145fi
2146if test -z "$ac_cv_prog_CC"; then
2147 ac_ct_CC=$CC
2148 # Extract the first word of "cc", so it can be a program name with args.
2149set dummy cc; ac_word=$2
2150echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155 if test -n "$ac_ct_CC"; then
2156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157else
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165 ac_cv_prog_ac_ct_CC="cc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2168 fi
2169done
2170done
2171
2172fi
2173fi
2174ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175if test -n "$ac_ct_CC"; then
2176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177echo "${ECHO_T}$ac_ct_CC" >&6
2178else
2179 echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6
2181fi
2182
2183 CC=$ac_ct_CC
2184else
2185 CC="$ac_cv_prog_CC"
2186fi
2187
2188fi
2189if test -z "$CC"; then
2190 # Extract the first word of "cc", so it can be a program name with args.
2191set dummy cc; ac_word=$2
2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_prog_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
2200 ac_prog_rejected=no
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2209 ac_prog_rejected=yes
2210 continue
2211 fi
2212 ac_cv_prog_CC="cc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2215 fi
2216done
2217done
2218
2219if test $ac_prog_rejected = yes; then
2220 # We found a bogon in the path, so make sure we never use it.
2221 set dummy $ac_cv_prog_CC
2222 shift
2223 if test $# != 0; then
2224 # We chose a different compiler from the bogus one.
2225 # However, it has the same basename, so the bogon will be chosen
2226 # first if we set CC to just the basename; use the full file name.
2227 shift
2228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2229 fi
2230fi
2231fi
2232fi
2233CC=$ac_cv_prog_CC
2234if test -n "$CC"; then
2235 echo "$as_me:$LINENO: result: $CC" >&5
2236echo "${ECHO_T}$CC" >&6
2237else
2238 echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6
2240fi
2241
2242fi
2243if test -z "$CC"; then
2244 if test -n "$ac_tool_prefix"; then
2245 for ac_prog in cl
2246 do
2247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249echo "$as_me:$LINENO: checking for $ac_word" >&5
2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251if test "${ac_cv_prog_CC+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 if test -n "$CC"; then
2255 ac_cv_prog_CC="$CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268done
2269done
2270
2271fi
2272fi
2273CC=$ac_cv_prog_CC
2274if test -n "$CC"; then
2275 echo "$as_me:$LINENO: result: $CC" >&5
2276echo "${ECHO_T}$CC" >&6
2277else
2278 echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282 test -n "$CC" && break
2283 done
2284fi
2285if test -z "$CC"; then
2286 ac_ct_CC=$CC
2287 for ac_prog in cl
2288do
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290set dummy $ac_prog; ac_word=$2
2291echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296 if test -n "$ac_ct_CC"; then
2297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_ac_ct_CC="$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310done
2311done
2312
2313fi
2314fi
2315ac_ct_CC=$ac_cv_prog_ac_ct_CC
2316if test -n "$ac_ct_CC"; then
2317 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2318echo "${ECHO_T}$ac_ct_CC" >&6
2319else
2320 echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6
2322fi
2323
2324 test -n "$ac_ct_CC" && break
2325done
2326
2327 CC=$ac_ct_CC
2328fi
2329
2330fi
2331
2332
2333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338
2339# Provide some information about the compiler.
2340echo "$as_me:$LINENO:" \
2341 "checking for C compiler version" >&5
2342ac_compiler=`set X $ac_compile; echo $2`
2343{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2344 (eval $ac_compiler --version </dev/null >&5) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2349 (eval $ac_compiler -v </dev/null >&5) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2354 (eval $ac_compiler -V </dev/null >&5) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358
2359cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h. */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h. */
2365
2366int
2367main ()
2368{
2369
2370 ;
2371 return 0;
2372}
2373_ACEOF
2374ac_clean_files_save=$ac_clean_files
2375ac_clean_files="$ac_clean_files a.out a.exe b.out"
2376# Try to create an executable without -o first, disregard a.out.
2377# It will help us diagnose broken compilers, and finding out an intuition
2378# of exeext.
2379echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2380echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2381ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2382if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2383 (eval $ac_link_default) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
2387 # Find the output, starting from the most likely. This scheme is
2388# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2389# resort.
2390
2391# Be careful to initialize this variable, since it used to be cached.
2392# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2393ac_cv_exeext=
2394# b.out is created by i960 compilers.
2395for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2396do
2397 test -f "$ac_file" || continue
2398 case $ac_file in
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2400 ;;
2401 conftest.$ac_ext )
2402 # This is the source file.
2403 ;;
2404 [ab].out )
2405 # We found the default executable, but exeext='' is most
2406 # certainly right.
2407 break;;
2408 *.* )
2409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 # FIXME: I believe we export ac_cv_exeext for Libtool,
2411 # but it would be cool to find out if it's true. Does anybody
2412 # maintain Libtool? --akim.
2413 export ac_cv_exeext
2414 break;;
2415 * )
2416 break;;
2417 esac
2418done
2419else
2420 echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: C compiler cannot create executables
2426See \`config.log' for more details." >&2;}
2427 { (exit 77); exit 77; }; }
2428fi
2429
2430ac_exeext=$ac_cv_exeext
2431echo "$as_me:$LINENO: result: $ac_file" >&5
2432echo "${ECHO_T}$ac_file" >&6
2433
2434# Check the compiler produces executables we can run. If not, either
2435# the compiler is broken, or we cross compile.
2436echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2437echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2438# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2439# If not cross compiling, check that we can run a simple program.
2440if test "$cross_compiling" != yes; then
2441 if { ac_try='./$ac_file'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 cross_compiling=no
2448 else
2449 if test "$cross_compiling" = maybe; then
2450 cross_compiling=yes
2451 else
2452 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2453If you meant to cross compile, use \`--host'.
2454See \`config.log' for more details." >&5
2455echo "$as_me: error: cannot run C compiled programs.
2456If you meant to cross compile, use \`--host'.
2457See \`config.log' for more details." >&2;}
2458 { (exit 1); exit 1; }; }
2459 fi
2460 fi
2461fi
2462echo "$as_me:$LINENO: result: yes" >&5
2463echo "${ECHO_T}yes" >&6
2464
2465rm -f a.out a.exe conftest$ac_cv_exeext b.out
2466ac_clean_files=$ac_clean_files_save
2467# Check the compiler produces executables we can run. If not, either
2468# the compiler is broken, or we cross compile.
2469echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2470echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2471echo "$as_me:$LINENO: result: $cross_compiling" >&5
2472echo "${ECHO_T}$cross_compiling" >&6
2473
2474echo "$as_me:$LINENO: checking for suffix of executables" >&5
2475echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477 (eval $ac_link) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2482# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2483# work properly (i.e., refer to `conftest.exe'), while it won't with
2484# `rm'.
2485for ac_file in conftest.exe conftest conftest.*; do
2486 test -f "$ac_file" || continue
2487 case $ac_file in
2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2490 export ac_cv_exeext
2491 break;;
2492 * ) break;;
2493 esac
2494done
2495else
2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2497See \`config.log' for more details." >&5
2498echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2499See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2501fi
2502
2503rm -f conftest$ac_cv_exeext
2504echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505echo "${ECHO_T}$ac_cv_exeext" >&6
2506
2507rm -f conftest.$ac_ext
2508EXEEXT=$ac_cv_exeext
2509ac_exeext=$EXEEXT
2510echo "$as_me:$LINENO: checking for suffix of object files" >&5
2511echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2512if test "${ac_cv_objext+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515 cat >conftest.$ac_ext <<_ACEOF
2516/* confdefs.h. */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h. */
2521
2522int
2523main ()
2524{
2525
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530rm -f conftest.o conftest.obj
2531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2537 case $ac_file in
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2540 break;;
2541 esac
2542done
2543else
2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: cannot compute suffix of object files: cannot compile
2550See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2552fi
2553
2554rm -f conftest.$ac_cv_objext conftest.$ac_ext
2555fi
2556echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2557echo "${ECHO_T}$ac_cv_objext" >&6
2558OBJEXT=$ac_cv_objext
2559ac_objext=$OBJEXT
2560echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2561echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2562if test "${ac_cv_c_compiler_gnu+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h. */
2571
2572int
2573main ()
2574{
2575#ifndef __GNUC__
2576 choke me
2577#endif
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583rm -f conftest.$ac_objext
2584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_c_werror_flag"
2593 || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 ac_compiler_gnu=yes
2606else
2607 echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610ac_compiler_gnu=no
2611fi
2612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613ac_cv_c_compiler_gnu=$ac_compiler_gnu
2614
2615fi
2616echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2617echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2618GCC=`test $ac_compiler_gnu = yes && echo yes`
2619ac_test_CFLAGS=${CFLAGS+set}
2620ac_save_CFLAGS=$CFLAGS
2621CFLAGS="-g"
2622echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2623echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2624if test "${ac_cv_prog_cc_g+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
2633
2634int
2635main ()
2636{
2637
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag"
2652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 ac_cv_prog_cc_g=yes
2665else
2666 echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669ac_cv_prog_cc_g=no
2670fi
2671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672fi
2673echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2674echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2675if test "$ac_test_CFLAGS" = set; then
2676 CFLAGS=$ac_save_CFLAGS
2677elif test $ac_cv_prog_cc_g = yes; then
2678 if test "$GCC" = yes; then
2679 CFLAGS="-g -O2"
2680 else
2681 CFLAGS="-g"
2682 fi
2683else
2684 if test "$GCC" = yes; then
2685 CFLAGS="-O2"
2686 else
2687 CFLAGS=
2688 fi
2689fi
2690echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2691echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2692if test "${ac_cv_prog_cc_stdc+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695 ac_cv_prog_cc_stdc=no
2696ac_save_CC=$CC
2697cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
2703#include <stdarg.h>
2704#include <stdio.h>
2705#include <sys/types.h>
2706#include <sys/stat.h>
2707/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2708struct buf { int x; };
2709FILE * (*rcsopen) (struct buf *, struct stat *, int);
2710static char *e (p, i)
2711 char **p;
2712 int i;
2713{
2714 return p[i];
2715}
2716static char *f (char * (*g) (char **, int), char **p, ...)
2717{
2718 char *s;
2719 va_list v;
2720 va_start (v,p);
2721 s = g (p, va_arg (v,int));
2722 va_end (v);
2723 return s;
2724}
2725
2726/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2727 function prototypes and stuff, but not '\xHH' hex character constants.
2728 These don't provoke an error unfortunately, instead are silently treated
2729 as 'x'. The following induces an error, until -std1 is added to get
2730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2731 array size at least. It's necessary to write '\x00'==0 to get something
2732 that's true only with -std1. */
2733int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2734
2735int test (int i, double x);
2736struct s1 {int (*f) (int a);};
2737struct s2 {int (*f) (double a);};
2738int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2739int argc;
2740char **argv;
2741int
2742main ()
2743{
2744return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2745 ;
2746 return 0;
2747}
2748_ACEOF
2749# Don't try gcc -ansi; that turns off useful extensions and
2750# breaks some systems' header files.
2751# AIX -qlanglvl=ansi
2752# Ultrix and OSF/1 -std1
2753# HP-UX 10.20 and later -Ae
2754# HP-UX older versions -Aa -D_HPUX_SOURCE
2755# SVR4 -Xc -D__EXTENSIONS__
2756for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2757do
2758 CC="$ac_save_CC $ac_arg"
2759 rm -f conftest.$ac_objext
2760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_prog_cc_stdc=$ac_arg
2782break
2783else
2784 echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787fi
2788rm -f conftest.err conftest.$ac_objext
2789done
2790rm -f conftest.$ac_ext conftest.$ac_objext
2791CC=$ac_save_CC
2792
2793fi
2794
2795case "x$ac_cv_prog_cc_stdc" in
2796 x|xno)
2797 echo "$as_me:$LINENO: result: none needed" >&5
2798echo "${ECHO_T}none needed" >&6 ;;
2799 *)
2800 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2801echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2802 CC="$CC $ac_cv_prog_cc_stdc" ;;
2803esac
2804
2805# Some people use a C++ compiler to compile C. Since we use `exit',
2806# in C++ we need to declare it. In case someone uses the same compiler
2807# for both compiling C and C++ we need to have the C++ compiler decide
2808# the declaration of exit, since it's the most demanding environment.
2809cat >conftest.$ac_ext <<_ACEOF
2810#ifndef __cplusplus
2811 choke me
2812#endif
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 for ac_declaration in \
2837 '' \
2838 'extern "C" void std::exit (int) throw (); using std::exit;' \
2839 'extern "C" void std::exit (int); using std::exit;' \
2840 'extern "C" void exit (int) throw ();' \
2841 'extern "C" void exit (int);' \
2842 'void exit (int);'
2843do
2844 cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
2850$ac_declaration
2851#include <stdlib.h>
2852int
2853main ()
2854{
2855exit (42);
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 :
2883else
2884 echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887continue
2888fi
2889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
2896$ac_declaration
2897int
2898main ()
2899{
2900exit (42);
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext
2906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_c_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 break
2928else
2929 echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932fi
2933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934done
2935rm -f conftest*
2936if test -n "$ac_declaration"; then
2937 echo '#ifdef __cplusplus' >>confdefs.h
2938 echo $ac_declaration >>confdefs.h
2939 echo '#endif' >>confdefs.h
2940fi
2941
2942else
2943 echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946fi
2947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953
2954depcc="$CC" am_compiler_list=
2955
2956echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2957echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2958if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960else
2961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2962 # We make a subdir and do the tests there. Otherwise we can end up
2963 # making bogus files that we don't know about and never remove. For
2964 # instance it was reported that on HP-UX the gcc test will end up
2965 # making a dummy file named `D' -- because `-MD' means `put the output
2966 # in D'.
2967 mkdir conftest.dir
2968 # Copy depcomp to subdir because otherwise we won't find it if we're
2969 # using a relative directory.
2970 cp "$am_depcomp" conftest.dir
2971 cd conftest.dir
2972 # We will build objects and dependencies in a subdirectory because
2973 # it helps to detect inapplicable dependency modes. For instance
2974 # both Tru64's cc and ICC support -MD to output dependencies as a
2975 # side effect of compilation, but ICC will put the dependencies in
2976 # the current directory while Tru64 will put them in the object
2977 # directory.
2978 mkdir sub
2979
2980 am_cv_CC_dependencies_compiler_type=none
2981 if test "$am_compiler_list" = ""; then
2982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2983 fi
2984 for depmode in $am_compiler_list; do
2985 # Setup a source with many dependencies, because some compilers
2986 # like to wrap large dependency lists on column 80 (with \), and
2987 # we should not choose a depcomp mode which is confused by this.
2988 #
2989 # We need to recreate these files for each test, as the compiler may
2990 # overwrite some of them when testing with obscure command lines.
2991 # This happens at least with the AIX C compiler.
2992 : > sub/conftest.c
2993 for i in 1 2 3 4 5 6; do
2994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2996 # Solaris 8's {/usr,}/bin/sh.
2997 touch sub/conftst$i.h
2998 done
2999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3000
3001 case $depmode in
3002 nosideeffect)
3003 # after this tag, mechanisms are not by side-effect, so they'll
3004 # only be used when explicitly requested
3005 if test "x$enable_dependency_tracking" = xyes; then
3006 continue
3007 else
3008 break
3009 fi
3010 ;;
3011 none) break ;;
3012 esac
3013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3014 # mode. It turns out that the SunPro C++ compiler does not properly
3015 # handle `-M -o', and we need to detect this.
3016 if depmode=$depmode \
3017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3020 >/dev/null 2>conftest.err &&
3021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3024 # icc doesn't choke on unknown options, it will just issue warnings
3025 # or remarks (even with -Werror). So we grep stderr for any message
3026 # that says an option was ignored or not supported.
3027 # When given -MP, icc 7.0 and 7.1 complain thusly:
3028 # icc: Command line warning: ignoring option '-M'; no argument required
3029 # The diagnosis changed in icc 8.0:
3030 # icc: Command line remark: option '-MP' not supported
3031 if (grep 'ignoring option' conftest.err ||
3032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3033 am_cv_CC_dependencies_compiler_type=$depmode
3034 break
3035 fi
3036 fi
3037 done
3038
3039 cd ..
3040 rm -rf conftest.dir
3041else
3042 am_cv_CC_dependencies_compiler_type=none
3043fi
3044
3045fi
3046echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3047echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3048CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3049
3050
3051
3052if
3053 test "x$enable_dependency_tracking" != xno \
3054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3055 am__fastdepCC_TRUE=
3056 am__fastdepCC_FALSE='#'
3057else
3058 am__fastdepCC_TRUE='#'
3059 am__fastdepCC_FALSE=
3060fi
3061
3062
3063
3064echo "$as_me:$LINENO: checking whether basename is declared" >&5
3065echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
3066if test "${ac_cv_have_decl_basename+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 cat >conftest.$ac_ext <<_ACEOF
3070/* confdefs.h. */
3071_ACEOF
3072cat confdefs.h >>conftest.$ac_ext
3073cat >>conftest.$ac_ext <<_ACEOF
3074/* end confdefs.h. */
3075#include <libgen.h>
3076
3077int
3078main ()
3079{
3080#ifndef basename
3081 char *p = (char *) basename;
3082#endif
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_cv_have_decl_basename=yes
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_cv_have_decl_basename=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
3120echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
3121if test $ac_cv_have_decl_basename = yes; then
3122
3123cat >>confdefs.h <<_ACEOF
3124#define HAVE_DECL_BASENAME 1
3125_ACEOF
3126
3127
3128else
3129 cat >>confdefs.h <<_ACEOF
3130#define HAVE_DECL_BASENAME 0
3131_ACEOF
3132
3133
3134fi
3135
3136
3137if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3140echo "$as_me:$LINENO: checking for $ac_word" >&5
3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142if test "${ac_cv_prog_RANLIB+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145 if test -n "$RANLIB"; then
3146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160done
3161
3162fi
3163fi
3164RANLIB=$ac_cv_prog_RANLIB
3165if test -n "$RANLIB"; then
3166 echo "$as_me:$LINENO: result: $RANLIB" >&5
3167echo "${ECHO_T}$RANLIB" >&6
3168else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171fi
3172
3173fi
3174if test -z "$ac_cv_prog_RANLIB"; then
3175 ac_ct_RANLIB=$RANLIB
3176 # Extract the first word of "ranlib", so it can be a program name with args.
3177set dummy ranlib; ac_word=$2
3178echo "$as_me:$LINENO: checking for $ac_word" >&5
3179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3180if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 if test -n "$ac_ct_RANLIB"; then
3184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3185else
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_RANLIB="ranlib"
3194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197done
3198done
3199
3200 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3201fi
3202fi
3203ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3204if test -n "$ac_ct_RANLIB"; then
3205 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3206echo "${ECHO_T}$ac_ct_RANLIB" >&6
3207else
3208 echo "$as_me:$LINENO: result: no" >&5
3209echo "${ECHO_T}no" >&6
3210fi
3211
3212 RANLIB=$ac_ct_RANLIB
3213else
3214 RANLIB="$ac_cv_prog_RANLIB"
3215fi
3216
3217# Check whether --enable-shared or --disable-shared was given.
3218if test "${enable_shared+set}" = set; then
3219 enableval="$enable_shared"
3220 p=${PACKAGE-default}
3221 case $enableval in
3222 yes) enable_shared=yes ;;
3223 no) enable_shared=no ;;
3224 *)
3225 enable_shared=no
3226 # Look at the argument we got. We use all the common list separators.
3227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3228 for pkg in $enableval; do
3229 IFS="$lt_save_ifs"
3230 if test "X$pkg" = "X$p"; then
3231 enable_shared=yes
3232 fi
3233 done
3234 IFS="$lt_save_ifs"
3235 ;;
3236 esac
3237else
3238 enable_shared=yes
3239fi;
3240
3241# Check whether --enable-static or --disable-static was given.
3242if test "${enable_static+set}" = set; then
3243 enableval="$enable_static"
3244 p=${PACKAGE-default}
3245 case $enableval in
3246 yes) enable_static=yes ;;
3247 no) enable_static=no ;;
3248 *)
3249 enable_static=no
3250 # Look at the argument we got. We use all the common list separators.
3251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3252 for pkg in $enableval; do
3253 IFS="$lt_save_ifs"
3254 if test "X$pkg" = "X$p"; then
3255 enable_static=yes
3256 fi
3257 done
3258 IFS="$lt_save_ifs"
3259 ;;
3260 esac
3261else
3262 enable_static=yes
3263fi;
3264
3265# Check whether --enable-fast-install or --disable-fast-install was given.
3266if test "${enable_fast_install+set}" = set; then
3267 enableval="$enable_fast_install"
3268 p=${PACKAGE-default}
3269 case $enableval in
3270 yes) enable_fast_install=yes ;;
3271 no) enable_fast_install=no ;;
3272 *)
3273 enable_fast_install=no
3274 # Look at the argument we got. We use all the common list separators.
3275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3276 for pkg in $enableval; do
3277 IFS="$lt_save_ifs"
3278 if test "X$pkg" = "X$p"; then
3279 enable_fast_install=yes
3280 fi
3281 done
3282 IFS="$lt_save_ifs"
3283 ;;
3284 esac
3285else
3286 enable_fast_install=yes
3287fi;
3288
3289# Make sure we can run config.sub.
3290$ac_config_sub sun4 >/dev/null 2>&1 ||
3291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3292echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3293 { (exit 1); exit 1; }; }
3294
3295echo "$as_me:$LINENO: checking build system type" >&5
3296echo $ECHO_N "checking build system type... $ECHO_C" >&6
3297if test "${ac_cv_build+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300 ac_cv_build_alias=$build_alias
3301test -z "$ac_cv_build_alias" &&
3302 ac_cv_build_alias=`$ac_config_guess`
3303test -z "$ac_cv_build_alias" &&
3304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3305echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3306 { (exit 1); exit 1; }; }
3307ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3309echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3310 { (exit 1); exit 1; }; }
3311
3312fi
3313echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3314echo "${ECHO_T}$ac_cv_build" >&6
3315build=$ac_cv_build
3316build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3317build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3318build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3319
3320
3321echo "$as_me:$LINENO: checking host system type" >&5
3322echo $ECHO_N "checking host system type... $ECHO_C" >&6
3323if test "${ac_cv_host+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326 ac_cv_host_alias=$host_alias
3327test -z "$ac_cv_host_alias" &&
3328 ac_cv_host_alias=$ac_cv_build_alias
3329ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3331echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3332 { (exit 1); exit 1; }; }
3333
3334fi
3335echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3336echo "${ECHO_T}$ac_cv_host" >&6
3337host=$ac_cv_host
3338host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3339host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3340host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3341
3342
3343echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3344echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3345if test "${lt_cv_path_SED+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348 # Loop through the user's path and test for sed and gsed.
3349# Then use that list of sed's as ones to test for truncation.
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for lt_ac_prog in sed gsed; do
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3358 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3359 fi
3360 done
3361 done
3362done
3363lt_ac_max=0
3364lt_ac_count=0
3365# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3366# along with /bin/sed that truncates output.
3367for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3368 test ! -f $lt_ac_sed && continue
3369 cat /dev/null > conftest.in
3370 lt_ac_count=0
3371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3372 # Check for GNU sed and select it if it is found.
3373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3374 lt_cv_path_SED=$lt_ac_sed
3375 break
3376 fi
3377 while true; do
3378 cat conftest.in conftest.in >conftest.tmp
3379 mv conftest.tmp conftest.in
3380 cp conftest.in conftest.nl
3381 echo >>conftest.nl
3382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3383 cmp -s conftest.out conftest.nl || break
3384 # 10000 chars as input seems more than enough
3385 test $lt_ac_count -gt 10 && break
3386 lt_ac_count=`expr $lt_ac_count + 1`
3387 if test $lt_ac_count -gt $lt_ac_max; then
3388 lt_ac_max=$lt_ac_count
3389 lt_cv_path_SED=$lt_ac_sed
3390 fi
3391 done
3392done
3393
3394fi
3395
3396SED=$lt_cv_path_SED
3397echo "$as_me:$LINENO: result: $SED" >&5
3398echo "${ECHO_T}$SED" >&6
3399
3400echo "$as_me:$LINENO: checking for egrep" >&5
3401echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3402if test "${ac_cv_prog_egrep+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3406 then ac_cv_prog_egrep='grep -E'
3407 else ac_cv_prog_egrep='egrep'
3408 fi
3409fi
3410echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3411echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3412 EGREP=$ac_cv_prog_egrep
3413
3414
3415
3416# Check whether --with-gnu-ld or --without-gnu-ld was given.
3417if test "${with_gnu_ld+set}" = set; then
3418 withval="$with_gnu_ld"
3419 test "$withval" = no || with_gnu_ld=yes
3420else
3421 with_gnu_ld=no
3422fi;
3423ac_prog=ld
3424if test "$GCC" = yes; then
3425 # Check if gcc -print-prog-name=ld gives a path.
3426 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3427echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3428 case $host in
3429 *-*-mingw*)
3430 # gcc leaves a trailing carriage return which upsets mingw
3431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3432 *)
3433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3434 esac
3435 case $ac_prog in
3436 # Accept absolute paths.
3437 [\\/]* | ?:[\\/]*)
3438 re_direlt='/[^/][^/]*/\.\./'
3439 # Canonicalize the pathname of ld
3440 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3441 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3442 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3443 done
3444 test -z "$LD" && LD="$ac_prog"
3445 ;;
3446 "")
3447 # If it fails, then pretend we aren't using GCC.
3448 ac_prog=ld
3449 ;;
3450 *)
3451 # If it is relative, then search for the first ld in PATH.
3452 with_gnu_ld=unknown
3453 ;;
3454 esac
3455elif test "$with_gnu_ld" = yes; then
3456 echo "$as_me:$LINENO: checking for GNU ld" >&5
3457echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3458else
3459 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3460echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3461fi
3462if test "${lt_cv_path_LD+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 if test -z "$LD"; then
3466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3467 for ac_dir in $PATH; do
3468 IFS="$lt_save_ifs"
3469 test -z "$ac_dir" && ac_dir=.
3470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3471 lt_cv_path_LD="$ac_dir/$ac_prog"
3472 # Check to see if the program is GNU ld. I'd rather use --version,
3473 # but apparently some variants of GNU ld only accept -v.
3474 # Break only if it was the GNU/non-GNU ld that we prefer.
3475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3476 *GNU* | *'with BFD'*)
3477 test "$with_gnu_ld" != no && break
3478 ;;
3479 *)
3480 test "$with_gnu_ld" != yes && break
3481 ;;
3482 esac
3483 fi
3484 done
3485 IFS="$lt_save_ifs"
3486else
3487 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3488fi
3489fi
3490
3491LD="$lt_cv_path_LD"
3492if test -n "$LD"; then
3493 echo "$as_me:$LINENO: result: $LD" >&5
3494echo "${ECHO_T}$LD" >&6
3495else
3496 echo "$as_me:$LINENO: result: no" >&5
3497echo "${ECHO_T}no" >&6
3498fi
3499test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3500echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3501 { (exit 1); exit 1; }; }
3502echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3503echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3504if test "${lt_cv_prog_gnu_ld+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3508case `$LD -v 2>&1 </dev/null` in
3509*GNU* | *'with BFD'*)
3510 lt_cv_prog_gnu_ld=yes
3511 ;;
3512*)
3513 lt_cv_prog_gnu_ld=no
3514 ;;
3515esac
3516fi
3517echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3518echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3519with_gnu_ld=$lt_cv_prog_gnu_ld
3520
3521
3522echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3523echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3524if test "${lt_cv_ld_reload_flag+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 lt_cv_ld_reload_flag='-r'
3528fi
3529echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3530echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3531reload_flag=$lt_cv_ld_reload_flag
3532case $reload_flag in
3533"" | " "*) ;;
3534*) reload_flag=" $reload_flag" ;;
3535esac
3536reload_cmds='$LD$reload_flag -o $output$reload_objs'
3537case $host_os in
3538 darwin*)
3539 if test "$GCC" = yes; then
3540 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3541 else
3542 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3543 fi
3544 ;;
3545esac
3546
3547echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3548echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3549if test "${lt_cv_path_NM+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 if test -n "$NM"; then
3553 # Let the user override the test.
3554 lt_cv_path_NM="$NM"
3555else
3556 lt_nm_to_check="${ac_tool_prefix}nm"
3557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3558 lt_nm_to_check="$lt_nm_to_check nm"
3559 fi
3560 for lt_tmp_nm in $lt_nm_to_check; do
3561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3563 IFS="$lt_save_ifs"
3564 test -z "$ac_dir" && ac_dir=.
3565 tmp_nm="$ac_dir/$lt_tmp_nm"
3566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3567 # Check to see if the nm accepts a BSD-compat flag.
3568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3569 # nm: unknown option "B" ignored
3570 # Tru64's nm complains that /dev/null is an invalid object file
3571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3572 */dev/null* | *'Invalid file or object type'*)
3573 lt_cv_path_NM="$tmp_nm -B"
3574 break
3575 ;;
3576 *)
3577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3578 */dev/null*)
3579 lt_cv_path_NM="$tmp_nm -p"
3580 break
3581 ;;
3582 *)
3583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3584 continue # so that we can try to find one that supports BSD flags
3585 ;;
3586 esac
3587 ;;
3588 esac
3589 fi
3590 done
3591 IFS="$lt_save_ifs"
3592 done
3593 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3594fi
3595fi
3596echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3597echo "${ECHO_T}$lt_cv_path_NM" >&6
3598NM="$lt_cv_path_NM"
3599
3600echo "$as_me:$LINENO: checking whether ln -s works" >&5
3601echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3602LN_S=$as_ln_s
3603if test "$LN_S" = "ln -s"; then
3604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
3606else
3607 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3608echo "${ECHO_T}no, using $LN_S" >&6
3609fi
3610
3611echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3612echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3613if test "${lt_cv_deplibs_check_method+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 lt_cv_file_magic_cmd='$MAGIC_CMD'
3617lt_cv_file_magic_test_file=
3618lt_cv_deplibs_check_method='unknown'
3619# Need to set the preceding variable on all platforms that support
3620# interlibrary dependencies.
3621# 'none' -- dependencies not supported.
3622# `unknown' -- same as none, but documents that we really don't know.
3623# 'pass_all' -- all dependencies passed with no checks.
3624# 'test_compile' -- check by making test program.
3625# 'file_magic [[regex]]' -- check by looking for files in library path
3626# which responds to the $file_magic_cmd with a given extended regex.
3627# If you have `file' or equivalent on your system and you're not sure
3628# whether `pass_all' will *always* work, you probably want this one.
3629
3630case $host_os in
3631aix4* | aix5*)
3632 lt_cv_deplibs_check_method=pass_all
3633 ;;
3634
3635beos*)
3636 lt_cv_deplibs_check_method=pass_all
3637 ;;
3638
3639bsdi[45]*)
3640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3641 lt_cv_file_magic_cmd='/usr/bin/file -L'
3642 lt_cv_file_magic_test_file=/shlib/libc.so
3643 ;;
3644
3645cygwin*)
3646 # func_win32_libid is a shell function defined in ltmain.sh
3647 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3648 lt_cv_file_magic_cmd='func_win32_libid'
3649 ;;
3650
3651mingw* | pw32*)
3652 # Base MSYS/MinGW do not provide the 'file' command needed by
3653 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3654 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3655 lt_cv_file_magic_cmd='$OBJDUMP -f'
3656 ;;
3657
3658darwin* | rhapsody*)
3659 lt_cv_deplibs_check_method=pass_all
3660 ;;
3661
3662freebsd* | kfreebsd*-gnu | dragonfly*)
3663 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3664 case $host_cpu in
3665 i*86 )
3666 # Not sure whether the presence of OpenBSD here was a mistake.
3667 # Let's accept both of them until this is cleared up.
3668 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3669 lt_cv_file_magic_cmd=/usr/bin/file
3670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3671 ;;
3672 esac
3673 else
3674 lt_cv_deplibs_check_method=pass_all
3675 fi
3676 ;;
3677
3678gnu*)
3679 lt_cv_deplibs_check_method=pass_all
3680 ;;
3681
3682hpux10.20* | hpux11*)
3683 lt_cv_file_magic_cmd=/usr/bin/file
3684 case $host_cpu in
3685 ia64*)
3686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3687 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3688 ;;
3689 hppa*64*)
3690 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]'
3691 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3692 ;;
3693 *)
3694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3695 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3696 ;;
3697 esac
3698 ;;
3699
3700interix3*)
3701 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3703 ;;
3704
3705irix5* | irix6* | nonstopux*)
3706 case $LD in
3707 *-32|*"-32 ") libmagic=32-bit;;
3708 *-n32|*"-n32 ") libmagic=N32;;
3709 *-64|*"-64 ") libmagic=64-bit;;
3710 *) libmagic=never-match;;
3711 esac
3712 lt_cv_deplibs_check_method=pass_all
3713 ;;
3714
3715# This must be Linux ELF.
3716linux*)
3717 lt_cv_deplibs_check_method=pass_all
3718 ;;
3719
3720netbsd*)
3721 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3723 else
3724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3725 fi
3726 ;;
3727
3728newos6*)
3729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3730 lt_cv_file_magic_cmd=/usr/bin/file
3731 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3732 ;;
3733
3734nto-qnx*)
3735 lt_cv_deplibs_check_method=unknown
3736 ;;
3737
3738openbsd*)
3739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3741 else
3742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3743 fi
3744 ;;
3745
3746osf3* | osf4* | osf5*)
3747 lt_cv_deplibs_check_method=pass_all
3748 ;;
3749
3750solaris*)
3751 lt_cv_deplibs_check_method=pass_all
3752 ;;
3753
3754sysv4 | sysv4.3*)
3755 case $host_vendor in
3756 motorola)
3757 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]'
3758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3759 ;;
3760 ncr)
3761 lt_cv_deplibs_check_method=pass_all
3762 ;;
3763 sequent)
3764 lt_cv_file_magic_cmd='/bin/file'
3765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3766 ;;
3767 sni)
3768 lt_cv_file_magic_cmd='/bin/file'
3769 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3770 lt_cv_file_magic_test_file=/lib/libc.so
3771 ;;
3772 siemens)
3773 lt_cv_deplibs_check_method=pass_all
3774 ;;
3775 pc)
3776 lt_cv_deplibs_check_method=pass_all
3777 ;;
3778 esac
3779 ;;
3780
3781sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3782 lt_cv_deplibs_check_method=pass_all
3783 ;;
3784esac
3785
3786fi
3787echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3788echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3789file_magic_cmd=$lt_cv_file_magic_cmd
3790deplibs_check_method=$lt_cv_deplibs_check_method
3791test -z "$deplibs_check_method" && deplibs_check_method=unknown
3792
3793
3794
3795
3796# If no C compiler was specified, use CC.
3797LTCC=${LTCC-"$CC"}
3798
3799# If no C compiler flags were specified, use CFLAGS.
3800LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3801
3802# Allow CC to be a program name with arguments.
3803compiler=$CC
3804
3805# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3806if test "${enable_libtool_lock+set}" = set; then
3807 enableval="$enable_libtool_lock"
3808
3809fi;
3810test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3811
3812# Some flags need to be propagated to the compiler or linker for good
3813# libtool support.
3814case $host in
3815ia64-*-hpux*)
3816 # Find out which ABI we are using.
3817 echo 'int i;' > conftest.$ac_ext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; then
3823 case `/usr/bin/file conftest.$ac_objext` in
3824 *ELF-32*)
3825 HPUX_IA64_MODE="32"
3826 ;;
3827 *ELF-64*)
3828 HPUX_IA64_MODE="64"
3829 ;;
3830 esac
3831 fi
3832 rm -rf conftest*
3833 ;;
3834*-*-irix6*)
3835 # Find out which ABI we are using.
3836 echo '#line 3836 "configure"' > conftest.$ac_ext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; then
3842 if test "$lt_cv_prog_gnu_ld" = yes; then
3843 case `/usr/bin/file conftest.$ac_objext` in
3844 *32-bit*)
3845 LD="${LD-ld} -melf32bsmip"
3846 ;;
3847 *N32*)
3848 LD="${LD-ld} -melf32bmipn32"
3849 ;;
3850 *64-bit*)
3851 LD="${LD-ld} -melf64bmip"
3852 ;;
3853 esac
3854 else
3855 case `/usr/bin/file conftest.$ac_objext` in
3856 *32-bit*)
3857 LD="${LD-ld} -32"
3858 ;;
3859 *N32*)
3860 LD="${LD-ld} -n32"
3861 ;;
3862 *64-bit*)
3863 LD="${LD-ld} -64"
3864 ;;
3865 esac
3866 fi
3867 fi
3868 rm -rf conftest*
3869 ;;
3870
3871x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3872 # Find out which ABI we are using.
3873 echo 'int i;' > conftest.$ac_ext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; then
3879 case `/usr/bin/file conftest.o` in
3880 *32-bit*)
3881 case $host in
3882 x86_64-*linux*)
3883 LD="${LD-ld} -m elf_i386"
3884 ;;
3885 ppc64-*linux*|powerpc64-*linux*)
3886 LD="${LD-ld} -m elf32ppclinux"
3887 ;;
3888 s390x-*linux*)
3889 LD="${LD-ld} -m elf_s390"
3890 ;;
3891 sparc64-*linux*)
3892 LD="${LD-ld} -m elf32_sparc"
3893 ;;
3894 esac
3895 ;;
3896 *64-bit*)
3897 case $host in
3898 x86_64-*linux*)
3899 LD="${LD-ld} -m elf_x86_64"
3900 ;;
3901 ppc*-*linux*|powerpc*-*linux*)
3902 LD="${LD-ld} -m elf64ppc"
3903 ;;
3904 s390*-*linux*)
3905 LD="${LD-ld} -m elf64_s390"
3906 ;;
3907 sparc*-*linux*)
3908 LD="${LD-ld} -m elf64_sparc"
3909 ;;
3910 esac
3911 ;;
3912 esac
3913 fi
3914 rm -rf conftest*
3915 ;;
3916
3917*-*-sco3.2v5*)
3918 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3919 SAVE_CFLAGS="$CFLAGS"
3920 CFLAGS="$CFLAGS -belf"
3921 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3922echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3923if test "${lt_cv_cc_needs_belf+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932 cat >conftest.$ac_ext <<_ACEOF
3933/* confdefs.h. */
3934_ACEOF
3935cat confdefs.h >>conftest.$ac_ext
3936cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext conftest$ac_exeext
3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949 (eval $ac_link) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag"
3957 || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest$ac_exeext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 lt_cv_cc_needs_belf=yes
3970else
3971 echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974lt_cv_cc_needs_belf=no
3975fi
3976rm -f conftest.err conftest.$ac_objext \
3977 conftest$ac_exeext conftest.$ac_ext
3978 ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984fi
3985echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3986echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3989 CFLAGS="$SAVE_CFLAGS"
3990 fi
3991 ;;
3992sparc*-*solaris*)
3993 # Find out which ABI we are using.
3994 echo 'int i;' > conftest.$ac_ext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; then
4000 case `/usr/bin/file conftest.o` in
4001 *64-bit*)
4002 case $lt_cv_prog_gnu_ld in
4003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4004 *) LD="${LD-ld} -64" ;;
4005 esac
4006 ;;
4007 esac
4008 fi
4009 rm -rf conftest*
4010 ;;
4011
4012
4013esac
4014
4015need_locks="$enable_libtool_lock"
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4024echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4025# On Suns, sometimes $CPP names a directory.
4026if test -n "$CPP" && test -d "$CPP"; then
4027 CPP=
4028fi
4029if test -z "$CPP"; then
4030 if test "${ac_cv_prog_CPP+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 # Double quotes because CPP needs to be expanded
4034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 do
4036 ac_preproc_ok=false
4037for ac_c_preproc_warn_flag in '' yes
4038do
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051#ifdef __STDC__
4052# include <limits.h>
4053#else
4054# include <assert.h>
4055#endif
4056 Syntax error
4057_ACEOF
4058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } >/dev/null; then
4066 if test -s conftest.err; then
4067 ac_cpp_err=$ac_c_preproc_warn_flag
4068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4069 else
4070 ac_cpp_err=
4071 fi
4072else
4073 ac_cpp_err=yes
4074fi
4075if test -z "$ac_cpp_err"; then
4076 :
4077else
4078 echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081 # Broken: fails on valid input.
4082continue
4083fi
4084rm -f conftest.err conftest.$ac_ext
4085
4086 # OK, works on sane cases. Now check whether non-existent headers
4087 # can be detected and how.
4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094#include <ac_nonexistent.h>
4095_ACEOF
4096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null; then
4104 if test -s conftest.err; then
4105 ac_cpp_err=$ac_c_preproc_warn_flag
4106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4107 else
4108 ac_cpp_err=
4109 fi
4110else
4111 ac_cpp_err=yes
4112fi
4113if test -z "$ac_cpp_err"; then
4114 # Broken: success on invalid input.
4115continue
4116else
4117 echo "$as_me: failed program was:" >&5
4118sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 # Passes both tests.
4121ac_preproc_ok=:
4122break
4123fi
4124rm -f conftest.err conftest.$ac_ext
4125
4126done
4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128rm -f conftest.err conftest.$ac_ext
4129if $ac_preproc_ok; then
4130 break
4131fi
4132
4133 done
4134 ac_cv_prog_CPP=$CPP
4135
4136fi
4137 CPP=$ac_cv_prog_CPP
4138else
4139 ac_cv_prog_CPP=$CPP
4140fi
4141echo "$as_me:$LINENO: result: $CPP" >&5
4142echo "${ECHO_T}$CPP" >&6
4143ac_preproc_ok=false
4144for ac_c_preproc_warn_flag in '' yes
4145do
4146 # Use a header file that comes with gcc, so configuring glibc
4147 # with a fresh cross-compiler works.
4148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149 # <limits.h> exists even on freestanding compilers.
4150 # On the NeXT, cc -E runs the code through the compiler's parser,
4151 # not just through cpp. "Syntax error" is here to catch this case.
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#ifdef __STDC__
4159# include <limits.h>
4160#else
4161# include <assert.h>
4162#endif
4163 Syntax error
4164_ACEOF
4165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } >/dev/null; then
4173 if test -s conftest.err; then
4174 ac_cpp_err=$ac_c_preproc_warn_flag
4175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4176 else
4177 ac_cpp_err=
4178 fi
4179else
4180 ac_cpp_err=yes
4181fi
4182if test -z "$ac_cpp_err"; then
4183 :
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 # Broken: fails on valid input.
4189continue
4190fi
4191rm -f conftest.err conftest.$ac_ext
4192
4193 # OK, works on sane cases. Now check whether non-existent headers
4194 # can be detected and how.
4195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201#include <ac_nonexistent.h>
4202_ACEOF
4203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_c_preproc_warn_flag
4213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4214 else
4215 ac_cpp_err=
4216 fi
4217else
4218 ac_cpp_err=yes
4219fi
4220if test -z "$ac_cpp_err"; then
4221 # Broken: success on invalid input.
4222continue
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 # Passes both tests.
4228ac_preproc_ok=:
4229break
4230fi
4231rm -f conftest.err conftest.$ac_ext
4232
4233done
4234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4235rm -f conftest.err conftest.$ac_ext
4236if $ac_preproc_ok; then
4237 :
4238else
4239 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4240See \`config.log' for more details." >&5
4241echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4242See \`config.log' for more details." >&2;}
4243 { (exit 1); exit 1; }; }
4244fi
4245
4246ac_ext=c
4247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252
4253echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4254echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4255if test "${ac_cv_header_stdc+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264#include <stdlib.h>
4265#include <stdarg.h>
4266#include <string.h>
4267#include <float.h>
4268
4269int
4270main ()
4271{
4272
4273 ;
4274 return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext
4278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_cv_header_stdc=yes
4300else
4301 echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304ac_cv_header_stdc=no
4305fi
4306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307
4308if test $ac_cv_header_stdc = yes; then
4309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316#include <string.h>
4317
4318_ACEOF
4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 $EGREP "memchr" >/dev/null 2>&1; then
4321 :
4322else
4323 ac_cv_header_stdc=no
4324fi
4325rm -f conftest*
4326
4327fi
4328
4329if test $ac_cv_header_stdc = yes; then
4330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337#include <stdlib.h>
4338
4339_ACEOF
4340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "free" >/dev/null 2>&1; then
4342 :
4343else
4344 ac_cv_header_stdc=no
4345fi
4346rm -f conftest*
4347
4348fi
4349
4350if test $ac_cv_header_stdc = yes; then
4351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4352 if test "$cross_compiling" = yes; then
4353 :
4354else
4355 cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361#include <ctype.h>
4362#if ((' ' & 0x0FF) == 0x020)
4363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4365#else
4366# define ISLOWER(c) \
4367 (('a' <= (c) && (c) <= 'i') \
4368 || ('j' <= (c) && (c) <= 'r') \
4369 || ('s' <= (c) && (c) <= 'z'))
4370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4371#endif
4372
4373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374int
4375main ()
4376{
4377 int i;
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
4380 || toupper (i) != TOUPPER (i))
4381 exit(2);
4382 exit (0);
4383}
4384_ACEOF
4385rm -f conftest$ac_exeext
4386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 :
4397else
4398 echo "$as_me: program exited with status $ac_status" >&5
4399echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402( exit $ac_status )
4403ac_cv_header_stdc=no
4404fi
4405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4406fi
4407fi
4408fi
4409echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4410echo "${ECHO_T}$ac_cv_header_stdc" >&6
4411if test $ac_cv_header_stdc = yes; then
4412
4413cat >>confdefs.h <<\_ACEOF
4414#define STDC_HEADERS 1
4415_ACEOF
4416
4417fi
4418
4419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4430 inttypes.h stdint.h unistd.h
4431do
4432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433echo "$as_me:$LINENO: checking for $ac_header" >&5
4434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
4444$ac_includes_default
4445
4446#include <$ac_header>
4447_ACEOF
4448rm -f conftest.$ac_objext
4449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag"
4458 || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 eval "$as_ac_Header=yes"
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475eval "$as_ac_Header=no"
4476fi
4477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4478fi
4479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4481if test `eval echo '${'$as_ac_Header'}'` = yes; then
4482 cat >>confdefs.h <<_ACEOF
4483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4484_ACEOF
4485
4486fi
4487
4488done
4489
4490
4491
4492for ac_header in dlfcn.h
4493do
4494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496 echo "$as_me:$LINENO: checking for $ac_header" >&5
4497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4498if eval "test \"\${$as_ac_Header+set}\" = set"; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500fi
4501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4503else
4504 # Is the header compilable?
4505echo "$as_me:$LINENO: checking $ac_header usability" >&5
4506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4507cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
4513$ac_includes_default
4514#include <$ac_header>
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_header_compiler=yes
4539else
4540 echo "$as_me: failed program was:" >&5
4541sed 's/^/| /' conftest.$ac_ext >&5
4542
4543ac_header_compiler=no
4544fi
4545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4547echo "${ECHO_T}$ac_header_compiler" >&6
4548
4549# Is the header present?
4550echo "$as_me:$LINENO: checking $ac_header presence" >&5
4551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4552cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
4558#include <$ac_header>
4559_ACEOF
4560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null; then
4568 if test -s conftest.err; then
4569 ac_cpp_err=$ac_c_preproc_warn_flag
4570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4571 else
4572 ac_cpp_err=
4573 fi
4574else
4575 ac_cpp_err=yes
4576fi
4577if test -z "$ac_cpp_err"; then
4578 ac_header_preproc=yes
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_header_preproc=no
4584fi
4585rm -f conftest.err conftest.$ac_ext
4586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4587echo "${ECHO_T}$ac_header_preproc" >&6
4588
4589# So? What about this header?
4590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4591 yes:no: )
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4596 ac_header_preproc=yes
4597 ;;
4598 no:yes:* )
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4611 (
4612 cat <<\_ASBOX
4613## ------------------------------------------ ##
4614## Report this to the AC_PACKAGE_NAME lists. ##
4615## ------------------------------------------ ##
4616_ASBOX
4617 ) |
4618 sed "s/^/$as_me: WARNING: /" >&2
4619 ;;
4620esac
4621echo "$as_me:$LINENO: checking for $ac_header" >&5
4622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4623if eval "test \"\${$as_ac_Header+set}\" = set"; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 eval "$as_ac_Header=\$ac_header_preproc"
4627fi
4628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4630
4631fi
4632if test `eval echo '${'$as_ac_Header'}'` = yes; then
4633 cat >>confdefs.h <<_ACEOF
4634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635_ACEOF
4636
4637fi
4638
4639done
4640
4641ac_ext=cc
4642ac_cpp='$CXXCPP $CPPFLAGS'
4643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4646if test -n "$ac_tool_prefix"; then
4647 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4648 do
4649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653if test "${ac_cv_prog_CXX+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 if test -n "$CXX"; then
4657 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672
4673fi
4674fi
4675CXX=$ac_cv_prog_CXX
4676if test -n "$CXX"; then
4677 echo "$as_me:$LINENO: result: $CXX" >&5
4678echo "${ECHO_T}$CXX" >&6
4679else
4680 echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
4682fi
4683
4684 test -n "$CXX" && break
4685 done
4686fi
4687if test -z "$CXX"; then
4688 ac_ct_CXX=$CXX
4689 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4690do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714
4715fi
4716fi
4717ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4718if test -n "$ac_ct_CXX"; then
4719 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4720echo "${ECHO_T}$ac_ct_CXX" >&6
4721else
4722 echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724fi
4725
4726 test -n "$ac_ct_CXX" && break
4727done
4728test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4729
4730 CXX=$ac_ct_CXX
4731fi
4732
4733
4734# Provide some information about the compiler.
4735echo "$as_me:$LINENO:" \
4736 "checking for C++ compiler version" >&5
4737ac_compiler=`set X $ac_compile; echo $2`
4738{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4739 (eval $ac_compiler --version </dev/null >&5) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }
4743{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4744 (eval $ac_compiler -v </dev/null >&5) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }
4748{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4749 (eval $ac_compiler -V </dev/null >&5) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }
4753
4754echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4755echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4756if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758else
4759 cat >conftest.$ac_ext <<_ACEOF
4760/* confdefs.h. */
4761_ACEOF
4762cat confdefs.h >>conftest.$ac_ext
4763cat >>conftest.$ac_ext <<_ACEOF
4764/* end confdefs.h. */
4765
4766int
4767main ()
4768{
4769#ifndef __GNUC__
4770 choke me
4771#endif
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_cxx_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 ac_compiler_gnu=yes
4800else
4801 echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804ac_compiler_gnu=no
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4808
4809fi
4810echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4811echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4812GXX=`test $ac_compiler_gnu = yes && echo yes`
4813ac_test_CXXFLAGS=${CXXFLAGS+set}
4814ac_save_CXXFLAGS=$CXXFLAGS
4815CXXFLAGS="-g"
4816echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4817echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4818if test "${ac_cv_prog_cxx_g+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821 cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827
4828int
4829main ()
4830{
4831
4832 ;
4833 return 0;
4834}
4835_ACEOF
4836rm -f conftest.$ac_objext
4837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_cxx_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_prog_cxx_g=yes
4859else
4860 echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863ac_cv_prog_cxx_g=no
4864fi
4865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4866fi
4867echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4868echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4869if test "$ac_test_CXXFLAGS" = set; then
4870 CXXFLAGS=$ac_save_CXXFLAGS
4871elif test $ac_cv_prog_cxx_g = yes; then
4872 if test "$GXX" = yes; then
4873 CXXFLAGS="-g -O2"
4874 else
4875 CXXFLAGS="-g"
4876 fi
4877else
4878 if test "$GXX" = yes; then
4879 CXXFLAGS="-O2"
4880 else
4881 CXXFLAGS=
4882 fi
4883fi
4884for ac_declaration in \
4885 '' \
4886 'extern "C" void std::exit (int) throw (); using std::exit;' \
4887 'extern "C" void std::exit (int); using std::exit;' \
4888 'extern "C" void exit (int) throw ();' \
4889 'extern "C" void exit (int);' \
4890 'void exit (int);'
4891do
4892 cat >conftest.$ac_ext <<_ACEOF
4893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */
4898$ac_declaration
4899#include <stdlib.h>
4900int
4901main ()
4902{
4903exit (42);
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908rm -f conftest.$ac_objext
4909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_cxx_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 :
4931else
4932 echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
4935continue
4936fi
4937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938 cat >conftest.$ac_ext <<_ACEOF
4939/* confdefs.h. */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h. */
4944$ac_declaration
4945int
4946main ()
4947{
4948exit (42);
4949 ;
4950 return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext
4954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955 (eval $ac_compile) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_cxx_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 break
4976else
4977 echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980fi
4981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4982done
4983rm -f conftest*
4984if test -n "$ac_declaration"; then
4985 echo '#ifdef __cplusplus' >>confdefs.h
4986 echo $ac_declaration >>confdefs.h
4987 echo '#endif' >>confdefs.h
4988fi
4989
4990ac_ext=cc
4991ac_cpp='$CXXCPP $CPPFLAGS'
4992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4995
4996depcc="$CXX" am_compiler_list=
4997
4998echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4999echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5000if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
5003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5004 # We make a subdir and do the tests there. Otherwise we can end up
5005 # making bogus files that we don't know about and never remove. For
5006 # instance it was reported that on HP-UX the gcc test will end up
5007 # making a dummy file named `D' -- because `-MD' means `put the output
5008 # in D'.
5009 mkdir conftest.dir
5010 # Copy depcomp to subdir because otherwise we won't find it if we're
5011 # using a relative directory.
5012 cp "$am_depcomp" conftest.dir
5013 cd conftest.dir
5014 # We will build objects and dependencies in a subdirectory because
5015 # it helps to detect inapplicable dependency modes. For instance
5016 # both Tru64's cc and ICC support -MD to output dependencies as a
5017 # side effect of compilation, but ICC will put the dependencies in
5018 # the current directory while Tru64 will put them in the object
5019 # directory.
5020 mkdir sub
5021
5022 am_cv_CXX_dependencies_compiler_type=none
5023 if test "$am_compiler_list" = ""; then
5024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5025 fi
5026 for depmode in $am_compiler_list; do
5027 # Setup a source with many dependencies, because some compilers
5028 # like to wrap large dependency lists on column 80 (with \), and
5029 # we should not choose a depcomp mode which is confused by this.
5030 #
5031 # We need to recreate these files for each test, as the compiler may
5032 # overwrite some of them when testing with obscure command lines.
5033 # This happens at least with the AIX C compiler.
5034 : > sub/conftest.c
5035 for i in 1 2 3 4 5 6; do
5036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5038 # Solaris 8's {/usr,}/bin/sh.
5039 touch sub/conftst$i.h
5040 done
5041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5042
5043 case $depmode in
5044 nosideeffect)
5045 # after this tag, mechanisms are not by side-effect, so they'll
5046 # only be used when explicitly requested
5047 if test "x$enable_dependency_tracking" = xyes; then
5048 continue
5049 else
5050 break
5051 fi
5052 ;;
5053 none) break ;;
5054 esac
5055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5056 # mode. It turns out that the SunPro C++ compiler does not properly
5057 # handle `-M -o', and we need to detect this.
5058 if depmode=$depmode \
5059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5062 >/dev/null 2>conftest.err &&
5063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5064 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5066 # icc doesn't choke on unknown options, it will just issue warnings
5067 # or remarks (even with -Werror). So we grep stderr for any message
5068 # that says an option was ignored or not supported.
5069 # When given -MP, icc 7.0 and 7.1 complain thusly:
5070 # icc: Command line warning: ignoring option '-M'; no argument required
5071 # The diagnosis changed in icc 8.0:
5072 # icc: Command line remark: option '-MP' not supported
5073 if (grep 'ignoring option' conftest.err ||
5074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5075 am_cv_CXX_dependencies_compiler_type=$depmode
5076 break
5077 fi
5078 fi
5079 done
5080
5081 cd ..
5082 rm -rf conftest.dir
5083else
5084 am_cv_CXX_dependencies_compiler_type=none
5085fi
5086
5087fi
5088echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5089echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5090CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5091
5092
5093
5094if
5095 test "x$enable_dependency_tracking" != xno \
5096 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5097 am__fastdepCXX_TRUE=
5098 am__fastdepCXX_FALSE='#'
5099else
5100 am__fastdepCXX_TRUE='#'
5101 am__fastdepCXX_FALSE=
5102fi
5103
5104
5105
5106
5107if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5108 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5109 (test "X$CXX" != "Xg++"))) ; then
5110 ac_ext=cc
5111ac_cpp='$CXXCPP $CPPFLAGS'
5112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5115echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5116echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5117if test -z "$CXXCPP"; then
5118 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121 # Double quotes because CXXCPP needs to be expanded
5122 for CXXCPP in "$CXX -E" "/lib/cpp"
5123 do
5124 ac_preproc_ok=false
5125for ac_cxx_preproc_warn_flag in '' yes
5126do
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139#ifdef __STDC__
5140# include <limits.h>
5141#else
5142# include <assert.h>
5143#endif
5144 Syntax error
5145_ACEOF
5146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } >/dev/null; then
5154 if test -s conftest.err; then
5155 ac_cpp_err=$ac_cxx_preproc_warn_flag
5156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5157 else
5158 ac_cpp_err=
5159 fi
5160else
5161 ac_cpp_err=yes
5162fi
5163if test -z "$ac_cpp_err"; then
5164 :
5165else
5166 echo "$as_me: failed program was:" >&5
5167sed 's/^/| /' conftest.$ac_ext >&5
5168
5169 # Broken: fails on valid input.
5170continue
5171fi
5172rm -f conftest.err conftest.$ac_ext
5173
5174 # OK, works on sane cases. Now check whether non-existent headers
5175 # can be detected and how.
5176 cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h. */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h. */
5182#include <ac_nonexistent.h>
5183_ACEOF
5184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null; then
5192 if test -s conftest.err; then
5193 ac_cpp_err=$ac_cxx_preproc_warn_flag
5194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5195 else
5196 ac_cpp_err=
5197 fi
5198else
5199 ac_cpp_err=yes
5200fi
5201if test -z "$ac_cpp_err"; then
5202 # Broken: success on invalid input.
5203continue
5204else
5205 echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 # Passes both tests.
5209ac_preproc_ok=:
5210break
5211fi
5212rm -f conftest.err conftest.$ac_ext
5213
5214done
5215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5216rm -f conftest.err conftest.$ac_ext
5217if $ac_preproc_ok; then
5218 break
5219fi
5220
5221 done
5222 ac_cv_prog_CXXCPP=$CXXCPP
5223
5224fi
5225 CXXCPP=$ac_cv_prog_CXXCPP
5226else
5227 ac_cv_prog_CXXCPP=$CXXCPP
5228fi
5229echo "$as_me:$LINENO: result: $CXXCPP" >&5
5230echo "${ECHO_T}$CXXCPP" >&6
5231ac_preproc_ok=false
5232for ac_cxx_preproc_warn_flag in '' yes
5233do
5234 # Use a header file that comes with gcc, so configuring glibc
5235 # with a fresh cross-compiler works.
5236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237 # <limits.h> exists even on freestanding compilers.
5238 # On the NeXT, cc -E runs the code through the compiler's parser,
5239 # not just through cpp. "Syntax error" is here to catch this case.
5240 cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
5246#ifdef __STDC__
5247# include <limits.h>
5248#else
5249# include <assert.h>
5250#endif
5251 Syntax error
5252_ACEOF
5253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } >/dev/null; then
5261 if test -s conftest.err; then
5262 ac_cpp_err=$ac_cxx_preproc_warn_flag
5263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5264 else
5265 ac_cpp_err=
5266 fi
5267else
5268 ac_cpp_err=yes
5269fi
5270if test -z "$ac_cpp_err"; then
5271 :
5272else
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 # Broken: fails on valid input.
5277continue
5278fi
5279rm -f conftest.err conftest.$ac_ext
5280
5281 # OK, works on sane cases. Now check whether non-existent headers
5282 # can be detected and how.
5283 cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289#include <ac_nonexistent.h>
5290_ACEOF
5291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_cxx_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5302 else
5303 ac_cpp_err=
5304 fi
5305else
5306 ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
5309 # Broken: success on invalid input.
5310continue
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 # Passes both tests.
5316ac_preproc_ok=:
5317break
5318fi
5319rm -f conftest.err conftest.$ac_ext
5320
5321done
5322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323rm -f conftest.err conftest.$ac_ext
5324if $ac_preproc_ok; then
5325 :
5326else
5327 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5328See \`config.log' for more details." >&5
5329echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5330See \`config.log' for more details." >&2;}
5331 { (exit 1); exit 1; }; }
5332fi
5333
5334ac_ext=cc
5335ac_cpp='$CXXCPP $CPPFLAGS'
5336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339
5340fi
5341
5342
5343ac_ext=f
5344ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5345ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5347if test -n "$ac_tool_prefix"; then
5348 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5349 do
5350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354if test "${ac_cv_prog_F77+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 if test -n "$F77"; then
5358 ac_cv_prog_F77="$F77" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372done
5373
5374fi
5375fi
5376F77=$ac_cv_prog_F77
5377if test -n "$F77"; then
5378 echo "$as_me:$LINENO: result: $F77" >&5
5379echo "${ECHO_T}$F77" >&6
5380else
5381 echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6
5383fi
5384
5385 test -n "$F77" && break
5386 done
5387fi
5388if test -z "$F77"; then
5389 ac_ct_F77=$F77
5390 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5391do
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393set dummy $ac_prog; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 if test -n "$ac_ct_F77"; then
5400 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_F77="$ac_prog"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416fi
5417fi
5418ac_ct_F77=$ac_cv_prog_ac_ct_F77
5419if test -n "$ac_ct_F77"; then
5420 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5421echo "${ECHO_T}$ac_ct_F77" >&6
5422else
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425fi
5426
5427 test -n "$ac_ct_F77" && break
5428done
5429
5430 F77=$ac_ct_F77
5431fi
5432
5433
5434# Provide some information about the compiler.
5435echo "$as_me:5435:" \
5436 "checking for Fortran 77 compiler version" >&5
5437ac_compiler=`set X $ac_compile; echo $2`
5438{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5439 (eval $ac_compiler --version </dev/null >&5) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }
5443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5444 (eval $ac_compiler -v </dev/null >&5) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }
5448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5449 (eval $ac_compiler -V </dev/null >&5) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453rm -f a.out
5454
5455# If we don't use `.F' as extension, the preprocessor is not run on the
5456# input file. (Note that this only needs to work for GNU compilers.)
5457ac_save_ext=$ac_ext
5458ac_ext=F
5459echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5460echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5461if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 program main
5466#ifndef __GNUC__
5467 choke me
5468#endif
5469
5470 end
5471_ACEOF
5472rm -f conftest.$ac_objext
5473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try='test -z "$ac_f77_werror_flag"
5482 || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_compiler_gnu=yes
5495else
5496 echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499ac_compiler_gnu=no
5500fi
5501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5503
5504fi
5505echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5506echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5507ac_ext=$ac_save_ext
5508ac_test_FFLAGS=${FFLAGS+set}
5509ac_save_FFLAGS=$FFLAGS
5510FFLAGS=
5511echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5512echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5513if test "${ac_cv_prog_f77_g+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 FFLAGS=-g
5517cat >conftest.$ac_ext <<_ACEOF
5518 program main
5519
5520 end
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_f77_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_prog_f77_g=yes
5545else
5546 echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549ac_cv_prog_f77_g=no
5550fi
5551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552
5553fi
5554echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5555echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5556if test "$ac_test_FFLAGS" = set; then
5557 FFLAGS=$ac_save_FFLAGS
5558elif test $ac_cv_prog_f77_g = yes; then
5559 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5560 FFLAGS="-g -O2"
5561 else
5562 FFLAGS="-g"
5563 fi
5564else
5565 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5566 FFLAGS="-O2"
5567 else
5568 FFLAGS=
5569 fi
5570fi
5571
5572G77=`test $ac_compiler_gnu = yes && echo yes`
5573ac_ext=c
5574ac_cpp='$CPP $CPPFLAGS'
5575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578
5579
5580
5581# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5582
5583# find the maximum length of command line arguments
5584echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5585echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5586if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589 i=0
5590 teststring="ABCD"
5591
5592 case $build_os in
5593 msdosdjgpp*)
5594 # On DJGPP, this test can blow up pretty badly due to problems in libc
5595 # (any single argument exceeding 2000 bytes causes a buffer overrun
5596 # during glob expansion). Even if it were fixed, the result of this
5597 # check would be larger than it should be.
5598 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5599 ;;
5600
5601 gnu*)
5602 # Under GNU Hurd, this test is not required because there is
5603 # no limit to the length of command line arguments.
5604 # Libtool will interpret -1 as no limit whatsoever
5605 lt_cv_sys_max_cmd_len=-1;
5606 ;;
5607
5608 cygwin* | mingw*)
5609 # On Win9x/ME, this test blows up -- it succeeds, but takes
5610 # about 5 minutes as the teststring grows exponentially.
5611 # Worse, since 9x/ME are not pre-emptively multitasking,
5612 # you end up with a "frozen" computer, even though with patience
5613 # the test eventually succeeds (with a max line length of 256k).
5614 # Instead, let's just punt: use the minimum linelength reported by
5615 # all of the supported platforms: 8192 (on NT/2K/XP).
5616 lt_cv_sys_max_cmd_len=8192;
5617 ;;
5618
5619 amigaos*)
5620 # On AmigaOS with pdksh, this test takes hours, literally.
5621 # So we just punt and use a minimum line length of 8192.
5622 lt_cv_sys_max_cmd_len=8192;
5623 ;;
5624
5625 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5626 # This has been around since 386BSD, at least. Likely further.
5627 if test -x /sbin/sysctl; then
5628 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5629 elif test -x /usr/sbin/sysctl; then
5630 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5631 else
5632 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5633 fi
5634 # And add a safety zone
5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5637 ;;
5638
5639 interix*)
5640 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5641 lt_cv_sys_max_cmd_len=196608
5642 ;;
5643
5644 osf*)
5645 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5646 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5647 # nice to cause kernel panics so lets avoid the loop below.
5648 # First set a reasonable default.
5649 lt_cv_sys_max_cmd_len=16384
5650 #
5651 if test -x /sbin/sysconfig; then
5652 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5653 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5654 esac
5655 fi
5656 ;;
5657 sco3.2v5*)
5658 lt_cv_sys_max_cmd_len=102400
5659 ;;
5660 sysv5* | sco5v6* | sysv4.2uw2*)
5661 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5662 if test -n "$kargmax"; then
5663 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5664 else
5665 lt_cv_sys_max_cmd_len=32768
5666 fi
5667 ;;
5668 *)
5669 # If test is not a shell built-in, we'll probably end up computing a
5670 # maximum length that is only half of the actual maximum length, but
5671 # we can't tell.
5672 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5673 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5674 = "XX$teststring") >/dev/null 2>&1 &&
5675 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5676 lt_cv_sys_max_cmd_len=$new_result &&
5677 test $i != 17 # 1/2 MB should be enough
5678 do
5679 i=`expr $i + 1`
5680 teststring=$teststring$teststring
5681 done
5682 teststring=
5683 # Add a significant safety factor because C++ compilers can tack on massive
5684 # amounts of additional arguments before passing them to the linker.
5685 # It appears as though 1/2 is a usable value.
5686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5687 ;;
5688 esac
5689
5690fi
5691
5692if test -n $lt_cv_sys_max_cmd_len ; then
5693 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5694echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5695else
5696 echo "$as_me:$LINENO: result: none" >&5
5697echo "${ECHO_T}none" >&6
5698fi
5699
5700
5701
5702
5703# Check for command to grab the raw symbol name followed by C symbol from nm.
5704echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5705echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5706if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709
5710# These are sane defaults that work on at least a few old systems.
5711# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5712
5713# Character class describing NM global symbol codes.
5714symcode='[BCDEGRST]'
5715
5716# Regexp to match symbols that can be accessed directly from C.
5717sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5718
5719# Transform an extracted symbol line into a proper C declaration
5720lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5721
5722# Transform an extracted symbol line into symbol name and symbol address
5723lt_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'"
5724
5725# Define system-specific variables.
5726case $host_os in
5727aix*)
5728 symcode='[BCDT]'
5729 ;;
5730cygwin* | mingw* | pw32*)
5731 symcode='[ABCDGISTW]'
5732 ;;
5733hpux*) # Its linker distinguishes data from code symbols
5734 if test "$host_cpu" = ia64; then
5735 symcode='[ABCDEGRST]'
5736 fi
5737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5738 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'"
5739 ;;
5740linux*)
5741 if test "$host_cpu" = ia64; then
5742 symcode='[ABCDGIRSTW]'
5743 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5744 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'"
5745 fi
5746 ;;
5747irix* | nonstopux*)
5748 symcode='[BCDEGRST]'
5749 ;;
5750osf*)
5751 symcode='[BCDEGQRST]'
5752 ;;
5753solaris*)
5754 symcode='[BDRT]'
5755 ;;
5756sco3.2v5*)
5757 symcode='[DT]'
5758 ;;
5759sysv4.2uw2*)
5760 symcode='[DT]'
5761 ;;
5762sysv5* | sco5v6* | unixware* | OpenUNIX*)
5763 symcode='[ABDT]'
5764 ;;
5765sysv4)
5766 symcode='[DFNSTU]'
5767 ;;
5768esac
5769
5770# Handle CRLF in mingw tool chain
5771opt_cr=
5772case $build_os in
5773mingw*)
5774 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5775 ;;
5776esac
5777
5778# If we're using GNU nm, then use its standard symbol codes.
5779case `$NM -V 2>&1` in
5780*GNU* | *'with BFD'*)
5781 symcode='[ABCDGIRSTW]' ;;
5782esac
5783
5784# Try without a prefix undercore, then with it.
5785for ac_symprfx in "" "_"; do
5786
5787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5788 symxfrm="\\1 $ac_symprfx\\2 \\2"
5789
5790 # Write the raw and C identifiers.
5791 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5792
5793 # Check to see that the pipe works correctly.
5794 pipe_works=no
5795
5796 rm -f conftest*
5797 cat > conftest.$ac_ext <<EOF
5798#ifdef __cplusplus
5799extern "C" {
5800#endif
5801char nm_test_var;
5802void nm_test_func(){}
5803#ifdef __cplusplus
5804}
5805#endif
5806int main(){nm_test_var='a';nm_test_func();return(0);}
5807EOF
5808
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; then
5814 # Now try to grab the symbols.
5815 nlist=conftest.nm
5816 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5817 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && test -s "$nlist"; then
5821 # Try sorting and uniquifying the output.
5822 if sort "$nlist" | uniq > "$nlist"T; then
5823 mv -f "$nlist"T "$nlist"
5824 else
5825 rm -f "$nlist"T
5826 fi
5827
5828 # Make sure that we snagged all the symbols we need.
5829 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5830 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5831 cat <<EOF > conftest.$ac_ext
5832#ifdef __cplusplus
5833extern "C" {
5834#endif
5835
5836EOF
5837 # Now generate the symbol file.
5838 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5839
5840 cat <<EOF >> conftest.$ac_ext
5841#if defined (__STDC__) && __STDC__
5842# define lt_ptr_t void *
5843#else
5844# define lt_ptr_t char *
5845# define const
5846#endif
5847
5848/* The mapping between symbol names and symbols. */
5849const struct {
5850 const char *name;
5851 lt_ptr_t address;
5852}
5853lt_preloaded_symbols[] =
5854{
5855EOF
5856 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5857 cat <<\EOF >> conftest.$ac_ext
5858 {0, (lt_ptr_t) 0}
5859};
5860
5861#ifdef __cplusplus
5862}
5863#endif
5864EOF
5865 # Now try linking the two files.
5866 mv conftest.$ac_objext conftstm.$ac_objext
5867 lt_save_LIBS="$LIBS"
5868 lt_save_CFLAGS="$CFLAGS"
5869 LIBS="conftstm.$ac_objext"
5870 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5876 pipe_works=yes
5877 fi
5878 LIBS="$lt_save_LIBS"
5879 CFLAGS="$lt_save_CFLAGS"
5880 else
5881 echo "cannot find nm_test_func in $nlist" >&5
5882 fi
5883 else
5884 echo "cannot find nm_test_var in $nlist" >&5
5885 fi
5886 else
5887 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5888 fi
5889 else
5890 echo "$progname: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 fi
5893 rm -f conftest* conftst*
5894
5895 # Do not use the global_symbol_pipe unless it works.
5896 if test "$pipe_works" = yes; then
5897 break
5898 else
5899 lt_cv_sys_global_symbol_pipe=
5900 fi
5901done
5902
5903fi
5904
5905if test -z "$lt_cv_sys_global_symbol_pipe"; then
5906 lt_cv_sys_global_symbol_to_cdecl=
5907fi
5908if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5909 echo "$as_me:$LINENO: result: failed" >&5
5910echo "${ECHO_T}failed" >&6
5911else
5912 echo "$as_me:$LINENO: result: ok" >&5
5913echo "${ECHO_T}ok" >&6
5914fi
5915
5916echo "$as_me:$LINENO: checking for objdir" >&5
5917echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5918if test "${lt_cv_objdir+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 rm -f .libs 2>/dev/null
5922mkdir .libs 2>/dev/null
5923if test -d .libs; then
5924 lt_cv_objdir=.libs
5925else
5926 # MS-DOS does not allow filenames that begin with a dot.
5927 lt_cv_objdir=_libs
5928fi
5929rmdir .libs 2>/dev/null
5930fi
5931echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5932echo "${ECHO_T}$lt_cv_objdir" >&6
5933objdir=$lt_cv_objdir
5934
5935
5936
5937
5938
5939case $host_os in
5940aix3*)
5941 # AIX sometimes has problems with the GCC collect2 program. For some
5942 # reason, if we set the COLLECT_NAMES environment variable, the problems
5943 # vanish in a puff of smoke.
5944 if test "X${COLLECT_NAMES+set}" != Xset; then
5945 COLLECT_NAMES=
5946 export COLLECT_NAMES
5947 fi
5948 ;;
5949esac
5950
5951# Sed substitution that helps us do robust quoting. It backslashifies
5952# metacharacters that are still active within double-quoted strings.
5953Xsed='sed -e 1s/^X//'
5954sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5955
5956# Same as above, but do not quote variable references.
5957double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5958
5959# Sed substitution to delay expansion of an escaped shell variable in a
5960# double_quote_subst'ed string.
5961delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5962
5963# Sed substitution to avoid accidental globbing in evaled expressions
5964no_glob_subst='s/\*/\\\*/g'
5965
5966# Constants:
5967rm="rm -f"
5968
5969# Global variables:
5970default_ofile=libtool
5971can_build_shared=yes
5972
5973# All known linkers require a `.a' archive for static linking (except MSVC,
5974# which needs '.lib').
5975libext=a
5976ltmain="$ac_aux_dir/ltmain.sh"
5977ofile="$default_ofile"
5978with_gnu_ld="$lt_cv_prog_gnu_ld"
5979
5980if test -n "$ac_tool_prefix"; then
5981 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5982set dummy ${ac_tool_prefix}ar; ac_word=$2
5983echo "$as_me:$LINENO: checking for $ac_word" >&5
5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5985if test "${ac_cv_prog_AR+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5988 if test -n "$AR"; then
5989 ac_cv_prog_AR="$AR" # Let the user override the test.
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_AR="${ac_tool_prefix}ar"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002done
6003done
6004
6005fi
6006fi
6007AR=$ac_cv_prog_AR
6008if test -n "$AR"; then
6009 echo "$as_me:$LINENO: result: $AR" >&5
6010echo "${ECHO_T}$AR" >&6
6011else
6012 echo "$as_me:$LINENO: result: no" >&5
6013echo "${ECHO_T}no" >&6
6014fi
6015
6016fi
6017if test -z "$ac_cv_prog_AR"; then
6018 ac_ct_AR=$AR
6019 # Extract the first word of "ar", so it can be a program name with args.
6020set dummy ar; ac_word=$2
6021echo "$as_me:$LINENO: checking for $ac_word" >&5
6022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6023if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025else
6026 if test -n "$ac_ct_AR"; then
6027 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6028else
6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030for as_dir in $PATH
6031do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036 ac_cv_prog_ac_ct_AR="ar"
6037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040done
6041done
6042
6043 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6044fi
6045fi
6046ac_ct_AR=$ac_cv_prog_ac_ct_AR
6047if test -n "$ac_ct_AR"; then
6048 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6049echo "${ECHO_T}$ac_ct_AR" >&6
6050else
6051 echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6
6053fi
6054
6055 AR=$ac_ct_AR
6056else
6057 AR="$ac_cv_prog_AR"
6058fi
6059
6060if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6062set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6063echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6065if test "${ac_cv_prog_RANLIB+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068 if test -n "$RANLIB"; then
6069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083done
6084
6085fi
6086fi
6087RANLIB=$ac_cv_prog_RANLIB
6088if test -n "$RANLIB"; then
6089 echo "$as_me:$LINENO: result: $RANLIB" >&5
6090echo "${ECHO_T}$RANLIB" >&6
6091else
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
6094fi
6095
6096fi
6097if test -z "$ac_cv_prog_RANLIB"; then
6098 ac_ct_RANLIB=$RANLIB
6099 # Extract the first word of "ranlib", so it can be a program name with args.
6100set dummy ranlib; ac_word=$2
6101echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
6106 if test -n "$ac_ct_RANLIB"; then
6107 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_ac_ct_RANLIB="ranlib"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121done
6122
6123 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6124fi
6125fi
6126ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6127if test -n "$ac_ct_RANLIB"; then
6128 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6129echo "${ECHO_T}$ac_ct_RANLIB" >&6
6130else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133fi
6134
6135 RANLIB=$ac_ct_RANLIB
6136else
6137 RANLIB="$ac_cv_prog_RANLIB"
6138fi
6139
6140if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6142set dummy ${ac_tool_prefix}strip; ac_word=$2
6143echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6145if test "${ac_cv_prog_STRIP+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 if test -n "$STRIP"; then
6149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
6165fi
6166fi
6167STRIP=$ac_cv_prog_STRIP
6168if test -n "$STRIP"; then
6169 echo "$as_me:$LINENO: result: $STRIP" >&5
6170echo "${ECHO_T}$STRIP" >&6
6171else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174fi
6175
6176fi
6177if test -z "$ac_cv_prog_STRIP"; then
6178 ac_ct_STRIP=$STRIP
6179 # Extract the first word of "strip", so it can be a program name with args.
6180set dummy strip; ac_word=$2
6181echo "$as_me:$LINENO: checking for $ac_word" >&5
6182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6183if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 if test -n "$ac_ct_STRIP"; then
6187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_ac_ct_STRIP="strip"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201done
6202
6203 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6204fi
6205fi
6206ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6207if test -n "$ac_ct_STRIP"; then
6208 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6209echo "${ECHO_T}$ac_ct_STRIP" >&6
6210else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213fi
6214
6215 STRIP=$ac_ct_STRIP
6216else
6217 STRIP="$ac_cv_prog_STRIP"
6218fi
6219
6220
6221old_CC="$CC"
6222old_CFLAGS="$CFLAGS"
6223
6224# Set sane defaults for various variables
6225test -z "$AR" && AR=ar
6226test -z "$AR_FLAGS" && AR_FLAGS=cru
6227test -z "$AS" && AS=as
6228test -z "$CC" && CC=cc
6229test -z "$LTCC" && LTCC=$CC
6230test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6231test -z "$DLLTOOL" && DLLTOOL=dlltool
6232test -z "$LD" && LD=ld
6233test -z "$LN_S" && LN_S="ln -s"
6234test -z "$MAGIC_CMD" && MAGIC_CMD=file
6235test -z "$NM" && NM=nm
6236test -z "$SED" && SED=sed
6237test -z "$OBJDUMP" && OBJDUMP=objdump
6238test -z "$RANLIB" && RANLIB=:
6239test -z "$STRIP" && STRIP=:
6240test -z "$ac_objext" && ac_objext=o
6241
6242# Determine commands to create old-style static archives.
6243old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6244old_postinstall_cmds='chmod 644 $oldlib'
6245old_postuninstall_cmds=
6246
6247if test -n "$RANLIB"; then
6248 case $host_os in
6249 openbsd*)
6250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6251 ;;
6252 *)
6253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6254 ;;
6255 esac
6256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6257fi
6258
6259for cc_temp in $compiler""; do
6260 case $cc_temp in
6261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6263 \-*) ;;
6264 *) break;;
6265 esac
6266done
6267cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6268
6269
6270# Only perform the check for file, if the check method requires it
6271case $deplibs_check_method in
6272file_magic*)
6273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6274 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6275echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6276if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 case $MAGIC_CMD in
6280[\\/*] | ?:[\\/]*)
6281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6282 ;;
6283*)
6284 lt_save_MAGIC_CMD="$MAGIC_CMD"
6285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6287 for ac_dir in $ac_dummy; do
6288 IFS="$lt_save_ifs"
6289 test -z "$ac_dir" && ac_dir=.
6290 if test -f $ac_dir/${ac_tool_prefix}file; then
6291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6292 if test -n "$file_magic_test_file"; then
6293 case $deplibs_check_method in
6294 "file_magic "*)
6295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6298 $EGREP "$file_magic_regex" > /dev/null; then
6299 :
6300 else
6301 cat <<EOF 1>&2
6302
6303*** Warning: the command libtool uses to detect shared libraries,
6304*** $file_magic_cmd, produces output that libtool cannot recognize.
6305*** The result is that libtool may fail to recognize shared libraries
6306*** as such. This will affect the creation of libtool libraries that
6307*** depend on shared libraries, but programs linked with such libtool
6308*** libraries will work regardless of this problem. Nevertheless, you
6309*** may want to report the problem to your system manager and/or to
6310*** bug-libtool@gnu.org
6311
6312EOF
6313 fi ;;
6314 esac
6315 fi
6316 break
6317 fi
6318 done
6319 IFS="$lt_save_ifs"
6320 MAGIC_CMD="$lt_save_MAGIC_CMD"
6321 ;;
6322esac
6323fi
6324
6325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6326if test -n "$MAGIC_CMD"; then
6327 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6328echo "${ECHO_T}$MAGIC_CMD" >&6
6329else
6330 echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
6332fi
6333
6334if test -z "$lt_cv_path_MAGIC_CMD"; then
6335 if test -n "$ac_tool_prefix"; then
6336 echo "$as_me:$LINENO: checking for file" >&5
6337echo $ECHO_N "checking for file... $ECHO_C" >&6
6338if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341 case $MAGIC_CMD in
6342[\\/*] | ?:[\\/]*)
6343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6344 ;;
6345*)
6346 lt_save_MAGIC_CMD="$MAGIC_CMD"
6347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6349 for ac_dir in $ac_dummy; do
6350 IFS="$lt_save_ifs"
6351 test -z "$ac_dir" && ac_dir=.
6352 if test -f $ac_dir/file; then
6353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6354 if test -n "$file_magic_test_file"; then
6355 case $deplibs_check_method in
6356 "file_magic "*)
6357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6360 $EGREP "$file_magic_regex" > /dev/null; then
6361 :
6362 else
6363 cat <<EOF 1>&2
6364
6365*** Warning: the command libtool uses to detect shared libraries,
6366*** $file_magic_cmd, produces output that libtool cannot recognize.
6367*** The result is that libtool may fail to recognize shared libraries
6368*** as such. This will affect the creation of libtool libraries that
6369*** depend on shared libraries, but programs linked with such libtool
6370*** libraries will work regardless of this problem. Nevertheless, you
6371*** may want to report the problem to your system manager and/or to
6372*** bug-libtool@gnu.org
6373
6374EOF
6375 fi ;;
6376 esac
6377 fi
6378 break
6379 fi
6380 done
6381 IFS="$lt_save_ifs"
6382 MAGIC_CMD="$lt_save_MAGIC_CMD"
6383 ;;
6384esac
6385fi
6386
6387MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6388if test -n "$MAGIC_CMD"; then
6389 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6390echo "${ECHO_T}$MAGIC_CMD" >&6
6391else
6392 echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6
6394fi
6395
6396 else
6397 MAGIC_CMD=:
6398 fi
6399fi
6400
6401 fi
6402 ;;
6403esac
6404
6405enable_dlopen=no
6406enable_win32_dll=no
6407
6408# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6409if test "${enable_libtool_lock+set}" = set; then
6410 enableval="$enable_libtool_lock"
6411
6412fi;
6413test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6414
6415
6416# Check whether --with-pic or --without-pic was given.
6417if test "${with_pic+set}" = set; then
6418 withval="$with_pic"
6419 pic_mode="$withval"
6420else
6421 pic_mode=default
6422fi;
6423test -z "$pic_mode" && pic_mode=default
6424
6425# Use C for the default configuration in the libtool script
6426tagname=
6427lt_save_CC="$CC"
6428ac_ext=c
6429ac_cpp='$CPP $CPPFLAGS'
6430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432ac_compiler_gnu=$ac_cv_c_compiler_gnu
6433
6434
6435# Source file extension for C test sources.
6436ac_ext=c
6437
6438# Object file extension for compiled C test sources.
6439objext=o
6440objext=$objext
6441
6442# Code to be used in simple compile tests
6443lt_simple_compile_test_code="int some_variable = 0;\n"
6444
6445# Code to be used in simple link tests
6446lt_simple_link_test_code='int main(){return(0);}\n'
6447
6448
6449# If no C compiler was specified, use CC.
6450LTCC=${LTCC-"$CC"}
6451
6452# If no C compiler flags were specified, use CFLAGS.
6453LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6454
6455# Allow CC to be a program name with arguments.
6456compiler=$CC
6457
6458
6459# save warnings/boilerplate of simple test code
6460ac_outfile=conftest.$ac_objext
6461printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6462eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6463_lt_compiler_boilerplate=`cat conftest.err`
6464$rm conftest*
6465
6466ac_outfile=conftest.$ac_objext
6467printf "$lt_simple_link_test_code" >conftest.$ac_ext
6468eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6469_lt_linker_boilerplate=`cat conftest.err`
6470$rm conftest*
6471
6472
6473
6474lt_prog_compiler_no_builtin_flag=
6475
6476if test "$GCC" = yes; then
6477 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6478
6479
6480echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6481echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6482if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485 lt_cv_prog_compiler_rtti_exceptions=no
6486 ac_outfile=conftest.$ac_objext
6487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6488 lt_compiler_flag="-fno-rtti -fno-exceptions"
6489 # Insert the option either (1) after the last *FLAGS variable, or
6490 # (2) before a word containing "conftest.", or (3) at the end.
6491 # Note that $ac_compile itself does not contain backslashes and begins
6492 # with a dollar sign (not a hyphen), so the echo should work correctly.
6493 # The option is referenced via a variable to avoid confusing sed.
6494 lt_compile=`echo "$ac_compile" | $SED \
6495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6497 -e 's:$: $lt_compiler_flag:'`
6498 (eval echo "\"\$as_me:6498: $lt_compile\"" >&5)
6499 (eval "$lt_compile" 2>conftest.err)
6500 ac_status=$?
6501 cat conftest.err >&5
6502 echo "$as_me:6502: \$? = $ac_status" >&5
6503 if (exit $ac_status) && test -s "$ac_outfile"; then
6504 # The compiler can only warn and ignore the option if not recognized
6505 # So say no if there are warnings other than the usual output.
6506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6509 lt_cv_prog_compiler_rtti_exceptions=yes
6510 fi
6511 fi
6512 $rm conftest*
6513
6514fi
6515echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6516echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6517
6518if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6520else
6521 :
6522fi
6523
6524fi
6525
6526lt_prog_compiler_wl=
6527lt_prog_compiler_pic=
6528lt_prog_compiler_static=
6529
6530echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6531echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6532
6533 if test "$GCC" = yes; then
6534 lt_prog_compiler_wl='-Wl,'
6535 lt_prog_compiler_static='-static'
6536
6537 case $host_os in
6538 aix*)
6539 # All AIX code is PIC.
6540 if test "$host_cpu" = ia64; then
6541 # AIX 5 now supports IA64 processor
6542 lt_prog_compiler_static='-Bstatic'
6543 fi
6544 ;;
6545
6546 amigaos*)
6547 # FIXME: we need at least 68020 code to build shared libraries, but
6548 # adding the `-m68020' flag to GCC prevents building anything better,
6549 # like `-m68040'.
6550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6551 ;;
6552
6553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6554 # PIC is the default for these OSes.
6555 ;;
6556
6557 mingw* | pw32* | os2*)
6558 # This hack is so that the source file can tell whether it is being
6559 # built for inclusion in a dll (and should export symbols for example).
6560 lt_prog_compiler_pic='-DDLL_EXPORT'
6561 ;;
6562
6563 darwin* | rhapsody*)
6564 # PIC is the default on this platform
6565 # Common symbols not allowed in MH_DYLIB files
6566 lt_prog_compiler_pic='-fno-common'
6567 ;;
6568
6569 interix3*)
6570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6571 # Instead, we relocate shared libraries at runtime.
6572 ;;
6573
6574 msdosdjgpp*)
6575 # Just because we use GCC doesn't mean we suddenly get shared libraries
6576 # on systems that don't support them.
6577 lt_prog_compiler_can_build_shared=no
6578 enable_shared=no
6579 ;;
6580
6581 sysv4*MP*)
6582 if test -d /usr/nec; then
6583 lt_prog_compiler_pic=-Kconform_pic
6584 fi
6585 ;;
6586
6587 hpux*)
6588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6589 # not for PA HP-UX.
6590 case $host_cpu in
6591 hppa*64*|ia64*)
6592 # +Z the default
6593 ;;
6594 *)
6595 lt_prog_compiler_pic='-fPIC'
6596 ;;
6597 esac
6598 ;;
6599
6600 *)
6601 lt_prog_compiler_pic='-fPIC'
6602 ;;
6603 esac
6604 else
6605 # PORTME Check for flag to pass linker flags through the system compiler.
6606 case $host_os in
6607 aix*)
6608 lt_prog_compiler_wl='-Wl,'
6609 if test "$host_cpu" = ia64; then
6610 # AIX 5 now supports IA64 processor
6611 lt_prog_compiler_static='-Bstatic'
6612 else
6613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6614 fi
6615 ;;
6616 darwin*)
6617 # PIC is the default on this platform
6618 # Common symbols not allowed in MH_DYLIB files
6619 case $cc_basename in
6620 xlc*)
6621 lt_prog_compiler_pic='-qnocommon'
6622 lt_prog_compiler_wl='-Wl,'
6623 ;;
6624 esac
6625 ;;
6626
6627 mingw* | pw32* | os2*)
6628 # This hack is so that the source file can tell whether it is being
6629 # built for inclusion in a dll (and should export symbols for example).
6630 lt_prog_compiler_pic='-DDLL_EXPORT'
6631 ;;
6632
6633 hpux9* | hpux10* | hpux11*)
6634 lt_prog_compiler_wl='-Wl,'
6635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6636 # not for PA HP-UX.
6637 case $host_cpu in
6638 hppa*64*|ia64*)
6639 # +Z the default
6640 ;;
6641 *)
6642 lt_prog_compiler_pic='+Z'
6643 ;;
6644 esac
6645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6646 lt_prog_compiler_static='${wl}-a ${wl}archive'
6647 ;;
6648
6649 irix5* | irix6* | nonstopux*)
6650 lt_prog_compiler_wl='-Wl,'
6651 # PIC (with -KPIC) is the default.
6652 lt_prog_compiler_static='-non_shared'
6653 ;;
6654
6655 newsos6)
6656 lt_prog_compiler_pic='-KPIC'
6657 lt_prog_compiler_static='-Bstatic'
6658 ;;
6659
6660 linux*)
6661 case $cc_basename in
6662 icc* | ecc*)
6663 lt_prog_compiler_wl='-Wl,'
6664 lt_prog_compiler_pic='-KPIC'
6665 lt_prog_compiler_static='-static'
6666 ;;
6667 pgcc* | pgf77* | pgf90* | pgf95*)
6668 # Portland Group compilers (*not* the Pentium gcc compiler,
6669 # which looks to be a dead project)
6670 lt_prog_compiler_wl='-Wl,'
6671 lt_prog_compiler_pic='-fpic'
6672 lt_prog_compiler_static='-Bstatic'
6673 ;;
6674 ccc*)
6675 lt_prog_compiler_wl='-Wl,'
6676 # All Alpha code is PIC.
6677 lt_prog_compiler_static='-non_shared'
6678 ;;
6679 esac
6680 ;;
6681
6682 osf3* | osf4* | osf5*)
6683 lt_prog_compiler_wl='-Wl,'
6684 # All OSF/1 code is PIC.
6685 lt_prog_compiler_static='-non_shared'
6686 ;;
6687
6688 solaris*)
6689 lt_prog_compiler_pic='-KPIC'
6690 lt_prog_compiler_static='-Bstatic'
6691 case $cc_basename in
6692 f77* | f90* | f95*)
6693 lt_prog_compiler_wl='-Qoption ld ';;
6694 *)
6695 lt_prog_compiler_wl='-Wl,';;
6696 esac
6697 ;;
6698
6699 sunos4*)
6700 lt_prog_compiler_wl='-Qoption ld '
6701 lt_prog_compiler_pic='-PIC'
6702 lt_prog_compiler_static='-Bstatic'
6703 ;;
6704
6705 sysv4 | sysv4.2uw2* | sysv4.3*)
6706 lt_prog_compiler_wl='-Wl,'
6707 lt_prog_compiler_pic='-KPIC'
6708 lt_prog_compiler_static='-Bstatic'
6709 ;;
6710
6711 sysv4*MP*)
6712 if test -d /usr/nec ;then
6713 lt_prog_compiler_pic='-Kconform_pic'
6714 lt_prog_compiler_static='-Bstatic'
6715 fi
6716 ;;
6717
6718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6719 lt_prog_compiler_wl='-Wl,'
6720 lt_prog_compiler_pic='-KPIC'
6721 lt_prog_compiler_static='-Bstatic'
6722 ;;
6723
6724 unicos*)
6725 lt_prog_compiler_wl='-Wl,'
6726 lt_prog_compiler_can_build_shared=no
6727 ;;
6728
6729 uts4*)
6730 lt_prog_compiler_pic='-pic'
6731 lt_prog_compiler_static='-Bstatic'
6732 ;;
6733
6734 *)
6735 lt_prog_compiler_can_build_shared=no
6736 ;;
6737 esac
6738 fi
6739
6740echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6741echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6742
6743#
6744# Check to make sure the PIC flag actually works.
6745#
6746if test -n "$lt_prog_compiler_pic"; then
6747
6748echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6750if test "${lt_prog_compiler_pic_works+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 lt_prog_compiler_pic_works=no
6754 ac_outfile=conftest.$ac_objext
6755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6757 # Insert the option either (1) after the last *FLAGS variable, or
6758 # (2) before a word containing "conftest.", or (3) at the end.
6759 # Note that $ac_compile itself does not contain backslashes and begins
6760 # with a dollar sign (not a hyphen), so the echo should work correctly.
6761 # The option is referenced via a variable to avoid confusing sed.
6762 lt_compile=`echo "$ac_compile" | $SED \
6763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6765 -e 's:$: $lt_compiler_flag:'`
6766 (eval echo "\"\$as_me:6766: $lt_compile\"" >&5)
6767 (eval "$lt_compile" 2>conftest.err)
6768 ac_status=$?
6769 cat conftest.err >&5
6770 echo "$as_me:6770: \$? = $ac_status" >&5
6771 if (exit $ac_status) && test -s "$ac_outfile"; then
6772 # The compiler can only warn and ignore the option if not recognized
6773 # So say no if there are warnings other than the usual output.
6774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6777 lt_prog_compiler_pic_works=yes
6778 fi
6779 fi
6780 $rm conftest*
6781
6782fi
6783echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6784echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6785
6786if test x"$lt_prog_compiler_pic_works" = xyes; then
6787 case $lt_prog_compiler_pic in
6788 "" | " "*) ;;
6789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6790 esac
6791else
6792 lt_prog_compiler_pic=
6793 lt_prog_compiler_can_build_shared=no
6794fi
6795
6796fi
6797case $host_os in
6798 # For platforms which do not support PIC, -DPIC is meaningless:
6799 *djgpp*)
6800 lt_prog_compiler_pic=
6801 ;;
6802 *)
6803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6804 ;;
6805esac
6806
6807#
6808# Check to make sure the static flag actually works.
6809#
6810wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6811echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6812echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6813if test "${lt_prog_compiler_static_works+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 lt_prog_compiler_static_works=no
6817 save_LDFLAGS="$LDFLAGS"
6818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6821 # The linker can only warn and ignore the option if not recognized
6822 # So say no if there are warnings
6823 if test -s conftest.err; then
6824 # Append any errors to the config.log.
6825 cat conftest.err 1>&5
6826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6828 if diff conftest.exp conftest.er2 >/dev/null; then
6829 lt_prog_compiler_static_works=yes
6830 fi
6831 else
6832 lt_prog_compiler_static_works=yes
6833 fi
6834 fi
6835 $rm conftest*
6836 LDFLAGS="$save_LDFLAGS"
6837
6838fi
6839echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6840echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6841
6842if test x"$lt_prog_compiler_static_works" = xyes; then
6843 :
6844else
6845 lt_prog_compiler_static=
6846fi
6847
6848
6849echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6851if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 lt_cv_prog_compiler_c_o=no
6855 $rm -r conftest 2>/dev/null
6856 mkdir conftest
6857 cd conftest
6858 mkdir out
6859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6860
6861 lt_compiler_flag="-o out/conftest2.$ac_objext"
6862 # Insert the option either (1) after the last *FLAGS variable, or
6863 # (2) before a word containing "conftest.", or (3) at the end.
6864 # Note that $ac_compile itself does not contain backslashes and begins
6865 # with a dollar sign (not a hyphen), so the echo should work correctly.
6866 lt_compile=`echo "$ac_compile" | $SED \
6867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6869 -e 's:$: $lt_compiler_flag:'`
6870 (eval echo "\"\$as_me:6870: $lt_compile\"" >&5)
6871 (eval "$lt_compile" 2>out/conftest.err)
6872 ac_status=$?
6873 cat out/conftest.err >&5
6874 echo "$as_me:6874: \$? = $ac_status" >&5
6875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6876 then
6877 # The compiler can only warn and ignore the option if not recognized
6878 # So say no if there are warnings
6879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6882 lt_cv_prog_compiler_c_o=yes
6883 fi
6884 fi
6885 chmod u+w . 2>&5
6886 $rm conftest*
6887 # SGI C++ compiler will create directory out/ii_files/ for
6888 # template instantiation
6889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6890 $rm out/* && rmdir out
6891 cd ..
6892 rmdir conftest
6893 $rm conftest*
6894
6895fi
6896echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6897echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6898
6899
6900hard_links="nottested"
6901if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6902 # do not overwrite the value of need_locks provided by the user
6903 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6905 hard_links=yes
6906 $rm conftest*
6907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6908 touch conftest.a
6909 ln conftest.a conftest.b 2>&5 || hard_links=no
6910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6911 echo "$as_me:$LINENO: result: $hard_links" >&5
6912echo "${ECHO_T}$hard_links" >&6
6913 if test "$hard_links" = no; then
6914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6916 need_locks=warn
6917 fi
6918else
6919 need_locks=no
6920fi
6921
6922echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6924
6925 runpath_var=
6926 allow_undefined_flag=
6927 enable_shared_with_static_runtimes=no
6928 archive_cmds=
6929 archive_expsym_cmds=
6930 old_archive_From_new_cmds=
6931 old_archive_from_expsyms_cmds=
6932 export_dynamic_flag_spec=
6933 whole_archive_flag_spec=
6934 thread_safe_flag_spec=
6935 hardcode_libdir_flag_spec=
6936 hardcode_libdir_flag_spec_ld=
6937 hardcode_libdir_separator=
6938 hardcode_direct=no
6939 hardcode_minus_L=no
6940 hardcode_shlibpath_var=unsupported
6941 link_all_deplibs=unknown
6942 hardcode_automatic=no
6943 module_cmds=
6944 module_expsym_cmds=
6945 always_export_symbols=no
6946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6947 # include_expsyms should be a list of space-separated symbols to be *always*
6948 # included in the symbol list
6949 include_expsyms=
6950 # exclude_expsyms can be an extended regexp of symbols to exclude
6951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6953 # as well as any symbol that contains `d'.
6954 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6956 # platforms (ab)use it in PIC code, but their linkers get confused if
6957 # the symbol is explicitly referenced. Since portable code cannot
6958 # rely on this symbol name, it's probably fine to never include it in
6959 # preloaded symbol tables.
6960 extract_expsyms_cmds=
6961 # Just being paranoid about ensuring that cc_basename is set.
6962 for cc_temp in $compiler""; do
6963 case $cc_temp in
6964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6966 \-*) ;;
6967 *) break;;
6968 esac
6969done
6970cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6971
6972 case $host_os in
6973 cygwin* | mingw* | pw32*)
6974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6975 # When not using gcc, we currently assume that we are using
6976 # Microsoft Visual C++.
6977 if test "$GCC" != yes; then
6978 with_gnu_ld=no
6979 fi
6980 ;;
6981 interix*)
6982 # we just hope/assume this is gcc and not c89 (= MSVC++)
6983 with_gnu_ld=yes
6984 ;;
6985 openbsd*)
6986 with_gnu_ld=no
6987 ;;
6988 esac
6989
6990 ld_shlibs=yes
6991 if test "$with_gnu_ld" = yes; then
6992 # If archive_cmds runs LD, not CC, wlarc should be empty
6993 wlarc='${wl}'
6994
6995 # Set some defaults for GNU ld with shared library support. These
6996 # are reset later if shared libraries are not supported. Putting them
6997 # here allows them to be overridden if necessary.
6998 runpath_var=LD_RUN_PATH
6999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7000 export_dynamic_flag_spec='${wl}--export-dynamic'
7001 # ancient GNU ld didn't support --whole-archive et. al.
7002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7003 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7004 else
7005 whole_archive_flag_spec=
7006 fi
7007 supports_anon_versioning=no
7008 case `$LD -v 2>/dev/null` in
7009 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7012 *\ 2.11.*) ;; # other 2.11 versions
7013 *) supports_anon_versioning=yes ;;
7014 esac
7015
7016 # See if GNU ld supports shared libraries.
7017 case $host_os in
7018 aix3* | aix4* | aix5*)
7019 # On AIX/PPC, the GNU linker is very broken
7020 if test "$host_cpu" != ia64; then
7021 ld_shlibs=no
7022 cat <<EOF 1>&2
7023
7024*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7025*** to be unable to reliably create shared libraries on AIX.
7026*** Therefore, libtool is disabling shared libraries support. If you
7027*** really care for shared libraries, you may want to modify your PATH
7028*** so that a non-GNU linker is found, and then restart.
7029
7030EOF
7031 fi
7032 ;;
7033
7034 amigaos*)
7035 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)'
7036 hardcode_libdir_flag_spec='-L$libdir'
7037 hardcode_minus_L=yes
7038
7039 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7040 # that the semantics of dynamic libraries on AmigaOS, at least up
7041 # to version 4, is to share data among multiple programs linked
7042 # with the same dynamic library. Since this doesn't match the
7043 # behavior of shared libraries on other platforms, we can't use
7044 # them.
7045 ld_shlibs=no
7046 ;;
7047
7048 beos*)
7049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7050 allow_undefined_flag=unsupported
7051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7052 # support --undefined. This deserves some investigation. FIXME
7053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7054 else
7055 ld_shlibs=no
7056 fi
7057 ;;
7058
7059 cygwin* | mingw* | pw32*)
7060 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7061 # as there is no search path for DLLs.
7062 hardcode_libdir_flag_spec='-L$libdir'
7063 allow_undefined_flag=unsupported
7064 always_export_symbols=no
7065 enable_shared_with_static_runtimes=yes
7066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7067
7068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7070 # If the export-symbols file already is a .def file (1st line
7071 # is EXPORTS), use it as is; otherwise, prepend...
7072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7073 cp $export_symbols $output_objdir/$soname.def;
7074 else
7075 echo EXPORTS > $output_objdir/$soname.def;
7076 cat $export_symbols >> $output_objdir/$soname.def;
7077 fi~
7078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7079 else
7080 ld_shlibs=no
7081 fi
7082 ;;
7083
7084 interix3*)
7085 hardcode_direct=no
7086 hardcode_shlibpath_var=no
7087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7088 export_dynamic_flag_spec='${wl}-E'
7089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7090 # Instead, shared libraries are loaded at an image base (0x10000000 by
7091 # default) and relocated if they conflict, which is a slow very memory
7092 # consuming and fragmenting process. To avoid this, we pick a random,
7093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7096 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'
7097 ;;
7098
7099 linux*)
7100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7101 tmp_addflag=
7102 case $cc_basename,$host_cpu in
7103 pgcc*) # Portland Group C compiler
7104 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'
7105 tmp_addflag=' $pic_flag'
7106 ;;
7107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7108 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'
7109 tmp_addflag=' $pic_flag -Mnomain' ;;
7110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7111 tmp_addflag=' -i_dynamic' ;;
7112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7113 tmp_addflag=' -i_dynamic -nofor_main' ;;
7114 ifc* | ifort*) # Intel Fortran compiler
7115 tmp_addflag=' -nofor_main' ;;
7116 esac
7117 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7118
7119 if test $supports_anon_versioning = yes; then
7120 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7122 $echo "local: *; };" >> $output_objdir/$libname.ver~
7123 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7124 fi
7125 else
7126 ld_shlibs=no
7127 fi
7128 ;;
7129
7130 netbsd*)
7131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7132 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7133 wlarc=
7134 else
7135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7137 fi
7138 ;;
7139
7140 solaris*)
7141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7142 ld_shlibs=no
7143 cat <<EOF 1>&2
7144
7145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7146*** create shared libraries on Solaris systems. Therefore, libtool
7147*** is disabling shared libraries support. We urge you to upgrade GNU
7148*** binutils to release 2.9.1 or newer. Another option is to modify
7149*** your PATH or compiler configuration so that the native linker is
7150*** used, and then restart.
7151
7152EOF
7153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7156 else
7157 ld_shlibs=no
7158 fi
7159 ;;
7160
7161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7162 case `$LD -v 2>&1` in
7163 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7164 ld_shlibs=no
7165 cat <<_LT_EOF 1>&2
7166
7167*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7168*** reliably create shared libraries on SCO systems. Therefore, libtool
7169*** is disabling shared libraries support. We urge you to upgrade GNU
7170*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7171*** your PATH or compiler configuration so that the native linker is
7172*** used, and then restart.
7173
7174_LT_EOF
7175 ;;
7176 *)
7177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7178 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7181 else
7182 ld_shlibs=no
7183 fi
7184 ;;
7185 esac
7186 ;;
7187
7188 sunos4*)
7189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7190 wlarc=
7191 hardcode_direct=yes
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 *)
7196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7199 else
7200 ld_shlibs=no
7201 fi
7202 ;;
7203 esac
7204
7205 if test "$ld_shlibs" = no; then
7206 runpath_var=
7207 hardcode_libdir_flag_spec=
7208 export_dynamic_flag_spec=
7209 whole_archive_flag_spec=
7210 fi
7211 else
7212 # PORTME fill in a description of your system's linker (not GNU ld)
7213 case $host_os in
7214 aix3*)
7215 allow_undefined_flag=unsupported
7216 always_export_symbols=yes
7217 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'
7218 # Note: this linker hardcodes the directories in LIBPATH if there
7219 # are no directories specified by -L.
7220 hardcode_minus_L=yes
7221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7222 # Neither direct hardcoding nor static linking is supported with a
7223 # broken collect2.
7224 hardcode_direct=unsupported
7225 fi
7226 ;;
7227
7228 aix4* | aix5*)
7229 if test "$host_cpu" = ia64; then
7230 # On IA64, the linker does run time linking by default, so we don't
7231 # have to do anything special.
7232 aix_use_runtimelinking=no
7233 exp_sym_flag='-Bexport'
7234 no_entry_flag=""
7235 else
7236 # If we're using GNU nm, then we don't want the "-C" option.
7237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7239 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'
7240 else
7241 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'
7242 fi
7243 aix_use_runtimelinking=no
7244
7245 # Test if we are trying to use run time linking or normal
7246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7247 # need to do runtime linking.
7248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7249 for ld_flag in $LDFLAGS; do
7250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7251 aix_use_runtimelinking=yes
7252 break
7253 fi
7254 done
7255 ;;
7256 esac
7257
7258 exp_sym_flag='-bexport'
7259 no_entry_flag='-bnoentry'
7260 fi
7261
7262 # When large executables or shared objects are built, AIX ld can
7263 # have problems creating the table of contents. If linking a library
7264 # or program results in "error TOC overflow" add -mminimal-toc to
7265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7267
7268 archive_cmds=''
7269 hardcode_direct=yes
7270 hardcode_libdir_separator=':'
7271 link_all_deplibs=yes
7272
7273 if test "$GCC" = yes; then
7274 case $host_os in aix4.[012]|aix4.[012].*)
7275 # We only want to do this on AIX 4.2 and lower, the check
7276 # below for broken collect2 doesn't work under 4.3+
7277 collect2name=`${CC} -print-prog-name=collect2`
7278 if test -f "$collect2name" && \
7279 strings "$collect2name" | grep resolve_lib_name >/dev/null
7280 then
7281 # We have reworked collect2
7282 hardcode_direct=yes
7283 else
7284 # We have old collect2
7285 hardcode_direct=unsupported
7286 # It fails to find uninstalled libraries when the uninstalled
7287 # path is not listed in the libpath. Setting hardcode_minus_L
7288 # to unsupported forces relinking
7289 hardcode_minus_L=yes
7290 hardcode_libdir_flag_spec='-L$libdir'
7291 hardcode_libdir_separator=
7292 fi
7293 ;;
7294 esac
7295 shared_flag='-shared'
7296 if test "$aix_use_runtimelinking" = yes; then
7297 shared_flag="$shared_flag "'${wl}-G'
7298 fi
7299 else
7300 # not using gcc
7301 if test "$host_cpu" = ia64; then
7302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7303 # chokes on -Wl,-G. The following line is correct:
7304 shared_flag='-G'
7305 else
7306 if test "$aix_use_runtimelinking" = yes; then
7307 shared_flag='${wl}-G'
7308 else
7309 shared_flag='${wl}-bM:SRE'
7310 fi
7311 fi
7312 fi
7313
7314 # It seems that -bexpall does not export symbols beginning with
7315 # underscore (_), so it is better to generate a list of symbols to export.
7316 always_export_symbols=yes
7317 if test "$aix_use_runtimelinking" = yes; then
7318 # Warning - without using the other runtime loading flags (-brtl),
7319 # -berok will link without error, but may produce a broken library.
7320 allow_undefined_flag='-berok'
7321 # Determine the default libpath from the value encoded in an empty executable.
7322 cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328
7329int
7330main ()
7331{
7332
7333 ;
7334 return 0;
7335}
7336_ACEOF
7337rm -f conftest.$ac_objext conftest$ac_exeext
7338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>conftest.er1
7340 ac_status=$?
7341 grep -v '^ *+' conftest.er1 >conftest.err
7342 rm -f conftest.er1
7343 cat conftest.err >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -z "$ac_c_werror_flag"
7347 || test ! -s conftest.err'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 (eval $ac_try) 2>&5
7350 ac_status=$?
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; } &&
7353 { ac_try='test -s conftest$ac_exeext'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; }; then
7359
7360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7361}'`
7362# Check for a 64-bit object if we didn't find anything.
7363if 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; }
7364}'`; fi
7365else
7366 echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
7368
7369fi
7370rm -f conftest.err conftest.$ac_objext \
7371 conftest$ac_exeext conftest.$ac_ext
7372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7373
7374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7375 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"
7376 else
7377 if test "$host_cpu" = ia64; then
7378 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7379 allow_undefined_flag="-z nodefs"
7380 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"
7381 else
7382 # Determine the default libpath from the value encoded in an empty executable.
7383 cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389
7390int
7391main ()
7392{
7393
7394 ;
7395 return 0;
7396}
7397_ACEOF
7398rm -f conftest.$ac_objext conftest$ac_exeext
7399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420
7421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7422}'`
7423# Check for a 64-bit object if we didn't find anything.
7424if 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; }
7425}'`; fi
7426else
7427 echo "$as_me: failed program was:" >&5
7428sed 's/^/| /' conftest.$ac_ext >&5
7429
7430fi
7431rm -f conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7434
7435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7436 # Warning - without using the other run time loading flags,
7437 # -berok will link without error, but may produce a broken library.
7438 no_undefined_flag=' ${wl}-bernotok'
7439 allow_undefined_flag=' ${wl}-berok'
7440 # Exported symbols can be pulled into shared objects from archives
7441 whole_archive_flag_spec='$convenience'
7442 archive_cmds_need_lc=yes
7443 # This is similar to how AIX traditionally builds its shared libraries.
7444 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'
7445 fi
7446 fi
7447 ;;
7448
7449 amigaos*)
7450 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)'
7451 hardcode_libdir_flag_spec='-L$libdir'
7452 hardcode_minus_L=yes
7453 # see comment about different semantics on the GNU ld section
7454 ld_shlibs=no
7455 ;;
7456
7457 bsdi[45]*)
7458 export_dynamic_flag_spec=-rdynamic
7459 ;;
7460
7461 cygwin* | mingw* | pw32*)
7462 # When not using gcc, we currently assume that we are using
7463 # Microsoft Visual C++.
7464 # hardcode_libdir_flag_spec is actually meaningless, as there is
7465 # no search path for DLLs.
7466 hardcode_libdir_flag_spec=' '
7467 allow_undefined_flag=unsupported
7468 # Tell ltmain to make .lib files, not .a files.
7469 libext=lib
7470 # Tell ltmain to make .dll files, not .so files.
7471 shrext_cmds=".dll"
7472 # FIXME: Setting linknames here is a bad hack.
7473 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7474 # The linker will automatically build a .lib file if we build a DLL.
7475 old_archive_From_new_cmds='true'
7476 # FIXME: Should let the user specify the lib program.
7477 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7478 fix_srcfile_path='`cygpath -w "$srcfile"`'
7479 enable_shared_with_static_runtimes=yes
7480 ;;
7481
7482 darwin* | rhapsody*)
7483 case $host_os in
7484 rhapsody* | darwin1.[012])
7485 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7486 ;;
7487 *) # Darwin 1.3 on
7488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7490 else
7491 case ${MACOSX_DEPLOYMENT_TARGET} in
7492 10.[012])
7493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7494 ;;
7495 10.*)
7496 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7497 ;;
7498 esac
7499 fi
7500 ;;
7501 esac
7502 archive_cmds_need_lc=no
7503 hardcode_direct=no
7504 hardcode_automatic=yes
7505 hardcode_shlibpath_var=unsupported
7506 whole_archive_flag_spec=''
7507 link_all_deplibs=yes
7508 if test "$GCC" = yes ; then
7509 output_verbose_link_cmd='echo'
7510 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7511 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7513 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}'
7514 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}'
7515 else
7516 case $cc_basename in
7517 xlc*)
7518 output_verbose_link_cmd='echo'
7519 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7520 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7522 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}'
7523 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}'
7524 ;;
7525 *)
7526 ld_shlibs=no
7527 ;;
7528 esac
7529 fi
7530 ;;
7531
7532 dgux*)
7533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7534 hardcode_libdir_flag_spec='-L$libdir'
7535 hardcode_shlibpath_var=no
7536 ;;
7537
7538 freebsd1*)
7539 ld_shlibs=no
7540 ;;
7541
7542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7543 # support. Future versions do this automatically, but an explicit c++rt0.o
7544 # does not break anything, and helps significantly (at the cost of a little
7545 # extra space).
7546 freebsd2.2*)
7547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7548 hardcode_libdir_flag_spec='-R$libdir'
7549 hardcode_direct=yes
7550 hardcode_shlibpath_var=no
7551 ;;
7552
7553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7554 freebsd2*)
7555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556 hardcode_direct=yes
7557 hardcode_minus_L=yes
7558 hardcode_shlibpath_var=no
7559 ;;
7560
7561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7562 freebsd* | kfreebsd*-gnu | dragonfly*)
7563 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7564 hardcode_libdir_flag_spec='-R$libdir'
7565 hardcode_direct=yes
7566 hardcode_shlibpath_var=no
7567 ;;
7568
7569 hpux9*)
7570 if test "$GCC" = yes; then
7571 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'
7572 else
7573 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'
7574 fi
7575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7576 hardcode_libdir_separator=:
7577 hardcode_direct=yes
7578
7579 # hardcode_minus_L: Not really in the search PATH,
7580 # but as the default location of the library.
7581 hardcode_minus_L=yes
7582 export_dynamic_flag_spec='${wl}-E'
7583 ;;
7584
7585 hpux10*)
7586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7588 else
7589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7590 fi
7591 if test "$with_gnu_ld" = no; then
7592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7593 hardcode_libdir_separator=:
7594
7595 hardcode_direct=yes
7596 export_dynamic_flag_spec='${wl}-E'
7597
7598 # hardcode_minus_L: Not really in the search PATH,
7599 # but as the default location of the library.
7600 hardcode_minus_L=yes
7601 fi
7602 ;;
7603
7604 hpux11*)
7605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7606 case $host_cpu in
7607 hppa*64*)
7608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7609 ;;
7610 ia64*)
7611 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7612 ;;
7613 *)
7614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7615 ;;
7616 esac
7617 else
7618 case $host_cpu in
7619 hppa*64*)
7620 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7621 ;;
7622 ia64*)
7623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7624 ;;
7625 *)
7626 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7627 ;;
7628 esac
7629 fi
7630 if test "$with_gnu_ld" = no; then
7631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7632 hardcode_libdir_separator=:
7633
7634 case $host_cpu in
7635 hppa*64*|ia64*)
7636 hardcode_libdir_flag_spec_ld='+b $libdir'
7637 hardcode_direct=no
7638 hardcode_shlibpath_var=no
7639 ;;
7640 *)
7641 hardcode_direct=yes
7642 export_dynamic_flag_spec='${wl}-E'
7643
7644 # hardcode_minus_L: Not really in the search PATH,
7645 # but as the default location of the library.
7646 hardcode_minus_L=yes
7647 ;;
7648 esac
7649 fi
7650 ;;
7651
7652 irix5* | irix6* | nonstopux*)
7653 if test "$GCC" = yes; then
7654 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'
7655 else
7656 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'
7657 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7658 fi
7659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7660 hardcode_libdir_separator=:
7661 link_all_deplibs=yes
7662 ;;
7663
7664 netbsd*)
7665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7667 else
7668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7669 fi
7670 hardcode_libdir_flag_spec='-R$libdir'
7671 hardcode_direct=yes
7672 hardcode_shlibpath_var=no
7673 ;;
7674
7675 newsos6)
7676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_direct=yes
7678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7679 hardcode_libdir_separator=:
7680 hardcode_shlibpath_var=no
7681 ;;
7682
7683 openbsd*)
7684 hardcode_direct=yes
7685 hardcode_shlibpath_var=no
7686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7688 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7690 export_dynamic_flag_spec='${wl}-E'
7691 else
7692 case $host_os in
7693 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_libdir_flag_spec='-R$libdir'
7696 ;;
7697 *)
7698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7700 ;;
7701 esac
7702 fi
7703 ;;
7704
7705 os2*)
7706 hardcode_libdir_flag_spec='-L$libdir'
7707 hardcode_minus_L=yes
7708 allow_undefined_flag=unsupported
7709 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'
7710 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7711 ;;
7712
7713 osf3*)
7714 if test "$GCC" = yes; then
7715 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7716 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'
7717 else
7718 allow_undefined_flag=' -expect_unresolved \*'
7719 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'
7720 fi
7721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7722 hardcode_libdir_separator=:
7723 ;;
7724
7725 osf4* | osf5*) # as osf3* with the addition of -msym flag
7726 if test "$GCC" = yes; then
7727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7728 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7730 else
7731 allow_undefined_flag=' -expect_unresolved \*'
7732 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'
7733 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7734 $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'
7735
7736 # Both c and cxx compiler support -rpath directly
7737 hardcode_libdir_flag_spec='-rpath $libdir'
7738 fi
7739 hardcode_libdir_separator=:
7740 ;;
7741
7742 solaris*)
7743 no_undefined_flag=' -z text'
7744 if test "$GCC" = yes; then
7745 wlarc='${wl}'
7746 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7747 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7748 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7749 else
7750 wlarc=''
7751 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7752 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7754 fi
7755 hardcode_libdir_flag_spec='-R$libdir'
7756 hardcode_shlibpath_var=no
7757 case $host_os in
7758 solaris2.[0-5] | solaris2.[0-5].*) ;;
7759 *)
7760 # The compiler driver will combine linker options so we
7761 # cannot just pass the convience library names through
7762 # without $wl, iff we do not link with $LD.
7763 # Luckily, gcc supports the same syntax we need for Sun Studio.
7764 # Supported since Solaris 2.6 (maybe 2.5.1?)
7765 case $wlarc in
7766 '')
7767 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7768 *)
7769 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' ;;
7770 esac ;;
7771 esac
7772 link_all_deplibs=yes
7773 ;;
7774
7775 sunos4*)
7776 if test "x$host_vendor" = xsequent; then
7777 # Use $CC to link under sequent, because it throws in some extra .o
7778 # files that make .init and .fini sections work.
7779 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7780 else
7781 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7782 fi
7783 hardcode_libdir_flag_spec='-L$libdir'
7784 hardcode_direct=yes
7785 hardcode_minus_L=yes
7786 hardcode_shlibpath_var=no
7787 ;;
7788
7789 sysv4)
7790 case $host_vendor in
7791 sni)
7792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7793 hardcode_direct=yes # is this really true???
7794 ;;
7795 siemens)
7796 ## LD is ld it makes a PLAMLIB
7797 ## CC just makes a GrossModule.
7798 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7799 reload_cmds='$CC -r -o $output$reload_objs'
7800 hardcode_direct=no
7801 ;;
7802 motorola)
7803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7804 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7805 ;;
7806 esac
7807 runpath_var='LD_RUN_PATH'
7808 hardcode_shlibpath_var=no
7809 ;;
7810
7811 sysv4.3*)
7812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7813 hardcode_shlibpath_var=no
7814 export_dynamic_flag_spec='-Bexport'
7815 ;;
7816
7817 sysv4*MP*)
7818 if test -d /usr/nec; then
7819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820 hardcode_shlibpath_var=no
7821 runpath_var=LD_RUN_PATH
7822 hardcode_runpath_var=yes
7823 ld_shlibs=yes
7824 fi
7825 ;;
7826
7827 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7828 no_undefined_flag='${wl}-z,text'
7829 archive_cmds_need_lc=no
7830 hardcode_shlibpath_var=no
7831 runpath_var='LD_RUN_PATH'
7832
7833 if test "$GCC" = yes; then
7834 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7835 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7836 else
7837 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7838 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7839 fi
7840 ;;
7841
7842 sysv5* | sco3.2v5* | sco5v6*)
7843 # Note: We can NOT use -z defs as we might desire, because we do not
7844 # link with -lc, and that would cause any symbols used from libc to
7845 # always be unresolved, which means just about no library would
7846 # ever link correctly. If we're not using GNU ld we use -z text
7847 # though, which does catch some bad symbols but isn't as heavy-handed
7848 # as -z defs.
7849 no_undefined_flag='${wl}-z,text'
7850 allow_undefined_flag='${wl}-z,nodefs'
7851 archive_cmds_need_lc=no
7852 hardcode_shlibpath_var=no
7853 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7854 hardcode_libdir_separator=':'
7855 link_all_deplibs=yes
7856 export_dynamic_flag_spec='${wl}-Bexport'
7857 runpath_var='LD_RUN_PATH'
7858
7859 if test "$GCC" = yes; then
7860 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7861 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7862 else
7863 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7864 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7865 fi
7866 ;;
7867
7868 uts4*)
7869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7870 hardcode_libdir_flag_spec='-L$libdir'
7871 hardcode_shlibpath_var=no
7872 ;;
7873
7874 *)
7875 ld_shlibs=no
7876 ;;
7877 esac
7878 fi
7879
7880echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7881echo "${ECHO_T}$ld_shlibs" >&6
7882test "$ld_shlibs" = no && can_build_shared=no
7883
7884#
7885# Do we need to explicitly link libc?
7886#
7887case "x$archive_cmds_need_lc" in
7888x|xyes)
7889 # Assume -lc should be added
7890 archive_cmds_need_lc=yes
7891
7892 if test "$enable_shared" = yes && test "$GCC" = yes; then
7893 case $archive_cmds in
7894 *'~'*)
7895 # FIXME: we may have to deal with multi-command sequences.
7896 ;;
7897 '$CC '*)
7898 # Test whether the compiler implicitly links with -lc since on some
7899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7900 # to ld, don't add -lc before -lgcc.
7901 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7902echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7903 $rm conftest*
7904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7905
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } 2>conftest.err; then
7911 soname=conftest
7912 lib=conftest
7913 libobjs=conftest.$ac_objext
7914 deplibs=
7915 wl=$lt_prog_compiler_wl
7916 pic_flag=$lt_prog_compiler_pic
7917 compiler_flags=-v
7918 linker_flags=-v
7919 verstring=
7920 output_objdir=.
7921 libname=conftest
7922 lt_save_allow_undefined_flag=$allow_undefined_flag
7923 allow_undefined_flag=
7924 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7925 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }
7929 then
7930 archive_cmds_need_lc=no
7931 else
7932 archive_cmds_need_lc=yes
7933 fi
7934 allow_undefined_flag=$lt_save_allow_undefined_flag
7935 else
7936 cat conftest.err 1>&5
7937 fi
7938 $rm conftest*
7939 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7940echo "${ECHO_T}$archive_cmds_need_lc" >&6
7941 ;;
7942 esac
7943 fi
7944 ;;
7945esac
7946
7947echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7948echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7949library_names_spec=
7950libname_spec='lib$name'
7951soname_spec=
7952shrext_cmds=".so"
7953postinstall_cmds=
7954postuninstall_cmds=
7955finish_cmds=
7956finish_eval=
7957shlibpath_var=
7958shlibpath_overrides_runpath=unknown
7959version_type=none
7960dynamic_linker="$host_os ld.so"
7961sys_lib_dlsearch_path_spec="/lib /usr/lib"
7962if test "$GCC" = yes; then
7963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7964 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7965 # if the path contains ";" then we assume it to be the separator
7966 # otherwise default to the standard path separator (i.e. ":") - it is
7967 # assumed that no part of a normal pathname contains ";" but that should
7968 # okay in the real world where ";" in dirpaths is itself problematic.
7969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7970 else
7971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7972 fi
7973else
7974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7975fi
7976need_lib_prefix=unknown
7977hardcode_into_libs=no
7978
7979# when you set need_version to no, make sure it does not cause -set_version
7980# flags to be left without arguments
7981need_version=unknown
7982
7983case $host_os in
7984aix3*)
7985 version_type=linux
7986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7987 shlibpath_var=LIBPATH
7988
7989 # AIX 3 has no versioning support, so we append a major version to the name.
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 ;;
7992
7993aix4* | aix5*)
7994 version_type=linux
7995 need_lib_prefix=no
7996 need_version=no
7997 hardcode_into_libs=yes
7998 if test "$host_cpu" = ia64; then
7999 # AIX 5 supports IA64
8000 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8001 shlibpath_var=LD_LIBRARY_PATH
8002 else
8003 # With GCC up to 2.95.x, collect2 would create an import file
8004 # for dependence libraries. The import file would start with
8005 # the line `#! .'. This would cause the generated library to
8006 # depend on `.', always an invalid library. This was fixed in
8007 # development snapshots of GCC prior to 3.0.
8008 case $host_os in
8009 aix4 | aix4.[01] | aix4.[01].*)
8010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8011 echo ' yes '
8012 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8013 :
8014 else
8015 can_build_shared=no
8016 fi
8017 ;;
8018 esac
8019 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8020 # soname into executable. Probably we can add versioning support to
8021 # collect2, so additional links can be useful in future.
8022 if test "$aix_use_runtimelinking" = yes; then
8023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8024 # instead of lib<name>.a to let people know that these are not
8025 # typical AIX shared libraries.
8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8027 else
8028 # We preserve .a as extension for shared libraries through AIX4.2
8029 # and later when we are not doing run time linking.
8030 library_names_spec='${libname}${release}.a $libname.a'
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 fi
8033 shlibpath_var=LIBPATH
8034 fi
8035 ;;
8036
8037amigaos*)
8038 library_names_spec='$libname.ixlibrary $libname.a'
8039 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8040 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'
8041 ;;
8042
8043beos*)
8044 library_names_spec='${libname}${shared_ext}'
8045 dynamic_linker="$host_os ld.so"
8046 shlibpath_var=LIBRARY_PATH
8047 ;;
8048
8049bsdi[45]*)
8050 version_type=linux
8051 need_version=no
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8055 shlibpath_var=LD_LIBRARY_PATH
8056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8058 # the default ld.so.conf also contains /usr/contrib/lib and
8059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8060 # libtool to hard-code these into programs
8061 ;;
8062
8063cygwin* | mingw* | pw32*)
8064 version_type=windows
8065 shrext_cmds=".dll"
8066 need_version=no
8067 need_lib_prefix=no
8068
8069 case $GCC,$host_os in
8070 yes,cygwin* | yes,mingw* | yes,pw32*)
8071 library_names_spec='$libname.dll.a'
8072 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8073 postinstall_cmds='base_file=`basename \${file}`~
8074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8075 dldir=$destdir/`dirname \$dlpath`~
8076 test -d \$dldir || mkdir -p \$dldir~
8077 $install_prog $dir/$dlname \$dldir/$dlname~
8078 chmod a+x \$dldir/$dlname'
8079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8080 dlpath=$dir/\$dldll~
8081 $rm \$dlpath'
8082 shlibpath_overrides_runpath=yes
8083
8084 case $host_os in
8085 cygwin*)
8086 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8087 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8088 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8089 ;;
8090 mingw*)
8091 # MinGW DLLs use traditional 'lib' prefix
8092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8094 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8095 # It is most probably a Windows format PATH printed by
8096 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8097 # path with ; separators, and with drive letters. We can handle the
8098 # drive letters (cygwin fileutils understands them), so leave them,
8099 # especially as we might pass files found there to a mingw objdump,
8100 # which wouldn't understand a cygwinified path. Ahh.
8101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8102 else
8103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8104 fi
8105 ;;
8106 pw32*)
8107 # pw32 DLLs use 'pw' prefix rather than 'lib'
8108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8109 ;;
8110 esac
8111 ;;
8112
8113 *)
8114 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8115 ;;
8116 esac
8117 dynamic_linker='Win32 ld.exe'
8118 # FIXME: first we should search . and the directory the executable is in
8119 shlibpath_var=PATH
8120 ;;
8121
8122darwin* | rhapsody*)
8123 dynamic_linker="$host_os dyld"
8124 version_type=darwin
8125 need_lib_prefix=no
8126 need_version=no
8127 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8128 soname_spec='${libname}${release}${major}$shared_ext'
8129 shlibpath_overrides_runpath=yes
8130 shlibpath_var=DYLD_LIBRARY_PATH
8131 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8132 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8133 if test "$GCC" = yes; then
8134 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"`
8135 else
8136 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8137 fi
8138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8139 ;;
8140
8141dgux*)
8142 version_type=linux
8143 need_lib_prefix=no
8144 need_version=no
8145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8146 soname_spec='${libname}${release}${shared_ext}$major'
8147 shlibpath_var=LD_LIBRARY_PATH
8148 ;;
8149
8150freebsd1*)
8151 dynamic_linker=no
8152 ;;
8153
8154kfreebsd*-gnu)
8155 version_type=linux
8156 need_lib_prefix=no
8157 need_version=no
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8159 soname_spec='${libname}${release}${shared_ext}$major'
8160 shlibpath_var=LD_LIBRARY_PATH
8161 shlibpath_overrides_runpath=no
8162 hardcode_into_libs=yes
8163 dynamic_linker='GNU ld.so'
8164 ;;
8165
8166freebsd* | dragonfly*)
8167 # DragonFly does not have aout. When/if they implement a new
8168 # versioning mechanism, adjust this.
8169 if test -x /usr/bin/objformat; then
8170 objformat=`/usr/bin/objformat`
8171 else
8172 case $host_os in
8173 freebsd[123]*) objformat=aout ;;
8174 *) objformat=elf ;;
8175 esac
8176 fi
8177 version_type=freebsd-$objformat
8178 case $version_type in
8179 freebsd-elf*)
8180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8181 need_version=no
8182 need_lib_prefix=no
8183 ;;
8184 freebsd-*)
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8186 need_version=yes
8187 ;;
8188 esac
8189 shlibpath_var=LD_LIBRARY_PATH
8190 case $host_os in
8191 freebsd2*)
8192 shlibpath_overrides_runpath=yes
8193 ;;
8194 freebsd3.[01]* | freebsdelf3.[01]*)
8195 shlibpath_overrides_runpath=yes
8196 hardcode_into_libs=yes
8197 ;;
8198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8200 shlibpath_overrides_runpath=no
8201 hardcode_into_libs=yes
8202 ;;
8203 freebsd*) # from 4.6 on
8204 shlibpath_overrides_runpath=yes
8205 hardcode_into_libs=yes
8206 ;;
8207 esac
8208 ;;
8209
8210gnu*)
8211 version_type=linux
8212 need_lib_prefix=no
8213 need_version=no
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8215 soname_spec='${libname}${release}${shared_ext}$major'
8216 shlibpath_var=LD_LIBRARY_PATH
8217 hardcode_into_libs=yes
8218 ;;
8219
8220hpux9* | hpux10* | hpux11*)
8221 # Give a soname corresponding to the major version so that dld.sl refuses to
8222 # link against other versions.
8223 version_type=sunos
8224 need_lib_prefix=no
8225 need_version=no
8226 case $host_cpu in
8227 ia64*)
8228 shrext_cmds='.so'
8229 hardcode_into_libs=yes
8230 dynamic_linker="$host_os dld.so"
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 soname_spec='${libname}${release}${shared_ext}$major'
8235 if test "X$HPUX_IA64_MODE" = X32; then
8236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8237 else
8238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8239 fi
8240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8241 ;;
8242 hppa*64*)
8243 shrext_cmds='.sl'
8244 hardcode_into_libs=yes
8245 dynamic_linker="$host_os dld.sl"
8246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8252 ;;
8253 *)
8254 shrext_cmds='.sl'
8255 dynamic_linker="$host_os dld.sl"
8256 shlibpath_var=SHLIB_PATH
8257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259 soname_spec='${libname}${release}${shared_ext}$major'
8260 ;;
8261 esac
8262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8263 postinstall_cmds='chmod 555 $lib'
8264 ;;
8265
8266interix3*)
8267 version_type=linux
8268 need_lib_prefix=no
8269 need_version=no
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8271 soname_spec='${libname}${release}${shared_ext}$major'
8272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8273 shlibpath_var=LD_LIBRARY_PATH
8274 shlibpath_overrides_runpath=no
8275 hardcode_into_libs=yes
8276 ;;
8277
8278irix5* | irix6* | nonstopux*)
8279 case $host_os in
8280 nonstopux*) version_type=nonstopux ;;
8281 *)
8282 if test "$lt_cv_prog_gnu_ld" = yes; then
8283 version_type=linux
8284 else
8285 version_type=irix
8286 fi ;;
8287 esac
8288 need_lib_prefix=no
8289 need_version=no
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8292 case $host_os in
8293 irix5* | nonstopux*)
8294 libsuff= shlibsuff=
8295 ;;
8296 *)
8297 case $LD in # libtool.m4 will add one of these switches to LD
8298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8299 libsuff= shlibsuff= libmagic=32-bit;;
8300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8301 libsuff=32 shlibsuff=N32 libmagic=N32;;
8302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8304 *) libsuff= shlibsuff= libmagic=never-match;;
8305 esac
8306 ;;
8307 esac
8308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8309 shlibpath_overrides_runpath=no
8310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8312 hardcode_into_libs=yes
8313 ;;
8314
8315# No shared lib support for Linux oldld, aout, or coff.
8316linux*oldld* | linux*aout* | linux*coff*)
8317 dynamic_linker=no
8318 ;;
8319
8320# This must be Linux ELF.
8321linux*)
8322 version_type=linux
8323 need_lib_prefix=no
8324 need_version=no
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326 soname_spec='${libname}${release}${shared_ext}$major'
8327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8328 shlibpath_var=LD_LIBRARY_PATH
8329 shlibpath_overrides_runpath=no
8330 # This implies no fast_install, which is unacceptable.
8331 # Some rework will be needed to allow for fast_install
8332 # before this can be enabled.
8333 hardcode_into_libs=yes
8334
8335 # Append ld.so.conf contents to the search path
8336 if test -f /etc/ld.so.conf; then
8337 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' ' '`
8338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8339 fi
8340
8341 # We used to test for /lib/ld.so.1 and disable shared libraries on
8342 # powerpc, because MkLinux only supported shared libraries with the
8343 # GNU dynamic linker. Since this was broken with cross compilers,
8344 # most powerpc-linux boxes support dynamic linking these days and
8345 # people can always --disable-shared, the test was removed, and we
8346 # assume the GNU/Linux dynamic linker is in use.
8347 dynamic_linker='GNU/Linux ld.so'
8348 ;;
8349
8350knetbsd*-gnu)
8351 version_type=linux
8352 need_lib_prefix=no
8353 need_version=no
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8355 soname_spec='${libname}${release}${shared_ext}$major'
8356 shlibpath_var=LD_LIBRARY_PATH
8357 shlibpath_overrides_runpath=no
8358 hardcode_into_libs=yes
8359 dynamic_linker='GNU ld.so'
8360 ;;
8361
8362netbsd*)
8363 version_type=sunos
8364 need_lib_prefix=no
8365 need_version=no
8366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8369 dynamic_linker='NetBSD (a.out) ld.so'
8370 else
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8372 soname_spec='${libname}${release}${shared_ext}$major'
8373 dynamic_linker='NetBSD ld.elf_so'
8374 fi
8375 shlibpath_var=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath=yes
8377 hardcode_into_libs=yes
8378 ;;
8379
8380newsos6)
8381 version_type=linux
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383 shlibpath_var=LD_LIBRARY_PATH
8384 shlibpath_overrides_runpath=yes
8385 ;;
8386
8387nto-qnx*)
8388 version_type=linux
8389 need_lib_prefix=no
8390 need_version=no
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 soname_spec='${libname}${release}${shared_ext}$major'
8393 shlibpath_var=LD_LIBRARY_PATH
8394 shlibpath_overrides_runpath=yes
8395 ;;
8396
8397openbsd*)
8398 version_type=sunos
8399 sys_lib_dlsearch_path_spec="/usr/lib"
8400 need_lib_prefix=no
8401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8402 case $host_os in
8403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8404 *) need_version=no ;;
8405 esac
8406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8410 case $host_os in
8411 openbsd2.[89] | openbsd2.[89].*)
8412 shlibpath_overrides_runpath=no
8413 ;;
8414 *)
8415 shlibpath_overrides_runpath=yes
8416 ;;
8417 esac
8418 else
8419 shlibpath_overrides_runpath=yes
8420 fi
8421 ;;
8422
8423os2*)
8424 libname_spec='$name'
8425 shrext_cmds=".dll"
8426 need_lib_prefix=no
8427 library_names_spec='$libname${shared_ext} $libname.a'
8428 dynamic_linker='OS/2 ld.exe'
8429 shlibpath_var=LIBPATH
8430 ;;
8431
8432osf3* | osf4* | osf5*)
8433 version_type=osf
8434 need_lib_prefix=no
8435 need_version=no
8436 soname_spec='${libname}${release}${shared_ext}$major'
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8438 shlibpath_var=LD_LIBRARY_PATH
8439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8441 ;;
8442
8443solaris*)
8444 version_type=linux
8445 need_lib_prefix=no
8446 need_version=no
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 soname_spec='${libname}${release}${shared_ext}$major'
8449 shlibpath_var=LD_LIBRARY_PATH
8450 shlibpath_overrides_runpath=yes
8451 hardcode_into_libs=yes
8452 # ldd complains unless libraries are executable
8453 postinstall_cmds='chmod +x $lib'
8454 ;;
8455
8456sunos4*)
8457 version_type=sunos
8458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8460 shlibpath_var=LD_LIBRARY_PATH
8461 shlibpath_overrides_runpath=yes
8462 if test "$with_gnu_ld" = yes; then
8463 need_lib_prefix=no
8464 fi
8465 need_version=yes
8466 ;;
8467
8468sysv4 | sysv4.3*)
8469 version_type=linux
8470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8471 soname_spec='${libname}${release}${shared_ext}$major'
8472 shlibpath_var=LD_LIBRARY_PATH
8473 case $host_vendor in
8474 sni)
8475 shlibpath_overrides_runpath=no
8476 need_lib_prefix=no
8477 export_dynamic_flag_spec='${wl}-Blargedynsym'
8478 runpath_var=LD_RUN_PATH
8479 ;;
8480 siemens)
8481 need_lib_prefix=no
8482 ;;
8483 motorola)
8484 need_lib_prefix=no
8485 need_version=no
8486 shlibpath_overrides_runpath=no
8487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8488 ;;
8489 esac
8490 ;;
8491
8492sysv4*MP*)
8493 if test -d /usr/nec ;then
8494 version_type=linux
8495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8496 soname_spec='$libname${shared_ext}.$major'
8497 shlibpath_var=LD_LIBRARY_PATH
8498 fi
8499 ;;
8500
8501sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8502 version_type=freebsd-elf
8503 need_lib_prefix=no
8504 need_version=no
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8506 soname_spec='${libname}${release}${shared_ext}$major'
8507 shlibpath_var=LD_LIBRARY_PATH
8508 hardcode_into_libs=yes
8509 if test "$with_gnu_ld" = yes; then
8510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8511 shlibpath_overrides_runpath=no
8512 else
8513 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8514 shlibpath_overrides_runpath=yes
8515 case $host_os in
8516 sco3.2v5*)
8517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8518 ;;
8519 esac
8520 fi
8521 sys_lib_dlsearch_path_spec='/usr/lib'
8522 ;;
8523
8524uts4*)
8525 version_type=linux
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 soname_spec='${libname}${release}${shared_ext}$major'
8528 shlibpath_var=LD_LIBRARY_PATH
8529 ;;
8530
8531*)
8532 dynamic_linker=no
8533 ;;
8534esac
8535echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8536echo "${ECHO_T}$dynamic_linker" >&6
8537test "$dynamic_linker" = no && can_build_shared=no
8538
8539variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8540if test "$GCC" = yes; then
8541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8542fi
8543
8544echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8545echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8546hardcode_action=
8547if test -n "$hardcode_libdir_flag_spec" || \
8548 test -n "$runpath_var" || \
8549 test "X$hardcode_automatic" = "Xyes" ; then
8550
8551 # We can hardcode non-existant directories.
8552 if test "$hardcode_direct" != no &&
8553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8554 # have to relink, otherwise we might link with an installed library
8555 # when we should be linking with a yet-to-be-installed one
8556 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8557 test "$hardcode_minus_L" != no; then
8558 # Linking always hardcodes the temporary library directory.
8559 hardcode_action=relink
8560 else
8561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8562 hardcode_action=immediate
8563 fi
8564else
8565 # We cannot hardcode anything, or else we can only hardcode existing
8566 # directories.
8567 hardcode_action=unsupported
8568fi
8569echo "$as_me:$LINENO: result: $hardcode_action" >&5
8570echo "${ECHO_T}$hardcode_action" >&6
8571
8572if test "$hardcode_action" = relink; then
8573 # Fast installation is not supported
8574 enable_fast_install=no
8575elif test "$shlibpath_overrides_runpath" = yes ||
8576 test "$enable_shared" = no; then
8577 # Fast installation is not necessary
8578 enable_fast_install=needless
8579fi
8580
8581striplib=
8582old_striplib=
8583echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8584echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8585if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8586 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8587 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8588 echo "$as_me:$LINENO: result: yes" >&5
8589echo "${ECHO_T}yes" >&6
8590else
8591# FIXME - insert some real tests, host_os isn't really good enough
8592 case $host_os in
8593 darwin*)
8594 if test -n "$STRIP" ; then
8595 striplib="$STRIP -x"
8596 echo "$as_me:$LINENO: result: yes" >&5
8597echo "${ECHO_T}yes" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
8601fi
8602 ;;
8603 *)
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 ;;
8607 esac
8608fi
8609
8610if test "x$enable_dlopen" != xyes; then
8611 enable_dlopen=unknown
8612 enable_dlopen_self=unknown
8613 enable_dlopen_self_static=unknown
8614else
8615 lt_cv_dlopen=no
8616 lt_cv_dlopen_libs=
8617
8618 case $host_os in
8619 beos*)
8620 lt_cv_dlopen="load_add_on"
8621 lt_cv_dlopen_libs=
8622 lt_cv_dlopen_self=yes
8623 ;;
8624
8625 mingw* | pw32*)
8626 lt_cv_dlopen="LoadLibrary"
8627 lt_cv_dlopen_libs=
8628 ;;
8629
8630 cygwin*)
8631 lt_cv_dlopen="dlopen"
8632 lt_cv_dlopen_libs=
8633 ;;
8634
8635 darwin*)
8636 # if libdl is installed we need to link against it
8637 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8638echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8639if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642 ac_check_lib_save_LIBS=$LIBS
8643LIBS="-ldl $LIBS"
8644cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h. */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h. */
8650
8651/* Override any gcc2 internal prototype to avoid an error. */
8652#ifdef __cplusplus
8653extern "C"
8654#endif
8655/* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8657char dlopen ();
8658int
8659main ()
8660{
8661dlopen ();
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666rm -f conftest.$ac_objext conftest$ac_exeext
8667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -z "$ac_c_werror_flag"
8676 || test ! -s conftest.err'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; } &&
8682 { ac_try='test -s conftest$ac_exeext'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_cv_lib_dl_dlopen=yes
8689else
8690 echo "$as_me: failed program was:" >&5
8691sed 's/^/| /' conftest.$ac_ext >&5
8692
8693ac_cv_lib_dl_dlopen=no
8694fi
8695rm -f conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697LIBS=$ac_check_lib_save_LIBS
8698fi
8699echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8700echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8701if test $ac_cv_lib_dl_dlopen = yes; then
8702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8703else
8704
8705 lt_cv_dlopen="dyld"
8706 lt_cv_dlopen_libs=
8707 lt_cv_dlopen_self=yes
8708
8709fi
8710
8711 ;;
8712
8713 *)
8714 echo "$as_me:$LINENO: checking for shl_load" >&5
8715echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8716if test "${ac_cv_func_shl_load+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718else
8719 cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */
8725/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8727#define shl_load innocuous_shl_load
8728
8729/* System header to define __stub macros and hopefully few prototypes,
8730 which can conflict with char shl_load (); below.
8731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8732 <limits.h> exists even on freestanding compilers. */
8733
8734#ifdef __STDC__
8735# include <limits.h>
8736#else
8737# include <assert.h>
8738#endif
8739
8740#undef shl_load
8741
8742/* Override any gcc2 internal prototype to avoid an error. */
8743#ifdef __cplusplus
8744extern "C"
8745{
8746#endif
8747/* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8749char shl_load ();
8750/* The GNU C library defines this for functions which it implements
8751 to always fail with ENOSYS. Some functions are actually named
8752 something starting with __ and the normal name is an alias. */
8753#if defined (__stub_shl_load) || defined (__stub___shl_load)
8754choke me
8755#else
8756char (*f) () = shl_load;
8757#endif
8758#ifdef __cplusplus
8759}
8760#endif
8761
8762int
8763main ()
8764{
8765return f != shl_load;
8766 ;
8767 return 0;
8768}
8769_ACEOF
8770rm -f conftest.$ac_objext conftest$ac_exeext
8771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag"
8780 || test ! -s conftest.err'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest$ac_exeext'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_func_shl_load=yes
8793else
8794 echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797ac_cv_func_shl_load=no
8798fi
8799rm -f conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801fi
8802echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8803echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8804if test $ac_cv_func_shl_load = yes; then
8805 lt_cv_dlopen="shl_load"
8806else
8807 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8808echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8809if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811else
8812 ac_check_lib_save_LIBS=$LIBS
8813LIBS="-ldld $LIBS"
8814cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h. */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */
8820
8821/* Override any gcc2 internal prototype to avoid an error. */
8822#ifdef __cplusplus
8823extern "C"
8824#endif
8825/* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8827char shl_load ();
8828int
8829main ()
8830{
8831shl_load ();
8832 ;
8833 return 0;
8834}
8835_ACEOF
8836rm -f conftest.$ac_objext conftest$ac_exeext
8837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest$ac_exeext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_cv_lib_dld_shl_load=yes
8859else
8860 echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863ac_cv_lib_dld_shl_load=no
8864fi
8865rm -f conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867LIBS=$ac_check_lib_save_LIBS
8868fi
8869echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8870echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8871if test $ac_cv_lib_dld_shl_load = yes; then
8872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8873else
8874 echo "$as_me:$LINENO: checking for dlopen" >&5
8875echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8876if test "${ac_cv_func_dlopen+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8878else
8879 cat >conftest.$ac_ext <<_ACEOF
8880/* confdefs.h. */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h. */
8885/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887#define dlopen innocuous_dlopen
8888
8889/* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char dlopen (); below.
8891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 <limits.h> exists even on freestanding compilers. */
8893
8894#ifdef __STDC__
8895# include <limits.h>
8896#else
8897# include <assert.h>
8898#endif
8899
8900#undef dlopen
8901
8902/* Override any gcc2 internal prototype to avoid an error. */
8903#ifdef __cplusplus
8904extern "C"
8905{
8906#endif
8907/* We use char because int might match the return type of a gcc2
8908 builtin and then its argument prototype would still apply. */
8909char dlopen ();
8910/* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913#if defined (__stub_dlopen) || defined (__stub___dlopen)
8914choke me
8915#else
8916char (*f) () = dlopen;
8917#endif
8918#ifdef __cplusplus
8919}
8920#endif
8921
8922int
8923main ()
8924{
8925return f != dlopen;
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930rm -f conftest.$ac_objext conftest$ac_exeext
8931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_func_dlopen=yes
8953else
8954 echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957ac_cv_func_dlopen=no
8958fi
8959rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8963echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8964if test $ac_cv_func_dlopen = yes; then
8965 lt_cv_dlopen="dlopen"
8966else
8967 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8968echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8969if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971else
8972 ac_check_lib_save_LIBS=$LIBS
8973LIBS="-ldl $LIBS"
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980
8981/* Override any gcc2 internal prototype to avoid an error. */
8982#ifdef __cplusplus
8983extern "C"
8984#endif
8985/* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987char dlopen ();
8988int
8989main ()
8990{
8991dlopen ();
8992 ;
8993 return 0;
8994}
8995_ACEOF
8996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_lib_dl_dlopen=yes
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023ac_cv_lib_dl_dlopen=no
9024fi
9025rm -f conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9027LIBS=$ac_check_lib_save_LIBS
9028fi
9029echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9030echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9031if test $ac_cv_lib_dl_dlopen = yes; then
9032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9033else
9034 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9035echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9036if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038else
9039 ac_check_lib_save_LIBS=$LIBS
9040LIBS="-lsvld $LIBS"
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047
9048/* Override any gcc2 internal prototype to avoid an error. */
9049#ifdef __cplusplus
9050extern "C"
9051#endif
9052/* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9054char dlopen ();
9055int
9056main ()
9057{
9058dlopen ();
9059 ;
9060 return 0;
9061}
9062_ACEOF
9063rm -f conftest.$ac_objext conftest$ac_exeext
9064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_lib_svld_dlopen=yes
9086else
9087 echo "$as_me: failed program was:" >&5
9088sed 's/^/| /' conftest.$ac_ext >&5
9089
9090ac_cv_lib_svld_dlopen=no
9091fi
9092rm -f conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094LIBS=$ac_check_lib_save_LIBS
9095fi
9096echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9097echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9098if test $ac_cv_lib_svld_dlopen = yes; then
9099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9100else
9101 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9102echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9103if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106 ac_check_lib_save_LIBS=$LIBS
9107LIBS="-ldld $LIBS"
9108cat >conftest.$ac_ext <<_ACEOF
9109/* confdefs.h. */
9110_ACEOF
9111cat confdefs.h >>conftest.$ac_ext
9112cat >>conftest.$ac_ext <<_ACEOF
9113/* end confdefs.h. */
9114
9115/* Override any gcc2 internal prototype to avoid an error. */
9116#ifdef __cplusplus
9117extern "C"
9118#endif
9119/* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121char dld_link ();
9122int
9123main ()
9124{
9125dld_link ();
9126 ;
9127 return 0;
9128}
9129_ACEOF
9130rm -f conftest.$ac_objext conftest$ac_exeext
9131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag"
9140 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } &&
9146 { ac_try='test -s conftest$ac_exeext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_lib_dld_dld_link=yes
9153else
9154 echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157ac_cv_lib_dld_dld_link=no
9158fi
9159rm -f conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161LIBS=$ac_check_lib_save_LIBS
9162fi
9163echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9164echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9165if test $ac_cv_lib_dld_dld_link = yes; then
9166 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9167fi
9168
9169
9170fi
9171
9172
9173fi
9174
9175
9176fi
9177
9178
9179fi
9180
9181
9182fi
9183
9184 ;;
9185 esac
9186
9187 if test "x$lt_cv_dlopen" != xno; then
9188 enable_dlopen=yes
9189 else
9190 enable_dlopen=no
9191 fi
9192
9193 case $lt_cv_dlopen in
9194 dlopen)
9195 save_CPPFLAGS="$CPPFLAGS"
9196 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9197
9198 save_LDFLAGS="$LDFLAGS"
9199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9200
9201 save_LIBS="$LIBS"
9202 LIBS="$lt_cv_dlopen_libs $LIBS"
9203
9204 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9205echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9206if test "${lt_cv_dlopen_self+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209 if test "$cross_compiling" = yes; then :
9210 lt_cv_dlopen_self=cross
9211else
9212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9213 lt_status=$lt_dlunknown
9214 cat > conftest.$ac_ext <<EOF
9215#line 9215 "configure"
9216#include "confdefs.h"
9217
9218#if HAVE_DLFCN_H
9219#include <dlfcn.h>
9220#endif
9221
9222#include <stdio.h>
9223
9224#ifdef RTLD_GLOBAL
9225# define LT_DLGLOBAL RTLD_GLOBAL
9226#else
9227# ifdef DL_GLOBAL
9228# define LT_DLGLOBAL DL_GLOBAL
9229# else
9230# define LT_DLGLOBAL 0
9231# endif
9232#endif
9233
9234/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9235 find out it does not work in some platform. */
9236#ifndef LT_DLLAZY_OR_NOW
9237# ifdef RTLD_LAZY
9238# define LT_DLLAZY_OR_NOW RTLD_LAZY
9239# else
9240# ifdef DL_LAZY
9241# define LT_DLLAZY_OR_NOW DL_LAZY
9242# else
9243# ifdef RTLD_NOW
9244# define LT_DLLAZY_OR_NOW RTLD_NOW
9245# else
9246# ifdef DL_NOW
9247# define LT_DLLAZY_OR_NOW DL_NOW
9248# else
9249# define LT_DLLAZY_OR_NOW 0
9250# endif
9251# endif
9252# endif
9253# endif
9254#endif
9255
9256#ifdef __cplusplus
9257extern "C" void exit (int);
9258#endif
9259
9260void fnord() { int i=42;}
9261int main ()
9262{
9263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9264 int status = $lt_dlunknown;
9265
9266 if (self)
9267 {
9268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9269 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9270 /* dlclose (self); */
9271 }
9272 else
9273 puts (dlerror ());
9274
9275 exit (status);
9276}
9277EOF
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9283 (./conftest; exit; ) >&5 2>/dev/null
9284 lt_status=$?
9285 case x$lt_status in
9286 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9287 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9288 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9289 esac
9290 else :
9291 # compilation failed
9292 lt_cv_dlopen_self=no
9293 fi
9294fi
9295rm -fr conftest*
9296
9297
9298fi
9299echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9300echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9301
9302 if test "x$lt_cv_dlopen_self" = xyes; then
9303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9304 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9305echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9306if test "${lt_cv_dlopen_self_static+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308else
9309 if test "$cross_compiling" = yes; then :
9310 lt_cv_dlopen_self_static=cross
9311else
9312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9313 lt_status=$lt_dlunknown
9314 cat > conftest.$ac_ext <<EOF
9315#line 9315 "configure"
9316#include "confdefs.h"
9317
9318#if HAVE_DLFCN_H
9319#include <dlfcn.h>
9320#endif
9321
9322#include <stdio.h>
9323
9324#ifdef RTLD_GLOBAL
9325# define LT_DLGLOBAL RTLD_GLOBAL
9326#else
9327# ifdef DL_GLOBAL
9328# define LT_DLGLOBAL DL_GLOBAL
9329# else
9330# define LT_DLGLOBAL 0
9331# endif
9332#endif
9333
9334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9335 find out it does not work in some platform. */
9336#ifndef LT_DLLAZY_OR_NOW
9337# ifdef RTLD_LAZY
9338# define LT_DLLAZY_OR_NOW RTLD_LAZY
9339# else
9340# ifdef DL_LAZY
9341# define LT_DLLAZY_OR_NOW DL_LAZY
9342# else
9343# ifdef RTLD_NOW
9344# define LT_DLLAZY_OR_NOW RTLD_NOW
9345# else
9346# ifdef DL_NOW
9347# define LT_DLLAZY_OR_NOW DL_NOW
9348# else
9349# define LT_DLLAZY_OR_NOW 0
9350# endif
9351# endif
9352# endif
9353# endif
9354#endif
9355
9356#ifdef __cplusplus
9357extern "C" void exit (int);
9358#endif
9359
9360void fnord() { int i=42;}
9361int main ()
9362{
9363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9364 int status = $lt_dlunknown;
9365
9366 if (self)
9367 {
9368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9370 /* dlclose (self); */
9371 }
9372 else
9373 puts (dlerror ());
9374
9375 exit (status);
9376}
9377EOF
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9383 (./conftest; exit; ) >&5 2>/dev/null
9384 lt_status=$?
9385 case x$lt_status in
9386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9389 esac
9390 else :
9391 # compilation failed
9392 lt_cv_dlopen_self_static=no
9393 fi
9394fi
9395rm -fr conftest*
9396
9397
9398fi
9399echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9400echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9401 fi
9402
9403 CPPFLAGS="$save_CPPFLAGS"
9404 LDFLAGS="$save_LDFLAGS"
9405 LIBS="$save_LIBS"
9406 ;;
9407 esac
9408
9409 case $lt_cv_dlopen_self in
9410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9411 *) enable_dlopen_self=unknown ;;
9412 esac
9413
9414 case $lt_cv_dlopen_self_static in
9415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9416 *) enable_dlopen_self_static=unknown ;;
9417 esac
9418fi
9419
9420
9421# Report which library types will actually be built
9422echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9423echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9424echo "$as_me:$LINENO: result: $can_build_shared" >&5
9425echo "${ECHO_T}$can_build_shared" >&6
9426
9427echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9428echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9429test "$can_build_shared" = "no" && enable_shared=no
9430
9431# On AIX, shared libraries and static libraries use the same namespace, and
9432# are all built from PIC.
9433case $host_os in
9434aix3*)
9435 test "$enable_shared" = yes && enable_static=no
9436 if test -n "$RANLIB"; then
9437 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9438 postinstall_cmds='$RANLIB $lib'
9439 fi
9440 ;;
9441
9442aix4* | aix5*)
9443 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9444 test "$enable_shared" = yes && enable_static=no
9445 fi
9446 ;;
9447esac
9448echo "$as_me:$LINENO: result: $enable_shared" >&5
9449echo "${ECHO_T}$enable_shared" >&6
9450
9451echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9452echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9453# Make sure either enable_shared or enable_static is yes.
9454test "$enable_shared" = yes || enable_static=yes
9455echo "$as_me:$LINENO: result: $enable_static" >&5
9456echo "${ECHO_T}$enable_static" >&6
9457
9458# The else clause should only fire when bootstrapping the
9459# libtool distribution, otherwise you forgot to ship ltmain.sh
9460# with your package, and you will get complaints that there are
9461# no rules to generate ltmain.sh.
9462if test -f "$ltmain"; then
9463 # See if we are running on zsh, and set the options which allow our commands through
9464 # without removal of \ escapes.
9465 if test -n "${ZSH_VERSION+set}" ; then
9466 setopt NO_GLOB_SUBST
9467 fi
9468 # Now quote all the things that may contain metacharacters while being
9469 # careful not to overquote the AC_SUBSTed values. We take copies of the
9470 # variables and quote the copies for generation of the libtool script.
9471 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9472 SED SHELL STRIP \
9473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9475 deplibs_check_method reload_flag reload_cmds need_locks \
9476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9477 lt_cv_sys_global_symbol_to_c_name_address \
9478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9479 old_postinstall_cmds old_postuninstall_cmds \
9480 compiler \
9481 CC \
9482 LD \
9483 lt_prog_compiler_wl \
9484 lt_prog_compiler_pic \
9485 lt_prog_compiler_static \
9486 lt_prog_compiler_no_builtin_flag \
9487 export_dynamic_flag_spec \
9488 thread_safe_flag_spec \
9489 whole_archive_flag_spec \
9490 enable_shared_with_static_runtimes \
9491 old_archive_cmds \
9492 old_archive_from_new_cmds \
9493 predep_objects \
9494 postdep_objects \
9495 predeps \
9496 postdeps \
9497 compiler_lib_search_path \
9498 archive_cmds \
9499 archive_expsym_cmds \
9500 postinstall_cmds \
9501 postuninstall_cmds \
9502 old_archive_from_expsyms_cmds \
9503 allow_undefined_flag \
9504 no_undefined_flag \
9505 export_symbols_cmds \
9506 hardcode_libdir_flag_spec \
9507 hardcode_libdir_flag_spec_ld \
9508 hardcode_libdir_separator \
9509 hardcode_automatic \
9510 module_cmds \
9511 module_expsym_cmds \
9512 lt_cv_prog_compiler_c_o \
9513 exclude_expsyms \
9514 include_expsyms; do
9515
9516 case $var in
9517 old_archive_cmds | \
9518 old_archive_from_new_cmds | \
9519 archive_cmds | \
9520 archive_expsym_cmds | \
9521 module_cmds | \
9522 module_expsym_cmds | \
9523 old_archive_from_expsyms_cmds | \
9524 export_symbols_cmds | \
9525 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9526 postinstall_cmds | postuninstall_cmds | \
9527 old_postinstall_cmds | old_postuninstall_cmds | \
9528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9529 # Double-quote double-evaled strings.
9530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9531 ;;
9532 *)
9533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9534 ;;
9535 esac
9536 done
9537
9538 case $lt_echo in
9539 *'\$0 --fallback-echo"')
9540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9541 ;;
9542 esac
9543
9544cfgfile="${ofile}T"
9545 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9546 $rm -f "$cfgfile"
9547 { echo "$as_me:$LINENO: creating $ofile" >&5
9548echo "$as_me: creating $ofile" >&6;}
9549
9550 cat <<__EOF__ >> "$cfgfile"
9551#! $SHELL
9552
9553# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9554# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9555# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9556#
9557# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9558# Free Software Foundation, Inc.
9559#
9560# This file is part of GNU Libtool:
9561# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9562#
9563# This program is free software; you can redistribute it and/or modify
9564# it under the terms of the GNU General Public License as published by
9565# the Free Software Foundation; either version 2 of the License, or
9566# (at your option) any later version.
9567#
9568# This program is distributed in the hope that it will be useful, but
9569# WITHOUT ANY WARRANTY; without even the implied warranty of
9570# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9571# General Public License for more details.
9572#
9573# You should have received a copy of the GNU General Public License
9574# along with this program; if not, write to the Free Software
9575# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9576#
9577# As a special exception to the GNU General Public License, if you
9578# distribute this file as part of a program that contains a
9579# configuration script generated by Autoconf, you may include it under
9580# the same distribution terms that you use for the rest of that program.
9581
9582# A sed program that does not truncate output.
9583SED=$lt_SED
9584
9585# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9586Xsed="$SED -e 1s/^X//"
9587
9588# The HP-UX ksh and POSIX shell print the target directory to stdout
9589# if CDPATH is set.
9590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9591
9592# The names of the tagged configurations supported by this script.
9593available_tags=
9594
9595# ### BEGIN LIBTOOL CONFIG
9596
9597# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9598
9599# Shell to use when invoking shell scripts.
9600SHELL=$lt_SHELL
9601
9602# Whether or not to build shared libraries.
9603build_libtool_libs=$enable_shared
9604
9605# Whether or not to build static libraries.
9606build_old_libs=$enable_static
9607
9608# Whether or not to add -lc for building shared libraries.
9609build_libtool_need_lc=$archive_cmds_need_lc
9610
9611# Whether or not to disallow shared libs when runtime libs are static
9612allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9613
9614# Whether or not to optimize for fast installation.
9615fast_install=$enable_fast_install
9616
9617# The host system.
9618host_alias=$host_alias
9619host=$host
9620host_os=$host_os
9621
9622# The build system.
9623build_alias=$build_alias
9624build=$build
9625build_os=$build_os
9626
9627# An echo program that does not interpret backslashes.
9628echo=$lt_echo
9629
9630# The archiver.
9631AR=$lt_AR
9632AR_FLAGS=$lt_AR_FLAGS
9633
9634# A C compiler.
9635LTCC=$lt_LTCC
9636
9637# LTCC compiler flags.
9638LTCFLAGS=$lt_LTCFLAGS
9639
9640# A language-specific compiler.
9641CC=$lt_compiler
9642
9643# Is the compiler the GNU C compiler?
9644with_gcc=$GCC
9645
9646# An ERE matcher.
9647EGREP=$lt_EGREP
9648
9649# The linker used to build libraries.
9650LD=$lt_LD
9651
9652# Whether we need hard or soft links.
9653LN_S=$lt_LN_S
9654
9655# A BSD-compatible nm program.
9656NM=$lt_NM
9657
9658# A symbol stripping program
9659STRIP=$lt_STRIP
9660
9661# Used to examine libraries when file_magic_cmd begins "file"
9662MAGIC_CMD=$MAGIC_CMD
9663
9664# Used on cygwin: DLL creation program.
9665DLLTOOL="$DLLTOOL"
9666
9667# Used on cygwin: object dumper.
9668OBJDUMP="$OBJDUMP"
9669
9670# Used on cygwin: assembler.
9671AS="$AS"
9672
9673# The name of the directory that contains temporary libtool files.
9674objdir=$objdir
9675
9676# How to create reloadable object files.
9677reload_flag=$lt_reload_flag
9678reload_cmds=$lt_reload_cmds
9679
9680# How to pass a linker flag through the compiler.
9681wl=$lt_lt_prog_compiler_wl
9682
9683# Object file suffix (normally "o").
9684objext="$ac_objext"
9685
9686# Old archive suffix (normally "a").
9687libext="$libext"
9688
9689# Shared library suffix (normally ".so").
9690shrext_cmds='$shrext_cmds'
9691
9692# Executable file suffix (normally "").
9693exeext="$exeext"
9694
9695# Additional compiler flags for building library objects.
9696pic_flag=$lt_lt_prog_compiler_pic
9697pic_mode=$pic_mode
9698
9699# What is the maximum length of a command?
9700max_cmd_len=$lt_cv_sys_max_cmd_len
9701
9702# Does compiler simultaneously support -c and -o options?
9703compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9704
9705# Must we lock files when doing compilation?
9706need_locks=$lt_need_locks
9707
9708# Do we need the lib prefix for modules?
9709need_lib_prefix=$need_lib_prefix
9710
9711# Do we need a version for libraries?
9712need_version=$need_version
9713
9714# Whether dlopen is supported.
9715dlopen_support=$enable_dlopen
9716
9717# Whether dlopen of programs is supported.
9718dlopen_self=$enable_dlopen_self
9719
9720# Whether dlopen of statically linked programs is supported.
9721dlopen_self_static=$enable_dlopen_self_static
9722
9723# Compiler flag to prevent dynamic linking.
9724link_static_flag=$lt_lt_prog_compiler_static
9725
9726# Compiler flag to turn off builtin functions.
9727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9728
9729# Compiler flag to allow reflexive dlopens.
9730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9731
9732# Compiler flag to generate shared objects directly from archives.
9733whole_archive_flag_spec=$lt_whole_archive_flag_spec
9734
9735# Compiler flag to generate thread-safe objects.
9736thread_safe_flag_spec=$lt_thread_safe_flag_spec
9737
9738# Library versioning type.
9739version_type=$version_type
9740
9741# Format of library name prefix.
9742libname_spec=$lt_libname_spec
9743
9744# List of archive names. First name is the real one, the rest are links.
9745# The last name is the one that the linker finds with -lNAME.
9746library_names_spec=$lt_library_names_spec
9747
9748# The coded name of the library, if different from the real name.
9749soname_spec=$lt_soname_spec
9750
9751# Commands used to build and install an old-style archive.
9752RANLIB=$lt_RANLIB
9753old_archive_cmds=$lt_old_archive_cmds
9754old_postinstall_cmds=$lt_old_postinstall_cmds
9755old_postuninstall_cmds=$lt_old_postuninstall_cmds
9756
9757# Create an old-style archive from a shared archive.
9758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9759
9760# Create a temporary old-style archive to link instead of a shared archive.
9761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9762
9763# Commands used to build and install a shared archive.
9764archive_cmds=$lt_archive_cmds
9765archive_expsym_cmds=$lt_archive_expsym_cmds
9766postinstall_cmds=$lt_postinstall_cmds
9767postuninstall_cmds=$lt_postuninstall_cmds
9768
9769# Commands used to build a loadable module (assumed same as above if empty)
9770module_cmds=$lt_module_cmds
9771module_expsym_cmds=$lt_module_expsym_cmds
9772
9773# Commands to strip libraries.
9774old_striplib=$lt_old_striplib
9775striplib=$lt_striplib
9776
9777# Dependencies to place before the objects being linked to create a
9778# shared library.
9779predep_objects=$lt_predep_objects
9780
9781# Dependencies to place after the objects being linked to create a
9782# shared library.
9783postdep_objects=$lt_postdep_objects
9784
9785# Dependencies to place before the objects being linked to create a
9786# shared library.
9787predeps=$lt_predeps
9788
9789# Dependencies to place after the objects being linked to create a
9790# shared library.
9791postdeps=$lt_postdeps
9792
9793# The library search path used internally by the compiler when linking
9794# a shared library.
9795compiler_lib_search_path=$lt_compiler_lib_search_path
9796
9797# Method to check whether dependent libraries are shared objects.
9798deplibs_check_method=$lt_deplibs_check_method
9799
9800# Command to use when deplibs_check_method == file_magic.
9801file_magic_cmd=$lt_file_magic_cmd
9802
9803# Flag that allows shared libraries with undefined symbols to be built.
9804allow_undefined_flag=$lt_allow_undefined_flag
9805
9806# Flag that forces no undefined symbols.
9807no_undefined_flag=$lt_no_undefined_flag
9808
9809# Commands used to finish a libtool library installation in a directory.
9810finish_cmds=$lt_finish_cmds
9811
9812# Same as above, but a single script fragment to be evaled but not shown.
9813finish_eval=$lt_finish_eval
9814
9815# Take the output of nm and produce a listing of raw symbols and C names.
9816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9817
9818# Transform the output of nm in a proper C declaration
9819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9820
9821# Transform the output of nm in a C name address pair
9822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9823
9824# This is the shared library runtime path variable.
9825runpath_var=$runpath_var
9826
9827# This is the shared library path variable.
9828shlibpath_var=$shlibpath_var
9829
9830# Is shlibpath searched before the hard-coded library search path?
9831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9832
9833# How to hardcode a shared library path into an executable.
9834hardcode_action=$hardcode_action
9835
9836# Whether we should hardcode library paths into libraries.
9837hardcode_into_libs=$hardcode_into_libs
9838
9839# Flag to hardcode \$libdir into a binary during linking.
9840# This must work even if \$libdir does not exist.
9841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9842
9843# If ld is used when linking, flag to hardcode \$libdir into
9844# a binary during linking. This must work even if \$libdir does
9845# not exist.
9846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9847
9848# Whether we need a single -rpath flag with a separated argument.
9849hardcode_libdir_separator=$lt_hardcode_libdir_separator
9850
9851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9852# resulting binary.
9853hardcode_direct=$hardcode_direct
9854
9855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9856# resulting binary.
9857hardcode_minus_L=$hardcode_minus_L
9858
9859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9860# the resulting binary.
9861hardcode_shlibpath_var=$hardcode_shlibpath_var
9862
9863# Set to yes if building a shared library automatically hardcodes DIR into the library
9864# and all subsequent libraries and executables linked against it.
9865hardcode_automatic=$hardcode_automatic
9866
9867# Variables whose values should be saved in libtool wrapper scripts and
9868# restored at relink time.
9869variables_saved_for_relink="$variables_saved_for_relink"
9870
9871# Whether libtool must link a program against all its dependency libraries.
9872link_all_deplibs=$link_all_deplibs
9873
9874# Compile-time system search path for libraries
9875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9876
9877# Run-time system search path for libraries
9878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9879
9880# Fix the shell variable \$srcfile for the compiler.
9881fix_srcfile_path="$fix_srcfile_path"
9882
9883# Set to yes if exported symbols are required.
9884always_export_symbols=$always_export_symbols
9885
9886# The commands to list exported symbols.
9887export_symbols_cmds=$lt_export_symbols_cmds
9888
9889# The commands to extract the exported symbol list from a shared archive.
9890extract_expsyms_cmds=$lt_extract_expsyms_cmds
9891
9892# Symbols that should not be listed in the preloaded symbols.
9893exclude_expsyms=$lt_exclude_expsyms
9894
9895# Symbols that must always be exported.
9896include_expsyms=$lt_include_expsyms
9897
9898# ### END LIBTOOL CONFIG
9899
9900__EOF__
9901
9902
9903 case $host_os in
9904 aix3*)
9905 cat <<\EOF >> "$cfgfile"
9906
9907# AIX sometimes has problems with the GCC collect2 program. For some
9908# reason, if we set the COLLECT_NAMES environment variable, the problems
9909# vanish in a puff of smoke.
9910if test "X${COLLECT_NAMES+set}" != Xset; then
9911 COLLECT_NAMES=
9912 export COLLECT_NAMES
9913fi
9914EOF
9915 ;;
9916 esac
9917
9918 # We use sed instead of cat because bash on DJGPP gets confused if
9919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9920 # text mode, it properly converts lines to CR/LF. This bash problem
9921 # is reportedly fixed, but why not run on old versions too?
9922 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9923
9924 mv -f "$cfgfile" "$ofile" || \
9925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9926 chmod +x "$ofile"
9927
9928else
9929 # If there is no Makefile yet, we rely on a make rule to execute
9930 # `config.status --recheck' to rerun these tests and create the
9931 # libtool script then.
9932 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9933 if test -f "$ltmain_in"; then
9934 test -f Makefile && make "$ltmain"
9935 fi
9936fi
9937
9938
9939ac_ext=c
9940ac_cpp='$CPP $CPPFLAGS'
9941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9943ac_compiler_gnu=$ac_cv_c_compiler_gnu
9944
9945CC="$lt_save_CC"
9946
9947
9948# Check whether --with-tags or --without-tags was given.
9949if test "${with_tags+set}" = set; then
9950 withval="$with_tags"
9951 tagnames="$withval"
9952fi;
9953
9954if test -f "$ltmain" && test -n "$tagnames"; then
9955 if test ! -f "${ofile}"; then
9956 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9957echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9958 fi
9959
9960 if test -z "$LTCC"; then
9961 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9962 if test -z "$LTCC"; then
9963 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9964echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9965 else
9966 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9967echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9968 fi
9969 fi
9970 if test -z "$LTCFLAGS"; then
9971 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9972 fi
9973
9974 # Extract list of available tagged configurations in $ofile.
9975 # Note that this assumes the entire list is on one line.
9976 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9977
9978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9979 for tagname in $tagnames; do
9980 IFS="$lt_save_ifs"
9981 # Check whether tagname contains only valid characters
9982 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9983 "") ;;
9984 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9985echo "$as_me: error: invalid tag name: $tagname" >&2;}
9986 { (exit 1); exit 1; }; }
9987 ;;
9988 esac
9989
9990 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9991 then
9992 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9993echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9994 { (exit 1); exit 1; }; }
9995 fi
9996
9997 # Update the list of available tags.
9998 if test -n "$tagname"; then
9999 echo appending configuration tag \"$tagname\" to $ofile
10000
10001 case $tagname in
10002 CXX)
10003 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10005 (test "X$CXX" != "Xg++"))) ; then
10006 ac_ext=cc
10007ac_cpp='$CXXCPP $CPPFLAGS'
10008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10011
10012
10013
10014
10015archive_cmds_need_lc_CXX=no
10016allow_undefined_flag_CXX=
10017always_export_symbols_CXX=no
10018archive_expsym_cmds_CXX=
10019export_dynamic_flag_spec_CXX=
10020hardcode_direct_CXX=no
10021hardcode_libdir_flag_spec_CXX=
10022hardcode_libdir_flag_spec_ld_CXX=
10023hardcode_libdir_separator_CXX=
10024hardcode_minus_L_CXX=no
10025hardcode_shlibpath_var_CXX=unsupported
10026hardcode_automatic_CXX=no
10027module_cmds_CXX=
10028module_expsym_cmds_CXX=
10029link_all_deplibs_CXX=unknown
10030old_archive_cmds_CXX=$old_archive_cmds
10031no_undefined_flag_CXX=
10032whole_archive_flag_spec_CXX=
10033enable_shared_with_static_runtimes_CXX=no
10034
10035# Dependencies to place before and after the object being linked:
10036predep_objects_CXX=
10037postdep_objects_CXX=
10038predeps_CXX=
10039postdeps_CXX=
10040compiler_lib_search_path_CXX=
10041
10042# Source file extension for C++ test sources.
10043ac_ext=cpp
10044
10045# Object file extension for compiled C++ test sources.
10046objext=o
10047objext_CXX=$objext
10048
10049# Code to be used in simple compile tests
10050lt_simple_compile_test_code="int some_variable = 0;\n"
10051
10052# Code to be used in simple link tests
10053lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10054
10055# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10056
10057# If no C compiler was specified, use CC.
10058LTCC=${LTCC-"$CC"}
10059
10060# If no C compiler flags were specified, use CFLAGS.
10061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10062
10063# Allow CC to be a program name with arguments.
10064compiler=$CC
10065
10066
10067# save warnings/boilerplate of simple test code
10068ac_outfile=conftest.$ac_objext
10069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10071_lt_compiler_boilerplate=`cat conftest.err`
10072$rm conftest*
10073
10074ac_outfile=conftest.$ac_objext
10075printf "$lt_simple_link_test_code" >conftest.$ac_ext
10076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10077_lt_linker_boilerplate=`cat conftest.err`
10078$rm conftest*
10079
10080
10081# Allow CC to be a program name with arguments.
10082lt_save_CC=$CC
10083lt_save_LD=$LD
10084lt_save_GCC=$GCC
10085GCC=$GXX
10086lt_save_with_gnu_ld=$with_gnu_ld
10087lt_save_path_LD=$lt_cv_path_LD
10088if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10090else
10091 $as_unset lt_cv_prog_gnu_ld
10092fi
10093if test -n "${lt_cv_path_LDCXX+set}"; then
10094 lt_cv_path_LD=$lt_cv_path_LDCXX
10095else
10096 $as_unset lt_cv_path_LD
10097fi
10098test -z "${LDCXX+set}" || LD=$LDCXX
10099CC=${CXX-"c++"}
10100compiler=$CC
10101compiler_CXX=$CC
10102for cc_temp in $compiler""; do
10103 case $cc_temp in
10104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10106 \-*) ;;
10107 *) break;;
10108 esac
10109done
10110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10111
10112
10113# We don't want -fno-exception wen compiling C++ code, so set the
10114# no_builtin_flag separately
10115if test "$GXX" = yes; then
10116 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10117else
10118 lt_prog_compiler_no_builtin_flag_CXX=
10119fi
10120
10121if test "$GXX" = yes; then
10122 # Set up default GNU C++ configuration
10123
10124
10125# Check whether --with-gnu-ld or --without-gnu-ld was given.
10126if test "${with_gnu_ld+set}" = set; then
10127 withval="$with_gnu_ld"
10128 test "$withval" = no || with_gnu_ld=yes
10129else
10130 with_gnu_ld=no
10131fi;
10132ac_prog=ld
10133if test "$GCC" = yes; then
10134 # Check if gcc -print-prog-name=ld gives a path.
10135 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10136echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10137 case $host in
10138 *-*-mingw*)
10139 # gcc leaves a trailing carriage return which upsets mingw
10140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10141 *)
10142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10143 esac
10144 case $ac_prog in
10145 # Accept absolute paths.
10146 [\\/]* | ?:[\\/]*)
10147 re_direlt='/[^/][^/]*/\.\./'
10148 # Canonicalize the pathname of ld
10149 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10151 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10152 done
10153 test -z "$LD" && LD="$ac_prog"
10154 ;;
10155 "")
10156 # If it fails, then pretend we aren't using GCC.
10157 ac_prog=ld
10158 ;;
10159 *)
10160 # If it is relative, then search for the first ld in PATH.
10161 with_gnu_ld=unknown
10162 ;;
10163 esac
10164elif test "$with_gnu_ld" = yes; then
10165 echo "$as_me:$LINENO: checking for GNU ld" >&5
10166echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10167else
10168 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10169echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10170fi
10171if test "${lt_cv_path_LD+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173else
10174 if test -z "$LD"; then
10175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10176 for ac_dir in $PATH; do
10177 IFS="$lt_save_ifs"
10178 test -z "$ac_dir" && ac_dir=.
10179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10180 lt_cv_path_LD="$ac_dir/$ac_prog"
10181 # Check to see if the program is GNU ld. I'd rather use --version,
10182 # but apparently some variants of GNU ld only accept -v.
10183 # Break only if it was the GNU/non-GNU ld that we prefer.
10184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10185 *GNU* | *'with BFD'*)
10186 test "$with_gnu_ld" != no && break
10187 ;;
10188 *)
10189 test "$with_gnu_ld" != yes && break
10190 ;;
10191 esac
10192 fi
10193 done
10194 IFS="$lt_save_ifs"
10195else
10196 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10197fi
10198fi
10199
10200LD="$lt_cv_path_LD"
10201if test -n "$LD"; then
10202 echo "$as_me:$LINENO: result: $LD" >&5
10203echo "${ECHO_T}$LD" >&6
10204else
10205 echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
10207fi
10208test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10209echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10210 { (exit 1); exit 1; }; }
10211echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10212echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10213if test "${lt_cv_prog_gnu_ld+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10217case `$LD -v 2>&1 </dev/null` in
10218*GNU* | *'with BFD'*)
10219 lt_cv_prog_gnu_ld=yes
10220 ;;
10221*)
10222 lt_cv_prog_gnu_ld=no
10223 ;;
10224esac
10225fi
10226echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10227echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10228with_gnu_ld=$lt_cv_prog_gnu_ld
10229
10230
10231
10232 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10233 # archiving commands below assume that GNU ld is being used.
10234 if test "$with_gnu_ld" = yes; then
10235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10236 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'
10237
10238 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10239 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10240
10241 # If archive_cmds runs LD, not CC, wlarc should be empty
10242 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10243 # investigate it a little bit more. (MM)
10244 wlarc='${wl}'
10245
10246 # ancient GNU ld didn't support --whole-archive et. al.
10247 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10248 grep 'no-whole-archive' > /dev/null; then
10249 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10250 else
10251 whole_archive_flag_spec_CXX=
10252 fi
10253 else
10254 with_gnu_ld=no
10255 wlarc=
10256
10257 # A generic and very simple default shared library creation
10258 # command for GNU C++ for the case where it uses the native
10259 # linker, instead of GNU ld. If possible, this setting should
10260 # overridden to take advantage of the native linker features on
10261 # the platform it is being used on.
10262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10263 fi
10264
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10269
10270else
10271 GXX=no
10272 with_gnu_ld=no
10273 wlarc=
10274fi
10275
10276# PORTME: fill in a description of your system's C++ link characteristics
10277echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10278echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10279ld_shlibs_CXX=yes
10280case $host_os in
10281 aix3*)
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 aix4* | aix5*)
10286 if test "$host_cpu" = ia64; then
10287 # On IA64, the linker does run time linking by default, so we don't
10288 # have to do anything special.
10289 aix_use_runtimelinking=no
10290 exp_sym_flag='-Bexport'
10291 no_entry_flag=""
10292 else
10293 aix_use_runtimelinking=no
10294
10295 # Test if we are trying to use run time linking or normal
10296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297 # need to do runtime linking.
10298 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10299 for ld_flag in $LDFLAGS; do
10300 case $ld_flag in
10301 *-brtl*)
10302 aix_use_runtimelinking=yes
10303 break
10304 ;;
10305 esac
10306 done
10307 ;;
10308 esac
10309
10310 exp_sym_flag='-bexport'
10311 no_entry_flag='-bnoentry'
10312 fi
10313
10314 # When large executables or shared objects are built, AIX ld can
10315 # have problems creating the table of contents. If linking a library
10316 # or program results in "error TOC overflow" add -mminimal-toc to
10317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10319
10320 archive_cmds_CXX=''
10321 hardcode_direct_CXX=yes
10322 hardcode_libdir_separator_CXX=':'
10323 link_all_deplibs_CXX=yes
10324
10325 if test "$GXX" = yes; then
10326 case $host_os in aix4.[012]|aix4.[012].*)
10327 # We only want to do this on AIX 4.2 and lower, the check
10328 # below for broken collect2 doesn't work under 4.3+
10329 collect2name=`${CC} -print-prog-name=collect2`
10330 if test -f "$collect2name" && \
10331 strings "$collect2name" | grep resolve_lib_name >/dev/null
10332 then
10333 # We have reworked collect2
10334 hardcode_direct_CXX=yes
10335 else
10336 # We have old collect2
10337 hardcode_direct_CXX=unsupported
10338 # It fails to find uninstalled libraries when the uninstalled
10339 # path is not listed in the libpath. Setting hardcode_minus_L
10340 # to unsupported forces relinking
10341 hardcode_minus_L_CXX=yes
10342 hardcode_libdir_flag_spec_CXX='-L$libdir'
10343 hardcode_libdir_separator_CXX=
10344 fi
10345 ;;
10346 esac
10347 shared_flag='-shared'
10348 if test "$aix_use_runtimelinking" = yes; then
10349 shared_flag="$shared_flag "'${wl}-G'
10350 fi
10351 else
10352 # not using gcc
10353 if test "$host_cpu" = ia64; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10356 shared_flag='-G'
10357 else
10358 if test "$aix_use_runtimelinking" = yes; then
10359 shared_flag='${wl}-G'
10360 else
10361 shared_flag='${wl}-bM:SRE'
10362 fi
10363 fi
10364 fi
10365
10366 # It seems that -bexpall does not export symbols beginning with
10367 # underscore (_), so it is better to generate a list of symbols to export.
10368 always_export_symbols_CXX=yes
10369 if test "$aix_use_runtimelinking" = yes; then
10370 # Warning - without using the other runtime loading flags (-brtl),
10371 # -berok will link without error, but may produce a broken library.
10372 allow_undefined_flag_CXX='-berok'
10373 # Determine the default libpath from the value encoded in an empty executable.
10374 cat >conftest.$ac_ext <<_ACEOF
10375/* confdefs.h. */
10376_ACEOF
10377cat confdefs.h >>conftest.$ac_ext
10378cat >>conftest.$ac_ext <<_ACEOF
10379/* end confdefs.h. */
10380
10381int
10382main ()
10383{
10384
10385 ;
10386 return 0;
10387}
10388_ACEOF
10389rm -f conftest.$ac_objext conftest$ac_exeext
10390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_cxx_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411
10412aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10413}'`
10414# Check for a 64-bit object if we didn't find anything.
10415if 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; }
10416}'`; fi
10417else
10418 echo "$as_me: failed program was:" >&5
10419sed 's/^/| /' conftest.$ac_ext >&5
10420
10421fi
10422rm -f conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10425
10426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10427
10428 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"
10429 else
10430 if test "$host_cpu" = ia64; then
10431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10432 allow_undefined_flag_CXX="-z nodefs"
10433 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"
10434 else
10435 # Determine the default libpath from the value encoded in an empty executable.
10436 cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
10442
10443int
10444main ()
10445{
10446
10447 ;
10448 return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
10452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -z "$ac_cxx_werror_flag"
10461 || test ! -s conftest.err'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest$ac_exeext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473
10474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10475}'`
10476# Check for a 64-bit object if we didn't find anything.
10477if 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; }
10478}'`; fi
10479else
10480 echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
10483fi
10484rm -f conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10487
10488 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10489 # Warning - without using the other run time loading flags,
10490 # -berok will link without error, but may produce a broken library.
10491 no_undefined_flag_CXX=' ${wl}-bernotok'
10492 allow_undefined_flag_CXX=' ${wl}-berok'
10493 # Exported symbols can be pulled into shared objects from archives
10494 whole_archive_flag_spec_CXX='$convenience'
10495 archive_cmds_need_lc_CXX=yes
10496 # This is similar to how AIX traditionally builds its shared libraries.
10497 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'
10498 fi
10499 fi
10500 ;;
10501
10502 beos*)
10503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10504 allow_undefined_flag_CXX=unsupported
10505 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10506 # support --undefined. This deserves some investigation. FIXME
10507 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10508 else
10509 ld_shlibs_CXX=no
10510 fi
10511 ;;
10512
10513 chorus*)
10514 case $cc_basename in
10515 *)
10516 # FIXME: insert proper C++ library support
10517 ld_shlibs_CXX=no
10518 ;;
10519 esac
10520 ;;
10521
10522 cygwin* | mingw* | pw32*)
10523 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10524 # as there is no search path for DLLs.
10525 hardcode_libdir_flag_spec_CXX='-L$libdir'
10526 allow_undefined_flag_CXX=unsupported
10527 always_export_symbols_CXX=no
10528 enable_shared_with_static_runtimes_CXX=yes
10529
10530 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10531 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'
10532 # If the export-symbols file already is a .def file (1st line
10533 # is EXPORTS), use it as is; otherwise, prepend...
10534 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10535 cp $export_symbols $output_objdir/$soname.def;
10536 else
10537 echo EXPORTS > $output_objdir/$soname.def;
10538 cat $export_symbols >> $output_objdir/$soname.def;
10539 fi~
10540 $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'
10541 else
10542 ld_shlibs_CXX=no
10543 fi
10544 ;;
10545 darwin* | rhapsody*)
10546 case $host_os in
10547 rhapsody* | darwin1.[012])
10548 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10549 ;;
10550 *) # Darwin 1.3 on
10551 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10552 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10553 else
10554 case ${MACOSX_DEPLOYMENT_TARGET} in
10555 10.[012])
10556 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10557 ;;
10558 10.*)
10559 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10560 ;;
10561 esac
10562 fi
10563 ;;
10564 esac
10565 archive_cmds_need_lc_CXX=no
10566 hardcode_direct_CXX=no
10567 hardcode_automatic_CXX=yes
10568 hardcode_shlibpath_var_CXX=unsupported
10569 whole_archive_flag_spec_CXX=''
10570 link_all_deplibs_CXX=yes
10571
10572 if test "$GXX" = yes ; then
10573 lt_int_apple_cc_single_mod=no
10574 output_verbose_link_cmd='echo'
10575 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10576 lt_int_apple_cc_single_mod=yes
10577 fi
10578 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10579 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10580 else
10581 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'
10582 fi
10583 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10585 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10586 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}'
10587 else
10588 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}'
10589 fi
10590 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}'
10591 else
10592 case $cc_basename in
10593 xlc*)
10594 output_verbose_link_cmd='echo'
10595 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'
10596 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10597 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10598 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}'
10599 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}'
10600 ;;
10601 *)
10602 ld_shlibs_CXX=no
10603 ;;
10604 esac
10605 fi
10606 ;;
10607
10608 dgux*)
10609 case $cc_basename in
10610 ec++*)
10611 # FIXME: insert proper C++ library support
10612 ld_shlibs_CXX=no
10613 ;;
10614 ghcx*)
10615 # Green Hills C++ Compiler
10616 # FIXME: insert proper C++ library support
10617 ld_shlibs_CXX=no
10618 ;;
10619 *)
10620 # FIXME: insert proper C++ library support
10621 ld_shlibs_CXX=no
10622 ;;
10623 esac
10624 ;;
10625 freebsd[12]*)
10626 # C++ shared libraries reported to be fairly broken before switch to ELF
10627 ld_shlibs_CXX=no
10628 ;;
10629 freebsd-elf*)
10630 archive_cmds_need_lc_CXX=no
10631 ;;
10632 freebsd* | kfreebsd*-gnu | dragonfly*)
10633 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10634 # conventions
10635 ld_shlibs_CXX=yes
10636 ;;
10637 gnu*)
10638 ;;
10639 hpux9*)
10640 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10641 hardcode_libdir_separator_CXX=:
10642 export_dynamic_flag_spec_CXX='${wl}-E'
10643 hardcode_direct_CXX=yes
10644 hardcode_minus_L_CXX=yes # Not in the search PATH,
10645 # but as the default
10646 # location of the library.
10647
10648 case $cc_basename in
10649 CC*)
10650 # FIXME: insert proper C++ library support
10651 ld_shlibs_CXX=no
10652 ;;
10653 aCC*)
10654 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'
10655 # Commands to make compiler produce verbose output that lists
10656 # what "hidden" libraries, object files and flags are used when
10657 # linking a shared library.
10658 #
10659 # There doesn't appear to be a way to prevent this compiler from
10660 # explicitly linking system object files so we need to strip them
10661 # from the output so that they don't get included in the library
10662 # dependencies.
10663 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'
10664 ;;
10665 *)
10666 if test "$GXX" = yes; then
10667 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'
10668 else
10669 # FIXME: insert proper C++ library support
10670 ld_shlibs_CXX=no
10671 fi
10672 ;;
10673 esac
10674 ;;
10675 hpux10*|hpux11*)
10676 if test $with_gnu_ld = no; then
10677 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10678 hardcode_libdir_separator_CXX=:
10679
10680 case $host_cpu in
10681 hppa*64*|ia64*)
10682 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10683 ;;
10684 *)
10685 export_dynamic_flag_spec_CXX='${wl}-E'
10686 ;;
10687 esac
10688 fi
10689 case $host_cpu in
10690 hppa*64*|ia64*)
10691 hardcode_direct_CXX=no
10692 hardcode_shlibpath_var_CXX=no
10693 ;;
10694 *)
10695 hardcode_direct_CXX=yes
10696 hardcode_minus_L_CXX=yes # Not in the search PATH,
10697 # but as the default
10698 # location of the library.
10699 ;;
10700 esac
10701
10702 case $cc_basename in
10703 CC*)
10704 # FIXME: insert proper C++ library support
10705 ld_shlibs_CXX=no
10706 ;;
10707 aCC*)
10708 case $host_cpu in
10709 hppa*64*)
10710 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10711 ;;
10712 ia64*)
10713 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10714 ;;
10715 *)
10716 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10717 ;;
10718 esac
10719 # Commands to make compiler produce verbose output that lists
10720 # what "hidden" libraries, object files and flags are used when
10721 # linking a shared library.
10722 #
10723 # There doesn't appear to be a way to prevent this compiler from
10724 # explicitly linking system object files so we need to strip them
10725 # from the output so that they don't get included in the library
10726 # dependencies.
10727 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'
10728 ;;
10729 *)
10730 if test "$GXX" = yes; then
10731 if test $with_gnu_ld = no; then
10732 case $host_cpu in
10733 hppa*64*)
10734 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10735 ;;
10736 ia64*)
10737 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10738 ;;
10739 *)
10740 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'
10741 ;;
10742 esac
10743 fi
10744 else
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10747 fi
10748 ;;
10749 esac
10750 ;;
10751 interix3*)
10752 hardcode_direct_CXX=no
10753 hardcode_shlibpath_var_CXX=no
10754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10755 export_dynamic_flag_spec_CXX='${wl}-E'
10756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10757 # Instead, shared libraries are loaded at an image base (0x10000000 by
10758 # default) and relocated if they conflict, which is a slow very memory
10759 # consuming and fragmenting process. To avoid this, we pick a random,
10760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10762 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'
10763 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'
10764 ;;
10765 irix5* | irix6*)
10766 case $cc_basename in
10767 CC*)
10768 # SGI C++
10769 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'
10770
10771 # Archives containing C++ object files must be created using
10772 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10773 # necessary to make sure instantiated templates are included
10774 # in the archive.
10775 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10776 ;;
10777 *)
10778 if test "$GXX" = yes; then
10779 if test "$with_gnu_ld" = no; then
10780 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'
10781 else
10782 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'
10783 fi
10784 fi
10785 link_all_deplibs_CXX=yes
10786 ;;
10787 esac
10788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10789 hardcode_libdir_separator_CXX=:
10790 ;;
10791 linux*)
10792 case $cc_basename in
10793 KCC*)
10794 # Kuck and Associates, Inc. (KAI) C++ Compiler
10795
10796 # KCC will only create a shared library if the output file
10797 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10798 # to its proper name (with version) after linking.
10799 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'
10800 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'
10801 # Commands to make compiler produce verbose output that lists
10802 # what "hidden" libraries, object files and flags are used when
10803 # linking a shared library.
10804 #
10805 # There doesn't appear to be a way to prevent this compiler from
10806 # explicitly linking system object files so we need to strip them
10807 # from the output so that they don't get included in the library
10808 # dependencies.
10809 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'
10810
10811 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10813
10814 # Archives containing C++ object files must be created using
10815 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10816 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10817 ;;
10818 icpc*)
10819 # Intel C++
10820 with_gnu_ld=yes
10821 # version 8.0 and above of icpc choke on multiply defined symbols
10822 # if we add $predep_objects and $postdep_objects, however 7.1 and
10823 # earlier do not add the objects themselves.
10824 case `$CC -V 2>&1` in
10825 *"Version 7."*)
10826 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10827 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'
10828 ;;
10829 *) # Version 8.0 or newer
10830 tmp_idyn=
10831 case $host_cpu in
10832 ia64*) tmp_idyn=' -i_dynamic';;
10833 esac
10834 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835 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'
10836 ;;
10837 esac
10838 archive_cmds_need_lc_CXX=no
10839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10841 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10842 ;;
10843 pgCC*)
10844 # Portland Group C++ compiler
10845 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10846 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'
10847
10848 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10850 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'
10851 ;;
10852 cxx*)
10853 # Compaq C++
10854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10855 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'
10856
10857 runpath_var=LD_RUN_PATH
10858 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10859 hardcode_libdir_separator_CXX=:
10860
10861 # Commands to make compiler produce verbose output that lists
10862 # what "hidden" libraries, object files and flags are used when
10863 # linking a shared library.
10864 #
10865 # There doesn't appear to be a way to prevent this compiler from
10866 # explicitly linking system object files so we need to strip them
10867 # from the output so that they don't get included in the library
10868 # dependencies.
10869 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'
10870 ;;
10871 esac
10872 ;;
10873 lynxos*)
10874 # FIXME: insert proper C++ library support
10875 ld_shlibs_CXX=no
10876 ;;
10877 m88k*)
10878 # FIXME: insert proper C++ library support
10879 ld_shlibs_CXX=no
10880 ;;
10881 mvs*)
10882 case $cc_basename in
10883 cxx*)
10884 # FIXME: insert proper C++ library support
10885 ld_shlibs_CXX=no
10886 ;;
10887 *)
10888 # FIXME: insert proper C++ library support
10889 ld_shlibs_CXX=no
10890 ;;
10891 esac
10892 ;;
10893 netbsd*)
10894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10895 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10896 wlarc=
10897 hardcode_libdir_flag_spec_CXX='-R$libdir'
10898 hardcode_direct_CXX=yes
10899 hardcode_shlibpath_var_CXX=no
10900 fi
10901 # Workaround some broken pre-1.5 toolchains
10902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10903 ;;
10904 openbsd2*)
10905 # C++ shared libraries are fairly broken
10906 ld_shlibs_CXX=no
10907 ;;
10908 openbsd*)
10909 hardcode_direct_CXX=yes
10910 hardcode_shlibpath_var_CXX=no
10911 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10914 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10915 export_dynamic_flag_spec_CXX='${wl}-E'
10916 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10917 fi
10918 output_verbose_link_cmd='echo'
10919 ;;
10920 osf3*)
10921 case $cc_basename in
10922 KCC*)
10923 # Kuck and Associates, Inc. (KAI) C++ Compiler
10924
10925 # KCC will only create a shared library if the output file
10926 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10927 # to its proper name (with version) after linking.
10928 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'
10929
10930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10931 hardcode_libdir_separator_CXX=:
10932
10933 # Archives containing C++ object files must be created using
10934 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10935 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10936
10937 ;;
10938 RCC*)
10939 # Rational C++ 2.4.1
10940 # FIXME: insert proper C++ library support
10941 ld_shlibs_CXX=no
10942 ;;
10943 cxx*)
10944 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10945 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'
10946
10947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10948 hardcode_libdir_separator_CXX=:
10949
10950 # Commands to make compiler produce verbose output that lists
10951 # what "hidden" libraries, object files and flags are used when
10952 # linking a shared library.
10953 #
10954 # There doesn't appear to be a way to prevent this compiler from
10955 # explicitly linking system object files so we need to strip them
10956 # from the output so that they don't get included in the library
10957 # dependencies.
10958 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'
10959 ;;
10960 *)
10961 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10962 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10963 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'
10964
10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10966 hardcode_libdir_separator_CXX=:
10967
10968 # Commands to make compiler produce verbose output that lists
10969 # what "hidden" libraries, object files and flags are used when
10970 # linking a shared library.
10971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10972
10973 else
10974 # FIXME: insert proper C++ library support
10975 ld_shlibs_CXX=no
10976 fi
10977 ;;
10978 esac
10979 ;;
10980 osf4* | osf5*)
10981 case $cc_basename in
10982 KCC*)
10983 # Kuck and Associates, Inc. (KAI) C++ Compiler
10984
10985 # KCC will only create a shared library if the output file
10986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10987 # to its proper name (with version) after linking.
10988 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'
10989
10990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10991 hardcode_libdir_separator_CXX=:
10992
10993 # Archives containing C++ object files must be created using
10994 # the KAI C++ compiler.
10995 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10996 ;;
10997 RCC*)
10998 # Rational C++ 2.4.1
10999 # FIXME: insert proper C++ library support
11000 ld_shlibs_CXX=no
11001 ;;
11002 cxx*)
11003 allow_undefined_flag_CXX=' -expect_unresolved \*'
11004 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'
11005 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11006 echo "-hidden">> $lib.exp~
11007 $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~
11008 $rm $lib.exp'
11009
11010 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11011 hardcode_libdir_separator_CXX=:
11012
11013 # Commands to make compiler produce verbose output that lists
11014 # what "hidden" libraries, object files and flags are used when
11015 # linking a shared library.
11016 #
11017 # There doesn't appear to be a way to prevent this compiler from
11018 # explicitly linking system object files so we need to strip them
11019 # from the output so that they don't get included in the library
11020 # dependencies.
11021 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'
11022 ;;
11023 *)
11024 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11025 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11026 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'
11027
11028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11029 hardcode_libdir_separator_CXX=:
11030
11031 # Commands to make compiler produce verbose output that lists
11032 # what "hidden" libraries, object files and flags are used when
11033 # linking a shared library.
11034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11035
11036 else
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11039 fi
11040 ;;
11041 esac
11042 ;;
11043 psos*)
11044 # FIXME: insert proper C++ library support
11045 ld_shlibs_CXX=no
11046 ;;
11047 sunos4*)
11048 case $cc_basename in
11049 CC*)
11050 # Sun C++ 4.x
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 lcc*)
11055 # Lucid
11056 # FIXME: insert proper C++ library support
11057 ld_shlibs_CXX=no
11058 ;;
11059 *)
11060 # FIXME: insert proper C++ library support
11061 ld_shlibs_CXX=no
11062 ;;
11063 esac
11064 ;;
11065 solaris*)
11066 case $cc_basename in
11067 CC*)
11068 # Sun C++ 4.2, 5.x and Centerline C++
11069 archive_cmds_need_lc_CXX=yes
11070 no_undefined_flag_CXX=' -zdefs'
11071 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11072 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11073 $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'
11074
11075 hardcode_libdir_flag_spec_CXX='-R$libdir'
11076 hardcode_shlibpath_var_CXX=no
11077 case $host_os in
11078 solaris2.[0-5] | solaris2.[0-5].*) ;;
11079 *)
11080 # The C++ compiler is used as linker so we must use $wl
11081 # flag to pass the commands to the underlying system
11082 # linker. We must also pass each convience library through
11083 # to the system linker between allextract/defaultextract.
11084 # The C++ compiler will combine linker options so we
11085 # cannot just pass the convience library names through
11086 # without $wl.
11087 # Supported since Solaris 2.6 (maybe 2.5.1?)
11088 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'
11089 ;;
11090 esac
11091 link_all_deplibs_CXX=yes
11092
11093 output_verbose_link_cmd='echo'
11094
11095 # Archives containing C++ object files must be created using
11096 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11097 # necessary to make sure instantiated templates are included
11098 # in the archive.
11099 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11100 ;;
11101 gcx*)
11102 # Green Hills C++ Compiler
11103 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11104
11105 # The C++ compiler must be used to create the archive.
11106 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11107 ;;
11108 *)
11109 # GNU C++ compiler with Solaris linker
11110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11111 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11112 if $CC --version | grep -v '^2\.7' > /dev/null; then
11113 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11114 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11115 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11116
11117 # Commands to make compiler produce verbose output that lists
11118 # what "hidden" libraries, object files and flags are used when
11119 # linking a shared library.
11120 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11121 else
11122 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11123 # platform.
11124 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11125 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11126 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11127
11128 # Commands to make compiler produce verbose output that lists
11129 # what "hidden" libraries, object files and flags are used when
11130 # linking a shared library.
11131 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11132 fi
11133
11134 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11135 fi
11136 ;;
11137 esac
11138 ;;
11139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11140 no_undefined_flag_CXX='${wl}-z,text'
11141 archive_cmds_need_lc_CXX=no
11142 hardcode_shlibpath_var_CXX=no
11143 runpath_var='LD_RUN_PATH'
11144
11145 case $cc_basename in
11146 CC*)
11147 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149 ;;
11150 *)
11151 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11153 ;;
11154 esac
11155 ;;
11156 sysv5* | sco3.2v5* | sco5v6*)
11157 # Note: We can NOT use -z defs as we might desire, because we do not
11158 # link with -lc, and that would cause any symbols used from libc to
11159 # always be unresolved, which means just about no library would
11160 # ever link correctly. If we're not using GNU ld we use -z text
11161 # though, which does catch some bad symbols but isn't as heavy-handed
11162 # as -z defs.
11163 # For security reasons, it is highly recommended that you always
11164 # use absolute paths for naming shared libraries, and exclude the
11165 # DT_RUNPATH tag from executables and libraries. But doing so
11166 # requires that you compile everything twice, which is a pain.
11167 # So that behaviour is only enabled if SCOABSPATH is set to a
11168 # non-empty value in the environment. Most likely only useful for
11169 # creating official distributions of packages.
11170 # This is a hack until libtool officially supports absolute path
11171 # names for shared libraries.
11172 no_undefined_flag_CXX='${wl}-z,text'
11173 allow_undefined_flag_CXX='${wl}-z,nodefs'
11174 archive_cmds_need_lc_CXX=no
11175 hardcode_shlibpath_var_CXX=no
11176 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11177 hardcode_libdir_separator_CXX=':'
11178 link_all_deplibs_CXX=yes
11179 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11180 runpath_var='LD_RUN_PATH'
11181
11182 case $cc_basename in
11183 CC*)
11184 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11186 ;;
11187 *)
11188 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11190 ;;
11191 esac
11192 ;;
11193 tandem*)
11194 case $cc_basename in
11195 NCC*)
11196 # NonStop-UX NCC 3.20
11197 # FIXME: insert proper C++ library support
11198 ld_shlibs_CXX=no
11199 ;;
11200 *)
11201 # FIXME: insert proper C++ library support
11202 ld_shlibs_CXX=no
11203 ;;
11204 esac
11205 ;;
11206 vxworks*)
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11209 ;;
11210 *)
11211 # FIXME: insert proper C++ library support
11212 ld_shlibs_CXX=no
11213 ;;
11214esac
11215echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11216echo "${ECHO_T}$ld_shlibs_CXX" >&6
11217test "$ld_shlibs_CXX" = no && can_build_shared=no
11218
11219GCC_CXX="$GXX"
11220LD_CXX="$LD"
11221
11222
11223cat > conftest.$ac_ext <<EOF
11224class Foo
11225{
11226public:
11227 Foo (void) { a = 0; }
11228private:
11229 int a;
11230};
11231EOF
11232
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; then
11238 # Parse the compiler output and extract the necessary
11239 # objects, libraries and library flags.
11240
11241 # Sentinel used to keep track of whether or not we are before
11242 # the conftest object file.
11243 pre_test_object_deps_done=no
11244
11245 # The `*' in the case matches for architectures that use `case' in
11246 # $output_verbose_cmd can trigger glob expansion during the loop
11247 # eval without this substitution.
11248 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11249
11250 for p in `eval $output_verbose_link_cmd`; do
11251 case $p in
11252
11253 -L* | -R* | -l*)
11254 # Some compilers place space between "-{L,R}" and the path.
11255 # Remove the space.
11256 if test $p = "-L" \
11257 || test $p = "-R"; then
11258 prev=$p
11259 continue
11260 else
11261 prev=
11262 fi
11263
11264 if test "$pre_test_object_deps_done" = no; then
11265 case $p in
11266 -L* | -R*)
11267 # Internal compiler library paths should come after those
11268 # provided the user. The postdeps already come after the
11269 # user supplied libs so there is no need to process them.
11270 if test -z "$compiler_lib_search_path_CXX"; then
11271 compiler_lib_search_path_CXX="${prev}${p}"
11272 else
11273 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11274 fi
11275 ;;
11276 # The "-l" case would never come before the object being
11277 # linked, so don't bother handling this case.
11278 esac
11279 else
11280 if test -z "$postdeps_CXX"; then
11281 postdeps_CXX="${prev}${p}"
11282 else
11283 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11284 fi
11285 fi
11286 ;;
11287
11288 *.$objext)
11289 # This assumes that the test object file only shows up
11290 # once in the compiler output.
11291 if test "$p" = "conftest.$objext"; then
11292 pre_test_object_deps_done=yes
11293 continue
11294 fi
11295
11296 if test "$pre_test_object_deps_done" = no; then
11297 if test -z "$predep_objects_CXX"; then
11298 predep_objects_CXX="$p"
11299 else
11300 predep_objects_CXX="$predep_objects_CXX $p"
11301 fi
11302 else
11303 if test -z "$postdep_objects_CXX"; then
11304 postdep_objects_CXX="$p"
11305 else
11306 postdep_objects_CXX="$postdep_objects_CXX $p"
11307 fi
11308 fi
11309 ;;
11310
11311 *) ;; # Ignore the rest.
11312
11313 esac
11314 done
11315
11316 # Clean up.
11317 rm -f a.out a.exe
11318else
11319 echo "libtool.m4: error: problem compiling CXX test program"
11320fi
11321
11322$rm -f confest.$objext
11323
11324# PORTME: override above test on systems where it is broken
11325case $host_os in
11326interix3*)
11327 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11328 # hack all around it, let's just trust "g++" to DTRT.
11329 predep_objects_CXX=
11330 postdep_objects_CXX=
11331 postdeps_CXX=
11332 ;;
11333
11334solaris*)
11335 case $cc_basename in
11336 CC*)
11337 # Adding this requires a known-good setup of shared libraries for
11338 # Sun compiler versions before 5.6, else PIC objects from an old
11339 # archive will be linked into the output, leading to subtle bugs.
11340 postdeps_CXX='-lCstd -lCrun'
11341 ;;
11342 esac
11343 ;;
11344esac
11345
11346
11347case " $postdeps_CXX " in
11348*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11349esac
11350
11351lt_prog_compiler_wl_CXX=
11352lt_prog_compiler_pic_CXX=
11353lt_prog_compiler_static_CXX=
11354
11355echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11357
11358 # C++ specific cases for pic, static, wl, etc.
11359 if test "$GXX" = yes; then
11360 lt_prog_compiler_wl_CXX='-Wl,'
11361 lt_prog_compiler_static_CXX='-static'
11362
11363 case $host_os in
11364 aix*)
11365 # All AIX code is PIC.
11366 if test "$host_cpu" = ia64; then
11367 # AIX 5 now supports IA64 processor
11368 lt_prog_compiler_static_CXX='-Bstatic'
11369 fi
11370 ;;
11371 amigaos*)
11372 # FIXME: we need at least 68020 code to build shared libraries, but
11373 # adding the `-m68020' flag to GCC prevents building anything better,
11374 # like `-m68040'.
11375 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11376 ;;
11377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11378 # PIC is the default for these OSes.
11379 ;;
11380 mingw* | os2* | pw32*)
11381 # This hack is so that the source file can tell whether it is being
11382 # built for inclusion in a dll (and should export symbols for example).
11383 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11384 ;;
11385 darwin* | rhapsody*)
11386 # PIC is the default on this platform
11387 # Common symbols not allowed in MH_DYLIB files
11388 lt_prog_compiler_pic_CXX='-fno-common'
11389 ;;
11390 *djgpp*)
11391 # DJGPP does not support shared libraries at all
11392 lt_prog_compiler_pic_CXX=
11393 ;;
11394 interix3*)
11395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11396 # Instead, we relocate shared libraries at runtime.
11397 ;;
11398 sysv4*MP*)
11399 if test -d /usr/nec; then
11400 lt_prog_compiler_pic_CXX=-Kconform_pic
11401 fi
11402 ;;
11403 hpux*)
11404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11405 # not for PA HP-UX.
11406 case $host_cpu in
11407 hppa*64*|ia64*)
11408 ;;
11409 *)
11410 lt_prog_compiler_pic_CXX='-fPIC'
11411 ;;
11412 esac
11413 ;;
11414 *)
11415 lt_prog_compiler_pic_CXX='-fPIC'
11416 ;;
11417 esac
11418 else
11419 case $host_os in
11420 aix4* | aix5*)
11421 # All AIX code is PIC.
11422 if test "$host_cpu" = ia64; then
11423 # AIX 5 now supports IA64 processor
11424 lt_prog_compiler_static_CXX='-Bstatic'
11425 else
11426 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11427 fi
11428 ;;
11429 chorus*)
11430 case $cc_basename in
11431 cxch68*)
11432 # Green Hills C++ Compiler
11433 # _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"
11434 ;;
11435 esac
11436 ;;
11437 darwin*)
11438 # PIC is the default on this platform
11439 # Common symbols not allowed in MH_DYLIB files
11440 case $cc_basename in
11441 xlc*)
11442 lt_prog_compiler_pic_CXX='-qnocommon'
11443 lt_prog_compiler_wl_CXX='-Wl,'
11444 ;;
11445 esac
11446 ;;
11447 dgux*)
11448 case $cc_basename in
11449 ec++*)
11450 lt_prog_compiler_pic_CXX='-KPIC'
11451 ;;
11452 ghcx*)
11453 # Green Hills C++ Compiler
11454 lt_prog_compiler_pic_CXX='-pic'
11455 ;;
11456 *)
11457 ;;
11458 esac
11459 ;;
11460 freebsd* | kfreebsd*-gnu | dragonfly*)
11461 # FreeBSD uses GNU C++
11462 ;;
11463 hpux9* | hpux10* | hpux11*)
11464 case $cc_basename in
11465 CC*)
11466 lt_prog_compiler_wl_CXX='-Wl,'
11467 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11468 if test "$host_cpu" != ia64; then
11469 lt_prog_compiler_pic_CXX='+Z'
11470 fi
11471 ;;
11472 aCC*)
11473 lt_prog_compiler_wl_CXX='-Wl,'
11474 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11475 case $host_cpu in
11476 hppa*64*|ia64*)
11477 # +Z the default
11478 ;;
11479 *)
11480 lt_prog_compiler_pic_CXX='+Z'
11481 ;;
11482 esac
11483 ;;
11484 *)
11485 ;;
11486 esac
11487 ;;
11488 interix*)
11489 # This is c89, which is MS Visual C++ (no shared libs)
11490 # Anyone wants to do a port?
11491 ;;
11492 irix5* | irix6* | nonstopux*)
11493 case $cc_basename in
11494 CC*)
11495 lt_prog_compiler_wl_CXX='-Wl,'
11496 lt_prog_compiler_static_CXX='-non_shared'
11497 # CC pic flag -KPIC is the default.
11498 ;;
11499 *)
11500 ;;
11501 esac
11502 ;;
11503 linux*)
11504 case $cc_basename in
11505 KCC*)
11506 # KAI C++ Compiler
11507 lt_prog_compiler_wl_CXX='--backend -Wl,'
11508 lt_prog_compiler_pic_CXX='-fPIC'
11509 ;;
11510 icpc* | ecpc*)
11511 # Intel C++
11512 lt_prog_compiler_wl_CXX='-Wl,'
11513 lt_prog_compiler_pic_CXX='-KPIC'
11514 lt_prog_compiler_static_CXX='-static'
11515 ;;
11516 pgCC*)
11517 # Portland Group C++ compiler.
11518 lt_prog_compiler_wl_CXX='-Wl,'
11519 lt_prog_compiler_pic_CXX='-fpic'
11520 lt_prog_compiler_static_CXX='-Bstatic'
11521 ;;
11522 cxx*)
11523 # Compaq C++
11524 # Make sure the PIC flag is empty. It appears that all Alpha
11525 # Linux and Compaq Tru64 Unix objects are PIC.
11526 lt_prog_compiler_pic_CXX=
11527 lt_prog_compiler_static_CXX='-non_shared'
11528 ;;
11529 *)
11530 ;;
11531 esac
11532 ;;
11533 lynxos*)
11534 ;;
11535 m88k*)
11536 ;;
11537 mvs*)
11538 case $cc_basename in
11539 cxx*)
11540 lt_prog_compiler_pic_CXX='-W c,exportall'
11541 ;;
11542 *)
11543 ;;
11544 esac
11545 ;;
11546 netbsd*)
11547 ;;
11548 osf3* | osf4* | osf5*)
11549 case $cc_basename in
11550 KCC*)
11551 lt_prog_compiler_wl_CXX='--backend -Wl,'
11552 ;;
11553 RCC*)
11554 # Rational C++ 2.4.1
11555 lt_prog_compiler_pic_CXX='-pic'
11556 ;;
11557 cxx*)
11558 # Digital/Compaq C++
11559 lt_prog_compiler_wl_CXX='-Wl,'
11560 # Make sure the PIC flag is empty. It appears that all Alpha
11561 # Linux and Compaq Tru64 Unix objects are PIC.
11562 lt_prog_compiler_pic_CXX=
11563 lt_prog_compiler_static_CXX='-non_shared'
11564 ;;
11565 *)
11566 ;;
11567 esac
11568 ;;
11569 psos*)
11570 ;;
11571 solaris*)
11572 case $cc_basename in
11573 CC*)
11574 # Sun C++ 4.2, 5.x and Centerline C++
11575 lt_prog_compiler_pic_CXX='-KPIC'
11576 lt_prog_compiler_static_CXX='-Bstatic'
11577 lt_prog_compiler_wl_CXX='-Qoption ld '
11578 ;;
11579 gcx*)
11580 # Green Hills C++ Compiler
11581 lt_prog_compiler_pic_CXX='-PIC'
11582 ;;
11583 *)
11584 ;;
11585 esac
11586 ;;
11587 sunos4*)
11588 case $cc_basename in
11589 CC*)
11590 # Sun C++ 4.x
11591 lt_prog_compiler_pic_CXX='-pic'
11592 lt_prog_compiler_static_CXX='-Bstatic'
11593 ;;
11594 lcc*)
11595 # Lucid
11596 lt_prog_compiler_pic_CXX='-pic'
11597 ;;
11598 *)
11599 ;;
11600 esac
11601 ;;
11602 tandem*)
11603 case $cc_basename in
11604 NCC*)
11605 # NonStop-UX NCC 3.20
11606 lt_prog_compiler_pic_CXX='-KPIC'
11607 ;;
11608 *)
11609 ;;
11610 esac
11611 ;;
11612 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11613 case $cc_basename in
11614 CC*)
11615 lt_prog_compiler_wl_CXX='-Wl,'
11616 lt_prog_compiler_pic_CXX='-KPIC'
11617 lt_prog_compiler_static_CXX='-Bstatic'
11618 ;;
11619 esac
11620 ;;
11621 vxworks*)
11622 ;;
11623 *)
11624 lt_prog_compiler_can_build_shared_CXX=no
11625 ;;
11626 esac
11627 fi
11628
11629echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11630echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11631
11632#
11633# Check to make sure the PIC flag actually works.
11634#
11635if test -n "$lt_prog_compiler_pic_CXX"; then
11636
11637echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11639if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642 lt_prog_compiler_pic_works_CXX=no
11643 ac_outfile=conftest.$ac_objext
11644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11645 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11646 # Insert the option either (1) after the last *FLAGS variable, or
11647 # (2) before a word containing "conftest.", or (3) at the end.
11648 # Note that $ac_compile itself does not contain backslashes and begins
11649 # with a dollar sign (not a hyphen), so the echo should work correctly.
11650 # The option is referenced via a variable to avoid confusing sed.
11651 lt_compile=`echo "$ac_compile" | $SED \
11652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11654 -e 's:$: $lt_compiler_flag:'`
11655 (eval echo "\"\$as_me:11655: $lt_compile\"" >&5)
11656 (eval "$lt_compile" 2>conftest.err)
11657 ac_status=$?
11658 cat conftest.err >&5
11659 echo "$as_me:11659: \$? = $ac_status" >&5
11660 if (exit $ac_status) && test -s "$ac_outfile"; then
11661 # The compiler can only warn and ignore the option if not recognized
11662 # So say no if there are warnings other than the usual output.
11663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11666 lt_prog_compiler_pic_works_CXX=yes
11667 fi
11668 fi
11669 $rm conftest*
11670
11671fi
11672echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11673echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11674
11675if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11676 case $lt_prog_compiler_pic_CXX in
11677 "" | " "*) ;;
11678 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11679 esac
11680else
11681 lt_prog_compiler_pic_CXX=
11682 lt_prog_compiler_can_build_shared_CXX=no
11683fi
11684
11685fi
11686case $host_os in
11687 # For platforms which do not support PIC, -DPIC is meaningless:
11688 *djgpp*)
11689 lt_prog_compiler_pic_CXX=
11690 ;;
11691 *)
11692 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11693 ;;
11694esac
11695
11696#
11697# Check to make sure the static flag actually works.
11698#
11699wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11700echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11701echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11702if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704else
11705 lt_prog_compiler_static_works_CXX=no
11706 save_LDFLAGS="$LDFLAGS"
11707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11708 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11710 # The linker can only warn and ignore the option if not recognized
11711 # So say no if there are warnings
11712 if test -s conftest.err; then
11713 # Append any errors to the config.log.
11714 cat conftest.err 1>&5
11715 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11717 if diff conftest.exp conftest.er2 >/dev/null; then
11718 lt_prog_compiler_static_works_CXX=yes
11719 fi
11720 else
11721 lt_prog_compiler_static_works_CXX=yes
11722 fi
11723 fi
11724 $rm conftest*
11725 LDFLAGS="$save_LDFLAGS"
11726
11727fi
11728echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11729echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11730
11731if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11732 :
11733else
11734 lt_prog_compiler_static_CXX=
11735fi
11736
11737
11738echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11740if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743 lt_cv_prog_compiler_c_o_CXX=no
11744 $rm -r conftest 2>/dev/null
11745 mkdir conftest
11746 cd conftest
11747 mkdir out
11748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11749
11750 lt_compiler_flag="-o out/conftest2.$ac_objext"
11751 # Insert the option either (1) after the last *FLAGS variable, or
11752 # (2) before a word containing "conftest.", or (3) at the end.
11753 # Note that $ac_compile itself does not contain backslashes and begins
11754 # with a dollar sign (not a hyphen), so the echo should work correctly.
11755 lt_compile=`echo "$ac_compile" | $SED \
11756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11758 -e 's:$: $lt_compiler_flag:'`
11759 (eval echo "\"\$as_me:11759: $lt_compile\"" >&5)
11760 (eval "$lt_compile" 2>out/conftest.err)
11761 ac_status=$?
11762 cat out/conftest.err >&5
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11765 then
11766 # The compiler can only warn and ignore the option if not recognized
11767 # So say no if there are warnings
11768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11771 lt_cv_prog_compiler_c_o_CXX=yes
11772 fi
11773 fi
11774 chmod u+w . 2>&5
11775 $rm conftest*
11776 # SGI C++ compiler will create directory out/ii_files/ for
11777 # template instantiation
11778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11779 $rm out/* && rmdir out
11780 cd ..
11781 rmdir conftest
11782 $rm conftest*
11783
11784fi
11785echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11786echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11787
11788
11789hard_links="nottested"
11790if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11791 # do not overwrite the value of need_locks provided by the user
11792 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11793echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11794 hard_links=yes
11795 $rm conftest*
11796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11797 touch conftest.a
11798 ln conftest.a conftest.b 2>&5 || hard_links=no
11799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11800 echo "$as_me:$LINENO: result: $hard_links" >&5
11801echo "${ECHO_T}$hard_links" >&6
11802 if test "$hard_links" = no; then
11803 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11804echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11805 need_locks=warn
11806 fi
11807else
11808 need_locks=no
11809fi
11810
11811echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11812echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11813
11814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11815 case $host_os in
11816 aix4* | aix5*)
11817 # If we're using GNU nm, then we don't want the "-C" option.
11818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11819 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11820 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'
11821 else
11822 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'
11823 fi
11824 ;;
11825 pw32*)
11826 export_symbols_cmds_CXX="$ltdll_cmds"
11827 ;;
11828 cygwin* | mingw*)
11829 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'
11830 ;;
11831 *)
11832 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11833 ;;
11834 esac
11835
11836echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11837echo "${ECHO_T}$ld_shlibs_CXX" >&6
11838test "$ld_shlibs_CXX" = no && can_build_shared=no
11839
11840#
11841# Do we need to explicitly link libc?
11842#
11843case "x$archive_cmds_need_lc_CXX" in
11844x|xyes)
11845 # Assume -lc should be added
11846 archive_cmds_need_lc_CXX=yes
11847
11848 if test "$enable_shared" = yes && test "$GCC" = yes; then
11849 case $archive_cmds_CXX in
11850 *'~'*)
11851 # FIXME: we may have to deal with multi-command sequences.
11852 ;;
11853 '$CC '*)
11854 # Test whether the compiler implicitly links with -lc since on some
11855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11856 # to ld, don't add -lc before -lgcc.
11857 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11858echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11859 $rm conftest*
11860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11861
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } 2>conftest.err; then
11867 soname=conftest
11868 lib=conftest
11869 libobjs=conftest.$ac_objext
11870 deplibs=
11871 wl=$lt_prog_compiler_wl_CXX
11872 pic_flag=$lt_prog_compiler_pic_CXX
11873 compiler_flags=-v
11874 linker_flags=-v
11875 verstring=
11876 output_objdir=.
11877 libname=conftest
11878 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11879 allow_undefined_flag_CXX=
11880 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11881 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }
11885 then
11886 archive_cmds_need_lc_CXX=no
11887 else
11888 archive_cmds_need_lc_CXX=yes
11889 fi
11890 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11891 else
11892 cat conftest.err 1>&5
11893 fi
11894 $rm conftest*
11895 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11896echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11897 ;;
11898 esac
11899 fi
11900 ;;
11901esac
11902
11903echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11904echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11905library_names_spec=
11906libname_spec='lib$name'
11907soname_spec=
11908shrext_cmds=".so"
11909postinstall_cmds=
11910postuninstall_cmds=
11911finish_cmds=
11912finish_eval=
11913shlibpath_var=
11914shlibpath_overrides_runpath=unknown
11915version_type=none
11916dynamic_linker="$host_os ld.so"
11917sys_lib_dlsearch_path_spec="/lib /usr/lib"
11918if test "$GCC" = yes; then
11919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11920 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11921 # if the path contains ";" then we assume it to be the separator
11922 # otherwise default to the standard path separator (i.e. ":") - it is
11923 # assumed that no part of a normal pathname contains ";" but that should
11924 # okay in the real world where ";" in dirpaths is itself problematic.
11925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11926 else
11927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11928 fi
11929else
11930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11931fi
11932need_lib_prefix=unknown
11933hardcode_into_libs=no
11934
11935# when you set need_version to no, make sure it does not cause -set_version
11936# flags to be left without arguments
11937need_version=unknown
11938
11939case $host_os in
11940aix3*)
11941 version_type=linux
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11943 shlibpath_var=LIBPATH
11944
11945 # AIX 3 has no versioning support, so we append a major version to the name.
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 ;;
11948
11949aix4* | aix5*)
11950 version_type=linux
11951 need_lib_prefix=no
11952 need_version=no
11953 hardcode_into_libs=yes
11954 if test "$host_cpu" = ia64; then
11955 # AIX 5 supports IA64
11956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 else
11959 # With GCC up to 2.95.x, collect2 would create an import file
11960 # for dependence libraries. The import file would start with
11961 # the line `#! .'. This would cause the generated library to
11962 # depend on `.', always an invalid library. This was fixed in
11963 # development snapshots of GCC prior to 3.0.
11964 case $host_os in
11965 aix4 | aix4.[01] | aix4.[01].*)
11966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11967 echo ' yes '
11968 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11969 :
11970 else
11971 can_build_shared=no
11972 fi
11973 ;;
11974 esac
11975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11976 # soname into executable. Probably we can add versioning support to
11977 # collect2, so additional links can be useful in future.
11978 if test "$aix_use_runtimelinking" = yes; then
11979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11980 # instead of lib<name>.a to let people know that these are not
11981 # typical AIX shared libraries.
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983 else
11984 # We preserve .a as extension for shared libraries through AIX4.2
11985 # and later when we are not doing run time linking.
11986 library_names_spec='${libname}${release}.a $libname.a'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 fi
11989 shlibpath_var=LIBPATH
11990 fi
11991 ;;
11992
11993amigaos*)
11994 library_names_spec='$libname.ixlibrary $libname.a'
11995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11996 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'
11997 ;;
11998
11999beos*)
12000 library_names_spec='${libname}${shared_ext}'
12001 dynamic_linker="$host_os ld.so"
12002 shlibpath_var=LIBRARY_PATH
12003 ;;
12004
12005bsdi[45]*)
12006 version_type=linux
12007 need_version=no
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009 soname_spec='${libname}${release}${shared_ext}$major'
12010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12011 shlibpath_var=LD_LIBRARY_PATH
12012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12014 # the default ld.so.conf also contains /usr/contrib/lib and
12015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12016 # libtool to hard-code these into programs
12017 ;;
12018
12019cygwin* | mingw* | pw32*)
12020 version_type=windows
12021 shrext_cmds=".dll"
12022 need_version=no
12023 need_lib_prefix=no
12024
12025 case $GCC,$host_os in
12026 yes,cygwin* | yes,mingw* | yes,pw32*)
12027 library_names_spec='$libname.dll.a'
12028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12029 postinstall_cmds='base_file=`basename \${file}`~
12030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12031 dldir=$destdir/`dirname \$dlpath`~
12032 test -d \$dldir || mkdir -p \$dldir~
12033 $install_prog $dir/$dlname \$dldir/$dlname~
12034 chmod a+x \$dldir/$dlname'
12035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12036 dlpath=$dir/\$dldll~
12037 $rm \$dlpath'
12038 shlibpath_overrides_runpath=yes
12039
12040 case $host_os in
12041 cygwin*)
12042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12044 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12045 ;;
12046 mingw*)
12047 # MinGW DLLs use traditional 'lib' prefix
12048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12050 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12051 # It is most probably a Windows format PATH printed by
12052 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12053 # path with ; separators, and with drive letters. We can handle the
12054 # drive letters (cygwin fileutils understands them), so leave them,
12055 # especially as we might pass files found there to a mingw objdump,
12056 # which wouldn't understand a cygwinified path. Ahh.
12057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12058 else
12059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12060 fi
12061 ;;
12062 pw32*)
12063 # pw32 DLLs use 'pw' prefix rather than 'lib'
12064 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12065 ;;
12066 esac
12067 ;;
12068
12069 *)
12070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12071 ;;
12072 esac
12073 dynamic_linker='Win32 ld.exe'
12074 # FIXME: first we should search . and the directory the executable is in
12075 shlibpath_var=PATH
12076 ;;
12077
12078darwin* | rhapsody*)
12079 dynamic_linker="$host_os dyld"
12080 version_type=darwin
12081 need_lib_prefix=no
12082 need_version=no
12083 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12084 soname_spec='${libname}${release}${major}$shared_ext'
12085 shlibpath_overrides_runpath=yes
12086 shlibpath_var=DYLD_LIBRARY_PATH
12087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12088 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12089 if test "$GCC" = yes; then
12090 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"`
12091 else
12092 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12093 fi
12094 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12095 ;;
12096
12097dgux*)
12098 version_type=linux
12099 need_lib_prefix=no
12100 need_version=no
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12102 soname_spec='${libname}${release}${shared_ext}$major'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 ;;
12105
12106freebsd1*)
12107 dynamic_linker=no
12108 ;;
12109
12110kfreebsd*-gnu)
12111 version_type=linux
12112 need_lib_prefix=no
12113 need_version=no
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12115 soname_spec='${libname}${release}${shared_ext}$major'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 shlibpath_overrides_runpath=no
12118 hardcode_into_libs=yes
12119 dynamic_linker='GNU ld.so'
12120 ;;
12121
12122freebsd* | dragonfly*)
12123 # DragonFly does not have aout. When/if they implement a new
12124 # versioning mechanism, adjust this.
12125 if test -x /usr/bin/objformat; then
12126 objformat=`/usr/bin/objformat`
12127 else
12128 case $host_os in
12129 freebsd[123]*) objformat=aout ;;
12130 *) objformat=elf ;;
12131 esac
12132 fi
12133 version_type=freebsd-$objformat
12134 case $version_type in
12135 freebsd-elf*)
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12137 need_version=no
12138 need_lib_prefix=no
12139 ;;
12140 freebsd-*)
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12142 need_version=yes
12143 ;;
12144 esac
12145 shlibpath_var=LD_LIBRARY_PATH
12146 case $host_os in
12147 freebsd2*)
12148 shlibpath_overrides_runpath=yes
12149 ;;
12150 freebsd3.[01]* | freebsdelf3.[01]*)
12151 shlibpath_overrides_runpath=yes
12152 hardcode_into_libs=yes
12153 ;;
12154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12156 shlibpath_overrides_runpath=no
12157 hardcode_into_libs=yes
12158 ;;
12159 freebsd*) # from 4.6 on
12160 shlibpath_overrides_runpath=yes
12161 hardcode_into_libs=yes
12162 ;;
12163 esac
12164 ;;
12165
12166gnu*)
12167 version_type=linux
12168 need_lib_prefix=no
12169 need_version=no
12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12171 soname_spec='${libname}${release}${shared_ext}$major'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 hardcode_into_libs=yes
12174 ;;
12175
12176hpux9* | hpux10* | hpux11*)
12177 # Give a soname corresponding to the major version so that dld.sl refuses to
12178 # link against other versions.
12179 version_type=sunos
12180 need_lib_prefix=no
12181 need_version=no
12182 case $host_cpu in
12183 ia64*)
12184 shrext_cmds='.so'
12185 hardcode_into_libs=yes
12186 dynamic_linker="$host_os dld.so"
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190 soname_spec='${libname}${release}${shared_ext}$major'
12191 if test "X$HPUX_IA64_MODE" = X32; then
12192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12193 else
12194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12195 fi
12196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12197 ;;
12198 hppa*64*)
12199 shrext_cmds='.sl'
12200 hardcode_into_libs=yes
12201 dynamic_linker="$host_os dld.sl"
12202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12208 ;;
12209 *)
12210 shrext_cmds='.sl'
12211 dynamic_linker="$host_os dld.sl"
12212 shlibpath_var=SHLIB_PATH
12213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12215 soname_spec='${libname}${release}${shared_ext}$major'
12216 ;;
12217 esac
12218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12219 postinstall_cmds='chmod 555 $lib'
12220 ;;
12221
12222interix3*)
12223 version_type=linux
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=no
12231 hardcode_into_libs=yes
12232 ;;
12233
12234irix5* | irix6* | nonstopux*)
12235 case $host_os in
12236 nonstopux*) version_type=nonstopux ;;
12237 *)
12238 if test "$lt_cv_prog_gnu_ld" = yes; then
12239 version_type=linux
12240 else
12241 version_type=irix
12242 fi ;;
12243 esac
12244 need_lib_prefix=no
12245 need_version=no
12246 soname_spec='${libname}${release}${shared_ext}$major'
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12248 case $host_os in
12249 irix5* | nonstopux*)
12250 libsuff= shlibsuff=
12251 ;;
12252 *)
12253 case $LD in # libtool.m4 will add one of these switches to LD
12254 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12255 libsuff= shlibsuff= libmagic=32-bit;;
12256 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12257 libsuff=32 shlibsuff=N32 libmagic=N32;;
12258 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12259 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12260 *) libsuff= shlibsuff= libmagic=never-match;;
12261 esac
12262 ;;
12263 esac
12264 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12265 shlibpath_overrides_runpath=no
12266 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12267 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12268 hardcode_into_libs=yes
12269 ;;
12270
12271# No shared lib support for Linux oldld, aout, or coff.
12272linux*oldld* | linux*aout* | linux*coff*)
12273 dynamic_linker=no
12274 ;;
12275
12276# This must be Linux ELF.
12277linux*)
12278 version_type=linux
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282 soname_spec='${libname}${release}${shared_ext}$major'
12283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=no
12286 # This implies no fast_install, which is unacceptable.
12287 # Some rework will be needed to allow for fast_install
12288 # before this can be enabled.
12289 hardcode_into_libs=yes
12290
12291 # Append ld.so.conf contents to the search path
12292 if test -f /etc/ld.so.conf; then
12293 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' ' '`
12294 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12295 fi
12296
12297 # We used to test for /lib/ld.so.1 and disable shared libraries on
12298 # powerpc, because MkLinux only supported shared libraries with the
12299 # GNU dynamic linker. Since this was broken with cross compilers,
12300 # most powerpc-linux boxes support dynamic linking these days and
12301 # people can always --disable-shared, the test was removed, and we
12302 # assume the GNU/Linux dynamic linker is in use.
12303 dynamic_linker='GNU/Linux ld.so'
12304 ;;
12305
12306knetbsd*-gnu)
12307 version_type=linux
12308 need_lib_prefix=no
12309 need_version=no
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12311 soname_spec='${libname}${release}${shared_ext}$major'
12312 shlibpath_var=LD_LIBRARY_PATH
12313 shlibpath_overrides_runpath=no
12314 hardcode_into_libs=yes
12315 dynamic_linker='GNU ld.so'
12316 ;;
12317
12318netbsd*)
12319 version_type=sunos
12320 need_lib_prefix=no
12321 need_version=no
12322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12325 dynamic_linker='NetBSD (a.out) ld.so'
12326 else
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12328 soname_spec='${libname}${release}${shared_ext}$major'
12329 dynamic_linker='NetBSD ld.elf_so'
12330 fi
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=yes
12333 hardcode_into_libs=yes
12334 ;;
12335
12336newsos6)
12337 version_type=linux
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 shlibpath_overrides_runpath=yes
12341 ;;
12342
12343nto-qnx*)
12344 version_type=linux
12345 need_lib_prefix=no
12346 need_version=no
12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12348 soname_spec='${libname}${release}${shared_ext}$major'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 shlibpath_overrides_runpath=yes
12351 ;;
12352
12353openbsd*)
12354 version_type=sunos
12355 sys_lib_dlsearch_path_spec="/usr/lib"
12356 need_lib_prefix=no
12357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12358 case $host_os in
12359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12360 *) need_version=no ;;
12361 esac
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12366 case $host_os in
12367 openbsd2.[89] | openbsd2.[89].*)
12368 shlibpath_overrides_runpath=no
12369 ;;
12370 *)
12371 shlibpath_overrides_runpath=yes
12372 ;;
12373 esac
12374 else
12375 shlibpath_overrides_runpath=yes
12376 fi
12377 ;;
12378
12379os2*)
12380 libname_spec='$name'
12381 shrext_cmds=".dll"
12382 need_lib_prefix=no
12383 library_names_spec='$libname${shared_ext} $libname.a'
12384 dynamic_linker='OS/2 ld.exe'
12385 shlibpath_var=LIBPATH
12386 ;;
12387
12388osf3* | osf4* | osf5*)
12389 version_type=osf
12390 need_lib_prefix=no
12391 need_version=no
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 shlibpath_var=LD_LIBRARY_PATH
12395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12397 ;;
12398
12399solaris*)
12400 version_type=linux
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 shlibpath_overrides_runpath=yes
12407 hardcode_into_libs=yes
12408 # ldd complains unless libraries are executable
12409 postinstall_cmds='chmod +x $lib'
12410 ;;
12411
12412sunos4*)
12413 version_type=sunos
12414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12415 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12416 shlibpath_var=LD_LIBRARY_PATH
12417 shlibpath_overrides_runpath=yes
12418 if test "$with_gnu_ld" = yes; then
12419 need_lib_prefix=no
12420 fi
12421 need_version=yes
12422 ;;
12423
12424sysv4 | sysv4.3*)
12425 version_type=linux
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427 soname_spec='${libname}${release}${shared_ext}$major'
12428 shlibpath_var=LD_LIBRARY_PATH
12429 case $host_vendor in
12430 sni)
12431 shlibpath_overrides_runpath=no
12432 need_lib_prefix=no
12433 export_dynamic_flag_spec='${wl}-Blargedynsym'
12434 runpath_var=LD_RUN_PATH
12435 ;;
12436 siemens)
12437 need_lib_prefix=no
12438 ;;
12439 motorola)
12440 need_lib_prefix=no
12441 need_version=no
12442 shlibpath_overrides_runpath=no
12443 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12444 ;;
12445 esac
12446 ;;
12447
12448sysv4*MP*)
12449 if test -d /usr/nec ;then
12450 version_type=linux
12451 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12452 soname_spec='$libname${shared_ext}.$major'
12453 shlibpath_var=LD_LIBRARY_PATH
12454 fi
12455 ;;
12456
12457sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12458 version_type=freebsd-elf
12459 need_lib_prefix=no
12460 need_version=no
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 hardcode_into_libs=yes
12465 if test "$with_gnu_ld" = yes; then
12466 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12467 shlibpath_overrides_runpath=no
12468 else
12469 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12470 shlibpath_overrides_runpath=yes
12471 case $host_os in
12472 sco3.2v5*)
12473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12474 ;;
12475 esac
12476 fi
12477 sys_lib_dlsearch_path_spec='/usr/lib'
12478 ;;
12479
12480uts4*)
12481 version_type=linux
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483 soname_spec='${libname}${release}${shared_ext}$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 ;;
12486
12487*)
12488 dynamic_linker=no
12489 ;;
12490esac
12491echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12492echo "${ECHO_T}$dynamic_linker" >&6
12493test "$dynamic_linker" = no && can_build_shared=no
12494
12495variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12496if test "$GCC" = yes; then
12497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12498fi
12499
12500echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12501echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12502hardcode_action_CXX=
12503if test -n "$hardcode_libdir_flag_spec_CXX" || \
12504 test -n "$runpath_var_CXX" || \
12505 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12506
12507 # We can hardcode non-existant directories.
12508 if test "$hardcode_direct_CXX" != no &&
12509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12510 # have to relink, otherwise we might link with an installed library
12511 # when we should be linking with a yet-to-be-installed one
12512 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12513 test "$hardcode_minus_L_CXX" != no; then
12514 # Linking always hardcodes the temporary library directory.
12515 hardcode_action_CXX=relink
12516 else
12517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12518 hardcode_action_CXX=immediate
12519 fi
12520else
12521 # We cannot hardcode anything, or else we can only hardcode existing
12522 # directories.
12523 hardcode_action_CXX=unsupported
12524fi
12525echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12526echo "${ECHO_T}$hardcode_action_CXX" >&6
12527
12528if test "$hardcode_action_CXX" = relink; then
12529 # Fast installation is not supported
12530 enable_fast_install=no
12531elif test "$shlibpath_overrides_runpath" = yes ||
12532 test "$enable_shared" = no; then
12533 # Fast installation is not necessary
12534 enable_fast_install=needless
12535fi
12536
12537
12538# The else clause should only fire when bootstrapping the
12539# libtool distribution, otherwise you forgot to ship ltmain.sh
12540# with your package, and you will get complaints that there are
12541# no rules to generate ltmain.sh.
12542if test -f "$ltmain"; then
12543 # See if we are running on zsh, and set the options which allow our commands through
12544 # without removal of \ escapes.
12545 if test -n "${ZSH_VERSION+set}" ; then
12546 setopt NO_GLOB_SUBST
12547 fi
12548 # Now quote all the things that may contain metacharacters while being
12549 # careful not to overquote the AC_SUBSTed values. We take copies of the
12550 # variables and quote the copies for generation of the libtool script.
12551 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12552 SED SHELL STRIP \
12553 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12554 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12555 deplibs_check_method reload_flag reload_cmds need_locks \
12556 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12557 lt_cv_sys_global_symbol_to_c_name_address \
12558 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12559 old_postinstall_cmds old_postuninstall_cmds \
12560 compiler_CXX \
12561 CC_CXX \
12562 LD_CXX \
12563 lt_prog_compiler_wl_CXX \
12564 lt_prog_compiler_pic_CXX \
12565 lt_prog_compiler_static_CXX \
12566 lt_prog_compiler_no_builtin_flag_CXX \
12567 export_dynamic_flag_spec_CXX \
12568 thread_safe_flag_spec_CXX \
12569 whole_archive_flag_spec_CXX \
12570 enable_shared_with_static_runtimes_CXX \
12571 old_archive_cmds_CXX \
12572 old_archive_from_new_cmds_CXX \
12573 predep_objects_CXX \
12574 postdep_objects_CXX \
12575 predeps_CXX \
12576 postdeps_CXX \
12577 compiler_lib_search_path_CXX \
12578 archive_cmds_CXX \
12579 archive_expsym_cmds_CXX \
12580 postinstall_cmds_CXX \
12581 postuninstall_cmds_CXX \
12582 old_archive_from_expsyms_cmds_CXX \
12583 allow_undefined_flag_CXX \
12584 no_undefined_flag_CXX \
12585 export_symbols_cmds_CXX \
12586 hardcode_libdir_flag_spec_CXX \
12587 hardcode_libdir_flag_spec_ld_CXX \
12588 hardcode_libdir_separator_CXX \
12589 hardcode_automatic_CXX \
12590 module_cmds_CXX \
12591 module_expsym_cmds_CXX \
12592 lt_cv_prog_compiler_c_o_CXX \
12593 exclude_expsyms_CXX \
12594 include_expsyms_CXX; do
12595
12596 case $var in
12597 old_archive_cmds_CXX | \
12598 old_archive_from_new_cmds_CXX | \
12599 archive_cmds_CXX | \
12600 archive_expsym_cmds_CXX | \
12601 module_cmds_CXX | \
12602 module_expsym_cmds_CXX | \
12603 old_archive_from_expsyms_cmds_CXX | \
12604 export_symbols_cmds_CXX | \
12605 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12606 postinstall_cmds | postuninstall_cmds | \
12607 old_postinstall_cmds | old_postuninstall_cmds | \
12608 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12609 # Double-quote double-evaled strings.
12610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12611 ;;
12612 *)
12613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12614 ;;
12615 esac
12616 done
12617
12618 case $lt_echo in
12619 *'\$0 --fallback-echo"')
12620 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12621 ;;
12622 esac
12623
12624cfgfile="$ofile"
12625
12626 cat <<__EOF__ >> "$cfgfile"
12627# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12628
12629# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12630
12631# Shell to use when invoking shell scripts.
12632SHELL=$lt_SHELL
12633
12634# Whether or not to build shared libraries.
12635build_libtool_libs=$enable_shared
12636
12637# Whether or not to build static libraries.
12638build_old_libs=$enable_static
12639
12640# Whether or not to add -lc for building shared libraries.
12641build_libtool_need_lc=$archive_cmds_need_lc_CXX
12642
12643# Whether or not to disallow shared libs when runtime libs are static
12644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12645
12646# Whether or not to optimize for fast installation.
12647fast_install=$enable_fast_install
12648
12649# The host system.
12650host_alias=$host_alias
12651host=$host
12652host_os=$host_os
12653
12654# The build system.
12655build_alias=$build_alias
12656build=$build
12657build_os=$build_os
12658
12659# An echo program that does not interpret backslashes.
12660echo=$lt_echo
12661
12662# The archiver.
12663AR=$lt_AR
12664AR_FLAGS=$lt_AR_FLAGS
12665
12666# A C compiler.
12667LTCC=$lt_LTCC
12668
12669# LTCC compiler flags.
12670LTCFLAGS=$lt_LTCFLAGS
12671
12672# A language-specific compiler.
12673CC=$lt_compiler_CXX
12674
12675# Is the compiler the GNU C compiler?
12676with_gcc=$GCC_CXX
12677
12678# An ERE matcher.
12679EGREP=$lt_EGREP
12680
12681# The linker used to build libraries.
12682LD=$lt_LD_CXX
12683
12684# Whether we need hard or soft links.
12685LN_S=$lt_LN_S
12686
12687# A BSD-compatible nm program.
12688NM=$lt_NM
12689
12690# A symbol stripping program
12691STRIP=$lt_STRIP
12692
12693# Used to examine libraries when file_magic_cmd begins "file"
12694MAGIC_CMD=$MAGIC_CMD
12695
12696# Used on cygwin: DLL creation program.
12697DLLTOOL="$DLLTOOL"
12698
12699# Used on cygwin: object dumper.
12700OBJDUMP="$OBJDUMP"
12701
12702# Used on cygwin: assembler.
12703AS="$AS"
12704
12705# The name of the directory that contains temporary libtool files.
12706objdir=$objdir
12707
12708# How to create reloadable object files.
12709reload_flag=$lt_reload_flag
12710reload_cmds=$lt_reload_cmds
12711
12712# How to pass a linker flag through the compiler.
12713wl=$lt_lt_prog_compiler_wl_CXX
12714
12715# Object file suffix (normally "o").
12716objext="$ac_objext"
12717
12718# Old archive suffix (normally "a").
12719libext="$libext"
12720
12721# Shared library suffix (normally ".so").
12722shrext_cmds='$shrext_cmds'
12723
12724# Executable file suffix (normally "").
12725exeext="$exeext"
12726
12727# Additional compiler flags for building library objects.
12728pic_flag=$lt_lt_prog_compiler_pic_CXX
12729pic_mode=$pic_mode
12730
12731# What is the maximum length of a command?
12732max_cmd_len=$lt_cv_sys_max_cmd_len
12733
12734# Does compiler simultaneously support -c and -o options?
12735compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12736
12737# Must we lock files when doing compilation?
12738need_locks=$lt_need_locks
12739
12740# Do we need the lib prefix for modules?
12741need_lib_prefix=$need_lib_prefix
12742
12743# Do we need a version for libraries?
12744need_version=$need_version
12745
12746# Whether dlopen is supported.
12747dlopen_support=$enable_dlopen
12748
12749# Whether dlopen of programs is supported.
12750dlopen_self=$enable_dlopen_self
12751
12752# Whether dlopen of statically linked programs is supported.
12753dlopen_self_static=$enable_dlopen_self_static
12754
12755# Compiler flag to prevent dynamic linking.
12756link_static_flag=$lt_lt_prog_compiler_static_CXX
12757
12758# Compiler flag to turn off builtin functions.
12759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12760
12761# Compiler flag to allow reflexive dlopens.
12762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12763
12764# Compiler flag to generate shared objects directly from archives.
12765whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12766
12767# Compiler flag to generate thread-safe objects.
12768thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12769
12770# Library versioning type.
12771version_type=$version_type
12772
12773# Format of library name prefix.
12774libname_spec=$lt_libname_spec
12775
12776# List of archive names. First name is the real one, the rest are links.
12777# The last name is the one that the linker finds with -lNAME.
12778library_names_spec=$lt_library_names_spec
12779
12780# The coded name of the library, if different from the real name.
12781soname_spec=$lt_soname_spec
12782
12783# Commands used to build and install an old-style archive.
12784RANLIB=$lt_RANLIB
12785old_archive_cmds=$lt_old_archive_cmds_CXX
12786old_postinstall_cmds=$lt_old_postinstall_cmds
12787old_postuninstall_cmds=$lt_old_postuninstall_cmds
12788
12789# Create an old-style archive from a shared archive.
12790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12791
12792# Create a temporary old-style archive to link instead of a shared archive.
12793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12794
12795# Commands used to build and install a shared archive.
12796archive_cmds=$lt_archive_cmds_CXX
12797archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12798postinstall_cmds=$lt_postinstall_cmds
12799postuninstall_cmds=$lt_postuninstall_cmds
12800
12801# Commands used to build a loadable module (assumed same as above if empty)
12802module_cmds=$lt_module_cmds_CXX
12803module_expsym_cmds=$lt_module_expsym_cmds_CXX
12804
12805# Commands to strip libraries.
12806old_striplib=$lt_old_striplib
12807striplib=$lt_striplib
12808
12809# Dependencies to place before the objects being linked to create a
12810# shared library.
12811predep_objects=$lt_predep_objects_CXX
12812
12813# Dependencies to place after the objects being linked to create a
12814# shared library.
12815postdep_objects=$lt_postdep_objects_CXX
12816
12817# Dependencies to place before the objects being linked to create a
12818# shared library.
12819predeps=$lt_predeps_CXX
12820
12821# Dependencies to place after the objects being linked to create a
12822# shared library.
12823postdeps=$lt_postdeps_CXX
12824
12825# The library search path used internally by the compiler when linking
12826# a shared library.
12827compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12828
12829# Method to check whether dependent libraries are shared objects.
12830deplibs_check_method=$lt_deplibs_check_method
12831
12832# Command to use when deplibs_check_method == file_magic.
12833file_magic_cmd=$lt_file_magic_cmd
12834
12835# Flag that allows shared libraries with undefined symbols to be built.
12836allow_undefined_flag=$lt_allow_undefined_flag_CXX
12837
12838# Flag that forces no undefined symbols.
12839no_undefined_flag=$lt_no_undefined_flag_CXX
12840
12841# Commands used to finish a libtool library installation in a directory.
12842finish_cmds=$lt_finish_cmds
12843
12844# Same as above, but a single script fragment to be evaled but not shown.
12845finish_eval=$lt_finish_eval
12846
12847# Take the output of nm and produce a listing of raw symbols and C names.
12848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12849
12850# Transform the output of nm in a proper C declaration
12851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12852
12853# Transform the output of nm in a C name address pair
12854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12855
12856# This is the shared library runtime path variable.
12857runpath_var=$runpath_var
12858
12859# This is the shared library path variable.
12860shlibpath_var=$shlibpath_var
12861
12862# Is shlibpath searched before the hard-coded library search path?
12863shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12864
12865# How to hardcode a shared library path into an executable.
12866hardcode_action=$hardcode_action_CXX
12867
12868# Whether we should hardcode library paths into libraries.
12869hardcode_into_libs=$hardcode_into_libs
12870
12871# Flag to hardcode \$libdir into a binary during linking.
12872# This must work even if \$libdir does not exist.
12873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12874
12875# If ld is used when linking, flag to hardcode \$libdir into
12876# a binary during linking. This must work even if \$libdir does
12877# not exist.
12878hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12879
12880# Whether we need a single -rpath flag with a separated argument.
12881hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12882
12883# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12884# resulting binary.
12885hardcode_direct=$hardcode_direct_CXX
12886
12887# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12888# resulting binary.
12889hardcode_minus_L=$hardcode_minus_L_CXX
12890
12891# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12892# the resulting binary.
12893hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12894
12895# Set to yes if building a shared library automatically hardcodes DIR into the library
12896# and all subsequent libraries and executables linked against it.
12897hardcode_automatic=$hardcode_automatic_CXX
12898
12899# Variables whose values should be saved in libtool wrapper scripts and
12900# restored at relink time.
12901variables_saved_for_relink="$variables_saved_for_relink"
12902
12903# Whether libtool must link a program against all its dependency libraries.
12904link_all_deplibs=$link_all_deplibs_CXX
12905
12906# Compile-time system search path for libraries
12907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12908
12909# Run-time system search path for libraries
12910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12911
12912# Fix the shell variable \$srcfile for the compiler.
12913fix_srcfile_path="$fix_srcfile_path_CXX"
12914
12915# Set to yes if exported symbols are required.
12916always_export_symbols=$always_export_symbols_CXX
12917
12918# The commands to list exported symbols.
12919export_symbols_cmds=$lt_export_symbols_cmds_CXX
12920
12921# The commands to extract the exported symbol list from a shared archive.
12922extract_expsyms_cmds=$lt_extract_expsyms_cmds
12923
12924# Symbols that should not be listed in the preloaded symbols.
12925exclude_expsyms=$lt_exclude_expsyms_CXX
12926
12927# Symbols that must always be exported.
12928include_expsyms=$lt_include_expsyms_CXX
12929
12930# ### END LIBTOOL TAG CONFIG: $tagname
12931
12932__EOF__
12933
12934
12935else
12936 # If there is no Makefile yet, we rely on a make rule to execute
12937 # `config.status --recheck' to rerun these tests and create the
12938 # libtool script then.
12939 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12940 if test -f "$ltmain_in"; then
12941 test -f Makefile && make "$ltmain"
12942 fi
12943fi
12944
12945
12946ac_ext=c
12947ac_cpp='$CPP $CPPFLAGS'
12948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950ac_compiler_gnu=$ac_cv_c_compiler_gnu
12951
12952CC=$lt_save_CC
12953LDCXX=$LD
12954LD=$lt_save_LD
12955GCC=$lt_save_GCC
12956with_gnu_ldcxx=$with_gnu_ld
12957with_gnu_ld=$lt_save_with_gnu_ld
12958lt_cv_path_LDCXX=$lt_cv_path_LD
12959lt_cv_path_LD=$lt_save_path_LD
12960lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12961lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12962
12963 else
12964 tagname=""
12965 fi
12966 ;;
12967
12968 F77)
12969 if test -n "$F77" && test "X$F77" != "Xno"; then
12970
12971ac_ext=f
12972ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12973ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12974ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12975
12976
12977archive_cmds_need_lc_F77=no
12978allow_undefined_flag_F77=
12979always_export_symbols_F77=no
12980archive_expsym_cmds_F77=
12981export_dynamic_flag_spec_F77=
12982hardcode_direct_F77=no
12983hardcode_libdir_flag_spec_F77=
12984hardcode_libdir_flag_spec_ld_F77=
12985hardcode_libdir_separator_F77=
12986hardcode_minus_L_F77=no
12987hardcode_automatic_F77=no
12988module_cmds_F77=
12989module_expsym_cmds_F77=
12990link_all_deplibs_F77=unknown
12991old_archive_cmds_F77=$old_archive_cmds
12992no_undefined_flag_F77=
12993whole_archive_flag_spec_F77=
12994enable_shared_with_static_runtimes_F77=no
12995
12996# Source file extension for f77 test sources.
12997ac_ext=f
12998
12999# Object file extension for compiled f77 test sources.
13000objext=o
13001objext_F77=$objext
13002
13003# Code to be used in simple compile tests
13004lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13005
13006# Code to be used in simple link tests
13007lt_simple_link_test_code=" program t\n end\n"
13008
13009# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13010
13011# If no C compiler was specified, use CC.
13012LTCC=${LTCC-"$CC"}
13013
13014# If no C compiler flags were specified, use CFLAGS.
13015LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13016
13017# Allow CC to be a program name with arguments.
13018compiler=$CC
13019
13020
13021# save warnings/boilerplate of simple test code
13022ac_outfile=conftest.$ac_objext
13023printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13025_lt_compiler_boilerplate=`cat conftest.err`
13026$rm conftest*
13027
13028ac_outfile=conftest.$ac_objext
13029printf "$lt_simple_link_test_code" >conftest.$ac_ext
13030eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13031_lt_linker_boilerplate=`cat conftest.err`
13032$rm conftest*
13033
13034
13035# Allow CC to be a program name with arguments.
13036lt_save_CC="$CC"
13037CC=${F77-"f77"}
13038compiler=$CC
13039compiler_F77=$CC
13040for cc_temp in $compiler""; do
13041 case $cc_temp in
13042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13044 \-*) ;;
13045 *) break;;
13046 esac
13047done
13048cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13049
13050
13051echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13052echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13053echo "$as_me:$LINENO: result: $can_build_shared" >&5
13054echo "${ECHO_T}$can_build_shared" >&6
13055
13056echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13057echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13058test "$can_build_shared" = "no" && enable_shared=no
13059
13060# On AIX, shared libraries and static libraries use the same namespace, and
13061# are all built from PIC.
13062case $host_os in
13063aix3*)
13064 test "$enable_shared" = yes && enable_static=no
13065 if test -n "$RANLIB"; then
13066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13067 postinstall_cmds='$RANLIB $lib'
13068 fi
13069 ;;
13070aix4* | aix5*)
13071 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13072 test "$enable_shared" = yes && enable_static=no
13073 fi
13074 ;;
13075esac
13076echo "$as_me:$LINENO: result: $enable_shared" >&5
13077echo "${ECHO_T}$enable_shared" >&6
13078
13079echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13080echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13081# Make sure either enable_shared or enable_static is yes.
13082test "$enable_shared" = yes || enable_static=yes
13083echo "$as_me:$LINENO: result: $enable_static" >&5
13084echo "${ECHO_T}$enable_static" >&6
13085
13086GCC_F77="$G77"
13087LD_F77="$LD"
13088
13089lt_prog_compiler_wl_F77=
13090lt_prog_compiler_pic_F77=
13091lt_prog_compiler_static_F77=
13092
13093echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13094echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13095
13096 if test "$GCC" = yes; then
13097 lt_prog_compiler_wl_F77='-Wl,'
13098 lt_prog_compiler_static_F77='-static'
13099
13100 case $host_os in
13101 aix*)
13102 # All AIX code is PIC.
13103 if test "$host_cpu" = ia64; then
13104 # AIX 5 now supports IA64 processor
13105 lt_prog_compiler_static_F77='-Bstatic'
13106 fi
13107 ;;
13108
13109 amigaos*)
13110 # FIXME: we need at least 68020 code to build shared libraries, but
13111 # adding the `-m68020' flag to GCC prevents building anything better,
13112 # like `-m68040'.
13113 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13114 ;;
13115
13116 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13117 # PIC is the default for these OSes.
13118 ;;
13119
13120 mingw* | pw32* | os2*)
13121 # This hack is so that the source file can tell whether it is being
13122 # built for inclusion in a dll (and should export symbols for example).
13123 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13124 ;;
13125
13126 darwin* | rhapsody*)
13127 # PIC is the default on this platform
13128 # Common symbols not allowed in MH_DYLIB files
13129 lt_prog_compiler_pic_F77='-fno-common'
13130 ;;
13131
13132 interix3*)
13133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13134 # Instead, we relocate shared libraries at runtime.
13135 ;;
13136
13137 msdosdjgpp*)
13138 # Just because we use GCC doesn't mean we suddenly get shared libraries
13139 # on systems that don't support them.
13140 lt_prog_compiler_can_build_shared_F77=no
13141 enable_shared=no
13142 ;;
13143
13144 sysv4*MP*)
13145 if test -d /usr/nec; then
13146 lt_prog_compiler_pic_F77=-Kconform_pic
13147 fi
13148 ;;
13149
13150 hpux*)
13151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13152 # not for PA HP-UX.
13153 case $host_cpu in
13154 hppa*64*|ia64*)
13155 # +Z the default
13156 ;;
13157 *)
13158 lt_prog_compiler_pic_F77='-fPIC'
13159 ;;
13160 esac
13161 ;;
13162
13163 *)
13164 lt_prog_compiler_pic_F77='-fPIC'
13165 ;;
13166 esac
13167 else
13168 # PORTME Check for flag to pass linker flags through the system compiler.
13169 case $host_os in
13170 aix*)
13171 lt_prog_compiler_wl_F77='-Wl,'
13172 if test "$host_cpu" = ia64; then
13173 # AIX 5 now supports IA64 processor
13174 lt_prog_compiler_static_F77='-Bstatic'
13175 else
13176 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13177 fi
13178 ;;
13179 darwin*)
13180 # PIC is the default on this platform
13181 # Common symbols not allowed in MH_DYLIB files
13182 case $cc_basename in
13183 xlc*)
13184 lt_prog_compiler_pic_F77='-qnocommon'
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 ;;
13187 esac
13188 ;;
13189
13190 mingw* | pw32* | os2*)
13191 # This hack is so that the source file can tell whether it is being
13192 # built for inclusion in a dll (and should export symbols for example).
13193 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13194 ;;
13195
13196 hpux9* | hpux10* | hpux11*)
13197 lt_prog_compiler_wl_F77='-Wl,'
13198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13199 # not for PA HP-UX.
13200 case $host_cpu in
13201 hppa*64*|ia64*)
13202 # +Z the default
13203 ;;
13204 *)
13205 lt_prog_compiler_pic_F77='+Z'
13206 ;;
13207 esac
13208 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13209 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13210 ;;
13211
13212 irix5* | irix6* | nonstopux*)
13213 lt_prog_compiler_wl_F77='-Wl,'
13214 # PIC (with -KPIC) is the default.
13215 lt_prog_compiler_static_F77='-non_shared'
13216 ;;
13217
13218 newsos6)
13219 lt_prog_compiler_pic_F77='-KPIC'
13220 lt_prog_compiler_static_F77='-Bstatic'
13221 ;;
13222
13223 linux*)
13224 case $cc_basename in
13225 icc* | ecc*)
13226 lt_prog_compiler_wl_F77='-Wl,'
13227 lt_prog_compiler_pic_F77='-KPIC'
13228 lt_prog_compiler_static_F77='-static'
13229 ;;
13230 pgcc* | pgf77* | pgf90* | pgf95*)
13231 # Portland Group compilers (*not* the Pentium gcc compiler,
13232 # which looks to be a dead project)
13233 lt_prog_compiler_wl_F77='-Wl,'
13234 lt_prog_compiler_pic_F77='-fpic'
13235 lt_prog_compiler_static_F77='-Bstatic'
13236 ;;
13237 ccc*)
13238 lt_prog_compiler_wl_F77='-Wl,'
13239 # All Alpha code is PIC.
13240 lt_prog_compiler_static_F77='-non_shared'
13241 ;;
13242 esac
13243 ;;
13244
13245 osf3* | osf4* | osf5*)
13246 lt_prog_compiler_wl_F77='-Wl,'
13247 # All OSF/1 code is PIC.
13248 lt_prog_compiler_static_F77='-non_shared'
13249 ;;
13250
13251 solaris*)
13252 lt_prog_compiler_pic_F77='-KPIC'
13253 lt_prog_compiler_static_F77='-Bstatic'
13254 case $cc_basename in
13255 f77* | f90* | f95*)
13256 lt_prog_compiler_wl_F77='-Qoption ld ';;
13257 *)
13258 lt_prog_compiler_wl_F77='-Wl,';;
13259 esac
13260 ;;
13261
13262 sunos4*)
13263 lt_prog_compiler_wl_F77='-Qoption ld '
13264 lt_prog_compiler_pic_F77='-PIC'
13265 lt_prog_compiler_static_F77='-Bstatic'
13266 ;;
13267
13268 sysv4 | sysv4.2uw2* | sysv4.3*)
13269 lt_prog_compiler_wl_F77='-Wl,'
13270 lt_prog_compiler_pic_F77='-KPIC'
13271 lt_prog_compiler_static_F77='-Bstatic'
13272 ;;
13273
13274 sysv4*MP*)
13275 if test -d /usr/nec ;then
13276 lt_prog_compiler_pic_F77='-Kconform_pic'
13277 lt_prog_compiler_static_F77='-Bstatic'
13278 fi
13279 ;;
13280
13281 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13282 lt_prog_compiler_wl_F77='-Wl,'
13283 lt_prog_compiler_pic_F77='-KPIC'
13284 lt_prog_compiler_static_F77='-Bstatic'
13285 ;;
13286
13287 unicos*)
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 lt_prog_compiler_can_build_shared_F77=no
13290 ;;
13291
13292 uts4*)
13293 lt_prog_compiler_pic_F77='-pic'
13294 lt_prog_compiler_static_F77='-Bstatic'
13295 ;;
13296
13297 *)
13298 lt_prog_compiler_can_build_shared_F77=no
13299 ;;
13300 esac
13301 fi
13302
13303echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13304echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13305
13306#
13307# Check to make sure the PIC flag actually works.
13308#
13309if test -n "$lt_prog_compiler_pic_F77"; then
13310
13311echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13312echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13313if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316 lt_prog_compiler_pic_works_F77=no
13317 ac_outfile=conftest.$ac_objext
13318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13319 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13320 # Insert the option either (1) after the last *FLAGS variable, or
13321 # (2) before a word containing "conftest.", or (3) at the end.
13322 # Note that $ac_compile itself does not contain backslashes and begins
13323 # with a dollar sign (not a hyphen), so the echo should work correctly.
13324 # The option is referenced via a variable to avoid confusing sed.
13325 lt_compile=`echo "$ac_compile" | $SED \
13326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13328 -e 's:$: $lt_compiler_flag:'`
13329 (eval echo "\"\$as_me:13329: $lt_compile\"" >&5)
13330 (eval "$lt_compile" 2>conftest.err)
13331 ac_status=$?
13332 cat conftest.err >&5
13333 echo "$as_me:13333: \$? = $ac_status" >&5
13334 if (exit $ac_status) && test -s "$ac_outfile"; then
13335 # The compiler can only warn and ignore the option if not recognized
13336 # So say no if there are warnings other than the usual output.
13337 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13340 lt_prog_compiler_pic_works_F77=yes
13341 fi
13342 fi
13343 $rm conftest*
13344
13345fi
13346echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13347echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13348
13349if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13350 case $lt_prog_compiler_pic_F77 in
13351 "" | " "*) ;;
13352 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13353 esac
13354else
13355 lt_prog_compiler_pic_F77=
13356 lt_prog_compiler_can_build_shared_F77=no
13357fi
13358
13359fi
13360case $host_os in
13361 # For platforms which do not support PIC, -DPIC is meaningless:
13362 *djgpp*)
13363 lt_prog_compiler_pic_F77=
13364 ;;
13365 *)
13366 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13367 ;;
13368esac
13369
13370#
13371# Check to make sure the static flag actually works.
13372#
13373wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13374echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13375echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13376if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378else
13379 lt_prog_compiler_static_works_F77=no
13380 save_LDFLAGS="$LDFLAGS"
13381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13382 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13384 # The linker can only warn and ignore the option if not recognized
13385 # So say no if there are warnings
13386 if test -s conftest.err; then
13387 # Append any errors to the config.log.
13388 cat conftest.err 1>&5
13389 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13391 if diff conftest.exp conftest.er2 >/dev/null; then
13392 lt_prog_compiler_static_works_F77=yes
13393 fi
13394 else
13395 lt_prog_compiler_static_works_F77=yes
13396 fi
13397 fi
13398 $rm conftest*
13399 LDFLAGS="$save_LDFLAGS"
13400
13401fi
13402echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13403echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13404
13405if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13406 :
13407else
13408 lt_prog_compiler_static_F77=
13409fi
13410
13411
13412echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13413echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13414if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
13417 lt_cv_prog_compiler_c_o_F77=no
13418 $rm -r conftest 2>/dev/null
13419 mkdir conftest
13420 cd conftest
13421 mkdir out
13422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13423
13424 lt_compiler_flag="-o out/conftest2.$ac_objext"
13425 # Insert the option either (1) after the last *FLAGS variable, or
13426 # (2) before a word containing "conftest.", or (3) at the end.
13427 # Note that $ac_compile itself does not contain backslashes and begins
13428 # with a dollar sign (not a hyphen), so the echo should work correctly.
13429 lt_compile=`echo "$ac_compile" | $SED \
13430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13432 -e 's:$: $lt_compiler_flag:'`
13433 (eval echo "\"\$as_me:13433: $lt_compile\"" >&5)
13434 (eval "$lt_compile" 2>out/conftest.err)
13435 ac_status=$?
13436 cat out/conftest.err >&5
13437 echo "$as_me:13437: \$? = $ac_status" >&5
13438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13439 then
13440 # The compiler can only warn and ignore the option if not recognized
13441 # So say no if there are warnings
13442 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13445 lt_cv_prog_compiler_c_o_F77=yes
13446 fi
13447 fi
13448 chmod u+w . 2>&5
13449 $rm conftest*
13450 # SGI C++ compiler will create directory out/ii_files/ for
13451 # template instantiation
13452 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13453 $rm out/* && rmdir out
13454 cd ..
13455 rmdir conftest
13456 $rm conftest*
13457
13458fi
13459echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13460echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13461
13462
13463hard_links="nottested"
13464if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13465 # do not overwrite the value of need_locks provided by the user
13466 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13467echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13468 hard_links=yes
13469 $rm conftest*
13470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13471 touch conftest.a
13472 ln conftest.a conftest.b 2>&5 || hard_links=no
13473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13474 echo "$as_me:$LINENO: result: $hard_links" >&5
13475echo "${ECHO_T}$hard_links" >&6
13476 if test "$hard_links" = no; then
13477 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13478echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13479 need_locks=warn
13480 fi
13481else
13482 need_locks=no
13483fi
13484
13485echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13486echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13487
13488 runpath_var=
13489 allow_undefined_flag_F77=
13490 enable_shared_with_static_runtimes_F77=no
13491 archive_cmds_F77=
13492 archive_expsym_cmds_F77=
13493 old_archive_From_new_cmds_F77=
13494 old_archive_from_expsyms_cmds_F77=
13495 export_dynamic_flag_spec_F77=
13496 whole_archive_flag_spec_F77=
13497 thread_safe_flag_spec_F77=
13498 hardcode_libdir_flag_spec_F77=
13499 hardcode_libdir_flag_spec_ld_F77=
13500 hardcode_libdir_separator_F77=
13501 hardcode_direct_F77=no
13502 hardcode_minus_L_F77=no
13503 hardcode_shlibpath_var_F77=unsupported
13504 link_all_deplibs_F77=unknown
13505 hardcode_automatic_F77=no
13506 module_cmds_F77=
13507 module_expsym_cmds_F77=
13508 always_export_symbols_F77=no
13509 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13510 # include_expsyms should be a list of space-separated symbols to be *always*
13511 # included in the symbol list
13512 include_expsyms_F77=
13513 # exclude_expsyms can be an extended regexp of symbols to exclude
13514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13516 # as well as any symbol that contains `d'.
13517 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13519 # platforms (ab)use it in PIC code, but their linkers get confused if
13520 # the symbol is explicitly referenced. Since portable code cannot
13521 # rely on this symbol name, it's probably fine to never include it in
13522 # preloaded symbol tables.
13523 extract_expsyms_cmds=
13524 # Just being paranoid about ensuring that cc_basename is set.
13525 for cc_temp in $compiler""; do
13526 case $cc_temp in
13527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13529 \-*) ;;
13530 *) break;;
13531 esac
13532done
13533cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13534
13535 case $host_os in
13536 cygwin* | mingw* | pw32*)
13537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13538 # When not using gcc, we currently assume that we are using
13539 # Microsoft Visual C++.
13540 if test "$GCC" != yes; then
13541 with_gnu_ld=no
13542 fi
13543 ;;
13544 interix*)
13545 # we just hope/assume this is gcc and not c89 (= MSVC++)
13546 with_gnu_ld=yes
13547 ;;
13548 openbsd*)
13549 with_gnu_ld=no
13550 ;;
13551 esac
13552
13553 ld_shlibs_F77=yes
13554 if test "$with_gnu_ld" = yes; then
13555 # If archive_cmds runs LD, not CC, wlarc should be empty
13556 wlarc='${wl}'
13557
13558 # Set some defaults for GNU ld with shared library support. These
13559 # are reset later if shared libraries are not supported. Putting them
13560 # here allows them to be overridden if necessary.
13561 runpath_var=LD_RUN_PATH
13562 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13563 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13564 # ancient GNU ld didn't support --whole-archive et. al.
13565 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13566 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13567 else
13568 whole_archive_flag_spec_F77=
13569 fi
13570 supports_anon_versioning=no
13571 case `$LD -v 2>/dev/null` in
13572 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13573 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13574 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13575 *\ 2.11.*) ;; # other 2.11 versions
13576 *) supports_anon_versioning=yes ;;
13577 esac
13578
13579 # See if GNU ld supports shared libraries.
13580 case $host_os in
13581 aix3* | aix4* | aix5*)
13582 # On AIX/PPC, the GNU linker is very broken
13583 if test "$host_cpu" != ia64; then
13584 ld_shlibs_F77=no
13585 cat <<EOF 1>&2
13586
13587*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13588*** to be unable to reliably create shared libraries on AIX.
13589*** Therefore, libtool is disabling shared libraries support. If you
13590*** really care for shared libraries, you may want to modify your PATH
13591*** so that a non-GNU linker is found, and then restart.
13592
13593EOF
13594 fi
13595 ;;
13596
13597 amigaos*)
13598 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)'
13599 hardcode_libdir_flag_spec_F77='-L$libdir'
13600 hardcode_minus_L_F77=yes
13601
13602 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13603 # that the semantics of dynamic libraries on AmigaOS, at least up
13604 # to version 4, is to share data among multiple programs linked
13605 # with the same dynamic library. Since this doesn't match the
13606 # behavior of shared libraries on other platforms, we can't use
13607 # them.
13608 ld_shlibs_F77=no
13609 ;;
13610
13611 beos*)
13612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613 allow_undefined_flag_F77=unsupported
13614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13615 # support --undefined. This deserves some investigation. FIXME
13616 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617 else
13618 ld_shlibs_F77=no
13619 fi
13620 ;;
13621
13622 cygwin* | mingw* | pw32*)
13623 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13624 # as there is no search path for DLLs.
13625 hardcode_libdir_flag_spec_F77='-L$libdir'
13626 allow_undefined_flag_F77=unsupported
13627 always_export_symbols_F77=no
13628 enable_shared_with_static_runtimes_F77=yes
13629 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13630
13631 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13632 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13633 # If the export-symbols file already is a .def file (1st line
13634 # is EXPORTS), use it as is; otherwise, prepend...
13635 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13636 cp $export_symbols $output_objdir/$soname.def;
13637 else
13638 echo EXPORTS > $output_objdir/$soname.def;
13639 cat $export_symbols >> $output_objdir/$soname.def;
13640 fi~
13641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13642 else
13643 ld_shlibs_F77=no
13644 fi
13645 ;;
13646
13647 interix3*)
13648 hardcode_direct_F77=no
13649 hardcode_shlibpath_var_F77=no
13650 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13651 export_dynamic_flag_spec_F77='${wl}-E'
13652 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13653 # Instead, shared libraries are loaded at an image base (0x10000000 by
13654 # default) and relocated if they conflict, which is a slow very memory
13655 # consuming and fragmenting process. To avoid this, we pick a random,
13656 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13657 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13658 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'
13659 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'
13660 ;;
13661
13662 linux*)
13663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13664 tmp_addflag=
13665 case $cc_basename,$host_cpu in
13666 pgcc*) # Portland Group C compiler
13667 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'
13668 tmp_addflag=' $pic_flag'
13669 ;;
13670 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13671 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13672 tmp_addflag=' $pic_flag -Mnomain' ;;
13673 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13674 tmp_addflag=' -i_dynamic' ;;
13675 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13676 tmp_addflag=' -i_dynamic -nofor_main' ;;
13677 ifc* | ifort*) # Intel Fortran compiler
13678 tmp_addflag=' -nofor_main' ;;
13679 esac
13680 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13681
13682 if test $supports_anon_versioning = yes; then
13683 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13685 $echo "local: *; };" >> $output_objdir/$libname.ver~
13686 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13687 fi
13688 else
13689 ld_shlibs_F77=no
13690 fi
13691 ;;
13692
13693 netbsd*)
13694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13695 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13696 wlarc=
13697 else
13698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13700 fi
13701 ;;
13702
13703 solaris*)
13704 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13705 ld_shlibs_F77=no
13706 cat <<EOF 1>&2
13707
13708*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13709*** create shared libraries on Solaris systems. Therefore, libtool
13710*** is disabling shared libraries support. We urge you to upgrade GNU
13711*** binutils to release 2.9.1 or newer. Another option is to modify
13712*** your PATH or compiler configuration so that the native linker is
13713*** used, and then restart.
13714
13715EOF
13716 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13717 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13718 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13719 else
13720 ld_shlibs_F77=no
13721 fi
13722 ;;
13723
13724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13725 case `$LD -v 2>&1` in
13726 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13727 ld_shlibs_F77=no
13728 cat <<_LT_EOF 1>&2
13729
13730*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13731*** reliably create shared libraries on SCO systems. Therefore, libtool
13732*** is disabling shared libraries support. We urge you to upgrade GNU
13733*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13734*** your PATH or compiler configuration so that the native linker is
13735*** used, and then restart.
13736
13737_LT_EOF
13738 ;;
13739 *)
13740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13741 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13742 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13743 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13744 else
13745 ld_shlibs_F77=no
13746 fi
13747 ;;
13748 esac
13749 ;;
13750
13751 sunos4*)
13752 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13753 wlarc=
13754 hardcode_direct_F77=yes
13755 hardcode_shlibpath_var_F77=no
13756 ;;
13757
13758 *)
13759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13762 else
13763 ld_shlibs_F77=no
13764 fi
13765 ;;
13766 esac
13767
13768 if test "$ld_shlibs_F77" = no; then
13769 runpath_var=
13770 hardcode_libdir_flag_spec_F77=
13771 export_dynamic_flag_spec_F77=
13772 whole_archive_flag_spec_F77=
13773 fi
13774 else
13775 # PORTME fill in a description of your system's linker (not GNU ld)
13776 case $host_os in
13777 aix3*)
13778 allow_undefined_flag_F77=unsupported
13779 always_export_symbols_F77=yes
13780 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'
13781 # Note: this linker hardcodes the directories in LIBPATH if there
13782 # are no directories specified by -L.
13783 hardcode_minus_L_F77=yes
13784 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13785 # Neither direct hardcoding nor static linking is supported with a
13786 # broken collect2.
13787 hardcode_direct_F77=unsupported
13788 fi
13789 ;;
13790
13791 aix4* | aix5*)
13792 if test "$host_cpu" = ia64; then
13793 # On IA64, the linker does run time linking by default, so we don't
13794 # have to do anything special.
13795 aix_use_runtimelinking=no
13796 exp_sym_flag='-Bexport'
13797 no_entry_flag=""
13798 else
13799 # If we're using GNU nm, then we don't want the "-C" option.
13800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13801 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13802 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'
13803 else
13804 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'
13805 fi
13806 aix_use_runtimelinking=no
13807
13808 # Test if we are trying to use run time linking or normal
13809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13810 # need to do runtime linking.
13811 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13812 for ld_flag in $LDFLAGS; do
13813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13814 aix_use_runtimelinking=yes
13815 break
13816 fi
13817 done
13818 ;;
13819 esac
13820
13821 exp_sym_flag='-bexport'
13822 no_entry_flag='-bnoentry'
13823 fi
13824
13825 # When large executables or shared objects are built, AIX ld can
13826 # have problems creating the table of contents. If linking a library
13827 # or program results in "error TOC overflow" add -mminimal-toc to
13828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13830
13831 archive_cmds_F77=''
13832 hardcode_direct_F77=yes
13833 hardcode_libdir_separator_F77=':'
13834 link_all_deplibs_F77=yes
13835
13836 if test "$GCC" = yes; then
13837 case $host_os in aix4.[012]|aix4.[012].*)
13838 # We only want to do this on AIX 4.2 and lower, the check
13839 # below for broken collect2 doesn't work under 4.3+
13840 collect2name=`${CC} -print-prog-name=collect2`
13841 if test -f "$collect2name" && \
13842 strings "$collect2name" | grep resolve_lib_name >/dev/null
13843 then
13844 # We have reworked collect2
13845 hardcode_direct_F77=yes
13846 else
13847 # We have old collect2
13848 hardcode_direct_F77=unsupported
13849 # It fails to find uninstalled libraries when the uninstalled
13850 # path is not listed in the libpath. Setting hardcode_minus_L
13851 # to unsupported forces relinking
13852 hardcode_minus_L_F77=yes
13853 hardcode_libdir_flag_spec_F77='-L$libdir'
13854 hardcode_libdir_separator_F77=
13855 fi
13856 ;;
13857 esac
13858 shared_flag='-shared'
13859 if test "$aix_use_runtimelinking" = yes; then
13860 shared_flag="$shared_flag "'${wl}-G'
13861 fi
13862 else
13863 # not using gcc
13864 if test "$host_cpu" = ia64; then
13865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13866 # chokes on -Wl,-G. The following line is correct:
13867 shared_flag='-G'
13868 else
13869 if test "$aix_use_runtimelinking" = yes; then
13870 shared_flag='${wl}-G'
13871 else
13872 shared_flag='${wl}-bM:SRE'
13873 fi
13874 fi
13875 fi
13876
13877 # It seems that -bexpall does not export symbols beginning with
13878 # underscore (_), so it is better to generate a list of symbols to export.
13879 always_export_symbols_F77=yes
13880 if test "$aix_use_runtimelinking" = yes; then
13881 # Warning - without using the other runtime loading flags (-brtl),
13882 # -berok will link without error, but may produce a broken library.
13883 allow_undefined_flag_F77='-berok'
13884 # Determine the default libpath from the value encoded in an empty executable.
13885 cat >conftest.$ac_ext <<_ACEOF
13886 program main
13887
13888 end
13889_ACEOF
13890rm -f conftest.$ac_objext conftest$ac_exeext
13891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892 (eval $ac_link) 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_f77_werror_flag"
13900 || test ! -s conftest.err'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest$ac_exeext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912
13913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13914}'`
13915# Check for a 64-bit object if we didn't find anything.
13916if 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; }
13917}'`; fi
13918else
13919 echo "$as_me: failed program was:" >&5
13920sed 's/^/| /' conftest.$ac_ext >&5
13921
13922fi
13923rm -f conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13926
13927 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13928 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"
13929 else
13930 if test "$host_cpu" = ia64; then
13931 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13932 allow_undefined_flag_F77="-z nodefs"
13933 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"
13934 else
13935 # Determine the default libpath from the value encoded in an empty executable.
13936 cat >conftest.$ac_ext <<_ACEOF
13937 program main
13938
13939 end
13940_ACEOF
13941rm -f conftest.$ac_objext conftest$ac_exeext
13942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13943 (eval $ac_link) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_f77_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest$ac_exeext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963
13964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13965}'`
13966# Check for a 64-bit object if we didn't find anything.
13967if 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; }
13968}'`; fi
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973fi
13974rm -f conftest.err conftest.$ac_objext \
13975 conftest$ac_exeext conftest.$ac_ext
13976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13977
13978 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13979 # Warning - without using the other run time loading flags,
13980 # -berok will link without error, but may produce a broken library.
13981 no_undefined_flag_F77=' ${wl}-bernotok'
13982 allow_undefined_flag_F77=' ${wl}-berok'
13983 # Exported symbols can be pulled into shared objects from archives
13984 whole_archive_flag_spec_F77='$convenience'
13985 archive_cmds_need_lc_F77=yes
13986 # This is similar to how AIX traditionally builds its shared libraries.
13987 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'
13988 fi
13989 fi
13990 ;;
13991
13992 amigaos*)
13993 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)'
13994 hardcode_libdir_flag_spec_F77='-L$libdir'
13995 hardcode_minus_L_F77=yes
13996 # see comment about different semantics on the GNU ld section
13997 ld_shlibs_F77=no
13998 ;;
13999
14000 bsdi[45]*)
14001 export_dynamic_flag_spec_F77=-rdynamic
14002 ;;
14003
14004 cygwin* | mingw* | pw32*)
14005 # When not using gcc, we currently assume that we are using
14006 # Microsoft Visual C++.
14007 # hardcode_libdir_flag_spec is actually meaningless, as there is
14008 # no search path for DLLs.
14009 hardcode_libdir_flag_spec_F77=' '
14010 allow_undefined_flag_F77=unsupported
14011 # Tell ltmain to make .lib files, not .a files.
14012 libext=lib
14013 # Tell ltmain to make .dll files, not .so files.
14014 shrext_cmds=".dll"
14015 # FIXME: Setting linknames here is a bad hack.
14016 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14017 # The linker will automatically build a .lib file if we build a DLL.
14018 old_archive_From_new_cmds_F77='true'
14019 # FIXME: Should let the user specify the lib program.
14020 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14021 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14022 enable_shared_with_static_runtimes_F77=yes
14023 ;;
14024
14025 darwin* | rhapsody*)
14026 case $host_os in
14027 rhapsody* | darwin1.[012])
14028 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14029 ;;
14030 *) # Darwin 1.3 on
14031 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14032 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14033 else
14034 case ${MACOSX_DEPLOYMENT_TARGET} in
14035 10.[012])
14036 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14037 ;;
14038 10.*)
14039 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14040 ;;
14041 esac
14042 fi
14043 ;;
14044 esac
14045 archive_cmds_need_lc_F77=no
14046 hardcode_direct_F77=no
14047 hardcode_automatic_F77=yes
14048 hardcode_shlibpath_var_F77=unsupported
14049 whole_archive_flag_spec_F77=''
14050 link_all_deplibs_F77=yes
14051 if test "$GCC" = yes ; then
14052 output_verbose_link_cmd='echo'
14053 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14054 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14056 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}'
14057 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}'
14058 else
14059 case $cc_basename in
14060 xlc*)
14061 output_verbose_link_cmd='echo'
14062 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14063 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14064 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14065 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}'
14066 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}'
14067 ;;
14068 *)
14069 ld_shlibs_F77=no
14070 ;;
14071 esac
14072 fi
14073 ;;
14074
14075 dgux*)
14076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077 hardcode_libdir_flag_spec_F77='-L$libdir'
14078 hardcode_shlibpath_var_F77=no
14079 ;;
14080
14081 freebsd1*)
14082 ld_shlibs_F77=no
14083 ;;
14084
14085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14086 # support. Future versions do this automatically, but an explicit c++rt0.o
14087 # does not break anything, and helps significantly (at the cost of a little
14088 # extra space).
14089 freebsd2.2*)
14090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14091 hardcode_libdir_flag_spec_F77='-R$libdir'
14092 hardcode_direct_F77=yes
14093 hardcode_shlibpath_var_F77=no
14094 ;;
14095
14096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14097 freebsd2*)
14098 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14099 hardcode_direct_F77=yes
14100 hardcode_minus_L_F77=yes
14101 hardcode_shlibpath_var_F77=no
14102 ;;
14103
14104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14105 freebsd* | kfreebsd*-gnu | dragonfly*)
14106 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14107 hardcode_libdir_flag_spec_F77='-R$libdir'
14108 hardcode_direct_F77=yes
14109 hardcode_shlibpath_var_F77=no
14110 ;;
14111
14112 hpux9*)
14113 if test "$GCC" = yes; then
14114 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'
14115 else
14116 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'
14117 fi
14118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14119 hardcode_libdir_separator_F77=:
14120 hardcode_direct_F77=yes
14121
14122 # hardcode_minus_L: Not really in the search PATH,
14123 # but as the default location of the library.
14124 hardcode_minus_L_F77=yes
14125 export_dynamic_flag_spec_F77='${wl}-E'
14126 ;;
14127
14128 hpux10*)
14129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14130 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14131 else
14132 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14133 fi
14134 if test "$with_gnu_ld" = no; then
14135 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14136 hardcode_libdir_separator_F77=:
14137
14138 hardcode_direct_F77=yes
14139 export_dynamic_flag_spec_F77='${wl}-E'
14140
14141 # hardcode_minus_L: Not really in the search PATH,
14142 # but as the default location of the library.
14143 hardcode_minus_L_F77=yes
14144 fi
14145 ;;
14146
14147 hpux11*)
14148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14149 case $host_cpu in
14150 hppa*64*)
14151 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 ;;
14153 ia64*)
14154 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14155 ;;
14156 *)
14157 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14158 ;;
14159 esac
14160 else
14161 case $host_cpu in
14162 hppa*64*)
14163 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14164 ;;
14165 ia64*)
14166 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14167 ;;
14168 *)
14169 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14170 ;;
14171 esac
14172 fi
14173 if test "$with_gnu_ld" = no; then
14174 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14175 hardcode_libdir_separator_F77=:
14176
14177 case $host_cpu in
14178 hppa*64*|ia64*)
14179 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14180 hardcode_direct_F77=no
14181 hardcode_shlibpath_var_F77=no
14182 ;;
14183 *)
14184 hardcode_direct_F77=yes
14185 export_dynamic_flag_spec_F77='${wl}-E'
14186
14187 # hardcode_minus_L: Not really in the search PATH,
14188 # but as the default location of the library.
14189 hardcode_minus_L_F77=yes
14190 ;;
14191 esac
14192 fi
14193 ;;
14194
14195 irix5* | irix6* | nonstopux*)
14196 if test "$GCC" = yes; then
14197 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'
14198 else
14199 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'
14200 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14201 fi
14202 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14203 hardcode_libdir_separator_F77=:
14204 link_all_deplibs_F77=yes
14205 ;;
14206
14207 netbsd*)
14208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14209 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14210 else
14211 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14212 fi
14213 hardcode_libdir_flag_spec_F77='-R$libdir'
14214 hardcode_direct_F77=yes
14215 hardcode_shlibpath_var_F77=no
14216 ;;
14217
14218 newsos6)
14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_direct_F77=yes
14221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14222 hardcode_libdir_separator_F77=:
14223 hardcode_shlibpath_var_F77=no
14224 ;;
14225
14226 openbsd*)
14227 hardcode_direct_F77=yes
14228 hardcode_shlibpath_var_F77=no
14229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14230 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14231 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14232 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14233 export_dynamic_flag_spec_F77='${wl}-E'
14234 else
14235 case $host_os in
14236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14237 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_libdir_flag_spec_F77='-R$libdir'
14239 ;;
14240 *)
14241 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14242 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14243 ;;
14244 esac
14245 fi
14246 ;;
14247
14248 os2*)
14249 hardcode_libdir_flag_spec_F77='-L$libdir'
14250 hardcode_minus_L_F77=yes
14251 allow_undefined_flag_F77=unsupported
14252 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'
14253 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14254 ;;
14255
14256 osf3*)
14257 if test "$GCC" = yes; then
14258 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14259 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'
14260 else
14261 allow_undefined_flag_F77=' -expect_unresolved \*'
14262 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'
14263 fi
14264 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14265 hardcode_libdir_separator_F77=:
14266 ;;
14267
14268 osf4* | osf5*) # as osf3* with the addition of -msym flag
14269 if test "$GCC" = yes; then
14270 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14271 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'
14272 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14273 else
14274 allow_undefined_flag_F77=' -expect_unresolved \*'
14275 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'
14276 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~
14277 $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'
14278
14279 # Both c and cxx compiler support -rpath directly
14280 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14281 fi
14282 hardcode_libdir_separator_F77=:
14283 ;;
14284
14285 solaris*)
14286 no_undefined_flag_F77=' -z text'
14287 if test "$GCC" = yes; then
14288 wlarc='${wl}'
14289 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14290 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14291 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14292 else
14293 wlarc=''
14294 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14297 fi
14298 hardcode_libdir_flag_spec_F77='-R$libdir'
14299 hardcode_shlibpath_var_F77=no
14300 case $host_os in
14301 solaris2.[0-5] | solaris2.[0-5].*) ;;
14302 *)
14303 # The compiler driver will combine linker options so we
14304 # cannot just pass the convience library names through
14305 # without $wl, iff we do not link with $LD.
14306 # Luckily, gcc supports the same syntax we need for Sun Studio.
14307 # Supported since Solaris 2.6 (maybe 2.5.1?)
14308 case $wlarc in
14309 '')
14310 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14311 *)
14312 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' ;;
14313 esac ;;
14314 esac
14315 link_all_deplibs_F77=yes
14316 ;;
14317
14318 sunos4*)
14319 if test "x$host_vendor" = xsequent; then
14320 # Use $CC to link under sequent, because it throws in some extra .o
14321 # files that make .init and .fini sections work.
14322 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14323 else
14324 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14325 fi
14326 hardcode_libdir_flag_spec_F77='-L$libdir'
14327 hardcode_direct_F77=yes
14328 hardcode_minus_L_F77=yes
14329 hardcode_shlibpath_var_F77=no
14330 ;;
14331
14332 sysv4)
14333 case $host_vendor in
14334 sni)
14335 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14336 hardcode_direct_F77=yes # is this really true???
14337 ;;
14338 siemens)
14339 ## LD is ld it makes a PLAMLIB
14340 ## CC just makes a GrossModule.
14341 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14342 reload_cmds_F77='$CC -r -o $output$reload_objs'
14343 hardcode_direct_F77=no
14344 ;;
14345 motorola)
14346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14347 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14348 ;;
14349 esac
14350 runpath_var='LD_RUN_PATH'
14351 hardcode_shlibpath_var_F77=no
14352 ;;
14353
14354 sysv4.3*)
14355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356 hardcode_shlibpath_var_F77=no
14357 export_dynamic_flag_spec_F77='-Bexport'
14358 ;;
14359
14360 sysv4*MP*)
14361 if test -d /usr/nec; then
14362 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14363 hardcode_shlibpath_var_F77=no
14364 runpath_var=LD_RUN_PATH
14365 hardcode_runpath_var=yes
14366 ld_shlibs_F77=yes
14367 fi
14368 ;;
14369
14370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14371 no_undefined_flag_F77='${wl}-z,text'
14372 archive_cmds_need_lc_F77=no
14373 hardcode_shlibpath_var_F77=no
14374 runpath_var='LD_RUN_PATH'
14375
14376 if test "$GCC" = yes; then
14377 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14378 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14379 else
14380 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14381 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 fi
14383 ;;
14384
14385 sysv5* | sco3.2v5* | sco5v6*)
14386 # Note: We can NOT use -z defs as we might desire, because we do not
14387 # link with -lc, and that would cause any symbols used from libc to
14388 # always be unresolved, which means just about no library would
14389 # ever link correctly. If we're not using GNU ld we use -z text
14390 # though, which does catch some bad symbols but isn't as heavy-handed
14391 # as -z defs.
14392 no_undefined_flag_F77='${wl}-z,text'
14393 allow_undefined_flag_F77='${wl}-z,nodefs'
14394 archive_cmds_need_lc_F77=no
14395 hardcode_shlibpath_var_F77=no
14396 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14397 hardcode_libdir_separator_F77=':'
14398 link_all_deplibs_F77=yes
14399 export_dynamic_flag_spec_F77='${wl}-Bexport'
14400 runpath_var='LD_RUN_PATH'
14401
14402 if test "$GCC" = yes; then
14403 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14405 else
14406 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14407 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14408 fi
14409 ;;
14410
14411 uts4*)
14412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14413 hardcode_libdir_flag_spec_F77='-L$libdir'
14414 hardcode_shlibpath_var_F77=no
14415 ;;
14416
14417 *)
14418 ld_shlibs_F77=no
14419 ;;
14420 esac
14421 fi
14422
14423echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14424echo "${ECHO_T}$ld_shlibs_F77" >&6
14425test "$ld_shlibs_F77" = no && can_build_shared=no
14426
14427#
14428# Do we need to explicitly link libc?
14429#
14430case "x$archive_cmds_need_lc_F77" in
14431x|xyes)
14432 # Assume -lc should be added
14433 archive_cmds_need_lc_F77=yes
14434
14435 if test "$enable_shared" = yes && test "$GCC" = yes; then
14436 case $archive_cmds_F77 in
14437 *'~'*)
14438 # FIXME: we may have to deal with multi-command sequences.
14439 ;;
14440 '$CC '*)
14441 # Test whether the compiler implicitly links with -lc since on some
14442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14443 # to ld, don't add -lc before -lgcc.
14444 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14445echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14446 $rm conftest*
14447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14448
14449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14450 (eval $ac_compile) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } 2>conftest.err; then
14454 soname=conftest
14455 lib=conftest
14456 libobjs=conftest.$ac_objext
14457 deplibs=
14458 wl=$lt_prog_compiler_wl_F77
14459 pic_flag=$lt_prog_compiler_pic_F77
14460 compiler_flags=-v
14461 linker_flags=-v
14462 verstring=
14463 output_objdir=.
14464 libname=conftest
14465 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14466 allow_undefined_flag_F77=
14467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14468 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }
14472 then
14473 archive_cmds_need_lc_F77=no
14474 else
14475 archive_cmds_need_lc_F77=yes
14476 fi
14477 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14478 else
14479 cat conftest.err 1>&5
14480 fi
14481 $rm conftest*
14482 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14483echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14484 ;;
14485 esac
14486 fi
14487 ;;
14488esac
14489
14490echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14491echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14492library_names_spec=
14493libname_spec='lib$name'
14494soname_spec=
14495shrext_cmds=".so"
14496postinstall_cmds=
14497postuninstall_cmds=
14498finish_cmds=
14499finish_eval=
14500shlibpath_var=
14501shlibpath_overrides_runpath=unknown
14502version_type=none
14503dynamic_linker="$host_os ld.so"
14504sys_lib_dlsearch_path_spec="/lib /usr/lib"
14505if test "$GCC" = yes; then
14506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14507 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14508 # if the path contains ";" then we assume it to be the separator
14509 # otherwise default to the standard path separator (i.e. ":") - it is
14510 # assumed that no part of a normal pathname contains ";" but that should
14511 # okay in the real world where ";" in dirpaths is itself problematic.
14512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14513 else
14514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14515 fi
14516else
14517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14518fi
14519need_lib_prefix=unknown
14520hardcode_into_libs=no
14521
14522# when you set need_version to no, make sure it does not cause -set_version
14523# flags to be left without arguments
14524need_version=unknown
14525
14526case $host_os in
14527aix3*)
14528 version_type=linux
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14530 shlibpath_var=LIBPATH
14531
14532 # AIX 3 has no versioning support, so we append a major version to the name.
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 ;;
14535
14536aix4* | aix5*)
14537 version_type=linux
14538 need_lib_prefix=no
14539 need_version=no
14540 hardcode_into_libs=yes
14541 if test "$host_cpu" = ia64; then
14542 # AIX 5 supports IA64
14543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 else
14546 # With GCC up to 2.95.x, collect2 would create an import file
14547 # for dependence libraries. The import file would start with
14548 # the line `#! .'. This would cause the generated library to
14549 # depend on `.', always an invalid library. This was fixed in
14550 # development snapshots of GCC prior to 3.0.
14551 case $host_os in
14552 aix4 | aix4.[01] | aix4.[01].*)
14553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14554 echo ' yes '
14555 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14556 :
14557 else
14558 can_build_shared=no
14559 fi
14560 ;;
14561 esac
14562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14563 # soname into executable. Probably we can add versioning support to
14564 # collect2, so additional links can be useful in future.
14565 if test "$aix_use_runtimelinking" = yes; then
14566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14567 # instead of lib<name>.a to let people know that these are not
14568 # typical AIX shared libraries.
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570 else
14571 # We preserve .a as extension for shared libraries through AIX4.2
14572 # and later when we are not doing run time linking.
14573 library_names_spec='${libname}${release}.a $libname.a'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 fi
14576 shlibpath_var=LIBPATH
14577 fi
14578 ;;
14579
14580amigaos*)
14581 library_names_spec='$libname.ixlibrary $libname.a'
14582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14583 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'
14584 ;;
14585
14586beos*)
14587 library_names_spec='${libname}${shared_ext}'
14588 dynamic_linker="$host_os ld.so"
14589 shlibpath_var=LIBRARY_PATH
14590 ;;
14591
14592bsdi[45]*)
14593 version_type=linux
14594 need_version=no
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14601 # the default ld.so.conf also contains /usr/contrib/lib and
14602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14603 # libtool to hard-code these into programs
14604 ;;
14605
14606cygwin* | mingw* | pw32*)
14607 version_type=windows
14608 shrext_cmds=".dll"
14609 need_version=no
14610 need_lib_prefix=no
14611
14612 case $GCC,$host_os in
14613 yes,cygwin* | yes,mingw* | yes,pw32*)
14614 library_names_spec='$libname.dll.a'
14615 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14616 postinstall_cmds='base_file=`basename \${file}`~
14617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14618 dldir=$destdir/`dirname \$dlpath`~
14619 test -d \$dldir || mkdir -p \$dldir~
14620 $install_prog $dir/$dlname \$dldir/$dlname~
14621 chmod a+x \$dldir/$dlname'
14622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14623 dlpath=$dir/\$dldll~
14624 $rm \$dlpath'
14625 shlibpath_overrides_runpath=yes
14626
14627 case $host_os in
14628 cygwin*)
14629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14632 ;;
14633 mingw*)
14634 # MinGW DLLs use traditional 'lib' prefix
14635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14636 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14637 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14638 # It is most probably a Windows format PATH printed by
14639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14640 # path with ; separators, and with drive letters. We can handle the
14641 # drive letters (cygwin fileutils understands them), so leave them,
14642 # especially as we might pass files found there to a mingw objdump,
14643 # which wouldn't understand a cygwinified path. Ahh.
14644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14645 else
14646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14647 fi
14648 ;;
14649 pw32*)
14650 # pw32 DLLs use 'pw' prefix rather than 'lib'
14651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14652 ;;
14653 esac
14654 ;;
14655
14656 *)
14657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14658 ;;
14659 esac
14660 dynamic_linker='Win32 ld.exe'
14661 # FIXME: first we should search . and the directory the executable is in
14662 shlibpath_var=PATH
14663 ;;
14664
14665darwin* | rhapsody*)
14666 dynamic_linker="$host_os dyld"
14667 version_type=darwin
14668 need_lib_prefix=no
14669 need_version=no
14670 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14671 soname_spec='${libname}${release}${major}$shared_ext'
14672 shlibpath_overrides_runpath=yes
14673 shlibpath_var=DYLD_LIBRARY_PATH
14674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14675 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14676 if test "$GCC" = yes; then
14677 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"`
14678 else
14679 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14680 fi
14681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14682 ;;
14683
14684dgux*)
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 ;;
14692
14693freebsd1*)
14694 dynamic_linker=no
14695 ;;
14696
14697kfreebsd*-gnu)
14698 version_type=linux
14699 need_lib_prefix=no
14700 need_version=no
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 shlibpath_overrides_runpath=no
14705 hardcode_into_libs=yes
14706 dynamic_linker='GNU ld.so'
14707 ;;
14708
14709freebsd* | dragonfly*)
14710 # DragonFly does not have aout. When/if they implement a new
14711 # versioning mechanism, adjust this.
14712 if test -x /usr/bin/objformat; then
14713 objformat=`/usr/bin/objformat`
14714 else
14715 case $host_os in
14716 freebsd[123]*) objformat=aout ;;
14717 *) objformat=elf ;;
14718 esac
14719 fi
14720 version_type=freebsd-$objformat
14721 case $version_type in
14722 freebsd-elf*)
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14724 need_version=no
14725 need_lib_prefix=no
14726 ;;
14727 freebsd-*)
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14729 need_version=yes
14730 ;;
14731 esac
14732 shlibpath_var=LD_LIBRARY_PATH
14733 case $host_os in
14734 freebsd2*)
14735 shlibpath_overrides_runpath=yes
14736 ;;
14737 freebsd3.[01]* | freebsdelf3.[01]*)
14738 shlibpath_overrides_runpath=yes
14739 hardcode_into_libs=yes
14740 ;;
14741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14743 shlibpath_overrides_runpath=no
14744 hardcode_into_libs=yes
14745 ;;
14746 freebsd*) # from 4.6 on
14747 shlibpath_overrides_runpath=yes
14748 hardcode_into_libs=yes
14749 ;;
14750 esac
14751 ;;
14752
14753gnu*)
14754 version_type=linux
14755 need_lib_prefix=no
14756 need_version=no
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 hardcode_into_libs=yes
14761 ;;
14762
14763hpux9* | hpux10* | hpux11*)
14764 # Give a soname corresponding to the major version so that dld.sl refuses to
14765 # link against other versions.
14766 version_type=sunos
14767 need_lib_prefix=no
14768 need_version=no
14769 case $host_cpu in
14770 ia64*)
14771 shrext_cmds='.so'
14772 hardcode_into_libs=yes
14773 dynamic_linker="$host_os dld.so"
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 if test "X$HPUX_IA64_MODE" = X32; then
14779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14780 else
14781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14782 fi
14783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14784 ;;
14785 hppa*64*)
14786 shrext_cmds='.sl'
14787 hardcode_into_libs=yes
14788 dynamic_linker="$host_os dld.sl"
14789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14795 ;;
14796 *)
14797 shrext_cmds='.sl'
14798 dynamic_linker="$host_os dld.sl"
14799 shlibpath_var=SHLIB_PATH
14800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 ;;
14804 esac
14805 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14806 postinstall_cmds='chmod 555 $lib'
14807 ;;
14808
14809interix3*)
14810 version_type=linux
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 hardcode_into_libs=yes
14819 ;;
14820
14821irix5* | irix6* | nonstopux*)
14822 case $host_os in
14823 nonstopux*) version_type=nonstopux ;;
14824 *)
14825 if test "$lt_cv_prog_gnu_ld" = yes; then
14826 version_type=linux
14827 else
14828 version_type=irix
14829 fi ;;
14830 esac
14831 need_lib_prefix=no
14832 need_version=no
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14835 case $host_os in
14836 irix5* | nonstopux*)
14837 libsuff= shlibsuff=
14838 ;;
14839 *)
14840 case $LD in # libtool.m4 will add one of these switches to LD
14841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14842 libsuff= shlibsuff= libmagic=32-bit;;
14843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14844 libsuff=32 shlibsuff=N32 libmagic=N32;;
14845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14847 *) libsuff= shlibsuff= libmagic=never-match;;
14848 esac
14849 ;;
14850 esac
14851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14852 shlibpath_overrides_runpath=no
14853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14855 hardcode_into_libs=yes
14856 ;;
14857
14858# No shared lib support for Linux oldld, aout, or coff.
14859linux*oldld* | linux*aout* | linux*coff*)
14860 dynamic_linker=no
14861 ;;
14862
14863# This must be Linux ELF.
14864linux*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 shlibpath_overrides_runpath=no
14873 # This implies no fast_install, which is unacceptable.
14874 # Some rework will be needed to allow for fast_install
14875 # before this can be enabled.
14876 hardcode_into_libs=yes
14877
14878 # Append ld.so.conf contents to the search path
14879 if test -f /etc/ld.so.conf; then
14880 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' ' '`
14881 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14882 fi
14883
14884 # We used to test for /lib/ld.so.1 and disable shared libraries on
14885 # powerpc, because MkLinux only supported shared libraries with the
14886 # GNU dynamic linker. Since this was broken with cross compilers,
14887 # most powerpc-linux boxes support dynamic linking these days and
14888 # people can always --disable-shared, the test was removed, and we
14889 # assume the GNU/Linux dynamic linker is in use.
14890 dynamic_linker='GNU/Linux ld.so'
14891 ;;
14892
14893knetbsd*-gnu)
14894 version_type=linux
14895 need_lib_prefix=no
14896 need_version=no
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=no
14901 hardcode_into_libs=yes
14902 dynamic_linker='GNU ld.so'
14903 ;;
14904
14905netbsd*)
14906 version_type=sunos
14907 need_lib_prefix=no
14908 need_version=no
14909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14912 dynamic_linker='NetBSD (a.out) ld.so'
14913 else
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 dynamic_linker='NetBSD ld.elf_so'
14917 fi
14918 shlibpath_var=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath=yes
14920 hardcode_into_libs=yes
14921 ;;
14922
14923newsos6)
14924 version_type=linux
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 shlibpath_overrides_runpath=yes
14928 ;;
14929
14930nto-qnx*)
14931 version_type=linux
14932 need_lib_prefix=no
14933 need_version=no
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes
14938 ;;
14939
14940openbsd*)
14941 version_type=sunos
14942 sys_lib_dlsearch_path_spec="/usr/lib"
14943 need_lib_prefix=no
14944 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14945 case $host_os in
14946 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14947 *) need_version=no ;;
14948 esac
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14953 case $host_os in
14954 openbsd2.[89] | openbsd2.[89].*)
14955 shlibpath_overrides_runpath=no
14956 ;;
14957 *)
14958 shlibpath_overrides_runpath=yes
14959 ;;
14960 esac
14961 else
14962 shlibpath_overrides_runpath=yes
14963 fi
14964 ;;
14965
14966os2*)
14967 libname_spec='$name'
14968 shrext_cmds=".dll"
14969 need_lib_prefix=no
14970 library_names_spec='$libname${shared_ext} $libname.a'
14971 dynamic_linker='OS/2 ld.exe'
14972 shlibpath_var=LIBPATH
14973 ;;
14974
14975osf3* | osf4* | osf5*)
14976 version_type=osf
14977 need_lib_prefix=no
14978 need_version=no
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14984 ;;
14985
14986solaris*)
14987 version_type=linux
14988 need_lib_prefix=no
14989 need_version=no
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 shlibpath_overrides_runpath=yes
14994 hardcode_into_libs=yes
14995 # ldd complains unless libraries are executable
14996 postinstall_cmds='chmod +x $lib'
14997 ;;
14998
14999sunos4*)
15000 version_type=sunos
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=yes
15005 if test "$with_gnu_ld" = yes; then
15006 need_lib_prefix=no
15007 fi
15008 need_version=yes
15009 ;;
15010
15011sysv4 | sysv4.3*)
15012 version_type=linux
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 case $host_vendor in
15017 sni)
15018 shlibpath_overrides_runpath=no
15019 need_lib_prefix=no
15020 export_dynamic_flag_spec='${wl}-Blargedynsym'
15021 runpath_var=LD_RUN_PATH
15022 ;;
15023 siemens)
15024 need_lib_prefix=no
15025 ;;
15026 motorola)
15027 need_lib_prefix=no
15028 need_version=no
15029 shlibpath_overrides_runpath=no
15030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15031 ;;
15032 esac
15033 ;;
15034
15035sysv4*MP*)
15036 if test -d /usr/nec ;then
15037 version_type=linux
15038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15039 soname_spec='$libname${shared_ext}.$major'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 fi
15042 ;;
15043
15044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15045 version_type=freebsd-elf
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 hardcode_into_libs=yes
15052 if test "$with_gnu_ld" = yes; then
15053 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15054 shlibpath_overrides_runpath=no
15055 else
15056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15057 shlibpath_overrides_runpath=yes
15058 case $host_os in
15059 sco3.2v5*)
15060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15061 ;;
15062 esac
15063 fi
15064 sys_lib_dlsearch_path_spec='/usr/lib'
15065 ;;
15066
15067uts4*)
15068 version_type=linux
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 ;;
15073
15074*)
15075 dynamic_linker=no
15076 ;;
15077esac
15078echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15079echo "${ECHO_T}$dynamic_linker" >&6
15080test "$dynamic_linker" = no && can_build_shared=no
15081
15082variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15083if test "$GCC" = yes; then
15084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15085fi
15086
15087echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15088echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15089hardcode_action_F77=
15090if test -n "$hardcode_libdir_flag_spec_F77" || \
15091 test -n "$runpath_var_F77" || \
15092 test "X$hardcode_automatic_F77" = "Xyes" ; then
15093
15094 # We can hardcode non-existant directories.
15095 if test "$hardcode_direct_F77" != no &&
15096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15097 # have to relink, otherwise we might link with an installed library
15098 # when we should be linking with a yet-to-be-installed one
15099 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15100 test "$hardcode_minus_L_F77" != no; then
15101 # Linking always hardcodes the temporary library directory.
15102 hardcode_action_F77=relink
15103 else
15104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15105 hardcode_action_F77=immediate
15106 fi
15107else
15108 # We cannot hardcode anything, or else we can only hardcode existing
15109 # directories.
15110 hardcode_action_F77=unsupported
15111fi
15112echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15113echo "${ECHO_T}$hardcode_action_F77" >&6
15114
15115if test "$hardcode_action_F77" = relink; then
15116 # Fast installation is not supported
15117 enable_fast_install=no
15118elif test "$shlibpath_overrides_runpath" = yes ||
15119 test "$enable_shared" = no; then
15120 # Fast installation is not necessary
15121 enable_fast_install=needless
15122fi
15123
15124
15125# The else clause should only fire when bootstrapping the
15126# libtool distribution, otherwise you forgot to ship ltmain.sh
15127# with your package, and you will get complaints that there are
15128# no rules to generate ltmain.sh.
15129if test -f "$ltmain"; then
15130 # See if we are running on zsh, and set the options which allow our commands through
15131 # without removal of \ escapes.
15132 if test -n "${ZSH_VERSION+set}" ; then
15133 setopt NO_GLOB_SUBST
15134 fi
15135 # Now quote all the things that may contain metacharacters while being
15136 # careful not to overquote the AC_SUBSTed values. We take copies of the
15137 # variables and quote the copies for generation of the libtool script.
15138 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15139 SED SHELL STRIP \
15140 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15141 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15142 deplibs_check_method reload_flag reload_cmds need_locks \
15143 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15144 lt_cv_sys_global_symbol_to_c_name_address \
15145 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15146 old_postinstall_cmds old_postuninstall_cmds \
15147 compiler_F77 \
15148 CC_F77 \
15149 LD_F77 \
15150 lt_prog_compiler_wl_F77 \
15151 lt_prog_compiler_pic_F77 \
15152 lt_prog_compiler_static_F77 \
15153 lt_prog_compiler_no_builtin_flag_F77 \
15154 export_dynamic_flag_spec_F77 \
15155 thread_safe_flag_spec_F77 \
15156 whole_archive_flag_spec_F77 \
15157 enable_shared_with_static_runtimes_F77 \
15158 old_archive_cmds_F77 \
15159 old_archive_from_new_cmds_F77 \
15160 predep_objects_F77 \
15161 postdep_objects_F77 \
15162 predeps_F77 \
15163 postdeps_F77 \
15164 compiler_lib_search_path_F77 \
15165 archive_cmds_F77 \
15166 archive_expsym_cmds_F77 \
15167 postinstall_cmds_F77 \
15168 postuninstall_cmds_F77 \
15169 old_archive_from_expsyms_cmds_F77 \
15170 allow_undefined_flag_F77 \
15171 no_undefined_flag_F77 \
15172 export_symbols_cmds_F77 \
15173 hardcode_libdir_flag_spec_F77 \
15174 hardcode_libdir_flag_spec_ld_F77 \
15175 hardcode_libdir_separator_F77 \
15176 hardcode_automatic_F77 \
15177 module_cmds_F77 \
15178 module_expsym_cmds_F77 \
15179 lt_cv_prog_compiler_c_o_F77 \
15180 exclude_expsyms_F77 \
15181 include_expsyms_F77; do
15182
15183 case $var in
15184 old_archive_cmds_F77 | \
15185 old_archive_from_new_cmds_F77 | \
15186 archive_cmds_F77 | \
15187 archive_expsym_cmds_F77 | \
15188 module_cmds_F77 | \
15189 module_expsym_cmds_F77 | \
15190 old_archive_from_expsyms_cmds_F77 | \
15191 export_symbols_cmds_F77 | \
15192 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15193 postinstall_cmds | postuninstall_cmds | \
15194 old_postinstall_cmds | old_postuninstall_cmds | \
15195 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15196 # Double-quote double-evaled strings.
15197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15198 ;;
15199 *)
15200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15201 ;;
15202 esac
15203 done
15204
15205 case $lt_echo in
15206 *'\$0 --fallback-echo"')
15207 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15208 ;;
15209 esac
15210
15211cfgfile="$ofile"
15212
15213 cat <<__EOF__ >> "$cfgfile"
15214# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15215
15216# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15217
15218# Shell to use when invoking shell scripts.
15219SHELL=$lt_SHELL
15220
15221# Whether or not to build shared libraries.
15222build_libtool_libs=$enable_shared
15223
15224# Whether or not to build static libraries.
15225build_old_libs=$enable_static
15226
15227# Whether or not to add -lc for building shared libraries.
15228build_libtool_need_lc=$archive_cmds_need_lc_F77
15229
15230# Whether or not to disallow shared libs when runtime libs are static
15231allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15232
15233# Whether or not to optimize for fast installation.
15234fast_install=$enable_fast_install
15235
15236# The host system.
15237host_alias=$host_alias
15238host=$host
15239host_os=$host_os
15240
15241# The build system.
15242build_alias=$build_alias
15243build=$build
15244build_os=$build_os
15245
15246# An echo program that does not interpret backslashes.
15247echo=$lt_echo
15248
15249# The archiver.
15250AR=$lt_AR
15251AR_FLAGS=$lt_AR_FLAGS
15252
15253# A C compiler.
15254LTCC=$lt_LTCC
15255
15256# LTCC compiler flags.
15257LTCFLAGS=$lt_LTCFLAGS
15258
15259# A language-specific compiler.
15260CC=$lt_compiler_F77
15261
15262# Is the compiler the GNU C compiler?
15263with_gcc=$GCC_F77
15264
15265# An ERE matcher.
15266EGREP=$lt_EGREP
15267
15268# The linker used to build libraries.
15269LD=$lt_LD_F77
15270
15271# Whether we need hard or soft links.
15272LN_S=$lt_LN_S
15273
15274# A BSD-compatible nm program.
15275NM=$lt_NM
15276
15277# A symbol stripping program
15278STRIP=$lt_STRIP
15279
15280# Used to examine libraries when file_magic_cmd begins "file"
15281MAGIC_CMD=$MAGIC_CMD
15282
15283# Used on cygwin: DLL creation program.
15284DLLTOOL="$DLLTOOL"
15285
15286# Used on cygwin: object dumper.
15287OBJDUMP="$OBJDUMP"
15288
15289# Used on cygwin: assembler.
15290AS="$AS"
15291
15292# The name of the directory that contains temporary libtool files.
15293objdir=$objdir
15294
15295# How to create reloadable object files.
15296reload_flag=$lt_reload_flag
15297reload_cmds=$lt_reload_cmds
15298
15299# How to pass a linker flag through the compiler.
15300wl=$lt_lt_prog_compiler_wl_F77
15301
15302# Object file suffix (normally "o").
15303objext="$ac_objext"
15304
15305# Old archive suffix (normally "a").
15306libext="$libext"
15307
15308# Shared library suffix (normally ".so").
15309shrext_cmds='$shrext_cmds'
15310
15311# Executable file suffix (normally "").
15312exeext="$exeext"
15313
15314# Additional compiler flags for building library objects.
15315pic_flag=$lt_lt_prog_compiler_pic_F77
15316pic_mode=$pic_mode
15317
15318# What is the maximum length of a command?
15319max_cmd_len=$lt_cv_sys_max_cmd_len
15320
15321# Does compiler simultaneously support -c and -o options?
15322compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15323
15324# Must we lock files when doing compilation?
15325need_locks=$lt_need_locks
15326
15327# Do we need the lib prefix for modules?
15328need_lib_prefix=$need_lib_prefix
15329
15330# Do we need a version for libraries?
15331need_version=$need_version
15332
15333# Whether dlopen is supported.
15334dlopen_support=$enable_dlopen
15335
15336# Whether dlopen of programs is supported.
15337dlopen_self=$enable_dlopen_self
15338
15339# Whether dlopen of statically linked programs is supported.
15340dlopen_self_static=$enable_dlopen_self_static
15341
15342# Compiler flag to prevent dynamic linking.
15343link_static_flag=$lt_lt_prog_compiler_static_F77
15344
15345# Compiler flag to turn off builtin functions.
15346no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15347
15348# Compiler flag to allow reflexive dlopens.
15349export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15350
15351# Compiler flag to generate shared objects directly from archives.
15352whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15353
15354# Compiler flag to generate thread-safe objects.
15355thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15356
15357# Library versioning type.
15358version_type=$version_type
15359
15360# Format of library name prefix.
15361libname_spec=$lt_libname_spec
15362
15363# List of archive names. First name is the real one, the rest are links.
15364# The last name is the one that the linker finds with -lNAME.
15365library_names_spec=$lt_library_names_spec
15366
15367# The coded name of the library, if different from the real name.
15368soname_spec=$lt_soname_spec
15369
15370# Commands used to build and install an old-style archive.
15371RANLIB=$lt_RANLIB
15372old_archive_cmds=$lt_old_archive_cmds_F77
15373old_postinstall_cmds=$lt_old_postinstall_cmds
15374old_postuninstall_cmds=$lt_old_postuninstall_cmds
15375
15376# Create an old-style archive from a shared archive.
15377old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15378
15379# Create a temporary old-style archive to link instead of a shared archive.
15380old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15381
15382# Commands used to build and install a shared archive.
15383archive_cmds=$lt_archive_cmds_F77
15384archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15385postinstall_cmds=$lt_postinstall_cmds
15386postuninstall_cmds=$lt_postuninstall_cmds
15387
15388# Commands used to build a loadable module (assumed same as above if empty)
15389module_cmds=$lt_module_cmds_F77
15390module_expsym_cmds=$lt_module_expsym_cmds_F77
15391
15392# Commands to strip libraries.
15393old_striplib=$lt_old_striplib
15394striplib=$lt_striplib
15395
15396# Dependencies to place before the objects being linked to create a
15397# shared library.
15398predep_objects=$lt_predep_objects_F77
15399
15400# Dependencies to place after the objects being linked to create a
15401# shared library.
15402postdep_objects=$lt_postdep_objects_F77
15403
15404# Dependencies to place before the objects being linked to create a
15405# shared library.
15406predeps=$lt_predeps_F77
15407
15408# Dependencies to place after the objects being linked to create a
15409# shared library.
15410postdeps=$lt_postdeps_F77
15411
15412# The library search path used internally by the compiler when linking
15413# a shared library.
15414compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15415
15416# Method to check whether dependent libraries are shared objects.
15417deplibs_check_method=$lt_deplibs_check_method
15418
15419# Command to use when deplibs_check_method == file_magic.
15420file_magic_cmd=$lt_file_magic_cmd
15421
15422# Flag that allows shared libraries with undefined symbols to be built.
15423allow_undefined_flag=$lt_allow_undefined_flag_F77
15424
15425# Flag that forces no undefined symbols.
15426no_undefined_flag=$lt_no_undefined_flag_F77
15427
15428# Commands used to finish a libtool library installation in a directory.
15429finish_cmds=$lt_finish_cmds
15430
15431# Same as above, but a single script fragment to be evaled but not shown.
15432finish_eval=$lt_finish_eval
15433
15434# Take the output of nm and produce a listing of raw symbols and C names.
15435global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15436
15437# Transform the output of nm in a proper C declaration
15438global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15439
15440# Transform the output of nm in a C name address pair
15441global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15442
15443# This is the shared library runtime path variable.
15444runpath_var=$runpath_var
15445
15446# This is the shared library path variable.
15447shlibpath_var=$shlibpath_var
15448
15449# Is shlibpath searched before the hard-coded library search path?
15450shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15451
15452# How to hardcode a shared library path into an executable.
15453hardcode_action=$hardcode_action_F77
15454
15455# Whether we should hardcode library paths into libraries.
15456hardcode_into_libs=$hardcode_into_libs
15457
15458# Flag to hardcode \$libdir into a binary during linking.
15459# This must work even if \$libdir does not exist.
15460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15461
15462# If ld is used when linking, flag to hardcode \$libdir into
15463# a binary during linking. This must work even if \$libdir does
15464# not exist.
15465hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15466
15467# Whether we need a single -rpath flag with a separated argument.
15468hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15469
15470# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15471# resulting binary.
15472hardcode_direct=$hardcode_direct_F77
15473
15474# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15475# resulting binary.
15476hardcode_minus_L=$hardcode_minus_L_F77
15477
15478# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15479# the resulting binary.
15480hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15481
15482# Set to yes if building a shared library automatically hardcodes DIR into the library
15483# and all subsequent libraries and executables linked against it.
15484hardcode_automatic=$hardcode_automatic_F77
15485
15486# Variables whose values should be saved in libtool wrapper scripts and
15487# restored at relink time.
15488variables_saved_for_relink="$variables_saved_for_relink"
15489
15490# Whether libtool must link a program against all its dependency libraries.
15491link_all_deplibs=$link_all_deplibs_F77
15492
15493# Compile-time system search path for libraries
15494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15495
15496# Run-time system search path for libraries
15497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15498
15499# Fix the shell variable \$srcfile for the compiler.
15500fix_srcfile_path="$fix_srcfile_path_F77"
15501
15502# Set to yes if exported symbols are required.
15503always_export_symbols=$always_export_symbols_F77
15504
15505# The commands to list exported symbols.
15506export_symbols_cmds=$lt_export_symbols_cmds_F77
15507
15508# The commands to extract the exported symbol list from a shared archive.
15509extract_expsyms_cmds=$lt_extract_expsyms_cmds
15510
15511# Symbols that should not be listed in the preloaded symbols.
15512exclude_expsyms=$lt_exclude_expsyms_F77
15513
15514# Symbols that must always be exported.
15515include_expsyms=$lt_include_expsyms_F77
15516
15517# ### END LIBTOOL TAG CONFIG: $tagname
15518
15519__EOF__
15520
15521
15522else
15523 # If there is no Makefile yet, we rely on a make rule to execute
15524 # `config.status --recheck' to rerun these tests and create the
15525 # libtool script then.
15526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15527 if test -f "$ltmain_in"; then
15528 test -f Makefile && make "$ltmain"
15529 fi
15530fi
15531
15532
15533ac_ext=c
15534ac_cpp='$CPP $CPPFLAGS'
15535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537ac_compiler_gnu=$ac_cv_c_compiler_gnu
15538
15539CC="$lt_save_CC"
15540
15541 else
15542 tagname=""
15543 fi
15544 ;;
15545
15546 GCJ)
15547 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15548
15549
15550
15551# Source file extension for Java test sources.
15552ac_ext=java
15553
15554# Object file extension for compiled Java test sources.
15555objext=o
15556objext_GCJ=$objext
15557
15558# Code to be used in simple compile tests
15559lt_simple_compile_test_code="class foo {}\n"
15560
15561# Code to be used in simple link tests
15562lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15563
15564# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15565
15566# If no C compiler was specified, use CC.
15567LTCC=${LTCC-"$CC"}
15568
15569# If no C compiler flags were specified, use CFLAGS.
15570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15571
15572# Allow CC to be a program name with arguments.
15573compiler=$CC
15574
15575
15576# save warnings/boilerplate of simple test code
15577ac_outfile=conftest.$ac_objext
15578printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15580_lt_compiler_boilerplate=`cat conftest.err`
15581$rm conftest*
15582
15583ac_outfile=conftest.$ac_objext
15584printf "$lt_simple_link_test_code" >conftest.$ac_ext
15585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15586_lt_linker_boilerplate=`cat conftest.err`
15587$rm conftest*
15588
15589
15590# Allow CC to be a program name with arguments.
15591lt_save_CC="$CC"
15592CC=${GCJ-"gcj"}
15593compiler=$CC
15594compiler_GCJ=$CC
15595for cc_temp in $compiler""; do
15596 case $cc_temp in
15597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15599 \-*) ;;
15600 *) break;;
15601 esac
15602done
15603cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15604
15605
15606# GCJ did not exist at the time GCC didn't implicitly link libc in.
15607archive_cmds_need_lc_GCJ=no
15608
15609old_archive_cmds_GCJ=$old_archive_cmds
15610
15611
15612lt_prog_compiler_no_builtin_flag_GCJ=
15613
15614if test "$GCC" = yes; then
15615 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15616
15617
15618echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15619echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15620if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15622else
15623 lt_cv_prog_compiler_rtti_exceptions=no
15624 ac_outfile=conftest.$ac_objext
15625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15626 lt_compiler_flag="-fno-rtti -fno-exceptions"
15627 # Insert the option either (1) after the last *FLAGS variable, or
15628 # (2) before a word containing "conftest.", or (3) at the end.
15629 # Note that $ac_compile itself does not contain backslashes and begins
15630 # with a dollar sign (not a hyphen), so the echo should work correctly.
15631 # The option is referenced via a variable to avoid confusing sed.
15632 lt_compile=`echo "$ac_compile" | $SED \
15633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15635 -e 's:$: $lt_compiler_flag:'`
15636 (eval echo "\"\$as_me:15636: $lt_compile\"" >&5)
15637 (eval "$lt_compile" 2>conftest.err)
15638 ac_status=$?
15639 cat conftest.err >&5
15640 echo "$as_me:15640: \$? = $ac_status" >&5
15641 if (exit $ac_status) && test -s "$ac_outfile"; then
15642 # The compiler can only warn and ignore the option if not recognized
15643 # So say no if there are warnings other than the usual output.
15644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15647 lt_cv_prog_compiler_rtti_exceptions=yes
15648 fi
15649 fi
15650 $rm conftest*
15651
15652fi
15653echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15654echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15655
15656if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15657 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15658else
15659 :
15660fi
15661
15662fi
15663
15664lt_prog_compiler_wl_GCJ=
15665lt_prog_compiler_pic_GCJ=
15666lt_prog_compiler_static_GCJ=
15667
15668echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15669echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15670
15671 if test "$GCC" = yes; then
15672 lt_prog_compiler_wl_GCJ='-Wl,'
15673 lt_prog_compiler_static_GCJ='-static'
15674
15675 case $host_os in
15676 aix*)
15677 # All AIX code is PIC.
15678 if test "$host_cpu" = ia64; then
15679 # AIX 5 now supports IA64 processor
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 fi
15682 ;;
15683
15684 amigaos*)
15685 # FIXME: we need at least 68020 code to build shared libraries, but
15686 # adding the `-m68020' flag to GCC prevents building anything better,
15687 # like `-m68040'.
15688 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15689 ;;
15690
15691 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15692 # PIC is the default for these OSes.
15693 ;;
15694
15695 mingw* | pw32* | os2*)
15696 # This hack is so that the source file can tell whether it is being
15697 # built for inclusion in a dll (and should export symbols for example).
15698 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15699 ;;
15700
15701 darwin* | rhapsody*)
15702 # PIC is the default on this platform
15703 # Common symbols not allowed in MH_DYLIB files
15704 lt_prog_compiler_pic_GCJ='-fno-common'
15705 ;;
15706
15707 interix3*)
15708 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15709 # Instead, we relocate shared libraries at runtime.
15710 ;;
15711
15712 msdosdjgpp*)
15713 # Just because we use GCC doesn't mean we suddenly get shared libraries
15714 # on systems that don't support them.
15715 lt_prog_compiler_can_build_shared_GCJ=no
15716 enable_shared=no
15717 ;;
15718
15719 sysv4*MP*)
15720 if test -d /usr/nec; then
15721 lt_prog_compiler_pic_GCJ=-Kconform_pic
15722 fi
15723 ;;
15724
15725 hpux*)
15726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15727 # not for PA HP-UX.
15728 case $host_cpu in
15729 hppa*64*|ia64*)
15730 # +Z the default
15731 ;;
15732 *)
15733 lt_prog_compiler_pic_GCJ='-fPIC'
15734 ;;
15735 esac
15736 ;;
15737
15738 *)
15739 lt_prog_compiler_pic_GCJ='-fPIC'
15740 ;;
15741 esac
15742 else
15743 # PORTME Check for flag to pass linker flags through the system compiler.
15744 case $host_os in
15745 aix*)
15746 lt_prog_compiler_wl_GCJ='-Wl,'
15747 if test "$host_cpu" = ia64; then
15748 # AIX 5 now supports IA64 processor
15749 lt_prog_compiler_static_GCJ='-Bstatic'
15750 else
15751 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15752 fi
15753 ;;
15754 darwin*)
15755 # PIC is the default on this platform
15756 # Common symbols not allowed in MH_DYLIB files
15757 case $cc_basename in
15758 xlc*)
15759 lt_prog_compiler_pic_GCJ='-qnocommon'
15760 lt_prog_compiler_wl_GCJ='-Wl,'
15761 ;;
15762 esac
15763 ;;
15764
15765 mingw* | pw32* | os2*)
15766 # This hack is so that the source file can tell whether it is being
15767 # built for inclusion in a dll (and should export symbols for example).
15768 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15769 ;;
15770
15771 hpux9* | hpux10* | hpux11*)
15772 lt_prog_compiler_wl_GCJ='-Wl,'
15773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15774 # not for PA HP-UX.
15775 case $host_cpu in
15776 hppa*64*|ia64*)
15777 # +Z the default
15778 ;;
15779 *)
15780 lt_prog_compiler_pic_GCJ='+Z'
15781 ;;
15782 esac
15783 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15784 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15785 ;;
15786
15787 irix5* | irix6* | nonstopux*)
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 # PIC (with -KPIC) is the default.
15790 lt_prog_compiler_static_GCJ='-non_shared'
15791 ;;
15792
15793 newsos6)
15794 lt_prog_compiler_pic_GCJ='-KPIC'
15795 lt_prog_compiler_static_GCJ='-Bstatic'
15796 ;;
15797
15798 linux*)
15799 case $cc_basename in
15800 icc* | ecc*)
15801 lt_prog_compiler_wl_GCJ='-Wl,'
15802 lt_prog_compiler_pic_GCJ='-KPIC'
15803 lt_prog_compiler_static_GCJ='-static'
15804 ;;
15805 pgcc* | pgf77* | pgf90* | pgf95*)
15806 # Portland Group compilers (*not* the Pentium gcc compiler,
15807 # which looks to be a dead project)
15808 lt_prog_compiler_wl_GCJ='-Wl,'
15809 lt_prog_compiler_pic_GCJ='-fpic'
15810 lt_prog_compiler_static_GCJ='-Bstatic'
15811 ;;
15812 ccc*)
15813 lt_prog_compiler_wl_GCJ='-Wl,'
15814 # All Alpha code is PIC.
15815 lt_prog_compiler_static_GCJ='-non_shared'
15816 ;;
15817 esac
15818 ;;
15819
15820 osf3* | osf4* | osf5*)
15821 lt_prog_compiler_wl_GCJ='-Wl,'
15822 # All OSF/1 code is PIC.
15823 lt_prog_compiler_static_GCJ='-non_shared'
15824 ;;
15825
15826 solaris*)
15827 lt_prog_compiler_pic_GCJ='-KPIC'
15828 lt_prog_compiler_static_GCJ='-Bstatic'
15829 case $cc_basename in
15830 f77* | f90* | f95*)
15831 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15832 *)
15833 lt_prog_compiler_wl_GCJ='-Wl,';;
15834 esac
15835 ;;
15836
15837 sunos4*)
15838 lt_prog_compiler_wl_GCJ='-Qoption ld '
15839 lt_prog_compiler_pic_GCJ='-PIC'
15840 lt_prog_compiler_static_GCJ='-Bstatic'
15841 ;;
15842
15843 sysv4 | sysv4.2uw2* | sysv4.3*)
15844 lt_prog_compiler_wl_GCJ='-Wl,'
15845 lt_prog_compiler_pic_GCJ='-KPIC'
15846 lt_prog_compiler_static_GCJ='-Bstatic'
15847 ;;
15848
15849 sysv4*MP*)
15850 if test -d /usr/nec ;then
15851 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15852 lt_prog_compiler_static_GCJ='-Bstatic'
15853 fi
15854 ;;
15855
15856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15857 lt_prog_compiler_wl_GCJ='-Wl,'
15858 lt_prog_compiler_pic_GCJ='-KPIC'
15859 lt_prog_compiler_static_GCJ='-Bstatic'
15860 ;;
15861
15862 unicos*)
15863 lt_prog_compiler_wl_GCJ='-Wl,'
15864 lt_prog_compiler_can_build_shared_GCJ=no
15865 ;;
15866
15867 uts4*)
15868 lt_prog_compiler_pic_GCJ='-pic'
15869 lt_prog_compiler_static_GCJ='-Bstatic'
15870 ;;
15871
15872 *)
15873 lt_prog_compiler_can_build_shared_GCJ=no
15874 ;;
15875 esac
15876 fi
15877
15878echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15879echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15880
15881#
15882# Check to make sure the PIC flag actually works.
15883#
15884if test -n "$lt_prog_compiler_pic_GCJ"; then
15885
15886echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15887echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15888if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891 lt_prog_compiler_pic_works_GCJ=no
15892 ac_outfile=conftest.$ac_objext
15893 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15894 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 # The option is referenced via a variable to avoid confusing sed.
15900 lt_compile=`echo "$ac_compile" | $SED \
15901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15903 -e 's:$: $lt_compiler_flag:'`
15904 (eval echo "\"\$as_me:15904: $lt_compile\"" >&5)
15905 (eval "$lt_compile" 2>conftest.err)
15906 ac_status=$?
15907 cat conftest.err >&5
15908 echo "$as_me:15908: \$? = $ac_status" >&5
15909 if (exit $ac_status) && test -s "$ac_outfile"; then
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings other than the usual output.
15912 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15915 lt_prog_compiler_pic_works_GCJ=yes
15916 fi
15917 fi
15918 $rm conftest*
15919
15920fi
15921echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15922echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15923
15924if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15925 case $lt_prog_compiler_pic_GCJ in
15926 "" | " "*) ;;
15927 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15928 esac
15929else
15930 lt_prog_compiler_pic_GCJ=
15931 lt_prog_compiler_can_build_shared_GCJ=no
15932fi
15933
15934fi
15935case $host_os in
15936 # For platforms which do not support PIC, -DPIC is meaningless:
15937 *djgpp*)
15938 lt_prog_compiler_pic_GCJ=
15939 ;;
15940 *)
15941 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15942 ;;
15943esac
15944
15945#
15946# Check to make sure the static flag actually works.
15947#
15948wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15949echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15950echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15951if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953else
15954 lt_prog_compiler_static_works_GCJ=no
15955 save_LDFLAGS="$LDFLAGS"
15956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15957 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15959 # The linker can only warn and ignore the option if not recognized
15960 # So say no if there are warnings
15961 if test -s conftest.err; then
15962 # Append any errors to the config.log.
15963 cat conftest.err 1>&5
15964 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15966 if diff conftest.exp conftest.er2 >/dev/null; then
15967 lt_prog_compiler_static_works_GCJ=yes
15968 fi
15969 else
15970 lt_prog_compiler_static_works_GCJ=yes
15971 fi
15972 fi
15973 $rm conftest*
15974 LDFLAGS="$save_LDFLAGS"
15975
15976fi
15977echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15978echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15979
15980if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15981 :
15982else
15983 lt_prog_compiler_static_GCJ=
15984fi
15985
15986
15987echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15988echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15989if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991else
15992 lt_cv_prog_compiler_c_o_GCJ=no
15993 $rm -r conftest 2>/dev/null
15994 mkdir conftest
15995 cd conftest
15996 mkdir out
15997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15998
15999 lt_compiler_flag="-o out/conftest2.$ac_objext"
16000 # Insert the option either (1) after the last *FLAGS variable, or
16001 # (2) before a word containing "conftest.", or (3) at the end.
16002 # Note that $ac_compile itself does not contain backslashes and begins
16003 # with a dollar sign (not a hyphen), so the echo should work correctly.
16004 lt_compile=`echo "$ac_compile" | $SED \
16005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16007 -e 's:$: $lt_compiler_flag:'`
16008 (eval echo "\"\$as_me:16008: $lt_compile\"" >&5)
16009 (eval "$lt_compile" 2>out/conftest.err)
16010 ac_status=$?
16011 cat out/conftest.err >&5
16012 echo "$as_me:16012: \$? = $ac_status" >&5
16013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16014 then
16015 # The compiler can only warn and ignore the option if not recognized
16016 # So say no if there are warnings
16017 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16020 lt_cv_prog_compiler_c_o_GCJ=yes
16021 fi
16022 fi
16023 chmod u+w . 2>&5
16024 $rm conftest*
16025 # SGI C++ compiler will create directory out/ii_files/ for
16026 # template instantiation
16027 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16028 $rm out/* && rmdir out
16029 cd ..
16030 rmdir conftest
16031 $rm conftest*
16032
16033fi
16034echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16035echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16036
16037
16038hard_links="nottested"
16039if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16040 # do not overwrite the value of need_locks provided by the user
16041 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16042echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16043 hard_links=yes
16044 $rm conftest*
16045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16046 touch conftest.a
16047 ln conftest.a conftest.b 2>&5 || hard_links=no
16048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16049 echo "$as_me:$LINENO: result: $hard_links" >&5
16050echo "${ECHO_T}$hard_links" >&6
16051 if test "$hard_links" = no; then
16052 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16053echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16054 need_locks=warn
16055 fi
16056else
16057 need_locks=no
16058fi
16059
16060echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16061echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16062
16063 runpath_var=
16064 allow_undefined_flag_GCJ=
16065 enable_shared_with_static_runtimes_GCJ=no
16066 archive_cmds_GCJ=
16067 archive_expsym_cmds_GCJ=
16068 old_archive_From_new_cmds_GCJ=
16069 old_archive_from_expsyms_cmds_GCJ=
16070 export_dynamic_flag_spec_GCJ=
16071 whole_archive_flag_spec_GCJ=
16072 thread_safe_flag_spec_GCJ=
16073 hardcode_libdir_flag_spec_GCJ=
16074 hardcode_libdir_flag_spec_ld_GCJ=
16075 hardcode_libdir_separator_GCJ=
16076 hardcode_direct_GCJ=no
16077 hardcode_minus_L_GCJ=no
16078 hardcode_shlibpath_var_GCJ=unsupported
16079 link_all_deplibs_GCJ=unknown
16080 hardcode_automatic_GCJ=no
16081 module_cmds_GCJ=
16082 module_expsym_cmds_GCJ=
16083 always_export_symbols_GCJ=no
16084 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16085 # include_expsyms should be a list of space-separated symbols to be *always*
16086 # included in the symbol list
16087 include_expsyms_GCJ=
16088 # exclude_expsyms can be an extended regexp of symbols to exclude
16089 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16090 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16091 # as well as any symbol that contains `d'.
16092 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16093 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16094 # platforms (ab)use it in PIC code, but their linkers get confused if
16095 # the symbol is explicitly referenced. Since portable code cannot
16096 # rely on this symbol name, it's probably fine to never include it in
16097 # preloaded symbol tables.
16098 extract_expsyms_cmds=
16099 # Just being paranoid about ensuring that cc_basename is set.
16100 for cc_temp in $compiler""; do
16101 case $cc_temp in
16102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16104 \-*) ;;
16105 *) break;;
16106 esac
16107done
16108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16109
16110 case $host_os in
16111 cygwin* | mingw* | pw32*)
16112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16113 # When not using gcc, we currently assume that we are using
16114 # Microsoft Visual C++.
16115 if test "$GCC" != yes; then
16116 with_gnu_ld=no
16117 fi
16118 ;;
16119 interix*)
16120 # we just hope/assume this is gcc and not c89 (= MSVC++)
16121 with_gnu_ld=yes
16122 ;;
16123 openbsd*)
16124 with_gnu_ld=no
16125 ;;
16126 esac
16127
16128 ld_shlibs_GCJ=yes
16129 if test "$with_gnu_ld" = yes; then
16130 # If archive_cmds runs LD, not CC, wlarc should be empty
16131 wlarc='${wl}'
16132
16133 # Set some defaults for GNU ld with shared library support. These
16134 # are reset later if shared libraries are not supported. Putting them
16135 # here allows them to be overridden if necessary.
16136 runpath_var=LD_RUN_PATH
16137 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16138 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16139 # ancient GNU ld didn't support --whole-archive et. al.
16140 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16141 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16142 else
16143 whole_archive_flag_spec_GCJ=
16144 fi
16145 supports_anon_versioning=no
16146 case `$LD -v 2>/dev/null` in
16147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16150 *\ 2.11.*) ;; # other 2.11 versions
16151 *) supports_anon_versioning=yes ;;
16152 esac
16153
16154 # See if GNU ld supports shared libraries.
16155 case $host_os in
16156 aix3* | aix4* | aix5*)
16157 # On AIX/PPC, the GNU linker is very broken
16158 if test "$host_cpu" != ia64; then
16159 ld_shlibs_GCJ=no
16160 cat <<EOF 1>&2
16161
16162*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16163*** to be unable to reliably create shared libraries on AIX.
16164*** Therefore, libtool is disabling shared libraries support. If you
16165*** really care for shared libraries, you may want to modify your PATH
16166*** so that a non-GNU linker is found, and then restart.
16167
16168EOF
16169 fi
16170 ;;
16171
16172 amigaos*)
16173 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)'
16174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16175 hardcode_minus_L_GCJ=yes
16176
16177 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16178 # that the semantics of dynamic libraries on AmigaOS, at least up
16179 # to version 4, is to share data among multiple programs linked
16180 # with the same dynamic library. Since this doesn't match the
16181 # behavior of shared libraries on other platforms, we can't use
16182 # them.
16183 ld_shlibs_GCJ=no
16184 ;;
16185
16186 beos*)
16187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16188 allow_undefined_flag_GCJ=unsupported
16189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16190 # support --undefined. This deserves some investigation. FIXME
16191 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192 else
16193 ld_shlibs_GCJ=no
16194 fi
16195 ;;
16196
16197 cygwin* | mingw* | pw32*)
16198 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16199 # as there is no search path for DLLs.
16200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16201 allow_undefined_flag_GCJ=unsupported
16202 always_export_symbols_GCJ=no
16203 enable_shared_with_static_runtimes_GCJ=yes
16204 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16205
16206 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16207 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16208 # If the export-symbols file already is a .def file (1st line
16209 # is EXPORTS), use it as is; otherwise, prepend...
16210 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16211 cp $export_symbols $output_objdir/$soname.def;
16212 else
16213 echo EXPORTS > $output_objdir/$soname.def;
16214 cat $export_symbols >> $output_objdir/$soname.def;
16215 fi~
16216 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16217 else
16218 ld_shlibs_GCJ=no
16219 fi
16220 ;;
16221
16222 interix3*)
16223 hardcode_direct_GCJ=no
16224 hardcode_shlibpath_var_GCJ=no
16225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16226 export_dynamic_flag_spec_GCJ='${wl}-E'
16227 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16228 # Instead, shared libraries are loaded at an image base (0x10000000 by
16229 # default) and relocated if they conflict, which is a slow very memory
16230 # consuming and fragmenting process. To avoid this, we pick a random,
16231 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16232 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16233 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'
16234 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'
16235 ;;
16236
16237 linux*)
16238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16239 tmp_addflag=
16240 case $cc_basename,$host_cpu in
16241 pgcc*) # Portland Group C compiler
16242 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'
16243 tmp_addflag=' $pic_flag'
16244 ;;
16245 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16246 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'
16247 tmp_addflag=' $pic_flag -Mnomain' ;;
16248 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16249 tmp_addflag=' -i_dynamic' ;;
16250 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16251 tmp_addflag=' -i_dynamic -nofor_main' ;;
16252 ifc* | ifort*) # Intel Fortran compiler
16253 tmp_addflag=' -nofor_main' ;;
16254 esac
16255 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256
16257 if test $supports_anon_versioning = yes; then
16258 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16260 $echo "local: *; };" >> $output_objdir/$libname.ver~
16261 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16262 fi
16263 else
16264 ld_shlibs_GCJ=no
16265 fi
16266 ;;
16267
16268 netbsd*)
16269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16270 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16271 wlarc=
16272 else
16273 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16275 fi
16276 ;;
16277
16278 solaris*)
16279 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16280 ld_shlibs_GCJ=no
16281 cat <<EOF 1>&2
16282
16283*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16284*** create shared libraries on Solaris systems. Therefore, libtool
16285*** is disabling shared libraries support. We urge you to upgrade GNU
16286*** binutils to release 2.9.1 or newer. Another option is to modify
16287*** your PATH or compiler configuration so that the native linker is
16288*** used, and then restart.
16289
16290EOF
16291 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16292 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16293 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16294 else
16295 ld_shlibs_GCJ=no
16296 fi
16297 ;;
16298
16299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16300 case `$LD -v 2>&1` in
16301 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16302 ld_shlibs_GCJ=no
16303 cat <<_LT_EOF 1>&2
16304
16305*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16306*** reliably create shared libraries on SCO systems. Therefore, libtool
16307*** is disabling shared libraries support. We urge you to upgrade GNU
16308*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16309*** your PATH or compiler configuration so that the native linker is
16310*** used, and then restart.
16311
16312_LT_EOF
16313 ;;
16314 *)
16315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16316 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16317 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16318 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16319 else
16320 ld_shlibs_GCJ=no
16321 fi
16322 ;;
16323 esac
16324 ;;
16325
16326 sunos4*)
16327 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16328 wlarc=
16329 hardcode_direct_GCJ=yes
16330 hardcode_shlibpath_var_GCJ=no
16331 ;;
16332
16333 *)
16334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16337 else
16338 ld_shlibs_GCJ=no
16339 fi
16340 ;;
16341 esac
16342
16343 if test "$ld_shlibs_GCJ" = no; then
16344 runpath_var=
16345 hardcode_libdir_flag_spec_GCJ=
16346 export_dynamic_flag_spec_GCJ=
16347 whole_archive_flag_spec_GCJ=
16348 fi
16349 else
16350 # PORTME fill in a description of your system's linker (not GNU ld)
16351 case $host_os in
16352 aix3*)
16353 allow_undefined_flag_GCJ=unsupported
16354 always_export_symbols_GCJ=yes
16355 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'
16356 # Note: this linker hardcodes the directories in LIBPATH if there
16357 # are no directories specified by -L.
16358 hardcode_minus_L_GCJ=yes
16359 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16360 # Neither direct hardcoding nor static linking is supported with a
16361 # broken collect2.
16362 hardcode_direct_GCJ=unsupported
16363 fi
16364 ;;
16365
16366 aix4* | aix5*)
16367 if test "$host_cpu" = ia64; then
16368 # On IA64, the linker does run time linking by default, so we don't
16369 # have to do anything special.
16370 aix_use_runtimelinking=no
16371 exp_sym_flag='-Bexport'
16372 no_entry_flag=""
16373 else
16374 # If we're using GNU nm, then we don't want the "-C" option.
16375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16376 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16377 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'
16378 else
16379 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'
16380 fi
16381 aix_use_runtimelinking=no
16382
16383 # Test if we are trying to use run time linking or normal
16384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16385 # need to do runtime linking.
16386 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16387 for ld_flag in $LDFLAGS; do
16388 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16389 aix_use_runtimelinking=yes
16390 break
16391 fi
16392 done
16393 ;;
16394 esac
16395
16396 exp_sym_flag='-bexport'
16397 no_entry_flag='-bnoentry'
16398 fi
16399
16400 # When large executables or shared objects are built, AIX ld can
16401 # have problems creating the table of contents. If linking a library
16402 # or program results in "error TOC overflow" add -mminimal-toc to
16403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16405
16406 archive_cmds_GCJ=''
16407 hardcode_direct_GCJ=yes
16408 hardcode_libdir_separator_GCJ=':'
16409 link_all_deplibs_GCJ=yes
16410
16411 if test "$GCC" = yes; then
16412 case $host_os in aix4.[012]|aix4.[012].*)
16413 # We only want to do this on AIX 4.2 and lower, the check
16414 # below for broken collect2 doesn't work under 4.3+
16415 collect2name=`${CC} -print-prog-name=collect2`
16416 if test -f "$collect2name" && \
16417 strings "$collect2name" | grep resolve_lib_name >/dev/null
16418 then
16419 # We have reworked collect2
16420 hardcode_direct_GCJ=yes
16421 else
16422 # We have old collect2
16423 hardcode_direct_GCJ=unsupported
16424 # It fails to find uninstalled libraries when the uninstalled
16425 # path is not listed in the libpath. Setting hardcode_minus_L
16426 # to unsupported forces relinking
16427 hardcode_minus_L_GCJ=yes
16428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16429 hardcode_libdir_separator_GCJ=
16430 fi
16431 ;;
16432 esac
16433 shared_flag='-shared'
16434 if test "$aix_use_runtimelinking" = yes; then
16435 shared_flag="$shared_flag "'${wl}-G'
16436 fi
16437 else
16438 # not using gcc
16439 if test "$host_cpu" = ia64; then
16440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16441 # chokes on -Wl,-G. The following line is correct:
16442 shared_flag='-G'
16443 else
16444 if test "$aix_use_runtimelinking" = yes; then
16445 shared_flag='${wl}-G'
16446 else
16447 shared_flag='${wl}-bM:SRE'
16448 fi
16449 fi
16450 fi
16451
16452 # It seems that -bexpall does not export symbols beginning with
16453 # underscore (_), so it is better to generate a list of symbols to export.
16454 always_export_symbols_GCJ=yes
16455 if test "$aix_use_runtimelinking" = yes; then
16456 # Warning - without using the other runtime loading flags (-brtl),
16457 # -berok will link without error, but may produce a broken library.
16458 allow_undefined_flag_GCJ='-berok'
16459 # Determine the default libpath from the value encoded in an empty executable.
16460 cat >conftest.$ac_ext <<_ACEOF
16461/* confdefs.h. */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h. */
16466
16467int
16468main ()
16469{
16470
16471 ;
16472 return 0;
16473}
16474_ACEOF
16475rm -f conftest.$ac_objext conftest$ac_exeext
16476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477 (eval $ac_link) 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag"
16485 || test ! -s conftest.err'
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest$ac_exeext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497
16498aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16499}'`
16500# Check for a 64-bit object if we didn't find anything.
16501if 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; }
16502}'`; fi
16503else
16504 echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
16507fi
16508rm -f conftest.err conftest.$ac_objext \
16509 conftest$ac_exeext conftest.$ac_ext
16510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16511
16512 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16513 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"
16514 else
16515 if test "$host_cpu" = ia64; then
16516 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16517 allow_undefined_flag_GCJ="-z nodefs"
16518 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"
16519 else
16520 # Determine the default libpath from the value encoded in an empty executable.
16521 cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h. */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h. */
16527
16528int
16529main ()
16530{
16531
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext conftest$ac_exeext
16537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16538 (eval $ac_link) 2>conftest.er1
16539 ac_status=$?
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
16545 { ac_try='test -z "$ac_c_werror_flag"
16546 || test ! -s conftest.err'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558
16559aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16560}'`
16561# Check for a 64-bit object if we didn't find anything.
16562if 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; }
16563}'`; fi
16564else
16565 echo "$as_me: failed program was:" >&5
16566sed 's/^/| /' conftest.$ac_ext >&5
16567
16568fi
16569rm -f conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16572
16573 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16574 # Warning - without using the other run time loading flags,
16575 # -berok will link without error, but may produce a broken library.
16576 no_undefined_flag_GCJ=' ${wl}-bernotok'
16577 allow_undefined_flag_GCJ=' ${wl}-berok'
16578 # Exported symbols can be pulled into shared objects from archives
16579 whole_archive_flag_spec_GCJ='$convenience'
16580 archive_cmds_need_lc_GCJ=yes
16581 # This is similar to how AIX traditionally builds its shared libraries.
16582 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'
16583 fi
16584 fi
16585 ;;
16586
16587 amigaos*)
16588 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)'
16589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16590 hardcode_minus_L_GCJ=yes
16591 # see comment about different semantics on the GNU ld section
16592 ld_shlibs_GCJ=no
16593 ;;
16594
16595 bsdi[45]*)
16596 export_dynamic_flag_spec_GCJ=-rdynamic
16597 ;;
16598
16599 cygwin* | mingw* | pw32*)
16600 # When not using gcc, we currently assume that we are using
16601 # Microsoft Visual C++.
16602 # hardcode_libdir_flag_spec is actually meaningless, as there is
16603 # no search path for DLLs.
16604 hardcode_libdir_flag_spec_GCJ=' '
16605 allow_undefined_flag_GCJ=unsupported
16606 # Tell ltmain to make .lib files, not .a files.
16607 libext=lib
16608 # Tell ltmain to make .dll files, not .so files.
16609 shrext_cmds=".dll"
16610 # FIXME: Setting linknames here is a bad hack.
16611 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16612 # The linker will automatically build a .lib file if we build a DLL.
16613 old_archive_From_new_cmds_GCJ='true'
16614 # FIXME: Should let the user specify the lib program.
16615 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16616 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16617 enable_shared_with_static_runtimes_GCJ=yes
16618 ;;
16619
16620 darwin* | rhapsody*)
16621 case $host_os in
16622 rhapsody* | darwin1.[012])
16623 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16624 ;;
16625 *) # Darwin 1.3 on
16626 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16627 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16628 else
16629 case ${MACOSX_DEPLOYMENT_TARGET} in
16630 10.[012])
16631 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16632 ;;
16633 10.*)
16634 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16635 ;;
16636 esac
16637 fi
16638 ;;
16639 esac
16640 archive_cmds_need_lc_GCJ=no
16641 hardcode_direct_GCJ=no
16642 hardcode_automatic_GCJ=yes
16643 hardcode_shlibpath_var_GCJ=unsupported
16644 whole_archive_flag_spec_GCJ=''
16645 link_all_deplibs_GCJ=yes
16646 if test "$GCC" = yes ; then
16647 output_verbose_link_cmd='echo'
16648 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16649 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16650 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16651 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}'
16652 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}'
16653 else
16654 case $cc_basename in
16655 xlc*)
16656 output_verbose_link_cmd='echo'
16657 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16658 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16659 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16660 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}'
16661 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}'
16662 ;;
16663 *)
16664 ld_shlibs_GCJ=no
16665 ;;
16666 esac
16667 fi
16668 ;;
16669
16670 dgux*)
16671 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16672 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16673 hardcode_shlibpath_var_GCJ=no
16674 ;;
16675
16676 freebsd1*)
16677 ld_shlibs_GCJ=no
16678 ;;
16679
16680 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16681 # support. Future versions do this automatically, but an explicit c++rt0.o
16682 # does not break anything, and helps significantly (at the cost of a little
16683 # extra space).
16684 freebsd2.2*)
16685 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16686 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16687 hardcode_direct_GCJ=yes
16688 hardcode_shlibpath_var_GCJ=no
16689 ;;
16690
16691 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16692 freebsd2*)
16693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16694 hardcode_direct_GCJ=yes
16695 hardcode_minus_L_GCJ=yes
16696 hardcode_shlibpath_var_GCJ=no
16697 ;;
16698
16699 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16700 freebsd* | kfreebsd*-gnu | dragonfly*)
16701 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16702 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16703 hardcode_direct_GCJ=yes
16704 hardcode_shlibpath_var_GCJ=no
16705 ;;
16706
16707 hpux9*)
16708 if test "$GCC" = yes; then
16709 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'
16710 else
16711 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'
16712 fi
16713 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16714 hardcode_libdir_separator_GCJ=:
16715 hardcode_direct_GCJ=yes
16716
16717 # hardcode_minus_L: Not really in the search PATH,
16718 # but as the default location of the library.
16719 hardcode_minus_L_GCJ=yes
16720 export_dynamic_flag_spec_GCJ='${wl}-E'
16721 ;;
16722
16723 hpux10*)
16724 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16725 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16726 else
16727 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16728 fi
16729 if test "$with_gnu_ld" = no; then
16730 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16731 hardcode_libdir_separator_GCJ=:
16732
16733 hardcode_direct_GCJ=yes
16734 export_dynamic_flag_spec_GCJ='${wl}-E'
16735
16736 # hardcode_minus_L: Not really in the search PATH,
16737 # but as the default location of the library.
16738 hardcode_minus_L_GCJ=yes
16739 fi
16740 ;;
16741
16742 hpux11*)
16743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16744 case $host_cpu in
16745 hppa*64*)
16746 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 ;;
16748 ia64*)
16749 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16750 ;;
16751 *)
16752 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16753 ;;
16754 esac
16755 else
16756 case $host_cpu in
16757 hppa*64*)
16758 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759 ;;
16760 ia64*)
16761 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16762 ;;
16763 *)
16764 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16765 ;;
16766 esac
16767 fi
16768 if test "$with_gnu_ld" = no; then
16769 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16770 hardcode_libdir_separator_GCJ=:
16771
16772 case $host_cpu in
16773 hppa*64*|ia64*)
16774 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16775 hardcode_direct_GCJ=no
16776 hardcode_shlibpath_var_GCJ=no
16777 ;;
16778 *)
16779 hardcode_direct_GCJ=yes
16780 export_dynamic_flag_spec_GCJ='${wl}-E'
16781
16782 # hardcode_minus_L: Not really in the search PATH,
16783 # but as the default location of the library.
16784 hardcode_minus_L_GCJ=yes
16785 ;;
16786 esac
16787 fi
16788 ;;
16789
16790 irix5* | irix6* | nonstopux*)
16791 if test "$GCC" = yes; then
16792 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'
16793 else
16794 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'
16795 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16796 fi
16797 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16798 hardcode_libdir_separator_GCJ=:
16799 link_all_deplibs_GCJ=yes
16800 ;;
16801
16802 netbsd*)
16803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16804 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16805 else
16806 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16807 fi
16808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16809 hardcode_direct_GCJ=yes
16810 hardcode_shlibpath_var_GCJ=no
16811 ;;
16812
16813 newsos6)
16814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_direct_GCJ=yes
16816 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16817 hardcode_libdir_separator_GCJ=:
16818 hardcode_shlibpath_var_GCJ=no
16819 ;;
16820
16821 openbsd*)
16822 hardcode_direct_GCJ=yes
16823 hardcode_shlibpath_var_GCJ=no
16824 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16825 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16826 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16827 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16828 export_dynamic_flag_spec_GCJ='${wl}-E'
16829 else
16830 case $host_os in
16831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16832 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16833 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16834 ;;
16835 *)
16836 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16837 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16838 ;;
16839 esac
16840 fi
16841 ;;
16842
16843 os2*)
16844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16845 hardcode_minus_L_GCJ=yes
16846 allow_undefined_flag_GCJ=unsupported
16847 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'
16848 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16849 ;;
16850
16851 osf3*)
16852 if test "$GCC" = yes; then
16853 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16854 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'
16855 else
16856 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16857 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'
16858 fi
16859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator_GCJ=:
16861 ;;
16862
16863 osf4* | osf5*) # as osf3* with the addition of -msym flag
16864 if test "$GCC" = yes; then
16865 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16866 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'
16867 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16868 else
16869 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16870 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'
16871 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~
16872 $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'
16873
16874 # Both c and cxx compiler support -rpath directly
16875 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16876 fi
16877 hardcode_libdir_separator_GCJ=:
16878 ;;
16879
16880 solaris*)
16881 no_undefined_flag_GCJ=' -z text'
16882 if test "$GCC" = yes; then
16883 wlarc='${wl}'
16884 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16885 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16886 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16887 else
16888 wlarc=''
16889 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16890 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16892 fi
16893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16894 hardcode_shlibpath_var_GCJ=no
16895 case $host_os in
16896 solaris2.[0-5] | solaris2.[0-5].*) ;;
16897 *)
16898 # The compiler driver will combine linker options so we
16899 # cannot just pass the convience library names through
16900 # without $wl, iff we do not link with $LD.
16901 # Luckily, gcc supports the same syntax we need for Sun Studio.
16902 # Supported since Solaris 2.6 (maybe 2.5.1?)
16903 case $wlarc in
16904 '')
16905 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16906 *)
16907 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' ;;
16908 esac ;;
16909 esac
16910 link_all_deplibs_GCJ=yes
16911 ;;
16912
16913 sunos4*)
16914 if test "x$host_vendor" = xsequent; then
16915 # Use $CC to link under sequent, because it throws in some extra .o
16916 # files that make .init and .fini sections work.
16917 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16918 else
16919 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16920 fi
16921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16922 hardcode_direct_GCJ=yes
16923 hardcode_minus_L_GCJ=yes
16924 hardcode_shlibpath_var_GCJ=no
16925 ;;
16926
16927 sysv4)
16928 case $host_vendor in
16929 sni)
16930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_direct_GCJ=yes # is this really true???
16932 ;;
16933 siemens)
16934 ## LD is ld it makes a PLAMLIB
16935 ## CC just makes a GrossModule.
16936 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16937 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16938 hardcode_direct_GCJ=no
16939 ;;
16940 motorola)
16941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16942 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16943 ;;
16944 esac
16945 runpath_var='LD_RUN_PATH'
16946 hardcode_shlibpath_var_GCJ=no
16947 ;;
16948
16949 sysv4.3*)
16950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951 hardcode_shlibpath_var_GCJ=no
16952 export_dynamic_flag_spec_GCJ='-Bexport'
16953 ;;
16954
16955 sysv4*MP*)
16956 if test -d /usr/nec; then
16957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 hardcode_shlibpath_var_GCJ=no
16959 runpath_var=LD_RUN_PATH
16960 hardcode_runpath_var=yes
16961 ld_shlibs_GCJ=yes
16962 fi
16963 ;;
16964
16965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16966 no_undefined_flag_GCJ='${wl}-z,text'
16967 archive_cmds_need_lc_GCJ=no
16968 hardcode_shlibpath_var_GCJ=no
16969 runpath_var='LD_RUN_PATH'
16970
16971 if test "$GCC" = yes; then
16972 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 else
16975 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16976 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 fi
16978 ;;
16979
16980 sysv5* | sco3.2v5* | sco5v6*)
16981 # Note: We can NOT use -z defs as we might desire, because we do not
16982 # link with -lc, and that would cause any symbols used from libc to
16983 # always be unresolved, which means just about no library would
16984 # ever link correctly. If we're not using GNU ld we use -z text
16985 # though, which does catch some bad symbols but isn't as heavy-handed
16986 # as -z defs.
16987 no_undefined_flag_GCJ='${wl}-z,text'
16988 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16989 archive_cmds_need_lc_GCJ=no
16990 hardcode_shlibpath_var_GCJ=no
16991 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16992 hardcode_libdir_separator_GCJ=':'
16993 link_all_deplibs_GCJ=yes
16994 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16995 runpath_var='LD_RUN_PATH'
16996
16997 if test "$GCC" = yes; then
16998 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16999 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 else
17001 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17002 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17003 fi
17004 ;;
17005
17006 uts4*)
17007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17009 hardcode_shlibpath_var_GCJ=no
17010 ;;
17011
17012 *)
17013 ld_shlibs_GCJ=no
17014 ;;
17015 esac
17016 fi
17017
17018echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17019echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17020test "$ld_shlibs_GCJ" = no && can_build_shared=no
17021
17022#
17023# Do we need to explicitly link libc?
17024#
17025case "x$archive_cmds_need_lc_GCJ" in
17026x|xyes)
17027 # Assume -lc should be added
17028 archive_cmds_need_lc_GCJ=yes
17029
17030 if test "$enable_shared" = yes && test "$GCC" = yes; then
17031 case $archive_cmds_GCJ in
17032 *'~'*)
17033 # FIXME: we may have to deal with multi-command sequences.
17034 ;;
17035 '$CC '*)
17036 # Test whether the compiler implicitly links with -lc since on some
17037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17038 # to ld, don't add -lc before -lgcc.
17039 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17040echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17041 $rm conftest*
17042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17043
17044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045 (eval $ac_compile) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } 2>conftest.err; then
17049 soname=conftest
17050 lib=conftest
17051 libobjs=conftest.$ac_objext
17052 deplibs=
17053 wl=$lt_prog_compiler_wl_GCJ
17054 pic_flag=$lt_prog_compiler_pic_GCJ
17055 compiler_flags=-v
17056 linker_flags=-v
17057 verstring=
17058 output_objdir=.
17059 libname=conftest
17060 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17061 allow_undefined_flag_GCJ=
17062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17063 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }
17067 then
17068 archive_cmds_need_lc_GCJ=no
17069 else
17070 archive_cmds_need_lc_GCJ=yes
17071 fi
17072 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17073 else
17074 cat conftest.err 1>&5
17075 fi
17076 $rm conftest*
17077 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17078echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17079 ;;
17080 esac
17081 fi
17082 ;;
17083esac
17084
17085echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17086echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17087library_names_spec=
17088libname_spec='lib$name'
17089soname_spec=
17090shrext_cmds=".so"
17091postinstall_cmds=
17092postuninstall_cmds=
17093finish_cmds=
17094finish_eval=
17095shlibpath_var=
17096shlibpath_overrides_runpath=unknown
17097version_type=none
17098dynamic_linker="$host_os ld.so"
17099sys_lib_dlsearch_path_spec="/lib /usr/lib"
17100if test "$GCC" = yes; then
17101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17102 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17103 # if the path contains ";" then we assume it to be the separator
17104 # otherwise default to the standard path separator (i.e. ":") - it is
17105 # assumed that no part of a normal pathname contains ";" but that should
17106 # okay in the real world where ";" in dirpaths is itself problematic.
17107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17108 else
17109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17110 fi
17111else
17112 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17113fi
17114need_lib_prefix=unknown
17115hardcode_into_libs=no
17116
17117# when you set need_version to no, make sure it does not cause -set_version
17118# flags to be left without arguments
17119need_version=unknown
17120
17121case $host_os in
17122aix3*)
17123 version_type=linux
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17125 shlibpath_var=LIBPATH
17126
17127 # AIX 3 has no versioning support, so we append a major version to the name.
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 ;;
17130
17131aix4* | aix5*)
17132 version_type=linux
17133 need_lib_prefix=no
17134 need_version=no
17135 hardcode_into_libs=yes
17136 if test "$host_cpu" = ia64; then
17137 # AIX 5 supports IA64
17138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 else
17141 # With GCC up to 2.95.x, collect2 would create an import file
17142 # for dependence libraries. The import file would start with
17143 # the line `#! .'. This would cause the generated library to
17144 # depend on `.', always an invalid library. This was fixed in
17145 # development snapshots of GCC prior to 3.0.
17146 case $host_os in
17147 aix4 | aix4.[01] | aix4.[01].*)
17148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17149 echo ' yes '
17150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17151 :
17152 else
17153 can_build_shared=no
17154 fi
17155 ;;
17156 esac
17157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17158 # soname into executable. Probably we can add versioning support to
17159 # collect2, so additional links can be useful in future.
17160 if test "$aix_use_runtimelinking" = yes; then
17161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17162 # instead of lib<name>.a to let people know that these are not
17163 # typical AIX shared libraries.
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 else
17166 # We preserve .a as extension for shared libraries through AIX4.2
17167 # and later when we are not doing run time linking.
17168 library_names_spec='${libname}${release}.a $libname.a'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 fi
17171 shlibpath_var=LIBPATH
17172 fi
17173 ;;
17174
17175amigaos*)
17176 library_names_spec='$libname.ixlibrary $libname.a'
17177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17178 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'
17179 ;;
17180
17181beos*)
17182 library_names_spec='${libname}${shared_ext}'
17183 dynamic_linker="$host_os ld.so"
17184 shlibpath_var=LIBRARY_PATH
17185 ;;
17186
17187bsdi[45]*)
17188 version_type=linux
17189 need_version=no
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17196 # the default ld.so.conf also contains /usr/contrib/lib and
17197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17198 # libtool to hard-code these into programs
17199 ;;
17200
17201cygwin* | mingw* | pw32*)
17202 version_type=windows
17203 shrext_cmds=".dll"
17204 need_version=no
17205 need_lib_prefix=no
17206
17207 case $GCC,$host_os in
17208 yes,cygwin* | yes,mingw* | yes,pw32*)
17209 library_names_spec='$libname.dll.a'
17210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17211 postinstall_cmds='base_file=`basename \${file}`~
17212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17213 dldir=$destdir/`dirname \$dlpath`~
17214 test -d \$dldir || mkdir -p \$dldir~
17215 $install_prog $dir/$dlname \$dldir/$dlname~
17216 chmod a+x \$dldir/$dlname'
17217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17218 dlpath=$dir/\$dldll~
17219 $rm \$dlpath'
17220 shlibpath_overrides_runpath=yes
17221
17222 case $host_os in
17223 cygwin*)
17224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17226 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17227 ;;
17228 mingw*)
17229 # MinGW DLLs use traditional 'lib' prefix
17230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17233 # It is most probably a Windows format PATH printed by
17234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17235 # path with ; separators, and with drive letters. We can handle the
17236 # drive letters (cygwin fileutils understands them), so leave them,
17237 # especially as we might pass files found there to a mingw objdump,
17238 # which wouldn't understand a cygwinified path. Ahh.
17239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17240 else
17241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17242 fi
17243 ;;
17244 pw32*)
17245 # pw32 DLLs use 'pw' prefix rather than 'lib'
17246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17247 ;;
17248 esac
17249 ;;
17250
17251 *)
17252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17253 ;;
17254 esac
17255 dynamic_linker='Win32 ld.exe'
17256 # FIXME: first we should search . and the directory the executable is in
17257 shlibpath_var=PATH
17258 ;;
17259
17260darwin* | rhapsody*)
17261 dynamic_linker="$host_os dyld"
17262 version_type=darwin
17263 need_lib_prefix=no
17264 need_version=no
17265 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17266 soname_spec='${libname}${release}${major}$shared_ext'
17267 shlibpath_overrides_runpath=yes
17268 shlibpath_var=DYLD_LIBRARY_PATH
17269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17270 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17271 if test "$GCC" = yes; then
17272 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"`
17273 else
17274 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17275 fi
17276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17277 ;;
17278
17279dgux*)
17280 version_type=linux
17281 need_lib_prefix=no
17282 need_version=no
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 ;;
17287
17288freebsd1*)
17289 dynamic_linker=no
17290 ;;
17291
17292kfreebsd*-gnu)
17293 version_type=linux
17294 need_lib_prefix=no
17295 need_version=no
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 shlibpath_var=LD_LIBRARY_PATH
17299 shlibpath_overrides_runpath=no
17300 hardcode_into_libs=yes
17301 dynamic_linker='GNU ld.so'
17302 ;;
17303
17304freebsd* | dragonfly*)
17305 # DragonFly does not have aout. When/if they implement a new
17306 # versioning mechanism, adjust this.
17307 if test -x /usr/bin/objformat; then
17308 objformat=`/usr/bin/objformat`
17309 else
17310 case $host_os in
17311 freebsd[123]*) objformat=aout ;;
17312 *) objformat=elf ;;
17313 esac
17314 fi
17315 version_type=freebsd-$objformat
17316 case $version_type in
17317 freebsd-elf*)
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17319 need_version=no
17320 need_lib_prefix=no
17321 ;;
17322 freebsd-*)
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17324 need_version=yes
17325 ;;
17326 esac
17327 shlibpath_var=LD_LIBRARY_PATH
17328 case $host_os in
17329 freebsd2*)
17330 shlibpath_overrides_runpath=yes
17331 ;;
17332 freebsd3.[01]* | freebsdelf3.[01]*)
17333 shlibpath_overrides_runpath=yes
17334 hardcode_into_libs=yes
17335 ;;
17336 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17337 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17338 shlibpath_overrides_runpath=no
17339 hardcode_into_libs=yes
17340 ;;
17341 freebsd*) # from 4.6 on
17342 shlibpath_overrides_runpath=yes
17343 hardcode_into_libs=yes
17344 ;;
17345 esac
17346 ;;
17347
17348gnu*)
17349 version_type=linux
17350 need_lib_prefix=no
17351 need_version=no
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 hardcode_into_libs=yes
17356 ;;
17357
17358hpux9* | hpux10* | hpux11*)
17359 # Give a soname corresponding to the major version so that dld.sl refuses to
17360 # link against other versions.
17361 version_type=sunos
17362 need_lib_prefix=no
17363 need_version=no
17364 case $host_cpu in
17365 ia64*)
17366 shrext_cmds='.so'
17367 hardcode_into_libs=yes
17368 dynamic_linker="$host_os dld.so"
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 if test "X$HPUX_IA64_MODE" = X32; then
17374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17375 else
17376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17377 fi
17378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17379 ;;
17380 hppa*64*)
17381 shrext_cmds='.sl'
17382 hardcode_into_libs=yes
17383 dynamic_linker="$host_os dld.sl"
17384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17390 ;;
17391 *)
17392 shrext_cmds='.sl'
17393 dynamic_linker="$host_os dld.sl"
17394 shlibpath_var=SHLIB_PATH
17395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 ;;
17399 esac
17400 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17401 postinstall_cmds='chmod 555 $lib'
17402 ;;
17403
17404interix3*)
17405 version_type=linux
17406 need_lib_prefix=no
17407 need_version=no
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath=no
17413 hardcode_into_libs=yes
17414 ;;
17415
17416irix5* | irix6* | nonstopux*)
17417 case $host_os in
17418 nonstopux*) version_type=nonstopux ;;
17419 *)
17420 if test "$lt_cv_prog_gnu_ld" = yes; then
17421 version_type=linux
17422 else
17423 version_type=irix
17424 fi ;;
17425 esac
17426 need_lib_prefix=no
17427 need_version=no
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17430 case $host_os in
17431 irix5* | nonstopux*)
17432 libsuff= shlibsuff=
17433 ;;
17434 *)
17435 case $LD in # libtool.m4 will add one of these switches to LD
17436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17437 libsuff= shlibsuff= libmagic=32-bit;;
17438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17439 libsuff=32 shlibsuff=N32 libmagic=N32;;
17440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17442 *) libsuff= shlibsuff= libmagic=never-match;;
17443 esac
17444 ;;
17445 esac
17446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17447 shlibpath_overrides_runpath=no
17448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17450 hardcode_into_libs=yes
17451 ;;
17452
17453# No shared lib support for Linux oldld, aout, or coff.
17454linux*oldld* | linux*aout* | linux*coff*)
17455 dynamic_linker=no
17456 ;;
17457
17458# This must be Linux ELF.
17459linux*)
17460 version_type=linux
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=no
17468 # This implies no fast_install, which is unacceptable.
17469 # Some rework will be needed to allow for fast_install
17470 # before this can be enabled.
17471 hardcode_into_libs=yes
17472
17473 # Append ld.so.conf contents to the search path
17474 if test -f /etc/ld.so.conf; then
17475 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' ' '`
17476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17477 fi
17478
17479 # We used to test for /lib/ld.so.1 and disable shared libraries on
17480 # powerpc, because MkLinux only supported shared libraries with the
17481 # GNU dynamic linker. Since this was broken with cross compilers,
17482 # most powerpc-linux boxes support dynamic linking these days and
17483 # people can always --disable-shared, the test was removed, and we
17484 # assume the GNU/Linux dynamic linker is in use.
17485 dynamic_linker='GNU/Linux ld.so'
17486 ;;
17487
17488knetbsd*-gnu)
17489 version_type=linux
17490 need_lib_prefix=no
17491 need_version=no
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=no
17496 hardcode_into_libs=yes
17497 dynamic_linker='GNU ld.so'
17498 ;;
17499
17500netbsd*)
17501 version_type=sunos
17502 need_lib_prefix=no
17503 need_version=no
17504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17507 dynamic_linker='NetBSD (a.out) ld.so'
17508 else
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 dynamic_linker='NetBSD ld.elf_so'
17512 fi
17513 shlibpath_var=LD_LIBRARY_PATH
17514 shlibpath_overrides_runpath=yes
17515 hardcode_into_libs=yes
17516 ;;
17517
17518newsos6)
17519 version_type=linux
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=yes
17523 ;;
17524
17525nto-qnx*)
17526 version_type=linux
17527 need_lib_prefix=no
17528 need_version=no
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 soname_spec='${libname}${release}${shared_ext}$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=yes
17533 ;;
17534
17535openbsd*)
17536 version_type=sunos
17537 sys_lib_dlsearch_path_spec="/usr/lib"
17538 need_lib_prefix=no
17539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17540 case $host_os in
17541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17542 *) need_version=no ;;
17543 esac
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17548 case $host_os in
17549 openbsd2.[89] | openbsd2.[89].*)
17550 shlibpath_overrides_runpath=no
17551 ;;
17552 *)
17553 shlibpath_overrides_runpath=yes
17554 ;;
17555 esac
17556 else
17557 shlibpath_overrides_runpath=yes
17558 fi
17559 ;;
17560
17561os2*)
17562 libname_spec='$name'
17563 shrext_cmds=".dll"
17564 need_lib_prefix=no
17565 library_names_spec='$libname${shared_ext} $libname.a'
17566 dynamic_linker='OS/2 ld.exe'
17567 shlibpath_var=LIBPATH
17568 ;;
17569
17570osf3* | osf4* | osf5*)
17571 version_type=osf
17572 need_lib_prefix=no
17573 need_version=no
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17579 ;;
17580
17581solaris*)
17582 version_type=linux
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 shlibpath_overrides_runpath=yes
17589 hardcode_into_libs=yes
17590 # ldd complains unless libraries are executable
17591 postinstall_cmds='chmod +x $lib'
17592 ;;
17593
17594sunos4*)
17595 version_type=sunos
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 shlibpath_overrides_runpath=yes
17600 if test "$with_gnu_ld" = yes; then
17601 need_lib_prefix=no
17602 fi
17603 need_version=yes
17604 ;;
17605
17606sysv4 | sysv4.3*)
17607 version_type=linux
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 soname_spec='${libname}${release}${shared_ext}$major'
17610 shlibpath_var=LD_LIBRARY_PATH
17611 case $host_vendor in
17612 sni)
17613 shlibpath_overrides_runpath=no
17614 need_lib_prefix=no
17615 export_dynamic_flag_spec='${wl}-Blargedynsym'
17616 runpath_var=LD_RUN_PATH
17617 ;;
17618 siemens)
17619 need_lib_prefix=no
17620 ;;
17621 motorola)
17622 need_lib_prefix=no
17623 need_version=no
17624 shlibpath_overrides_runpath=no
17625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17626 ;;
17627 esac
17628 ;;
17629
17630sysv4*MP*)
17631 if test -d /usr/nec ;then
17632 version_type=linux
17633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17634 soname_spec='$libname${shared_ext}.$major'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 fi
17637 ;;
17638
17639sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17640 version_type=freebsd-elf
17641 need_lib_prefix=no
17642 need_version=no
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 shlibpath_var=LD_LIBRARY_PATH
17646 hardcode_into_libs=yes
17647 if test "$with_gnu_ld" = yes; then
17648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17649 shlibpath_overrides_runpath=no
17650 else
17651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17652 shlibpath_overrides_runpath=yes
17653 case $host_os in
17654 sco3.2v5*)
17655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17656 ;;
17657 esac
17658 fi
17659 sys_lib_dlsearch_path_spec='/usr/lib'
17660 ;;
17661
17662uts4*)
17663 version_type=linux
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 shlibpath_var=LD_LIBRARY_PATH
17667 ;;
17668
17669*)
17670 dynamic_linker=no
17671 ;;
17672esac
17673echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17674echo "${ECHO_T}$dynamic_linker" >&6
17675test "$dynamic_linker" = no && can_build_shared=no
17676
17677variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17678if test "$GCC" = yes; then
17679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17680fi
17681
17682echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17683echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17684hardcode_action_GCJ=
17685if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17686 test -n "$runpath_var_GCJ" || \
17687 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17688
17689 # We can hardcode non-existant directories.
17690 if test "$hardcode_direct_GCJ" != no &&
17691 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17692 # have to relink, otherwise we might link with an installed library
17693 # when we should be linking with a yet-to-be-installed one
17694 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17695 test "$hardcode_minus_L_GCJ" != no; then
17696 # Linking always hardcodes the temporary library directory.
17697 hardcode_action_GCJ=relink
17698 else
17699 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17700 hardcode_action_GCJ=immediate
17701 fi
17702else
17703 # We cannot hardcode anything, or else we can only hardcode existing
17704 # directories.
17705 hardcode_action_GCJ=unsupported
17706fi
17707echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17708echo "${ECHO_T}$hardcode_action_GCJ" >&6
17709
17710if test "$hardcode_action_GCJ" = relink; then
17711 # Fast installation is not supported
17712 enable_fast_install=no
17713elif test "$shlibpath_overrides_runpath" = yes ||
17714 test "$enable_shared" = no; then
17715 # Fast installation is not necessary
17716 enable_fast_install=needless
17717fi
17718
17719
17720# The else clause should only fire when bootstrapping the
17721# libtool distribution, otherwise you forgot to ship ltmain.sh
17722# with your package, and you will get complaints that there are
17723# no rules to generate ltmain.sh.
17724if test -f "$ltmain"; then
17725 # See if we are running on zsh, and set the options which allow our commands through
17726 # without removal of \ escapes.
17727 if test -n "${ZSH_VERSION+set}" ; then
17728 setopt NO_GLOB_SUBST
17729 fi
17730 # Now quote all the things that may contain metacharacters while being
17731 # careful not to overquote the AC_SUBSTed values. We take copies of the
17732 # variables and quote the copies for generation of the libtool script.
17733 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17734 SED SHELL STRIP \
17735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17737 deplibs_check_method reload_flag reload_cmds need_locks \
17738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17739 lt_cv_sys_global_symbol_to_c_name_address \
17740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17741 old_postinstall_cmds old_postuninstall_cmds \
17742 compiler_GCJ \
17743 CC_GCJ \
17744 LD_GCJ \
17745 lt_prog_compiler_wl_GCJ \
17746 lt_prog_compiler_pic_GCJ \
17747 lt_prog_compiler_static_GCJ \
17748 lt_prog_compiler_no_builtin_flag_GCJ \
17749 export_dynamic_flag_spec_GCJ \
17750 thread_safe_flag_spec_GCJ \
17751 whole_archive_flag_spec_GCJ \
17752 enable_shared_with_static_runtimes_GCJ \
17753 old_archive_cmds_GCJ \
17754 old_archive_from_new_cmds_GCJ \
17755 predep_objects_GCJ \
17756 postdep_objects_GCJ \
17757 predeps_GCJ \
17758 postdeps_GCJ \
17759 compiler_lib_search_path_GCJ \
17760 archive_cmds_GCJ \
17761 archive_expsym_cmds_GCJ \
17762 postinstall_cmds_GCJ \
17763 postuninstall_cmds_GCJ \
17764 old_archive_from_expsyms_cmds_GCJ \
17765 allow_undefined_flag_GCJ \
17766 no_undefined_flag_GCJ \
17767 export_symbols_cmds_GCJ \
17768 hardcode_libdir_flag_spec_GCJ \
17769 hardcode_libdir_flag_spec_ld_GCJ \
17770 hardcode_libdir_separator_GCJ \
17771 hardcode_automatic_GCJ \
17772 module_cmds_GCJ \
17773 module_expsym_cmds_GCJ \
17774 lt_cv_prog_compiler_c_o_GCJ \
17775 exclude_expsyms_GCJ \
17776 include_expsyms_GCJ; do
17777
17778 case $var in
17779 old_archive_cmds_GCJ | \
17780 old_archive_from_new_cmds_GCJ | \
17781 archive_cmds_GCJ | \
17782 archive_expsym_cmds_GCJ | \
17783 module_cmds_GCJ | \
17784 module_expsym_cmds_GCJ | \
17785 old_archive_from_expsyms_cmds_GCJ | \
17786 export_symbols_cmds_GCJ | \
17787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17788 postinstall_cmds | postuninstall_cmds | \
17789 old_postinstall_cmds | old_postuninstall_cmds | \
17790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17791 # Double-quote double-evaled strings.
17792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17793 ;;
17794 *)
17795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17796 ;;
17797 esac
17798 done
17799
17800 case $lt_echo in
17801 *'\$0 --fallback-echo"')
17802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17803 ;;
17804 esac
17805
17806cfgfile="$ofile"
17807
17808 cat <<__EOF__ >> "$cfgfile"
17809# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17810
17811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17812
17813# Shell to use when invoking shell scripts.
17814SHELL=$lt_SHELL
17815
17816# Whether or not to build shared libraries.
17817build_libtool_libs=$enable_shared
17818
17819# Whether or not to build static libraries.
17820build_old_libs=$enable_static
17821
17822# Whether or not to add -lc for building shared libraries.
17823build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17824
17825# Whether or not to disallow shared libs when runtime libs are static
17826allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17827
17828# Whether or not to optimize for fast installation.
17829fast_install=$enable_fast_install
17830
17831# The host system.
17832host_alias=$host_alias
17833host=$host
17834host_os=$host_os
17835
17836# The build system.
17837build_alias=$build_alias
17838build=$build
17839build_os=$build_os
17840
17841# An echo program that does not interpret backslashes.
17842echo=$lt_echo
17843
17844# The archiver.
17845AR=$lt_AR
17846AR_FLAGS=$lt_AR_FLAGS
17847
17848# A C compiler.
17849LTCC=$lt_LTCC
17850
17851# LTCC compiler flags.
17852LTCFLAGS=$lt_LTCFLAGS
17853
17854# A language-specific compiler.
17855CC=$lt_compiler_GCJ
17856
17857# Is the compiler the GNU C compiler?
17858with_gcc=$GCC_GCJ
17859
17860# An ERE matcher.
17861EGREP=$lt_EGREP
17862
17863# The linker used to build libraries.
17864LD=$lt_LD_GCJ
17865
17866# Whether we need hard or soft links.
17867LN_S=$lt_LN_S
17868
17869# A BSD-compatible nm program.
17870NM=$lt_NM
17871
17872# A symbol stripping program
17873STRIP=$lt_STRIP
17874
17875# Used to examine libraries when file_magic_cmd begins "file"
17876MAGIC_CMD=$MAGIC_CMD
17877
17878# Used on cygwin: DLL creation program.
17879DLLTOOL="$DLLTOOL"
17880
17881# Used on cygwin: object dumper.
17882OBJDUMP="$OBJDUMP"
17883
17884# Used on cygwin: assembler.
17885AS="$AS"
17886
17887# The name of the directory that contains temporary libtool files.
17888objdir=$objdir
17889
17890# How to create reloadable object files.
17891reload_flag=$lt_reload_flag
17892reload_cmds=$lt_reload_cmds
17893
17894# How to pass a linker flag through the compiler.
17895wl=$lt_lt_prog_compiler_wl_GCJ
17896
17897# Object file suffix (normally "o").
17898objext="$ac_objext"
17899
17900# Old archive suffix (normally "a").
17901libext="$libext"
17902
17903# Shared library suffix (normally ".so").
17904shrext_cmds='$shrext_cmds'
17905
17906# Executable file suffix (normally "").
17907exeext="$exeext"
17908
17909# Additional compiler flags for building library objects.
17910pic_flag=$lt_lt_prog_compiler_pic_GCJ
17911pic_mode=$pic_mode
17912
17913# What is the maximum length of a command?
17914max_cmd_len=$lt_cv_sys_max_cmd_len
17915
17916# Does compiler simultaneously support -c and -o options?
17917compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17918
17919# Must we lock files when doing compilation?
17920need_locks=$lt_need_locks
17921
17922# Do we need the lib prefix for modules?
17923need_lib_prefix=$need_lib_prefix
17924
17925# Do we need a version for libraries?
17926need_version=$need_version
17927
17928# Whether dlopen is supported.
17929dlopen_support=$enable_dlopen
17930
17931# Whether dlopen of programs is supported.
17932dlopen_self=$enable_dlopen_self
17933
17934# Whether dlopen of statically linked programs is supported.
17935dlopen_self_static=$enable_dlopen_self_static
17936
17937# Compiler flag to prevent dynamic linking.
17938link_static_flag=$lt_lt_prog_compiler_static_GCJ
17939
17940# Compiler flag to turn off builtin functions.
17941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17942
17943# Compiler flag to allow reflexive dlopens.
17944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17945
17946# Compiler flag to generate shared objects directly from archives.
17947whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17948
17949# Compiler flag to generate thread-safe objects.
17950thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17951
17952# Library versioning type.
17953version_type=$version_type
17954
17955# Format of library name prefix.
17956libname_spec=$lt_libname_spec
17957
17958# List of archive names. First name is the real one, the rest are links.
17959# The last name is the one that the linker finds with -lNAME.
17960library_names_spec=$lt_library_names_spec
17961
17962# The coded name of the library, if different from the real name.
17963soname_spec=$lt_soname_spec
17964
17965# Commands used to build and install an old-style archive.
17966RANLIB=$lt_RANLIB
17967old_archive_cmds=$lt_old_archive_cmds_GCJ
17968old_postinstall_cmds=$lt_old_postinstall_cmds
17969old_postuninstall_cmds=$lt_old_postuninstall_cmds
17970
17971# Create an old-style archive from a shared archive.
17972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17973
17974# Create a temporary old-style archive to link instead of a shared archive.
17975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17976
17977# Commands used to build and install a shared archive.
17978archive_cmds=$lt_archive_cmds_GCJ
17979archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17980postinstall_cmds=$lt_postinstall_cmds
17981postuninstall_cmds=$lt_postuninstall_cmds
17982
17983# Commands used to build a loadable module (assumed same as above if empty)
17984module_cmds=$lt_module_cmds_GCJ
17985module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17986
17987# Commands to strip libraries.
17988old_striplib=$lt_old_striplib
17989striplib=$lt_striplib
17990
17991# Dependencies to place before the objects being linked to create a
17992# shared library.
17993predep_objects=$lt_predep_objects_GCJ
17994
17995# Dependencies to place after the objects being linked to create a
17996# shared library.
17997postdep_objects=$lt_postdep_objects_GCJ
17998
17999# Dependencies to place before the objects being linked to create a
18000# shared library.
18001predeps=$lt_predeps_GCJ
18002
18003# Dependencies to place after the objects being linked to create a
18004# shared library.
18005postdeps=$lt_postdeps_GCJ
18006
18007# The library search path used internally by the compiler when linking
18008# a shared library.
18009compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18010
18011# Method to check whether dependent libraries are shared objects.
18012deplibs_check_method=$lt_deplibs_check_method
18013
18014# Command to use when deplibs_check_method == file_magic.
18015file_magic_cmd=$lt_file_magic_cmd
18016
18017# Flag that allows shared libraries with undefined symbols to be built.
18018allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18019
18020# Flag that forces no undefined symbols.
18021no_undefined_flag=$lt_no_undefined_flag_GCJ
18022
18023# Commands used to finish a libtool library installation in a directory.
18024finish_cmds=$lt_finish_cmds
18025
18026# Same as above, but a single script fragment to be evaled but not shown.
18027finish_eval=$lt_finish_eval
18028
18029# Take the output of nm and produce a listing of raw symbols and C names.
18030global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18031
18032# Transform the output of nm in a proper C declaration
18033global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18034
18035# Transform the output of nm in a C name address pair
18036global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18037
18038# This is the shared library runtime path variable.
18039runpath_var=$runpath_var
18040
18041# This is the shared library path variable.
18042shlibpath_var=$shlibpath_var
18043
18044# Is shlibpath searched before the hard-coded library search path?
18045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18046
18047# How to hardcode a shared library path into an executable.
18048hardcode_action=$hardcode_action_GCJ
18049
18050# Whether we should hardcode library paths into libraries.
18051hardcode_into_libs=$hardcode_into_libs
18052
18053# Flag to hardcode \$libdir into a binary during linking.
18054# This must work even if \$libdir does not exist.
18055hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18056
18057# If ld is used when linking, flag to hardcode \$libdir into
18058# a binary during linking. This must work even if \$libdir does
18059# not exist.
18060hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18061
18062# Whether we need a single -rpath flag with a separated argument.
18063hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18064
18065# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18066# resulting binary.
18067hardcode_direct=$hardcode_direct_GCJ
18068
18069# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18070# resulting binary.
18071hardcode_minus_L=$hardcode_minus_L_GCJ
18072
18073# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18074# the resulting binary.
18075hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18076
18077# Set to yes if building a shared library automatically hardcodes DIR into the library
18078# and all subsequent libraries and executables linked against it.
18079hardcode_automatic=$hardcode_automatic_GCJ
18080
18081# Variables whose values should be saved in libtool wrapper scripts and
18082# restored at relink time.
18083variables_saved_for_relink="$variables_saved_for_relink"
18084
18085# Whether libtool must link a program against all its dependency libraries.
18086link_all_deplibs=$link_all_deplibs_GCJ
18087
18088# Compile-time system search path for libraries
18089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18090
18091# Run-time system search path for libraries
18092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18093
18094# Fix the shell variable \$srcfile for the compiler.
18095fix_srcfile_path="$fix_srcfile_path_GCJ"
18096
18097# Set to yes if exported symbols are required.
18098always_export_symbols=$always_export_symbols_GCJ
18099
18100# The commands to list exported symbols.
18101export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18102
18103# The commands to extract the exported symbol list from a shared archive.
18104extract_expsyms_cmds=$lt_extract_expsyms_cmds
18105
18106# Symbols that should not be listed in the preloaded symbols.
18107exclude_expsyms=$lt_exclude_expsyms_GCJ
18108
18109# Symbols that must always be exported.
18110include_expsyms=$lt_include_expsyms_GCJ
18111
18112# ### END LIBTOOL TAG CONFIG: $tagname
18113
18114__EOF__
18115
18116
18117else
18118 # If there is no Makefile yet, we rely on a make rule to execute
18119 # `config.status --recheck' to rerun these tests and create the
18120 # libtool script then.
18121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18122 if test -f "$ltmain_in"; then
18123 test -f Makefile && make "$ltmain"
18124 fi
18125fi
18126
18127
18128ac_ext=c
18129ac_cpp='$CPP $CPPFLAGS'
18130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132ac_compiler_gnu=$ac_cv_c_compiler_gnu
18133
18134CC="$lt_save_CC"
18135
18136 else
18137 tagname=""
18138 fi
18139 ;;
18140
18141 RC)
18142
18143
18144
18145# Source file extension for RC test sources.
18146ac_ext=rc
18147
18148# Object file extension for compiled RC test sources.
18149objext=o
18150objext_RC=$objext
18151
18152# Code to be used in simple compile tests
18153lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18154
18155# Code to be used in simple link tests
18156lt_simple_link_test_code="$lt_simple_compile_test_code"
18157
18158# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18159
18160# If no C compiler was specified, use CC.
18161LTCC=${LTCC-"$CC"}
18162
18163# If no C compiler flags were specified, use CFLAGS.
18164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18165
18166# Allow CC to be a program name with arguments.
18167compiler=$CC
18168
18169
18170# save warnings/boilerplate of simple test code
18171ac_outfile=conftest.$ac_objext
18172printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18173eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18174_lt_compiler_boilerplate=`cat conftest.err`
18175$rm conftest*
18176
18177ac_outfile=conftest.$ac_objext
18178printf "$lt_simple_link_test_code" >conftest.$ac_ext
18179eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18180_lt_linker_boilerplate=`cat conftest.err`
18181$rm conftest*
18182
18183
18184# Allow CC to be a program name with arguments.
18185lt_save_CC="$CC"
18186CC=${RC-"windres"}
18187compiler=$CC
18188compiler_RC=$CC
18189for cc_temp in $compiler""; do
18190 case $cc_temp in
18191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18193 \-*) ;;
18194 *) break;;
18195 esac
18196done
18197cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18198
18199lt_cv_prog_compiler_c_o_RC=yes
18200
18201# The else clause should only fire when bootstrapping the
18202# libtool distribution, otherwise you forgot to ship ltmain.sh
18203# with your package, and you will get complaints that there are
18204# no rules to generate ltmain.sh.
18205if test -f "$ltmain"; then
18206 # See if we are running on zsh, and set the options which allow our commands through
18207 # without removal of \ escapes.
18208 if test -n "${ZSH_VERSION+set}" ; then
18209 setopt NO_GLOB_SUBST
18210 fi
18211 # Now quote all the things that may contain metacharacters while being
18212 # careful not to overquote the AC_SUBSTed values. We take copies of the
18213 # variables and quote the copies for generation of the libtool script.
18214 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18215 SED SHELL STRIP \
18216 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18217 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18218 deplibs_check_method reload_flag reload_cmds need_locks \
18219 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18220 lt_cv_sys_global_symbol_to_c_name_address \
18221 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18222 old_postinstall_cmds old_postuninstall_cmds \
18223 compiler_RC \
18224 CC_RC \
18225 LD_RC \
18226 lt_prog_compiler_wl_RC \
18227 lt_prog_compiler_pic_RC \
18228 lt_prog_compiler_static_RC \
18229 lt_prog_compiler_no_builtin_flag_RC \
18230 export_dynamic_flag_spec_RC \
18231 thread_safe_flag_spec_RC \
18232 whole_archive_flag_spec_RC \
18233 enable_shared_with_static_runtimes_RC \
18234 old_archive_cmds_RC \
18235 old_archive_from_new_cmds_RC \
18236 predep_objects_RC \
18237 postdep_objects_RC \
18238 predeps_RC \
18239 postdeps_RC \
18240 compiler_lib_search_path_RC \
18241 archive_cmds_RC \
18242 archive_expsym_cmds_RC \
18243 postinstall_cmds_RC \
18244 postuninstall_cmds_RC \
18245 old_archive_from_expsyms_cmds_RC \
18246 allow_undefined_flag_RC \
18247 no_undefined_flag_RC \
18248 export_symbols_cmds_RC \
18249 hardcode_libdir_flag_spec_RC \
18250 hardcode_libdir_flag_spec_ld_RC \
18251 hardcode_libdir_separator_RC \
18252 hardcode_automatic_RC \
18253 module_cmds_RC \
18254 module_expsym_cmds_RC \
18255 lt_cv_prog_compiler_c_o_RC \
18256 exclude_expsyms_RC \
18257 include_expsyms_RC; do
18258
18259 case $var in
18260 old_archive_cmds_RC | \
18261 old_archive_from_new_cmds_RC | \
18262 archive_cmds_RC | \
18263 archive_expsym_cmds_RC | \
18264 module_cmds_RC | \
18265 module_expsym_cmds_RC | \
18266 old_archive_from_expsyms_cmds_RC | \
18267 export_symbols_cmds_RC | \
18268 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18269 postinstall_cmds | postuninstall_cmds | \
18270 old_postinstall_cmds | old_postuninstall_cmds | \
18271 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18272 # Double-quote double-evaled strings.
18273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18274 ;;
18275 *)
18276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18277 ;;
18278 esac
18279 done
18280
18281 case $lt_echo in
18282 *'\$0 --fallback-echo"')
18283 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18284 ;;
18285 esac
18286
18287cfgfile="$ofile"
18288
18289 cat <<__EOF__ >> "$cfgfile"
18290# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18291
18292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18293
18294# Shell to use when invoking shell scripts.
18295SHELL=$lt_SHELL
18296
18297# Whether or not to build shared libraries.
18298build_libtool_libs=$enable_shared
18299
18300# Whether or not to build static libraries.
18301build_old_libs=$enable_static
18302
18303# Whether or not to add -lc for building shared libraries.
18304build_libtool_need_lc=$archive_cmds_need_lc_RC
18305
18306# Whether or not to disallow shared libs when runtime libs are static
18307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18308
18309# Whether or not to optimize for fast installation.
18310fast_install=$enable_fast_install
18311
18312# The host system.
18313host_alias=$host_alias
18314host=$host
18315host_os=$host_os
18316
18317# The build system.
18318build_alias=$build_alias
18319build=$build
18320build_os=$build_os
18321
18322# An echo program that does not interpret backslashes.
18323echo=$lt_echo
18324
18325# The archiver.
18326AR=$lt_AR
18327AR_FLAGS=$lt_AR_FLAGS
18328
18329# A C compiler.
18330LTCC=$lt_LTCC
18331
18332# LTCC compiler flags.
18333LTCFLAGS=$lt_LTCFLAGS
18334
18335# A language-specific compiler.
18336CC=$lt_compiler_RC
18337
18338# Is the compiler the GNU C compiler?
18339with_gcc=$GCC_RC
18340
18341# An ERE matcher.
18342EGREP=$lt_EGREP
18343
18344# The linker used to build libraries.
18345LD=$lt_LD_RC
18346
18347# Whether we need hard or soft links.
18348LN_S=$lt_LN_S
18349
18350# A BSD-compatible nm program.
18351NM=$lt_NM
18352
18353# A symbol stripping program
18354STRIP=$lt_STRIP
18355
18356# Used to examine libraries when file_magic_cmd begins "file"
18357MAGIC_CMD=$MAGIC_CMD
18358
18359# Used on cygwin: DLL creation program.
18360DLLTOOL="$DLLTOOL"
18361
18362# Used on cygwin: object dumper.
18363OBJDUMP="$OBJDUMP"
18364
18365# Used on cygwin: assembler.
18366AS="$AS"
18367
18368# The name of the directory that contains temporary libtool files.
18369objdir=$objdir
18370
18371# How to create reloadable object files.
18372reload_flag=$lt_reload_flag
18373reload_cmds=$lt_reload_cmds
18374
18375# How to pass a linker flag through the compiler.
18376wl=$lt_lt_prog_compiler_wl_RC
18377
18378# Object file suffix (normally "o").
18379objext="$ac_objext"
18380
18381# Old archive suffix (normally "a").
18382libext="$libext"
18383
18384# Shared library suffix (normally ".so").
18385shrext_cmds='$shrext_cmds'
18386
18387# Executable file suffix (normally "").
18388exeext="$exeext"
18389
18390# Additional compiler flags for building library objects.
18391pic_flag=$lt_lt_prog_compiler_pic_RC
18392pic_mode=$pic_mode
18393
18394# What is the maximum length of a command?
18395max_cmd_len=$lt_cv_sys_max_cmd_len
18396
18397# Does compiler simultaneously support -c and -o options?
18398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18399
18400# Must we lock files when doing compilation?
18401need_locks=$lt_need_locks
18402
18403# Do we need the lib prefix for modules?
18404need_lib_prefix=$need_lib_prefix
18405
18406# Do we need a version for libraries?
18407need_version=$need_version
18408
18409# Whether dlopen is supported.
18410dlopen_support=$enable_dlopen
18411
18412# Whether dlopen of programs is supported.
18413dlopen_self=$enable_dlopen_self
18414
18415# Whether dlopen of statically linked programs is supported.
18416dlopen_self_static=$enable_dlopen_self_static
18417
18418# Compiler flag to prevent dynamic linking.
18419link_static_flag=$lt_lt_prog_compiler_static_RC
18420
18421# Compiler flag to turn off builtin functions.
18422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18423
18424# Compiler flag to allow reflexive dlopens.
18425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18426
18427# Compiler flag to generate shared objects directly from archives.
18428whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18429
18430# Compiler flag to generate thread-safe objects.
18431thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18432
18433# Library versioning type.
18434version_type=$version_type
18435
18436# Format of library name prefix.
18437libname_spec=$lt_libname_spec
18438
18439# List of archive names. First name is the real one, the rest are links.
18440# The last name is the one that the linker finds with -lNAME.
18441library_names_spec=$lt_library_names_spec
18442
18443# The coded name of the library, if different from the real name.
18444soname_spec=$lt_soname_spec
18445
18446# Commands used to build and install an old-style archive.
18447RANLIB=$lt_RANLIB
18448old_archive_cmds=$lt_old_archive_cmds_RC
18449old_postinstall_cmds=$lt_old_postinstall_cmds
18450old_postuninstall_cmds=$lt_old_postuninstall_cmds
18451
18452# Create an old-style archive from a shared archive.
18453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18454
18455# Create a temporary old-style archive to link instead of a shared archive.
18456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18457
18458# Commands used to build and install a shared archive.
18459archive_cmds=$lt_archive_cmds_RC
18460archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18461postinstall_cmds=$lt_postinstall_cmds
18462postuninstall_cmds=$lt_postuninstall_cmds
18463
18464# Commands used to build a loadable module (assumed same as above if empty)
18465module_cmds=$lt_module_cmds_RC
18466module_expsym_cmds=$lt_module_expsym_cmds_RC
18467
18468# Commands to strip libraries.
18469old_striplib=$lt_old_striplib
18470striplib=$lt_striplib
18471
18472# Dependencies to place before the objects being linked to create a
18473# shared library.
18474predep_objects=$lt_predep_objects_RC
18475
18476# Dependencies to place after the objects being linked to create a
18477# shared library.
18478postdep_objects=$lt_postdep_objects_RC
18479
18480# Dependencies to place before the objects being linked to create a
18481# shared library.
18482predeps=$lt_predeps_RC
18483
18484# Dependencies to place after the objects being linked to create a
18485# shared library.
18486postdeps=$lt_postdeps_RC
18487
18488# The library search path used internally by the compiler when linking
18489# a shared library.
18490compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18491
18492# Method to check whether dependent libraries are shared objects.
18493deplibs_check_method=$lt_deplibs_check_method
18494
18495# Command to use when deplibs_check_method == file_magic.
18496file_magic_cmd=$lt_file_magic_cmd
18497
18498# Flag that allows shared libraries with undefined symbols to be built.
18499allow_undefined_flag=$lt_allow_undefined_flag_RC
18500
18501# Flag that forces no undefined symbols.
18502no_undefined_flag=$lt_no_undefined_flag_RC
18503
18504# Commands used to finish a libtool library installation in a directory.
18505finish_cmds=$lt_finish_cmds
18506
18507# Same as above, but a single script fragment to be evaled but not shown.
18508finish_eval=$lt_finish_eval
18509
18510# Take the output of nm and produce a listing of raw symbols and C names.
18511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18512
18513# Transform the output of nm in a proper C declaration
18514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18515
18516# Transform the output of nm in a C name address pair
18517global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18518
18519# This is the shared library runtime path variable.
18520runpath_var=$runpath_var
18521
18522# This is the shared library path variable.
18523shlibpath_var=$shlibpath_var
18524
18525# Is shlibpath searched before the hard-coded library search path?
18526shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18527
18528# How to hardcode a shared library path into an executable.
18529hardcode_action=$hardcode_action_RC
18530
18531# Whether we should hardcode library paths into libraries.
18532hardcode_into_libs=$hardcode_into_libs
18533
18534# Flag to hardcode \$libdir into a binary during linking.
18535# This must work even if \$libdir does not exist.
18536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18537
18538# If ld is used when linking, flag to hardcode \$libdir into
18539# a binary during linking. This must work even if \$libdir does
18540# not exist.
18541hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18542
18543# Whether we need a single -rpath flag with a separated argument.
18544hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18545
18546# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18547# resulting binary.
18548hardcode_direct=$hardcode_direct_RC
18549
18550# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18551# resulting binary.
18552hardcode_minus_L=$hardcode_minus_L_RC
18553
18554# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18555# the resulting binary.
18556hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18557
18558# Set to yes if building a shared library automatically hardcodes DIR into the library
18559# and all subsequent libraries and executables linked against it.
18560hardcode_automatic=$hardcode_automatic_RC
18561
18562# Variables whose values should be saved in libtool wrapper scripts and
18563# restored at relink time.
18564variables_saved_for_relink="$variables_saved_for_relink"
18565
18566# Whether libtool must link a program against all its dependency libraries.
18567link_all_deplibs=$link_all_deplibs_RC
18568
18569# Compile-time system search path for libraries
18570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18571
18572# Run-time system search path for libraries
18573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18574
18575# Fix the shell variable \$srcfile for the compiler.
18576fix_srcfile_path="$fix_srcfile_path_RC"
18577
18578# Set to yes if exported symbols are required.
18579always_export_symbols=$always_export_symbols_RC
18580
18581# The commands to list exported symbols.
18582export_symbols_cmds=$lt_export_symbols_cmds_RC
18583
18584# The commands to extract the exported symbol list from a shared archive.
18585extract_expsyms_cmds=$lt_extract_expsyms_cmds
18586
18587# Symbols that should not be listed in the preloaded symbols.
18588exclude_expsyms=$lt_exclude_expsyms_RC
18589
18590# Symbols that must always be exported.
18591include_expsyms=$lt_include_expsyms_RC
18592
18593# ### END LIBTOOL TAG CONFIG: $tagname
18594
18595__EOF__
18596
18597
18598else
18599 # If there is no Makefile yet, we rely on a make rule to execute
18600 # `config.status --recheck' to rerun these tests and create the
18601 # libtool script then.
18602 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18603 if test -f "$ltmain_in"; then
18604 test -f Makefile && make "$ltmain"
18605 fi
18606fi
18607
18608
18609ac_ext=c
18610ac_cpp='$CPP $CPPFLAGS'
18611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
18615CC="$lt_save_CC"
18616
18617 ;;
18618
18619 *)
18620 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18621echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18622 { (exit 1); exit 1; }; }
18623 ;;
18624 esac
18625
18626 # Append the new tag name to the list of available tags.
18627 if test -n "$tagname" ; then
18628 available_tags="$available_tags $tagname"
18629 fi
18630 fi
18631 done
18632 IFS="$lt_save_ifs"
18633
18634 # Now substitute the updated list of available tags.
18635 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18636 mv "${ofile}T" "$ofile"
18637 chmod +x "$ofile"
18638 else
18639 rm -f "${ofile}T"
18640 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18641echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18642 { (exit 1); exit 1; }; }
18643 fi
18644fi
18645
18646
18647
18648# This can be used to rebuild libtool when needed
18649LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18650
18651# Always use our own libtool.
18652LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18653
18654# Prevent multiple expansion
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676DATE="`date '+%a %d %B %Y'`"
18677
18678
18679OPROFILE_DIR=`pwd`
18680
18681
18682# this needs to come before --with-gcc so we link with binutil's version
18683# of libiberty ... sigh
18684
18685# Check whether --with-binutils or --without-binutils was given.
18686if test "${with_binutils+set}" = set; then
18687 withval="$with_binutils"
18688 BINUTILSDIR=$withval
18689fi;
18690
18691if test "$BINUTILSDIR" != ""; then
18692 LD="$BINUTILSDIR/ld"
18693 if test "$CFLAGS" = ""; then
18694 CFLAGS="-g -O2"
18695 fi
18696 if test "$CXXFLAGS" = ""; then
18697 CXXFLAGS="-g -O2"
18698 fi
18699 CFLAGS="$CFLAGS -I$BINUTILSDIR/include"
18700 CXXFLAGS="$CXXFLAGS -I$BINUTILSDIR/include"
18701
18702# Check whether --with-binutils-libname or --without-binutils-libname was given.
18703if test "${with_binutils_libname+set}" = set; then
18704 withval="$with_binutils_libname"
18705 BINUTILSLIB=$withval
18706fi;
18707 if test "$BINUTILSLIB" = ""; then
18708 BINUTILSLIB="lib"
18709 fi
18710 LDFLAGS="$LDFLAGS -L$BINUTILSDIR/$BINUTILSLIB -Xlinker -R -Xlinker $BINUTILSDIR/$BINUTILSLIB"
18711fi
18712
18713
18714# Check whether --with-gcc or --without-gcc was given.
18715if test "${with_gcc+set}" = set; then
18716 withval="$with_gcc"
18717 GCCDIR=$withval
18718fi;
18719
18720if test "$GCCDIR" != ""; then
18721 CC="$GCCDIR/bin/gcc"
18722 CXX="$GCCDIR/bin/g++"
18723 LDFLAGS="$LDFLAGS -L$GCCDIR/lib -Xlinker -R -Xlinker $GCCDIR/lib"
18724fi
18725
18726ac_ext=c
18727ac_cpp='$CPP $CPPFLAGS'
18728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18730ac_compiler_gnu=$ac_cv_c_compiler_gnu
18731if test -n "$ac_tool_prefix"; then
18732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18733set dummy ${ac_tool_prefix}gcc; ac_word=$2
18734echo "$as_me:$LINENO: checking for $ac_word" >&5
18735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18736if test "${ac_cv_prog_CC+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
18739 if test -n "$CC"; then
18740 ac_cv_prog_CC="$CC" # Let the user override the test.
18741else
18742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18743for as_dir in $PATH
18744do
18745 IFS=$as_save_IFS
18746 test -z "$as_dir" && as_dir=.
18747 for ac_exec_ext in '' $ac_executable_extensions; do
18748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18751 break 2
18752 fi
18753done
18754done
18755
18756fi
18757fi
18758CC=$ac_cv_prog_CC
18759if test -n "$CC"; then
18760 echo "$as_me:$LINENO: result: $CC" >&5
18761echo "${ECHO_T}$CC" >&6
18762else
18763 echo "$as_me:$LINENO: result: no" >&5
18764echo "${ECHO_T}no" >&6
18765fi
18766
18767fi
18768if test -z "$ac_cv_prog_CC"; then
18769 ac_ct_CC=$CC
18770 # Extract the first word of "gcc", so it can be a program name with args.
18771set dummy gcc; ac_word=$2
18772echo "$as_me:$LINENO: checking for $ac_word" >&5
18773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776else
18777 if test -n "$ac_ct_CC"; then
18778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18779else
18780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18781for as_dir in $PATH
18782do
18783 IFS=$as_save_IFS
18784 test -z "$as_dir" && as_dir=.
18785 for ac_exec_ext in '' $ac_executable_extensions; do
18786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18787 ac_cv_prog_ac_ct_CC="gcc"
18788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18789 break 2
18790 fi
18791done
18792done
18793
18794fi
18795fi
18796ac_ct_CC=$ac_cv_prog_ac_ct_CC
18797if test -n "$ac_ct_CC"; then
18798 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18799echo "${ECHO_T}$ac_ct_CC" >&6
18800else
18801 echo "$as_me:$LINENO: result: no" >&5
18802echo "${ECHO_T}no" >&6
18803fi
18804
18805 CC=$ac_ct_CC
18806else
18807 CC="$ac_cv_prog_CC"
18808fi
18809
18810if test -z "$CC"; then
18811 if test -n "$ac_tool_prefix"; then
18812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18813set dummy ${ac_tool_prefix}cc; ac_word=$2
18814echo "$as_me:$LINENO: checking for $ac_word" >&5
18815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18816if test "${ac_cv_prog_CC+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18818else
18819 if test -n "$CC"; then
18820 ac_cv_prog_CC="$CC" # Let the user override the test.
18821else
18822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823for as_dir in $PATH
18824do
18825 IFS=$as_save_IFS
18826 test -z "$as_dir" && as_dir=.
18827 for ac_exec_ext in '' $ac_executable_extensions; do
18828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18829 ac_cv_prog_CC="${ac_tool_prefix}cc"
18830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18831 break 2
18832 fi
18833done
18834done
18835
18836fi
18837fi
18838CC=$ac_cv_prog_CC
18839if test -n "$CC"; then
18840 echo "$as_me:$LINENO: result: $CC" >&5
18841echo "${ECHO_T}$CC" >&6
18842else
18843 echo "$as_me:$LINENO: result: no" >&5
18844echo "${ECHO_T}no" >&6
18845fi
18846
18847fi
18848if test -z "$ac_cv_prog_CC"; then
18849 ac_ct_CC=$CC
18850 # Extract the first word of "cc", so it can be a program name with args.
18851set dummy cc; ac_word=$2
18852echo "$as_me:$LINENO: checking for $ac_word" >&5
18853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856else
18857 if test -n "$ac_ct_CC"; then
18858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18859else
18860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18861for as_dir in $PATH
18862do
18863 IFS=$as_save_IFS
18864 test -z "$as_dir" && as_dir=.
18865 for ac_exec_ext in '' $ac_executable_extensions; do
18866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18867 ac_cv_prog_ac_ct_CC="cc"
18868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18869 break 2
18870 fi
18871done
18872done
18873
18874fi
18875fi
18876ac_ct_CC=$ac_cv_prog_ac_ct_CC
18877if test -n "$ac_ct_CC"; then
18878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18879echo "${ECHO_T}$ac_ct_CC" >&6
18880else
18881 echo "$as_me:$LINENO: result: no" >&5
18882echo "${ECHO_T}no" >&6
18883fi
18884
18885 CC=$ac_ct_CC
18886else
18887 CC="$ac_cv_prog_CC"
18888fi
18889
18890fi
18891if test -z "$CC"; then
18892 # Extract the first word of "cc", so it can be a program name with args.
18893set dummy cc; ac_word=$2
18894echo "$as_me:$LINENO: checking for $ac_word" >&5
18895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18896if test "${ac_cv_prog_CC+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899 if test -n "$CC"; then
18900 ac_cv_prog_CC="$CC" # Let the user override the test.
18901else
18902 ac_prog_rejected=no
18903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18904for as_dir in $PATH
18905do
18906 IFS=$as_save_IFS
18907 test -z "$as_dir" && as_dir=.
18908 for ac_exec_ext in '' $ac_executable_extensions; do
18909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18911 ac_prog_rejected=yes
18912 continue
18913 fi
18914 ac_cv_prog_CC="cc"
18915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18916 break 2
18917 fi
18918done
18919done
18920
18921if test $ac_prog_rejected = yes; then
18922 # We found a bogon in the path, so make sure we never use it.
18923 set dummy $ac_cv_prog_CC
18924 shift
18925 if test $# != 0; then
18926 # We chose a different compiler from the bogus one.
18927 # However, it has the same basename, so the bogon will be chosen
18928 # first if we set CC to just the basename; use the full file name.
18929 shift
18930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18931 fi
18932fi
18933fi
18934fi
18935CC=$ac_cv_prog_CC
18936if test -n "$CC"; then
18937 echo "$as_me:$LINENO: result: $CC" >&5
18938echo "${ECHO_T}$CC" >&6
18939else
18940 echo "$as_me:$LINENO: result: no" >&5
18941echo "${ECHO_T}no" >&6
18942fi
18943
18944fi
18945if test -z "$CC"; then
18946 if test -n "$ac_tool_prefix"; then
18947 for ac_prog in cl
18948 do
18949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18951echo "$as_me:$LINENO: checking for $ac_word" >&5
18952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18953if test "${ac_cv_prog_CC+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955else
18956 if test -n "$CC"; then
18957 ac_cv_prog_CC="$CC" # Let the user override the test.
18958else
18959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960for as_dir in $PATH
18961do
18962 IFS=$as_save_IFS
18963 test -z "$as_dir" && as_dir=.
18964 for ac_exec_ext in '' $ac_executable_extensions; do
18965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18968 break 2
18969 fi
18970done
18971done
18972
18973fi
18974fi
18975CC=$ac_cv_prog_CC
18976if test -n "$CC"; then
18977 echo "$as_me:$LINENO: result: $CC" >&5
18978echo "${ECHO_T}$CC" >&6
18979else
18980 echo "$as_me:$LINENO: result: no" >&5
18981echo "${ECHO_T}no" >&6
18982fi
18983
18984 test -n "$CC" && break
18985 done
18986fi
18987if test -z "$CC"; then
18988 ac_ct_CC=$CC
18989 for ac_prog in cl
18990do
18991 # Extract the first word of "$ac_prog", so it can be a program name with args.
18992set dummy $ac_prog; ac_word=$2
18993echo "$as_me:$LINENO: checking for $ac_word" >&5
18994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998 if test -n "$ac_ct_CC"; then
18999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19000else
19001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002for as_dir in $PATH
19003do
19004 IFS=$as_save_IFS
19005 test -z "$as_dir" && as_dir=.
19006 for ac_exec_ext in '' $ac_executable_extensions; do
19007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19008 ac_cv_prog_ac_ct_CC="$ac_prog"
19009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19010 break 2
19011 fi
19012done
19013done
19014
19015fi
19016fi
19017ac_ct_CC=$ac_cv_prog_ac_ct_CC
19018if test -n "$ac_ct_CC"; then
19019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19020echo "${ECHO_T}$ac_ct_CC" >&6
19021else
19022 echo "$as_me:$LINENO: result: no" >&5
19023echo "${ECHO_T}no" >&6
19024fi
19025
19026 test -n "$ac_ct_CC" && break
19027done
19028
19029 CC=$ac_ct_CC
19030fi
19031
19032fi
19033
19034
19035test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19036See \`config.log' for more details." >&5
19037echo "$as_me: error: no acceptable C compiler found in \$PATH
19038See \`config.log' for more details." >&2;}
19039 { (exit 1); exit 1; }; }
19040
19041# Provide some information about the compiler.
19042echo "$as_me:$LINENO:" \
19043 "checking for C compiler version" >&5
19044ac_compiler=`set X $ac_compile; echo $2`
19045{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19046 (eval $ac_compiler --version </dev/null >&5) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }
19050{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19051 (eval $ac_compiler -v </dev/null >&5) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }
19055{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19056 (eval $ac_compiler -V </dev/null >&5) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }
19060
19061echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19062echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19063if test "${ac_cv_c_compiler_gnu+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19065else
19066 cat >conftest.$ac_ext <<_ACEOF
19067/* confdefs.h. */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
19072
19073int
19074main ()
19075{
19076#ifndef __GNUC__
19077 choke me
19078#endif
19079
19080 ;
19081 return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext
19085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086 (eval $ac_compile) 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag"
19094 || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_compiler_gnu=yes
19107else
19108 echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111ac_compiler_gnu=no
19112fi
19113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19114ac_cv_c_compiler_gnu=$ac_compiler_gnu
19115
19116fi
19117echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19118echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19119GCC=`test $ac_compiler_gnu = yes && echo yes`
19120ac_test_CFLAGS=${CFLAGS+set}
19121ac_save_CFLAGS=$CFLAGS
19122CFLAGS="-g"
19123echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19124echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19125if test "${ac_cv_prog_cc_g+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127else
19128 cat >conftest.$ac_ext <<_ACEOF
19129/* confdefs.h. */
19130_ACEOF
19131cat confdefs.h >>conftest.$ac_ext
19132cat >>conftest.$ac_ext <<_ACEOF
19133/* end confdefs.h. */
19134
19135int
19136main ()
19137{
19138
19139 ;
19140 return 0;
19141}
19142_ACEOF
19143rm -f conftest.$ac_objext
19144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19145 (eval $ac_compile) 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_c_werror_flag"
19153 || test ! -s conftest.err'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest.$ac_objext'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
19165 ac_cv_prog_cc_g=yes
19166else
19167 echo "$as_me: failed program was:" >&5
19168sed 's/^/| /' conftest.$ac_ext >&5
19169
19170ac_cv_prog_cc_g=no
19171fi
19172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19173fi
19174echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19175echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19176if test "$ac_test_CFLAGS" = set; then
19177 CFLAGS=$ac_save_CFLAGS
19178elif test $ac_cv_prog_cc_g = yes; then
19179 if test "$GCC" = yes; then
19180 CFLAGS="-g -O2"
19181 else
19182 CFLAGS="-g"
19183 fi
19184else
19185 if test "$GCC" = yes; then
19186 CFLAGS="-O2"
19187 else
19188 CFLAGS=
19189 fi
19190fi
19191echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19192echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19193if test "${ac_cv_prog_cc_stdc+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195else
19196 ac_cv_prog_cc_stdc=no
19197ac_save_CC=$CC
19198cat >conftest.$ac_ext <<_ACEOF
19199/* confdefs.h. */
19200_ACEOF
19201cat confdefs.h >>conftest.$ac_ext
19202cat >>conftest.$ac_ext <<_ACEOF
19203/* end confdefs.h. */
19204#include <stdarg.h>
19205#include <stdio.h>
19206#include <sys/types.h>
19207#include <sys/stat.h>
19208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19209struct buf { int x; };
19210FILE * (*rcsopen) (struct buf *, struct stat *, int);
19211static char *e (p, i)
19212 char **p;
19213 int i;
19214{
19215 return p[i];
19216}
19217static char *f (char * (*g) (char **, int), char **p, ...)
19218{
19219 char *s;
19220 va_list v;
19221 va_start (v,p);
19222 s = g (p, va_arg (v,int));
19223 va_end (v);
19224 return s;
19225}
19226
19227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19228 function prototypes and stuff, but not '\xHH' hex character constants.
19229 These don't provoke an error unfortunately, instead are silently treated
19230 as 'x'. The following induces an error, until -std1 is added to get
19231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19232 array size at least. It's necessary to write '\x00'==0 to get something
19233 that's true only with -std1. */
19234int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19235
19236int test (int i, double x);
19237struct s1 {int (*f) (int a);};
19238struct s2 {int (*f) (double a);};
19239int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19240int argc;
19241char **argv;
19242int
19243main ()
19244{
19245return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19246 ;
19247 return 0;
19248}
19249_ACEOF
19250# Don't try gcc -ansi; that turns off useful extensions and
19251# breaks some systems' header files.
19252# AIX -qlanglvl=ansi
19253# Ultrix and OSF/1 -std1
19254# HP-UX 10.20 and later -Ae
19255# HP-UX older versions -Aa -D_HPUX_SOURCE
19256# SVR4 -Xc -D__EXTENSIONS__
19257for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19258do
19259 CC="$ac_save_CC $ac_arg"
19260 rm -f conftest.$ac_objext
19261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262 (eval $ac_compile) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag"
19270 || test ! -s conftest.err'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_cv_prog_cc_stdc=$ac_arg
19283break
19284else
19285 echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288fi
19289rm -f conftest.err conftest.$ac_objext
19290done
19291rm -f conftest.$ac_ext conftest.$ac_objext
19292CC=$ac_save_CC
19293
19294fi
19295
19296case "x$ac_cv_prog_cc_stdc" in
19297 x|xno)
19298 echo "$as_me:$LINENO: result: none needed" >&5
19299echo "${ECHO_T}none needed" >&6 ;;
19300 *)
19301 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19302echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19303 CC="$CC $ac_cv_prog_cc_stdc" ;;
19304esac
19305
19306# Some people use a C++ compiler to compile C. Since we use `exit',
19307# in C++ we need to declare it. In case someone uses the same compiler
19308# for both compiling C and C++ we need to have the C++ compiler decide
19309# the declaration of exit, since it's the most demanding environment.
19310cat >conftest.$ac_ext <<_ACEOF
19311#ifndef __cplusplus
19312 choke me
19313#endif
19314_ACEOF
19315rm -f conftest.$ac_objext
19316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19317 (eval $ac_compile) 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_c_werror_flag"
19325 || test ! -s conftest.err'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } &&
19331 { ac_try='test -s conftest.$ac_objext'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 for ac_declaration in \
19338 '' \
19339 'extern "C" void std::exit (int) throw (); using std::exit;' \
19340 'extern "C" void std::exit (int); using std::exit;' \
19341 'extern "C" void exit (int) throw ();' \
19342 'extern "C" void exit (int);' \
19343 'void exit (int);'
19344do
19345 cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351$ac_declaration
19352#include <stdlib.h>
19353int
19354main ()
19355{
19356exit (42);
19357 ;
19358 return 0;
19359}
19360_ACEOF
19361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_c_werror_flag"
19371 || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 :
19384else
19385 echo "$as_me: failed program was:" >&5
19386sed 's/^/| /' conftest.$ac_ext >&5
19387
19388continue
19389fi
19390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391 cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
19397$ac_declaration
19398int
19399main ()
19400{
19401exit (42);
19402 ;
19403 return 0;
19404}
19405_ACEOF
19406rm -f conftest.$ac_objext
19407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408 (eval $ac_compile) 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag"
19416 || test ! -s conftest.err'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 break
19429else
19430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433fi
19434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19435done
19436rm -f conftest*
19437if test -n "$ac_declaration"; then
19438 echo '#ifdef __cplusplus' >>confdefs.h
19439 echo $ac_declaration >>confdefs.h
19440 echo '#endif' >>confdefs.h
19441fi
19442
19443else
19444 echo "$as_me: failed program was:" >&5
19445sed 's/^/| /' conftest.$ac_ext >&5
19446
19447fi
19448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19449ac_ext=c
19450ac_cpp='$CPP $CPPFLAGS'
19451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454
19455depcc="$CC" am_compiler_list=
19456
19457echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19458echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19459if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461else
19462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19463 # We make a subdir and do the tests there. Otherwise we can end up
19464 # making bogus files that we don't know about and never remove. For
19465 # instance it was reported that on HP-UX the gcc test will end up
19466 # making a dummy file named `D' -- because `-MD' means `put the output
19467 # in D'.
19468 mkdir conftest.dir
19469 # Copy depcomp to subdir because otherwise we won't find it if we're
19470 # using a relative directory.
19471 cp "$am_depcomp" conftest.dir
19472 cd conftest.dir
19473 # We will build objects and dependencies in a subdirectory because
19474 # it helps to detect inapplicable dependency modes. For instance
19475 # both Tru64's cc and ICC support -MD to output dependencies as a
19476 # side effect of compilation, but ICC will put the dependencies in
19477 # the current directory while Tru64 will put them in the object
19478 # directory.
19479 mkdir sub
19480
19481 am_cv_CC_dependencies_compiler_type=none
19482 if test "$am_compiler_list" = ""; then
19483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19484 fi
19485 for depmode in $am_compiler_list; do
19486 # Setup a source with many dependencies, because some compilers
19487 # like to wrap large dependency lists on column 80 (with \), and
19488 # we should not choose a depcomp mode which is confused by this.
19489 #
19490 # We need to recreate these files for each test, as the compiler may
19491 # overwrite some of them when testing with obscure command lines.
19492 # This happens at least with the AIX C compiler.
19493 : > sub/conftest.c
19494 for i in 1 2 3 4 5 6; do
19495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19496 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19497 # Solaris 8's {/usr,}/bin/sh.
19498 touch sub/conftst$i.h
19499 done
19500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19501
19502 case $depmode in
19503 nosideeffect)
19504 # after this tag, mechanisms are not by side-effect, so they'll
19505 # only be used when explicitly requested
19506 if test "x$enable_dependency_tracking" = xyes; then
19507 continue
19508 else
19509 break
19510 fi
19511 ;;
19512 none) break ;;
19513 esac
19514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19515 # mode. It turns out that the SunPro C++ compiler does not properly
19516 # handle `-M -o', and we need to detect this.
19517 if depmode=$depmode \
19518 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19520 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19521 >/dev/null 2>conftest.err &&
19522 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19523 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19524 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19525 # icc doesn't choke on unknown options, it will just issue warnings
19526 # or remarks (even with -Werror). So we grep stderr for any message
19527 # that says an option was ignored or not supported.
19528 # When given -MP, icc 7.0 and 7.1 complain thusly:
19529 # icc: Command line warning: ignoring option '-M'; no argument required
19530 # The diagnosis changed in icc 8.0:
19531 # icc: Command line remark: option '-MP' not supported
19532 if (grep 'ignoring option' conftest.err ||
19533 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19534 am_cv_CC_dependencies_compiler_type=$depmode
19535 break
19536 fi
19537 fi
19538 done
19539
19540 cd ..
19541 rm -rf conftest.dir
19542else
19543 am_cv_CC_dependencies_compiler_type=none
19544fi
19545
19546fi
19547echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19548echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19549CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19550
19551
19552
19553if
19554 test "x$enable_dependency_tracking" != xno \
19555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19556 am__fastdepCC_TRUE=
19557 am__fastdepCC_FALSE='#'
19558else
19559 am__fastdepCC_TRUE='#'
19560 am__fastdepCC_FALSE=
19561fi
19562
19563
19564ac_ext=c
19565ac_cpp='$CPP $CPPFLAGS'
19566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568ac_compiler_gnu=$ac_cv_c_compiler_gnu
19569echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19570echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
19571# On Suns, sometimes $CPP names a directory.
19572if test -n "$CPP" && test -d "$CPP"; then
19573 CPP=
19574fi
19575if test -z "$CPP"; then
19576 if test "${ac_cv_prog_CPP+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578else
19579 # Double quotes because CPP needs to be expanded
19580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19581 do
19582 ac_preproc_ok=false
19583for ac_c_preproc_warn_flag in '' yes
19584do
19585 # Use a header file that comes with gcc, so configuring glibc
19586 # with a fresh cross-compiler works.
19587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19588 # <limits.h> exists even on freestanding compilers.
19589 # On the NeXT, cc -E runs the code through the compiler's parser,
19590 # not just through cpp. "Syntax error" is here to catch this case.
19591 cat >conftest.$ac_ext <<_ACEOF
19592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h. */
19597#ifdef __STDC__
19598# include <limits.h>
19599#else
19600# include <assert.h>
19601#endif
19602 Syntax error
19603_ACEOF
19604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } >/dev/null; then
19612 if test -s conftest.err; then
19613 ac_cpp_err=$ac_c_preproc_warn_flag
19614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19615 else
19616 ac_cpp_err=
19617 fi
19618else
19619 ac_cpp_err=yes
19620fi
19621if test -z "$ac_cpp_err"; then
19622 :
19623else
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627 # Broken: fails on valid input.
19628continue
19629fi
19630rm -f conftest.err conftest.$ac_ext
19631
19632 # OK, works on sane cases. Now check whether non-existent headers
19633 # can be detected and how.
19634 cat >conftest.$ac_ext <<_ACEOF
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h. */
19640#include <ac_nonexistent.h>
19641_ACEOF
19642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } >/dev/null; then
19650 if test -s conftest.err; then
19651 ac_cpp_err=$ac_c_preproc_warn_flag
19652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19653 else
19654 ac_cpp_err=
19655 fi
19656else
19657 ac_cpp_err=yes
19658fi
19659if test -z "$ac_cpp_err"; then
19660 # Broken: success on invalid input.
19661continue
19662else
19663 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 # Passes both tests.
19667ac_preproc_ok=:
19668break
19669fi
19670rm -f conftest.err conftest.$ac_ext
19671
19672done
19673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19674rm -f conftest.err conftest.$ac_ext
19675if $ac_preproc_ok; then
19676 break
19677fi
19678
19679 done
19680 ac_cv_prog_CPP=$CPP
19681
19682fi
19683 CPP=$ac_cv_prog_CPP
19684else
19685 ac_cv_prog_CPP=$CPP
19686fi
19687echo "$as_me:$LINENO: result: $CPP" >&5
19688echo "${ECHO_T}$CPP" >&6
19689ac_preproc_ok=false
19690for ac_c_preproc_warn_flag in '' yes
19691do
19692 # Use a header file that comes with gcc, so configuring glibc
19693 # with a fresh cross-compiler works.
19694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19695 # <limits.h> exists even on freestanding compilers.
19696 # On the NeXT, cc -E runs the code through the compiler's parser,
19697 # not just through cpp. "Syntax error" is here to catch this case.
19698 cat >conftest.$ac_ext <<_ACEOF
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
19703/* end confdefs.h. */
19704#ifdef __STDC__
19705# include <limits.h>
19706#else
19707# include <assert.h>
19708#endif
19709 Syntax error
19710_ACEOF
19711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19713 ac_status=$?
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } >/dev/null; then
19719 if test -s conftest.err; then
19720 ac_cpp_err=$ac_c_preproc_warn_flag
19721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19722 else
19723 ac_cpp_err=
19724 fi
19725else
19726 ac_cpp_err=yes
19727fi
19728if test -z "$ac_cpp_err"; then
19729 :
19730else
19731 echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 # Broken: fails on valid input.
19735continue
19736fi
19737rm -f conftest.err conftest.$ac_ext
19738
19739 # OK, works on sane cases. Now check whether non-existent headers
19740 # can be detected and how.
19741 cat >conftest.$ac_ext <<_ACEOF
19742/* confdefs.h. */
19743_ACEOF
19744cat confdefs.h >>conftest.$ac_ext
19745cat >>conftest.$ac_ext <<_ACEOF
19746/* end confdefs.h. */
19747#include <ac_nonexistent.h>
19748_ACEOF
19749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } >/dev/null; then
19757 if test -s conftest.err; then
19758 ac_cpp_err=$ac_c_preproc_warn_flag
19759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19760 else
19761 ac_cpp_err=
19762 fi
19763else
19764 ac_cpp_err=yes
19765fi
19766if test -z "$ac_cpp_err"; then
19767 # Broken: success on invalid input.
19768continue
19769else
19770 echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773 # Passes both tests.
19774ac_preproc_ok=:
19775break
19776fi
19777rm -f conftest.err conftest.$ac_ext
19778
19779done
19780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19781rm -f conftest.err conftest.$ac_ext
19782if $ac_preproc_ok; then
19783 :
19784else
19785 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19786See \`config.log' for more details." >&5
19787echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19788See \`config.log' for more details." >&2;}
19789 { (exit 1); exit 1; }; }
19790fi
19791
19792ac_ext=c
19793ac_cpp='$CPP $CPPFLAGS'
19794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19796ac_compiler_gnu=$ac_cv_c_compiler_gnu
19797
19798ac_ext=cc
19799ac_cpp='$CXXCPP $CPPFLAGS'
19800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19803if test -n "$ac_tool_prefix"; then
19804 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19805 do
19806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19808echo "$as_me:$LINENO: checking for $ac_word" >&5
19809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19810if test "${ac_cv_prog_CXX+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19812else
19813 if test -n "$CXX"; then
19814 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19815else
19816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19817for as_dir in $PATH
19818do
19819 IFS=$as_save_IFS
19820 test -z "$as_dir" && as_dir=.
19821 for ac_exec_ext in '' $ac_executable_extensions; do
19822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19823 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19825 break 2
19826 fi
19827done
19828done
19829
19830fi
19831fi
19832CXX=$ac_cv_prog_CXX
19833if test -n "$CXX"; then
19834 echo "$as_me:$LINENO: result: $CXX" >&5
19835echo "${ECHO_T}$CXX" >&6
19836else
19837 echo "$as_me:$LINENO: result: no" >&5
19838echo "${ECHO_T}no" >&6
19839fi
19840
19841 test -n "$CXX" && break
19842 done
19843fi
19844if test -z "$CXX"; then
19845 ac_ct_CXX=$CXX
19846 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19847do
19848 # Extract the first word of "$ac_prog", so it can be a program name with args.
19849set dummy $ac_prog; ac_word=$2
19850echo "$as_me:$LINENO: checking for $ac_word" >&5
19851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19852if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19854else
19855 if test -n "$ac_ct_CXX"; then
19856 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19857else
19858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19859for as_dir in $PATH
19860do
19861 IFS=$as_save_IFS
19862 test -z "$as_dir" && as_dir=.
19863 for ac_exec_ext in '' $ac_executable_extensions; do
19864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19865 ac_cv_prog_ac_ct_CXX="$ac_prog"
19866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19867 break 2
19868 fi
19869done
19870done
19871
19872fi
19873fi
19874ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19875if test -n "$ac_ct_CXX"; then
19876 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19877echo "${ECHO_T}$ac_ct_CXX" >&6
19878else
19879 echo "$as_me:$LINENO: result: no" >&5
19880echo "${ECHO_T}no" >&6
19881fi
19882
19883 test -n "$ac_ct_CXX" && break
19884done
19885test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19886
19887 CXX=$ac_ct_CXX
19888fi
19889
19890
19891# Provide some information about the compiler.
19892echo "$as_me:$LINENO:" \
19893 "checking for C++ compiler version" >&5
19894ac_compiler=`set X $ac_compile; echo $2`
19895{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19896 (eval $ac_compiler --version </dev/null >&5) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }
19900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19901 (eval $ac_compiler -v </dev/null >&5) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }
19905{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19906 (eval $ac_compiler -V </dev/null >&5) 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }
19910
19911echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19912echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19913if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915else
19916 cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922
19923int
19924main ()
19925{
19926#ifndef __GNUC__
19927 choke me
19928#endif
19929
19930 ;
19931 return 0;
19932}
19933_ACEOF
19934rm -f conftest.$ac_objext
19935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19936 (eval $ac_compile) 2>conftest.er1
19937 ac_status=$?
19938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } &&
19943 { ac_try='test -z "$ac_cxx_werror_flag"
19944 || test ! -s conftest.err'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest.$ac_objext'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_compiler_gnu=yes
19957else
19958 echo "$as_me: failed program was:" >&5
19959sed 's/^/| /' conftest.$ac_ext >&5
19960
19961ac_compiler_gnu=no
19962fi
19963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19964ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19965
19966fi
19967echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19968echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19969GXX=`test $ac_compiler_gnu = yes && echo yes`
19970ac_test_CXXFLAGS=${CXXFLAGS+set}
19971ac_save_CXXFLAGS=$CXXFLAGS
19972CXXFLAGS="-g"
19973echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19974echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19975if test "${ac_cv_prog_cxx_g+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978 cat >conftest.$ac_ext <<_ACEOF
19979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
19983/* end confdefs.h. */
19984
19985int
19986main ()
19987{
19988
19989 ;
19990 return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext
19994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } &&
20002 { ac_try='test -z "$ac_cxx_werror_flag"
20003 || test ! -s conftest.err'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; } &&
20009 { ac_try='test -s conftest.$ac_objext'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 ac_cv_prog_cxx_g=yes
20016else
20017 echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020ac_cv_prog_cxx_g=no
20021fi
20022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023fi
20024echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20025echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20026if test "$ac_test_CXXFLAGS" = set; then
20027 CXXFLAGS=$ac_save_CXXFLAGS
20028elif test $ac_cv_prog_cxx_g = yes; then
20029 if test "$GXX" = yes; then
20030 CXXFLAGS="-g -O2"
20031 else
20032 CXXFLAGS="-g"
20033 fi
20034else
20035 if test "$GXX" = yes; then
20036 CXXFLAGS="-O2"
20037 else
20038 CXXFLAGS=
20039 fi
20040fi
20041for ac_declaration in \
20042 '' \
20043 'extern "C" void std::exit (int) throw (); using std::exit;' \
20044 'extern "C" void std::exit (int); using std::exit;' \
20045 'extern "C" void exit (int) throw ();' \
20046 'extern "C" void exit (int);' \
20047 'void exit (int);'
20048do
20049 cat >conftest.$ac_ext <<_ACEOF
20050/* confdefs.h. */
20051_ACEOF
20052cat confdefs.h >>conftest.$ac_ext
20053cat >>conftest.$ac_ext <<_ACEOF
20054/* end confdefs.h. */
20055$ac_declaration
20056#include <stdlib.h>
20057int
20058main ()
20059{
20060exit (42);
20061 ;
20062 return 0;
20063}
20064_ACEOF
20065rm -f conftest.$ac_objext
20066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067 (eval $ac_compile) 2>conftest.er1
20068 ac_status=$?
20069 grep -v '^ *+' conftest.er1 >conftest.err
20070 rm -f conftest.er1
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
20074 { ac_try='test -z "$ac_cxx_werror_flag"
20075 || test ! -s conftest.err'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 :
20088else
20089 echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
20092continue
20093fi
20094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20095 cat >conftest.$ac_ext <<_ACEOF
20096/* confdefs.h. */
20097_ACEOF
20098cat confdefs.h >>conftest.$ac_ext
20099cat >>conftest.$ac_ext <<_ACEOF
20100/* end confdefs.h. */
20101$ac_declaration
20102int
20103main ()
20104{
20105exit (42);
20106 ;
20107 return 0;
20108}
20109_ACEOF
20110rm -f conftest.$ac_objext
20111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112 (eval $ac_compile) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_cxx_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 break
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137fi
20138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20139done
20140rm -f conftest*
20141if test -n "$ac_declaration"; then
20142 echo '#ifdef __cplusplus' >>confdefs.h
20143 echo $ac_declaration >>confdefs.h
20144 echo '#endif' >>confdefs.h
20145fi
20146
20147ac_ext=c
20148ac_cpp='$CPP $CPPFLAGS'
20149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151ac_compiler_gnu=$ac_cv_c_compiler_gnu
20152
20153depcc="$CXX" am_compiler_list=
20154
20155echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20156echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20157if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159else
20160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20161 # We make a subdir and do the tests there. Otherwise we can end up
20162 # making bogus files that we don't know about and never remove. For
20163 # instance it was reported that on HP-UX the gcc test will end up
20164 # making a dummy file named `D' -- because `-MD' means `put the output
20165 # in D'.
20166 mkdir conftest.dir
20167 # Copy depcomp to subdir because otherwise we won't find it if we're
20168 # using a relative directory.
20169 cp "$am_depcomp" conftest.dir
20170 cd conftest.dir
20171 # We will build objects and dependencies in a subdirectory because
20172 # it helps to detect inapplicable dependency modes. For instance
20173 # both Tru64's cc and ICC support -MD to output dependencies as a
20174 # side effect of compilation, but ICC will put the dependencies in
20175 # the current directory while Tru64 will put them in the object
20176 # directory.
20177 mkdir sub
20178
20179 am_cv_CXX_dependencies_compiler_type=none
20180 if test "$am_compiler_list" = ""; then
20181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20182 fi
20183 for depmode in $am_compiler_list; do
20184 # Setup a source with many dependencies, because some compilers
20185 # like to wrap large dependency lists on column 80 (with \), and
20186 # we should not choose a depcomp mode which is confused by this.
20187 #
20188 # We need to recreate these files for each test, as the compiler may
20189 # overwrite some of them when testing with obscure command lines.
20190 # This happens at least with the AIX C compiler.
20191 : > sub/conftest.c
20192 for i in 1 2 3 4 5 6; do
20193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20195 # Solaris 8's {/usr,}/bin/sh.
20196 touch sub/conftst$i.h
20197 done
20198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20199
20200 case $depmode in
20201 nosideeffect)
20202 # after this tag, mechanisms are not by side-effect, so they'll
20203 # only be used when explicitly requested
20204 if test "x$enable_dependency_tracking" = xyes; then
20205 continue
20206 else
20207 break
20208 fi
20209 ;;
20210 none) break ;;
20211 esac
20212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20213 # mode. It turns out that the SunPro C++ compiler does not properly
20214 # handle `-M -o', and we need to detect this.
20215 if depmode=$depmode \
20216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20219 >/dev/null 2>conftest.err &&
20220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20223 # icc doesn't choke on unknown options, it will just issue warnings
20224 # or remarks (even with -Werror). So we grep stderr for any message
20225 # that says an option was ignored or not supported.
20226 # When given -MP, icc 7.0 and 7.1 complain thusly:
20227 # icc: Command line warning: ignoring option '-M'; no argument required
20228 # The diagnosis changed in icc 8.0:
20229 # icc: Command line remark: option '-MP' not supported
20230 if (grep 'ignoring option' conftest.err ||
20231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20232 am_cv_CXX_dependencies_compiler_type=$depmode
20233 break
20234 fi
20235 fi
20236 done
20237
20238 cd ..
20239 rm -rf conftest.dir
20240else
20241 am_cv_CXX_dependencies_compiler_type=none
20242fi
20243
20244fi
20245echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20246echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20247CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20248
20249
20250
20251if
20252 test "x$enable_dependency_tracking" != xno \
20253 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20254 am__fastdepCXX_TRUE=
20255 am__fastdepCXX_FALSE='#'
20256else
20257 am__fastdepCXX_TRUE='#'
20258 am__fastdepCXX_FALSE=
20259fi
20260
20261
20262# Extract the first word of "ld", so it can be a program name with args.
20263set dummy ld; ac_word=$2
20264echo "$as_me:$LINENO: checking for $ac_word" >&5
20265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20266if test "${ac_cv_prog_LD+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268else
20269 if test -n "$LD"; then
20270 ac_cv_prog_LD="$LD" # Let the user override the test.
20271else
20272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273for as_dir in $PATH
20274do
20275 IFS=$as_save_IFS
20276 test -z "$as_dir" && as_dir=.
20277 for ac_exec_ext in '' $ac_executable_extensions; do
20278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20279 ac_cv_prog_LD="ld"
20280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20281 break 2
20282 fi
20283done
20284done
20285
20286fi
20287fi
20288LD=$ac_cv_prog_LD
20289if test -n "$LD"; then
20290 echo "$as_me:$LINENO: result: $LD" >&5
20291echo "${ECHO_T}$LD" >&6
20292else
20293 echo "$as_me:$LINENO: result: no" >&5
20294echo "${ECHO_T}no" >&6
20295fi
20296
20297test "$LD" || { { echo "$as_me:$LINENO: error: ld not found" >&5
20298echo "$as_me: error: ld not found" >&2;}
20299 { (exit 1); exit 1; }; }
20300
20301
20302echo "$as_me:$LINENO: checking for kernel OProfile support" >&5
20303echo $ECHO_N "checking for kernel OProfile support... $ECHO_C" >&6
20304
20305# Check whether --with-kernel-support or --without-kernel-support was given.
20306if test "${with_kernel_support+set}" = set; then
20307 withval="$with_kernel_support"
20308 if test "$withval" = "yes"; then
20309 OPROFILE_26=yes
20310fi
20311
20312fi;
20313
20314if test "$OPROFILE_26" != "yes"; then
20315
20316
20317 KSRC=/lib/modules/`uname -r`/build
20318
20319# Check whether --with-linux or --without-linux was given.
20320if test "${with_linux+set}" = set; then
20321 withval="$with_linux"
20322 KSRC=$withval
20323fi;
20324 KINC=$KSRC/include
20325
20326
20327
20328SAVE_CFLAGS=$CFLAGS
20329CFLAGS="-I$KINC -O2 -D__KERNEL__"
20330cat >conftest.$ac_ext <<_ACEOF
20331/* confdefs.h. */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h. */
20336#include <linux/autoconf.h>
20337int
20338main ()
20339{
20340
20341#ifndef CONFIG_OPROFILE
20342break_me_hard(\\\);
20343#endif
20344
20345 ;
20346 return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext
20350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20351 (eval $ac_compile) 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -z "$ac_c_werror_flag"
20359 || test ! -s conftest.err'
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; } &&
20365 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20371 OPROFILE_26=yes
20372else
20373 echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376OPROFILE_26=no
20377fi
20378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20379CFLAGS=$SAVE_CFLAGS
20380
20381
20382SAVE_CFLAGS=$CFLAGS
20383CFLAGS="-I$KINC -O2 -D__KERNEL__"
20384cat >conftest.$ac_ext <<_ACEOF
20385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
20390#include <linux/autoconf.h>
20391int
20392main ()
20393{
20394
20395#ifndef CONFIG_OPROFILE_MODULE
20396break_me_hard(\\\);
20397#endif
20398
20399 ;
20400 return 0;
20401}
20402_ACEOF
20403rm -f conftest.$ac_objext
20404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20405 (eval $ac_compile) 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } &&
20412 { ac_try='test -z "$ac_c_werror_flag"
20413 || test ! -s conftest.err'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 OPROFILE_26=yes
20426else
20427 echo "$as_me: failed program was:" >&5
20428sed 's/^/| /' conftest.$ac_ext >&5
20429
20430OPROFILE_26=$OPROFILE_26
20431fi
20432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433CFLAGS=$SAVE_CFLAGS
20434
20435fi
20436echo "$as_me:$LINENO: result: $OPROFILE_26" >&5
20437echo "${ECHO_T}$OPROFILE_26" >&6
20438
20439
20440
20441if test "$OPROFILE_26" = yes; then
20442 kernel_support_TRUE=
20443 kernel_support_FALSE='#'
20444else
20445 kernel_support_TRUE='#'
20446 kernel_support_FALSE=
20447fi
20448
20449
20450
20451
20452if test "$OPROFILE_26" = "no"; then
20453
20454if test ! -f $KINC/linux/autoconf.h; then
20455 { { echo "$as_me:$LINENO: error: no suitably configured kernel include tree found" >&5
20456echo "$as_me: error: no suitably configured kernel include tree found" >&2;}
20457 { (exit 1); exit 1; }; }
20458fi
20459
20460
20461
20462echo "$as_me:$LINENO: checking for kernel version" >&5
20463echo $ECHO_N "checking for kernel version... $ECHO_C" >&6
20464eval KVERS=`gcc -I$KINC -E -dM $KINC/linux/version.h | grep -w UTS_RELEASE | awk '{print $3}'`
20465echo "$as_me:$LINENO: result: $KVERS" >&5
20466echo "${ECHO_T}$KVERS" >&6
20467case "$KVERS" in
204682.2.*|2.4.*) ;;
20469*) { { echo "$as_me:$LINENO: error: Unsupported kernel version" >&5
20470echo "$as_me: error: Unsupported kernel version" >&2;}
20471 { (exit 1); exit 1; }; }
20472esac
20473
20474echo "$as_me:$LINENO: checking kernel version" >&5
20475echo $ECHO_N "checking kernel version... $ECHO_C" >&6
20476
20477SAVE_CFLAGS=$CFLAGS
20478CFLAGS="-I$KINC -D__KERNEL__ -Werror"
20479cat >conftest.$ac_ext <<_ACEOF
20480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
20485
20486 #include <linux/version.h>
20487
20488int
20489main ()
20490{
20491
20492 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 2, 10)
20493 break_me_hard(\\\);
20494 #endif
20495
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502 (eval $ac_compile) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 echo "$as_me:$LINENO: result: ok" >&5
20523echo "${ECHO_T}ok" >&6
20524else
20525 echo "$as_me: failed program was:" >&5
20526sed 's/^/| /' conftest.$ac_ext >&5
20527
20528{ { echo "$as_me:$LINENO: error: check html documentation install section" >&5
20529echo "$as_me: error: check html documentation install section" >&2;}
20530 { (exit 1); exit 1; }; }
20531fi
20532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533CFLAGS=$SAVE_CFLAGS
20534
20535
20536echo "$as_me:$LINENO: checking for $KINC/linux/spinlock.h" >&5
20537echo $ECHO_N "checking for $KINC/linux/spinlock.h... $ECHO_C" >&6
20538if test -f $KINC/linux/spinlock.h; then
20539 EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DHAVE_LINUX_SPINLOCK_HEADER"
20540 echo "$as_me:$LINENO: result: yes" >&5
20541echo "${ECHO_T}yes" >&6
20542else
20543 echo "$as_me:$LINENO: result: no" >&5
20544echo "${ECHO_T}no" >&6
20545fi
20546
20547echo "$as_me:$LINENO: checking for rtc_lock" >&5
20548echo $ECHO_N "checking for rtc_lock... $ECHO_C" >&6
20549gcc -I$KINC -E $KINC/linux/mc146818rtc.h | grep rtc_lock >/dev/null
20550if test "$?" -eq 0; then
20551 EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DRTC_LOCK"
20552 echo "$as_me:$LINENO: result: yes" >&5
20553echo "${ECHO_T}yes" >&6
20554else
20555 echo "$as_me:$LINENO: result: no" >&5
20556echo "${ECHO_T}no" >&6
20557fi
20558
20559arch="unknown"
20560echo "$as_me:$LINENO: checking for x86 architecture" >&5
20561echo $ECHO_N "checking for x86 architecture... $ECHO_C" >&6
20562
20563SAVE_CFLAGS=$CFLAGS
20564CFLAGS="-I$KINC -O2 -D__KERNEL__"
20565cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h. */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h. */
20571#include <linux/autoconf.h>
20572int
20573main ()
20574{
20575
20576#ifndef CONFIG_X86
20577break_me_hard(\\\);
20578#endif
20579
20580 ;
20581 return 0;
20582}
20583_ACEOF
20584rm -f conftest.$ac_objext
20585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20586 (eval $ac_compile) 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
20593 { ac_try='test -z "$ac_c_werror_flag"
20594 || test ! -s conftest.err'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 x86=1
20607else
20608 echo "$as_me: failed program was:" >&5
20609sed 's/^/| /' conftest.$ac_ext >&5
20610
20611x86=0
20612fi
20613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20614CFLAGS=$SAVE_CFLAGS
20615
20616
20617SAVE_CFLAGS=$CFLAGS
20618CFLAGS="-I$KINC -O2 -D__KERNEL__"
20619cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
20625#include <linux/autoconf.h>
20626int
20627main ()
20628{
20629
20630#ifndef CONFIG_X86_WP_WORKS_OK
20631break_me_hard(\\\);
20632#endif
20633
20634 ;
20635 return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext
20639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20640 (eval $ac_compile) 2>conftest.er1
20641 ac_status=$?
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
20647 { ac_try='test -z "$ac_c_werror_flag"
20648 || test ! -s conftest.err'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 x86=1
20661else
20662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665x86=$x86
20666fi
20667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20668CFLAGS=$SAVE_CFLAGS
20669
20670x=no
20671test "x$x86" = "x1" && x=yes
20672echo "$as_me:$LINENO: result: $x" >&5
20673echo "${ECHO_T}$x" >&6
20674test "$x86" = 1 && arch="x86"
20675
20676if test "$arch" = "unknown"; then
20677 echo "$as_me:$LINENO: checking for ia64 architecture" >&5
20678echo $ECHO_N "checking for ia64 architecture... $ECHO_C" >&6
20679
20680SAVE_CFLAGS=$CFLAGS
20681CFLAGS="-I$KINC -O2 -D__KERNEL__"
20682cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
20688#include <linux/autoconf.h>
20689int
20690main ()
20691{
20692
20693#ifndef CONFIG_IA64
20694break_me_hard(\\\);
20695#endif
20696
20697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703 (eval $ac_compile) 2>conftest.er1
20704 ac_status=$?
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } &&
20710 { ac_try='test -z "$ac_c_werror_flag"
20711 || test ! -s conftest.err'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; } &&
20717 { ac_try='test -s conftest.$ac_objext'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ia64=1
20724else
20725 echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728ia64=0
20729fi
20730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20731CFLAGS=$SAVE_CFLAGS
20732
20733 x=no
20734test "x$ia64" = "x1" && x=yes
20735echo "$as_me:$LINENO: result: $x" >&5
20736echo "${ECHO_T}$x" >&6
20737 test "$ia64" = 1 && arch="ia64"
20738fi
20739
20740test "$arch" = "unknown" && { { echo "$as_me:$LINENO: error: Unsupported architecture" >&5
20741echo "$as_me: error: Unsupported architecture" >&2;}
20742 { (exit 1); exit 1; }; }
20743
20744echo "$as_me:$LINENO: checking arch/kernel version combination" >&5
20745echo $ECHO_N "checking arch/kernel version combination... $ECHO_C" >&6
20746case "$arch" in
20747ia64)
20748
20749SAVE_CFLAGS=$CFLAGS
20750CFLAGS="-I$KINC -D__KERNEL__ -Werror"
20751cat >conftest.$ac_ext <<_ACEOF
20752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
20757
20758 #include <linux/version.h>
20759
20760int
20761main ()
20762{
20763
20764 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 18)
20765 break_me_hard(\\\);
20766 #endif
20767
20768 ;
20769 return 0;
20770}
20771_ACEOF
20772rm -f conftest.$ac_objext
20773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774 (eval $ac_compile) 2>conftest.er1
20775 ac_status=$?
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
20781 { ac_try='test -z "$ac_c_werror_flag"
20782 || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest.$ac_objext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 echo "$as_me:$LINENO: result: ok" >&5
20795echo "${ECHO_T}ok" >&6
20796else
20797 echo "$as_me: failed program was:" >&5
20798sed 's/^/| /' conftest.$ac_ext >&5
20799
20800{ { echo "$as_me:$LINENO: error: unsupported arch/kernel" >&5
20801echo "$as_me: error: unsupported arch/kernel" >&2;}
20802 { (exit 1); exit 1; }; }
20803fi
20804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20805CFLAGS=$SAVE_CFLAGS
20806 ;;
20807*) echo "$as_me:$LINENO: result: ok" >&5
20808echo "${ECHO_T}ok" >&6
20809esac
20810
20811echo "$as_me:$LINENO: checking for preempt patch" >&5
20812echo $ECHO_N "checking for preempt patch... $ECHO_C" >&6
20813
20814SAVE_CFLAGS=$CFLAGS
20815CFLAGS="-I$KINC -O2 -D__KERNEL__"
20816cat >conftest.$ac_ext <<_ACEOF
20817/* confdefs.h. */
20818_ACEOF
20819cat confdefs.h >>conftest.$ac_ext
20820cat >>conftest.$ac_ext <<_ACEOF
20821/* end confdefs.h. */
20822#include <linux/autoconf.h>
20823int
20824main ()
20825{
20826
20827#ifndef CONFIG_PREEMPT
20828break_me_hard(\\\);
20829#endif
20830
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext
20836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837 (eval $ac_compile) 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_c_werror_flag"
20845 || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest.$ac_objext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 preempt=1
20858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862preempt=0
20863fi
20864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20865CFLAGS=$SAVE_CFLAGS
20866
20867x=no
20868test "x$preempt" = "x1" && x=yes
20869echo "$as_me:$LINENO: result: $x" >&5
20870echo "${ECHO_T}$x" >&6
20871test "$preempt" = 0 || { { echo "$as_me:$LINENO: error: unsupported kernel configuration : CONFIG_PREEMPT" >&5
20872echo "$as_me: error: unsupported kernel configuration : CONFIG_PREEMPT" >&2;}
20873 { (exit 1); exit 1; }; }
20874
20875
20876
20877MODINSTALLDIR=/lib/modules/$KVERS
20878
20879OPROFILE_MODULE_ARCH=$arch
20880
20881
20882
20883fi
20884
20885
20886# Check whether --with-module-dir or --without-module-dir was given.
20887if test "${with_module_dir+set}" = set; then
20888 withval="$with_module_dir"
20889 MODINSTALLDIR=$withval
20890fi;
20891
20892
20893
20894# Check whether --with-java or --without-java was given.
20895if test "${with_java+set}" = set; then
20896 withval="$with_java"
20897 JAVA_HOMEDIR=$withval
20898fi;
20899
20900
20901if test -n "$JAVA_HOMEDIR"; then
20902 as_ac_File=`echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmti.h"" | $as_tr_sh`
20903echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmti.h\"" >&5
20904echo $ECHO_N "checking for \"$JAVA_HOMEDIR/include/jvmti.h\"... $ECHO_C" >&6
20905if eval "test \"\${$as_ac_File+set}\" = set"; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907else
20908 test "$cross_compiling" = yes &&
20909 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20910echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20911 { (exit 1); exit 1; }; }
20912if test -r ""$JAVA_HOMEDIR/include/jvmti.h""; then
20913 eval "$as_ac_File=yes"
20914else
20915 eval "$as_ac_File=no"
20916fi
20917fi
20918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
20919echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20920if test `eval echo '${'$as_ac_File'}'` = yes; then
20921 JVMTI_H_EXISTS="yes"
20922fi
20923
20924 as_ac_File=`echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmpi.h"" | $as_tr_sh`
20925echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"" >&5
20926echo $ECHO_N "checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"... $ECHO_C" >&6
20927if eval "test \"\${$as_ac_File+set}\" = set"; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929else
20930 test "$cross_compiling" = yes &&
20931 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20932echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20933 { (exit 1); exit 1; }; }
20934if test -r ""$JAVA_HOMEDIR/include/jvmpi.h""; then
20935 eval "$as_ac_File=yes"
20936else
20937 eval "$as_ac_File=no"
20938fi
20939fi
20940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
20941echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20942if test `eval echo '${'$as_ac_File'}'` = yes; then
20943 JVMPI_H_EXISTS="yes"
20944fi
20945
20946fi
20947
20948
20949
20950if test -n "$JVMTI_H_EXISTS"; then
20951 BUILD_JVMTI_AGENT_TRUE=
20952 BUILD_JVMTI_AGENT_FALSE='#'
20953else
20954 BUILD_JVMTI_AGENT_TRUE='#'
20955 BUILD_JVMTI_AGENT_FALSE=
20956fi
20957
20958
20959
20960if test -n "$JVMPI_H_EXISTS"; then
20961 BUILD_JVMPI_AGENT_TRUE=
20962 BUILD_JVMPI_AGENT_FALSE='#'
20963else
20964 BUILD_JVMPI_AGENT_TRUE='#'
20965 BUILD_JVMPI_AGENT_FALSE=
20966fi
20967
20968
20969
20970echo "$as_me:$LINENO: checking whether malloc attribute is understood" >&5
20971echo $ECHO_N "checking whether malloc attribute is understood... $ECHO_C" >&6
20972SAVE_CFLAGS=$CFLAGS
20973CFLAGS="-Werror $CFLAGS"
20974cat >conftest.$ac_ext <<_ACEOF
20975/* confdefs.h. */
20976_ACEOF
20977cat confdefs.h >>conftest.$ac_ext
20978cat >>conftest.$ac_ext <<_ACEOF
20979/* end confdefs.h. */
20980
20981int
20982main ()
20983{
20984
20985void monkey() __attribute__((malloc));
20986
20987 ;
20988 return 0;
20989}
20990_ACEOF
20991rm -f conftest.$ac_objext
20992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993 (eval $ac_compile) 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag"
21001 || test ! -s conftest.err'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; } &&
21007 { ac_try='test -s conftest.$ac_objext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 echo "$as_me:$LINENO: result: yes" >&5
21014echo "${ECHO_T}yes" >&6;
21015cat >>confdefs.h <<\_ACEOF
21016#define MALLOC_ATTRIBUTE_OK 1
21017_ACEOF
21018
21019else
21020 echo "$as_me: failed program was:" >&5
21021sed 's/^/| /' conftest.$ac_ext >&5
21022
21023echo "$as_me:$LINENO: result: no" >&5
21024echo "${ECHO_T}no" >&6
21025fi
21026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027CFLAGS=$SAVE_CFLAGS
21028
21029
21030
21031echo "$as_me:$LINENO: checking whether __builtin_expect is understood" >&5
21032echo $ECHO_N "checking whether __builtin_expect is understood... $ECHO_C" >&6
21033SAVE_CFLAGS=$CFLAGS
21034CFLAGS="-Werror $CFLAGS"
21035cat >conftest.$ac_ext <<_ACEOF
21036/* confdefs.h. */
21037_ACEOF
21038cat confdefs.h >>conftest.$ac_ext
21039cat >>conftest.$ac_ext <<_ACEOF
21040/* end confdefs.h. */
21041
21042int
21043main ()
21044{
21045
21046int i;
21047if (__builtin_expect(i, 0)) { }
21048
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053rm -f conftest.$ac_objext conftest$ac_exeext
21054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21055 (eval $ac_link) 2>conftest.er1
21056 ac_status=$?
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -z "$ac_c_werror_flag"
21063 || test ! -s conftest.err'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest$ac_exeext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 echo "$as_me:$LINENO: result: yes" >&5
21076echo "${ECHO_T}yes" >&6; EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK"
21077else
21078 echo "$as_me: failed program was:" >&5
21079sed 's/^/| /' conftest.$ac_ext >&5
21080
21081echo "$as_me:$LINENO: result: no" >&5
21082echo "${ECHO_T}no" >&6;
21083fi
21084rm -f conftest.err conftest.$ac_objext \
21085 conftest$ac_exeext conftest.$ac_ext
21086CFLAGS=$SAVE_CFLAGS
21087
21088
21089
21090
21091
21092topdir=`pwd`
21093
21094
21095
21096
21097# Check whether --with-extra-includes or --without-extra-includes was given.
21098if test "${with_extra_includes+set}" = set; then
21099 withval="$with_extra_includes"
21100 use_extra_includes="$withval"
21101else
21102 use_extra_includes=NO
21103
21104fi;
21105if test -n "$use_extra_includes" && \
21106 test "$use_extra_includes" != "NO"; then
21107 ac_save_ifs=$IFS
21108 IFS=':'
21109 for dir in $use_extra_includes; do
21110 extra_includes="$extra_includes -I$dir"
21111 done
21112 IFS=$ac_save_ifs
21113 CPPFLAGS="$CPPFLAGS $extra_includes"
21114fi
21115
21116
21117# Check whether --with-extra-libs or --without-extra-libs was given.
21118if test "${with_extra_libs+set}" = set; then
21119 withval="$with_extra_libs"
21120 use_extra_libs=$withval
21121else
21122 use_extra_libs=NO
21123
21124fi;
21125if test -n "$use_extra_libs" && \
21126 test "$use_extra_libs" != "NO"; then
21127 ac_save_ifs=$IFS
21128 IFS=':'
21129 for dir in $use_extra_libs; do
21130 extra_libraries="$extra_libraries -L$dir"
21131 done
21132 IFS=$ac_save_ifs
21133 LDFLAGS="$LDFLAGS $extra_libraries"
21134fi
21135
21136
21137
21138ORIG_SAVE_LIBS="$LIBS"
21139
21140
21141
21142for ac_func in sched_setaffinity perfmonctl
21143do
21144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21145echo "$as_me:$LINENO: checking for $ac_func" >&5
21146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21147if eval "test \"\${$as_ac_var+set}\" = set"; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 cat >conftest.$ac_ext <<_ACEOF
21151/* confdefs.h. */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h. */
21156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21158#define $ac_func innocuous_$ac_func
21159
21160/* System header to define __stub macros and hopefully few prototypes,
21161 which can conflict with char $ac_func (); below.
21162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21163 <limits.h> exists even on freestanding compilers. */
21164
21165#ifdef __STDC__
21166# include <limits.h>
21167#else
21168# include <assert.h>
21169#endif
21170
21171#undef $ac_func
21172
21173/* Override any gcc2 internal prototype to avoid an error. */
21174#ifdef __cplusplus
21175extern "C"
21176{
21177#endif
21178/* We use char because int might match the return type of a gcc2
21179 builtin and then its argument prototype would still apply. */
21180char $ac_func ();
21181/* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21185choke me
21186#else
21187char (*f) () = $ac_func;
21188#endif
21189#ifdef __cplusplus
21190}
21191#endif
21192
21193int
21194main ()
21195{
21196return f != $ac_func;
21197 ;
21198 return 0;
21199}
21200_ACEOF
21201rm -f conftest.$ac_objext conftest$ac_exeext
21202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21203 (eval $ac_link) 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest$ac_exeext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 eval "$as_ac_var=yes"
21224else
21225 echo "$as_me: failed program was:" >&5
21226sed 's/^/| /' conftest.$ac_ext >&5
21227
21228eval "$as_ac_var=no"
21229fi
21230rm -f conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21232fi
21233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21234echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21235if test `eval echo '${'$as_ac_var'}'` = yes; then
21236 cat >>confdefs.h <<_ACEOF
21237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21238_ACEOF
21239
21240fi
21241done
21242
21243
21244
21245echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
21246echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
21247if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249else
21250 ac_check_lib_save_LIBS=$LIBS
21251LIBS="-lpopt $LIBS"
21252cat >conftest.$ac_ext <<_ACEOF
21253/* confdefs.h. */
21254_ACEOF
21255cat confdefs.h >>conftest.$ac_ext
21256cat >>conftest.$ac_ext <<_ACEOF
21257/* end confdefs.h. */
21258
21259/* Override any gcc2 internal prototype to avoid an error. */
21260#ifdef __cplusplus
21261extern "C"
21262#endif
21263/* We use char because int might match the return type of a gcc2
21264 builtin and then its argument prototype would still apply. */
21265char poptGetContext ();
21266int
21267main ()
21268{
21269poptGetContext ();
21270 ;
21271 return 0;
21272}
21273_ACEOF
21274rm -f conftest.$ac_objext conftest$ac_exeext
21275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21276 (eval $ac_link) 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } &&
21283 { ac_try='test -z "$ac_c_werror_flag"
21284 || test ! -s conftest.err'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; } &&
21290 { ac_try='test -s conftest$ac_exeext'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }; then
21296 ac_cv_lib_popt_poptGetContext=yes
21297else
21298 echo "$as_me: failed program was:" >&5
21299sed 's/^/| /' conftest.$ac_ext >&5
21300
21301ac_cv_lib_popt_poptGetContext=no
21302fi
21303rm -f conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21305LIBS=$ac_check_lib_save_LIBS
21306fi
21307echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
21308echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
21309if test $ac_cv_lib_popt_poptGetContext = yes; then
21310 cat >>confdefs.h <<_ACEOF
21311#define HAVE_LIBPOPT 1
21312_ACEOF
21313
21314 LIBS="-lpopt $LIBS"
21315
21316else
21317 { { echo "$as_me:$LINENO: error: popt library not found" >&5
21318echo "$as_me: error: popt library not found" >&2;}
21319 { (exit 1); exit 1; }; }
21320fi
21321
21322
21323
21324for ac_header in libiberty.h
21325do
21326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21327if eval "test \"\${$as_ac_Header+set}\" = set"; then
21328 echo "$as_me:$LINENO: checking for $ac_header" >&5
21329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21330if eval "test \"\${$as_ac_Header+set}\" = set"; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332fi
21333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21335else
21336 # Is the header compilable?
21337echo "$as_me:$LINENO: checking $ac_header usability" >&5
21338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21339cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h. */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h. */
21345$ac_includes_default
21346#include <$ac_header>
21347_ACEOF
21348rm -f conftest.$ac_objext
21349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>conftest.er1
21351 ac_status=$?
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
21357 { ac_try='test -z "$ac_c_werror_flag"
21358 || test ! -s conftest.err'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } &&
21364 { ac_try='test -s conftest.$ac_objext'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 ac_header_compiler=yes
21371else
21372 echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
21375ac_header_compiler=no
21376fi
21377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21379echo "${ECHO_T}$ac_header_compiler" >&6
21380
21381# Is the header present?
21382echo "$as_me:$LINENO: checking $ac_header presence" >&5
21383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21384cat >conftest.$ac_ext <<_ACEOF
21385/* confdefs.h. */
21386_ACEOF
21387cat confdefs.h >>conftest.$ac_ext
21388cat >>conftest.$ac_ext <<_ACEOF
21389/* end confdefs.h. */
21390#include <$ac_header>
21391_ACEOF
21392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21394 ac_status=$?
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } >/dev/null; then
21400 if test -s conftest.err; then
21401 ac_cpp_err=$ac_c_preproc_warn_flag
21402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21403 else
21404 ac_cpp_err=
21405 fi
21406else
21407 ac_cpp_err=yes
21408fi
21409if test -z "$ac_cpp_err"; then
21410 ac_header_preproc=yes
21411else
21412 echo "$as_me: failed program was:" >&5
21413sed 's/^/| /' conftest.$ac_ext >&5
21414
21415 ac_header_preproc=no
21416fi
21417rm -f conftest.err conftest.$ac_ext
21418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21419echo "${ECHO_T}$ac_header_preproc" >&6
21420
21421# So? What about this header?
21422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21423 yes:no: )
21424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21428 ac_header_preproc=yes
21429 ;;
21430 no:yes:* )
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21443 (
21444 cat <<\_ASBOX
21445## ------------------------------------------ ##
21446## Report this to the AC_PACKAGE_NAME lists. ##
21447## ------------------------------------------ ##
21448_ASBOX
21449 ) |
21450 sed "s/^/$as_me: WARNING: /" >&2
21451 ;;
21452esac
21453echo "$as_me:$LINENO: checking for $ac_header" >&5
21454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21455if eval "test \"\${$as_ac_Header+set}\" = set"; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457else
21458 eval "$as_ac_Header=\$ac_header_preproc"
21459fi
21460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21462
21463fi
21464if test `eval echo '${'$as_ac_Header'}'` = yes; then
21465 cat >>confdefs.h <<_ACEOF
21466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21467_ACEOF
21468
21469fi
21470
21471done
21472
21473
21474echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
21475echo $ECHO_N "checking for cplus_demangle in -liberty... $ECHO_C" >&6
21476if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478else
21479 ac_check_lib_save_LIBS=$LIBS
21480LIBS="-liberty $LIBS"
21481cat >conftest.$ac_ext <<_ACEOF
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487
21488/* Override any gcc2 internal prototype to avoid an error. */
21489#ifdef __cplusplus
21490extern "C"
21491#endif
21492/* We use char because int might match the return type of a gcc2
21493 builtin and then its argument prototype would still apply. */
21494char cplus_demangle ();
21495int
21496main ()
21497{
21498cplus_demangle ();
21499 ;
21500 return 0;
21501}
21502_ACEOF
21503rm -f conftest.$ac_objext conftest$ac_exeext
21504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21505 (eval $ac_link) 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag"
21513 || test ! -s conftest.err'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; } &&
21519 { ac_try='test -s conftest$ac_exeext'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_lib_iberty_cplus_demangle=yes
21526else
21527 echo "$as_me: failed program was:" >&5
21528sed 's/^/| /' conftest.$ac_ext >&5
21529
21530ac_cv_lib_iberty_cplus_demangle=no
21531fi
21532rm -f conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
21534LIBS=$ac_check_lib_save_LIBS
21535fi
21536echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
21537echo "${ECHO_T}$ac_cv_lib_iberty_cplus_demangle" >&6
21538if test $ac_cv_lib_iberty_cplus_demangle = yes; then
21539 cat >>confdefs.h <<_ACEOF
21540#define HAVE_LIBIBERTY 1
21541_ACEOF
21542
21543 LIBS="-liberty $LIBS"
21544
21545else
21546 { { echo "$as_me:$LINENO: error: liberty library not found" >&5
21547echo "$as_me: error: liberty library not found" >&2;}
21548 { (exit 1); exit 1; }; }
21549fi
21550
21551
21552for ac_func in xcalloc
21553do
21554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21555echo "$as_me:$LINENO: checking for $ac_func" >&5
21556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21557if eval "test \"\${$as_ac_var+set}\" = set"; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21559else
21560 cat >conftest.$ac_ext <<_ACEOF
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
21566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21568#define $ac_func innocuous_$ac_func
21569
21570/* System header to define __stub macros and hopefully few prototypes,
21571 which can conflict with char $ac_func (); below.
21572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21573 <limits.h> exists even on freestanding compilers. */
21574
21575#ifdef __STDC__
21576# include <limits.h>
21577#else
21578# include <assert.h>
21579#endif
21580
21581#undef $ac_func
21582
21583/* Override any gcc2 internal prototype to avoid an error. */
21584#ifdef __cplusplus
21585extern "C"
21586{
21587#endif
21588/* We use char because int might match the return type of a gcc2
21589 builtin and then its argument prototype would still apply. */
21590char $ac_func ();
21591/* The GNU C library defines this for functions which it implements
21592 to always fail with ENOSYS. Some functions are actually named
21593 something starting with __ and the normal name is an alias. */
21594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21595choke me
21596#else
21597char (*f) () = $ac_func;
21598#endif
21599#ifdef __cplusplus
21600}
21601#endif
21602
21603int
21604main ()
21605{
21606return f != $ac_func;
21607 ;
21608 return 0;
21609}
21610_ACEOF
21611rm -f conftest.$ac_objext conftest$ac_exeext
21612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 (eval $ac_link) 2>conftest.er1
21614 ac_status=$?
21615 grep -v '^ *+' conftest.er1 >conftest.err
21616 rm -f conftest.er1
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest$ac_exeext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 eval "$as_ac_var=yes"
21634else
21635 echo "$as_me: failed program was:" >&5
21636sed 's/^/| /' conftest.$ac_ext >&5
21637
21638eval "$as_ac_var=no"
21639fi
21640rm -f conftest.err conftest.$ac_objext \
21641 conftest$ac_exeext conftest.$ac_ext
21642fi
21643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21645if test `eval echo '${'$as_ac_var'}'` = yes; then
21646 cat >>confdefs.h <<_ACEOF
21647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21648_ACEOF
21649
21650fi
21651done
21652
21653
21654for ac_func in xmemdup
21655do
21656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21657echo "$as_me:$LINENO: checking for $ac_func" >&5
21658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21659if eval "test \"\${$as_ac_var+set}\" = set"; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21661else
21662 cat >conftest.$ac_ext <<_ACEOF
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21670#define $ac_func innocuous_$ac_func
21671
21672/* System header to define __stub macros and hopefully few prototypes,
21673 which can conflict with char $ac_func (); below.
21674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21675 <limits.h> exists even on freestanding compilers. */
21676
21677#ifdef __STDC__
21678# include <limits.h>
21679#else
21680# include <assert.h>
21681#endif
21682
21683#undef $ac_func
21684
21685/* Override any gcc2 internal prototype to avoid an error. */
21686#ifdef __cplusplus
21687extern "C"
21688{
21689#endif
21690/* We use char because int might match the return type of a gcc2
21691 builtin and then its argument prototype would still apply. */
21692char $ac_func ();
21693/* The GNU C library defines this for functions which it implements
21694 to always fail with ENOSYS. Some functions are actually named
21695 something starting with __ and the normal name is an alias. */
21696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21697choke me
21698#else
21699char (*f) () = $ac_func;
21700#endif
21701#ifdef __cplusplus
21702}
21703#endif
21704
21705int
21706main ()
21707{
21708return f != $ac_func;
21709 ;
21710 return 0;
21711}
21712_ACEOF
21713rm -f conftest.$ac_objext conftest$ac_exeext
21714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>conftest.er1
21716 ac_status=$?
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } &&
21722 { ac_try='test -z "$ac_c_werror_flag"
21723 || test ! -s conftest.err'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; } &&
21729 { ac_try='test -s conftest$ac_exeext'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 eval "$as_ac_var=yes"
21736else
21737 echo "$as_me: failed program was:" >&5
21738sed 's/^/| /' conftest.$ac_ext >&5
21739
21740eval "$as_ac_var=no"
21741fi
21742rm -f conftest.err conftest.$ac_objext \
21743 conftest$ac_exeext conftest.$ac_ext
21744fi
21745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21747if test `eval echo '${'$as_ac_var'}'` = yes; then
21748 cat >>confdefs.h <<_ACEOF
21749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21750_ACEOF
21751
21752fi
21753done
21754
21755echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21756echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21757if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21759else
21760 ac_check_lib_save_LIBS=$LIBS
21761LIBS="-ldl $LIBS"
21762cat >conftest.$ac_ext <<_ACEOF
21763/* confdefs.h. */
21764_ACEOF
21765cat confdefs.h >>conftest.$ac_ext
21766cat >>conftest.$ac_ext <<_ACEOF
21767/* end confdefs.h. */
21768
21769/* Override any gcc2 internal prototype to avoid an error. */
21770#ifdef __cplusplus
21771extern "C"
21772#endif
21773/* We use char because int might match the return type of a gcc2
21774 builtin and then its argument prototype would still apply. */
21775char dlopen ();
21776int
21777main ()
21778{
21779dlopen ();
21780 ;
21781 return 0;
21782}
21783_ACEOF
21784rm -f conftest.$ac_objext conftest$ac_exeext
21785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21786 (eval $ac_link) 2>conftest.er1
21787 ac_status=$?
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -z "$ac_c_werror_flag"
21794 || test ! -s conftest.err'
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; } &&
21800 { ac_try='test -s conftest$ac_exeext'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_lib_dl_dlopen=yes
21807else
21808 echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811ac_cv_lib_dl_dlopen=no
21812fi
21813rm -f conftest.err conftest.$ac_objext \
21814 conftest$ac_exeext conftest.$ac_ext
21815LIBS=$ac_check_lib_save_LIBS
21816fi
21817echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21818echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21819if test $ac_cv_lib_dl_dlopen = yes; then
21820 LIBS="$LIBS -ldl"; DL_LIB="-ldl"
21821else
21822 DL_LIB=""
21823fi
21824
21825echo "$as_me:$LINENO: checking for main in -lintl" >&5
21826echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
21827if test "${ac_cv_lib_intl_main+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21829else
21830 ac_check_lib_save_LIBS=$LIBS
21831LIBS="-lintl $LIBS"
21832cat >conftest.$ac_ext <<_ACEOF
21833/* confdefs.h. */
21834_ACEOF
21835cat confdefs.h >>conftest.$ac_ext
21836cat >>conftest.$ac_ext <<_ACEOF
21837/* end confdefs.h. */
21838
21839
21840int
21841main ()
21842{
21843main ();
21844 ;
21845 return 0;
21846}
21847_ACEOF
21848rm -f conftest.$ac_objext conftest$ac_exeext
21849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>conftest.er1
21851 ac_status=$?
21852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
21857 { ac_try='test -z "$ac_c_werror_flag"
21858 || test ! -s conftest.err'
21859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860 (eval $ac_try) 2>&5
21861 ac_status=$?
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); }; } &&
21864 { ac_try='test -s conftest$ac_exeext'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 ac_cv_lib_intl_main=yes
21871else
21872 echo "$as_me: failed program was:" >&5
21873sed 's/^/| /' conftest.$ac_ext >&5
21874
21875ac_cv_lib_intl_main=no
21876fi
21877rm -f conftest.err conftest.$ac_objext \
21878 conftest$ac_exeext conftest.$ac_ext
21879LIBS=$ac_check_lib_save_LIBS
21880fi
21881echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
21882echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
21883if test $ac_cv_lib_intl_main = yes; then
21884 LIBS="$LIBS -lintl"; INTL_LIB="-lintl"
21885else
21886 INTL_LIB=""
21887fi
21888
21889
21890echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
21891echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
21892if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21894else
21895 ac_check_lib_save_LIBS=$LIBS
21896LIBS="-lbfd $LIBS"
21897cat >conftest.$ac_ext <<_ACEOF
21898/* confdefs.h. */
21899_ACEOF
21900cat confdefs.h >>conftest.$ac_ext
21901cat >>conftest.$ac_ext <<_ACEOF
21902/* end confdefs.h. */
21903
21904/* Override any gcc2 internal prototype to avoid an error. */
21905#ifdef __cplusplus
21906extern "C"
21907#endif
21908/* We use char because int might match the return type of a gcc2
21909 builtin and then its argument prototype would still apply. */
21910char bfd_openr ();
21911int
21912main ()
21913{
21914bfd_openr ();
21915 ;
21916 return 0;
21917}
21918_ACEOF
21919rm -f conftest.$ac_objext conftest$ac_exeext
21920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21921 (eval $ac_link) 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -z "$ac_c_werror_flag"
21929 || test ! -s conftest.err'
21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; } &&
21935 { ac_try='test -s conftest$ac_exeext'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; }; then
21941 ac_cv_lib_bfd_bfd_openr=yes
21942else
21943 echo "$as_me: failed program was:" >&5
21944sed 's/^/| /' conftest.$ac_ext >&5
21945
21946ac_cv_lib_bfd_bfd_openr=no
21947fi
21948rm -f conftest.err conftest.$ac_objext \
21949 conftest$ac_exeext conftest.$ac_ext
21950LIBS=$ac_check_lib_save_LIBS
21951fi
21952echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
21953echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
21954if test $ac_cv_lib_bfd_bfd_openr = yes; then
21955 LIBS="-lbfd $LIBS"; Z_LIB=""
21956else
21957 echo "$as_me:$LINENO: checking for compress in -lz" >&5
21958echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
21959if test "${ac_cv_lib_z_compress+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21961else
21962 ac_check_lib_save_LIBS=$LIBS
21963LIBS="-lz $LIBS"
21964cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h. */
21970
21971/* Override any gcc2 internal prototype to avoid an error. */
21972#ifdef __cplusplus
21973extern "C"
21974#endif
21975/* We use char because int might match the return type of a gcc2
21976 builtin and then its argument prototype would still apply. */
21977char compress ();
21978int
21979main ()
21980{
21981compress ();
21982 ;
21983 return 0;
21984}
21985_ACEOF
21986rm -f conftest.$ac_objext conftest$ac_exeext
21987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21988 (eval $ac_link) 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } &&
21995 { ac_try='test -z "$ac_c_werror_flag"
21996 || test ! -s conftest.err'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
21999 ac_status=$?
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try='test -s conftest$ac_exeext'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; }; then
22008 ac_cv_lib_z_compress=yes
22009else
22010 echo "$as_me: failed program was:" >&5
22011sed 's/^/| /' conftest.$ac_ext >&5
22012
22013ac_cv_lib_z_compress=no
22014fi
22015rm -f conftest.err conftest.$ac_objext \
22016 conftest$ac_exeext conftest.$ac_ext
22017LIBS=$ac_check_lib_save_LIBS
22018fi
22019echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
22020echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
22021if test $ac_cv_lib_z_compress = yes; then
22022 echo "$as_me:$LINENO: checking for bfd_fdopenr in -lbfd" >&5
22023echo $ECHO_N "checking for bfd_fdopenr in -lbfd... $ECHO_C" >&6
22024if test "${ac_cv_lib_bfd_bfd_fdopenr+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22026else
22027 ac_check_lib_save_LIBS=$LIBS
22028LIBS="-lbfd -lz $LIBS"
22029cat >conftest.$ac_ext <<_ACEOF
22030/* confdefs.h. */
22031_ACEOF
22032cat confdefs.h >>conftest.$ac_ext
22033cat >>conftest.$ac_ext <<_ACEOF
22034/* end confdefs.h. */
22035
22036/* Override any gcc2 internal prototype to avoid an error. */
22037#ifdef __cplusplus
22038extern "C"
22039#endif
22040/* We use char because int might match the return type of a gcc2
22041 builtin and then its argument prototype would still apply. */
22042char bfd_fdopenr ();
22043int
22044main ()
22045{
22046bfd_fdopenr ();
22047 ;
22048 return 0;
22049}
22050_ACEOF
22051rm -f conftest.$ac_objext conftest$ac_exeext
22052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22053 (eval $ac_link) 2>conftest.er1
22054 ac_status=$?
22055 grep -v '^ *+' conftest.er1 >conftest.err
22056 rm -f conftest.er1
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
22060 { ac_try='test -z "$ac_c_werror_flag"
22061 || test ! -s conftest.err'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; } &&
22067 { ac_try='test -s conftest$ac_exeext'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 ac_cv_lib_bfd_bfd_fdopenr=yes
22074else
22075 echo "$as_me: failed program was:" >&5
22076sed 's/^/| /' conftest.$ac_ext >&5
22077
22078ac_cv_lib_bfd_bfd_fdopenr=no
22079fi
22080rm -f conftest.err conftest.$ac_objext \
22081 conftest$ac_exeext conftest.$ac_ext
22082LIBS=$ac_check_lib_save_LIBS
22083fi
22084echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_fdopenr" >&5
22085echo "${ECHO_T}$ac_cv_lib_bfd_bfd_fdopenr" >&6
22086if test $ac_cv_lib_bfd_bfd_fdopenr = yes; then
22087 LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz"
22088else
22089 { { echo "$as_me:$LINENO: error: bfd library not found" >&5
22090echo "$as_me: error: bfd library not found" >&2;}
22091 { (exit 1); exit 1; }; }
22092fi
22093
22094
22095else
22096 { { echo "$as_me:$LINENO: error: libz library not found; required by libbfd" >&5
22097echo "$as_me: error: libz library not found; required by libbfd" >&2;}
22098 { (exit 1); exit 1; }; }
22099fi
22100
22101
22102
22103fi
22104
22105
22106ac_ext=c
22107ac_cpp='$CPP $CPPFLAGS'
22108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22110ac_compiler_gnu=$ac_cv_c_compiler_gnu
22111
22112# Determine if bfd_get_synthetic_symtab macro is available
22113OS="`uname`"
22114if test "$OS" = "Linux"; then
22115 echo "$as_me:$LINENO: checking whether bfd_get_synthetic_symtab() exists in BFD library" >&5
22116echo $ECHO_N "checking whether bfd_get_synthetic_symtab() exists in BFD library... $ECHO_C" >&6
22117 rm -f test-for-synth
22118 cat >conftest.$ac_ext <<_ACEOF
22119/* confdefs.h. */
22120_ACEOF
22121cat confdefs.h >>conftest.$ac_ext
22122cat >>conftest.$ac_ext <<_ACEOF
22123/* end confdefs.h. */
22124#include <bfd.h>
22125int
22126main ()
22127{
22128asymbol * synthsyms; bfd * ibfd = 0;
22129 long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms);
22130 extern const bfd_target bfd_elf64_powerpc_vec;
22131 extern const bfd_target bfd_elf64_powerpcle_vec;
22132 char * ppc_name = bfd_elf64_powerpc_vec.name;
22133 char * ppcle_name = bfd_elf64_powerpcle_vec.name;
22134 printf("%s %s\n", ppc_name, ppcle_name);
22135 ;
22136 return 0;
22137}
22138
22139_ACEOF
22140 $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS -o test-for-synth > /dev/null 2>&1
22141 if test -f test-for-synth; then
22142 echo "yes"
22143 SYNTHESIZE_SYMBOLS='1'
22144 else
22145 echo "no"
22146 SYNTHESIZE_SYMBOLS='0'
22147 fi
22148
22149cat >>confdefs.h <<_ACEOF
22150#define SYNTHESIZE_SYMBOLS $SYNTHESIZE_SYMBOLS
22151_ACEOF
22152
22153 rm -f test-for-synth*
22154
22155fi
22156ac_ext=c
22157ac_cpp='$CPP $CPPFLAGS'
22158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22160ac_compiler_gnu=$ac_cv_c_compiler_gnu
22161
22162
22163
22164
22165# On Cell BE architecture, OProfile uses bfd_openr_iovec when processing some
22166# SPU profiles. To parse embedded SPU ELF on Cell BE, OProfile requires a
22167# version of bfd_openr_iovec that supports the elf32-spu target.
22168# This version of the function also has a 7th parameter that's been added.
22169# First, we check for existence of the base bfd_openr_iovec. If it exists,
22170# we then use a temporary test program below that passes 7 arguments to
22171# bfd_openr_iovec; if it compiles OK, we assume we have the right BFD
22172# library to support Cell BE SPU profiling.
22173
22174ac_ext=c
22175ac_cpp='$CPP $CPPFLAGS'
22176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22178ac_compiler_gnu=$ac_cv_c_compiler_gnu
22179
22180
22181echo "$as_me:$LINENO: checking for bfd_openr_iovec in -lbfd" >&5
22182echo $ECHO_N "checking for bfd_openr_iovec in -lbfd... $ECHO_C" >&6
22183if test "${ac_cv_lib_bfd_bfd_openr_iovec+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185else
22186 ac_check_lib_save_LIBS=$LIBS
22187LIBS="-lbfd $LIBS"
22188cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194
22195/* Override any gcc2 internal prototype to avoid an error. */
22196#ifdef __cplusplus
22197extern "C"
22198#endif
22199/* We use char because int might match the return type of a gcc2
22200 builtin and then its argument prototype would still apply. */
22201char bfd_openr_iovec ();
22202int
22203main ()
22204{
22205bfd_openr_iovec ();
22206 ;
22207 return 0;
22208}
22209_ACEOF
22210rm -f conftest.$ac_objext conftest$ac_exeext
22211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22212 (eval $ac_link) 2>conftest.er1
22213 ac_status=$?
22214 grep -v '^ *+' conftest.er1 >conftest.err
22215 rm -f conftest.er1
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } &&
22219 { ac_try='test -z "$ac_c_werror_flag"
22220 || test ! -s conftest.err'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest$ac_exeext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22229 ac_status=$?
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_lib_bfd_bfd_openr_iovec=yes
22233else
22234 echo "$as_me: failed program was:" >&5
22235sed 's/^/| /' conftest.$ac_ext >&5
22236
22237ac_cv_lib_bfd_bfd_openr_iovec=no
22238fi
22239rm -f conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext conftest.$ac_ext
22241LIBS=$ac_check_lib_save_LIBS
22242fi
22243echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr_iovec" >&5
22244echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr_iovec" >&6
22245if test $ac_cv_lib_bfd_bfd_openr_iovec = yes; then
22246 bfd_openr_iovec_exists="yes"
22247else
22248 bfd_openr_iovec_exists="no"
22249
22250fi
22251
22252
22253if test "$bfd_openr_iovec_exists" = "yes"; then
22254 echo "$as_me:$LINENO: checking whether bfd_openr_iovec has seven parameters" >&5
22255echo $ECHO_N "checking whether bfd_openr_iovec has seven parameters... $ECHO_C" >&6
22256 cat >conftest.$ac_ext <<_ACEOF
22257/* confdefs.h. */
22258_ACEOF
22259cat confdefs.h >>conftest.$ac_ext
22260cat >>conftest.$ac_ext <<_ACEOF
22261/* end confdefs.h. */
22262#include <bfd.h>
22263 #include <stdlib.h>
22264
22265int
22266main ()
22267{
22268struct bfd *nbfd = bfd_openr_iovec("some-file", "elf32-spu",
22269 NULL, NULL, NULL, NULL, NULL);
22270 return 0;
22271
22272 ;
22273 return 0;
22274}
22275_ACEOF
22276rm -f conftest.$ac_objext
22277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22278 (eval $ac_compile) 2>conftest.er1
22279 ac_status=$?
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
22285 { ac_try='test -z "$ac_c_werror_flag"
22286 || test ! -s conftest.err'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; } &&
22292 { ac_try='test -s conftest.$ac_objext'
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22295 ac_status=$?
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298
22299cat >>confdefs.h <<\_ACEOF
22300#define HAVE_BFD_OPENR_IOVEC_WITH_7PARMS
22301_ACEOF
22302
22303 bfd_open_iovec_7="yes"
22304 echo "$as_me:$LINENO: result: yes" >&5
22305echo "${ECHO_T}yes" >&6
22306else
22307 echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310echo "$as_me:$LINENO: result: no" >&5
22311echo "${ECHO_T}no" >&6
22312
22313fi
22314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22315fi
22316
22317ac_ext=c
22318ac_cpp='$CPP $CPPFLAGS'
22319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22321ac_compiler_gnu=$ac_cv_c_compiler_gnu
22322
22323
22324arch="unknown"
22325
22326# Check whether --with-target or --without-target was given.
22327if test "${with_target+set}" = set; then
22328 withval="$with_target"
22329 arch=$withval
22330fi;
22331
22332if test "$arch" = "cell-be"; then
22333 if test "$bfd_open_iovec_7" = "yes"; then
22334 { echo "$as_me:$LINENO: BFD library has support for Cell Broadband Engine SPU profiling" >&5
22335echo "$as_me: BFD library has support for Cell Broadband Engine SPU profiling" >&6;}
22336 else
22337 { { echo "$as_me:$LINENO: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&5
22338echo "$as_me: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&2;}
22339 { (exit 1); exit 1; }; }
22340 fi
22341fi
22342
22343
22344
22345# C++ tests
22346
22347ac_ext=cc
22348ac_cpp='$CXXCPP $CPPFLAGS'
22349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22352
22353
22354
22355echo "$as_me:$LINENO: checking popt prototype" >&5
22356echo $ECHO_N "checking popt prototype... $ECHO_C" >&6
22357SAVE_CXXFLAGS=$CXXFLAGS
22358CXXFLAGS="-Werror $CXXFLAGS"
22359cat >conftest.$ac_ext <<_ACEOF
22360/* confdefs.h. */
22361_ACEOF
22362cat confdefs.h >>conftest.$ac_ext
22363cat >>conftest.$ac_ext <<_ACEOF
22364/* end confdefs.h. */
22365#include <popt.h>
22366int
22367main ()
22368{
22369
22370int c; char **v;
22371poptGetContext(0, c, v, 0, 0);
22372
22373 ;
22374 return 0;
22375}
22376_ACEOF
22377rm -f conftest.$ac_objext
22378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379 (eval $ac_compile) 2>conftest.er1
22380 ac_status=$?
22381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
22386 { ac_try='test -z "$ac_cxx_werror_flag"
22387 || test ! -s conftest.err'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest.$ac_objext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 echo "$as_me:$LINENO: result: takes char **" >&5
22400echo "${ECHO_T}takes char **" >&6;
22401else
22402 echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405echo "$as_me:$LINENO: result: takes const char **" >&5
22406echo "${ECHO_T}takes const char **" >&6;
22407cat >>confdefs.h <<\_ACEOF
22408#define CONST_POPT 1
22409_ACEOF
22410
22411fi
22412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413CXXFLAGS="$SAVE_CXXFLAGS"
22414
22415
22416
22417echo "$as_me:$LINENO: checking whether to use included sstream" >&5
22418echo $ECHO_N "checking whether to use included sstream... $ECHO_C" >&6
22419cat >conftest.$ac_ext <<_ACEOF
22420/* confdefs.h. */
22421_ACEOF
22422cat confdefs.h >>conftest.$ac_ext
22423cat >>conftest.$ac_ext <<_ACEOF
22424/* end confdefs.h. */
22425#include <sstream>
22426int
22427main ()
22428{
22429
22430 ;
22431 return 0;
22432}
22433_ACEOF
22434rm -f conftest.$ac_objext
22435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436 (eval $ac_compile) 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_cxx_werror_flag"
22444 || test ! -s conftest.err'
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22447 ac_status=$?
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest.$ac_objext'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
22456 echo "$as_me:$LINENO: result: no" >&5
22457echo "${ECHO_T}no" >&6;
22458else
22459 echo "$as_me: failed program was:" >&5
22460sed 's/^/| /' conftest.$ac_ext >&5
22461
22462echo "$as_me:$LINENO: result: yes" >&5
22463echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include"
22464fi
22465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22466
22467
22468
22469echo "$as_me:$LINENO: checking whether bfd defines bool" >&5
22470echo $ECHO_N "checking whether bfd defines bool... $ECHO_C" >&6
22471cat >conftest.$ac_ext <<_ACEOF
22472/* confdefs.h. */
22473_ACEOF
22474cat confdefs.h >>conftest.$ac_ext
22475cat >>conftest.$ac_ext <<_ACEOF
22476/* end confdefs.h. */
22477#include <bfd.h>
22478int
22479main ()
22480{
22481
22482 ;
22483 return 0;
22484}
22485_ACEOF
22486rm -f conftest.$ac_objext
22487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22488 (eval $ac_compile) 2>conftest.er1
22489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -z "$ac_cxx_werror_flag"
22496 || test ! -s conftest.err'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try='test -s conftest.$ac_objext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 echo "$as_me:$LINENO: result: no" >&5
22509echo "${ECHO_T}no" >&6;
22510else
22511 echo "$as_me: failed program was:" >&5
22512sed 's/^/| /' conftest.$ac_ext >&5
22513
22514echo "$as_me:$LINENO: result: yes" >&5
22515echo "${ECHO_T}yes" >&6;
22516cat >>confdefs.h <<\_ACEOF
22517#define TRUE_FALSE_ALREADY_DEFINED 1
22518_ACEOF
22519
22520fi
22521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22522
22523
22524 echo "$as_me:$LINENO: checking type of size_t" >&5
22525echo $ECHO_N "checking type of size_t... $ECHO_C" >&6
22526 for f in "unsigned" "unsigned long"; do
22527
22528
22529
22530ac_ext=c
22531ac_cpp='$CPP $CPPFLAGS'
22532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534ac_compiler_gnu=$ac_cv_c_compiler_gnu
22535
22536SAVE_CFLAGS=$CFLAGS
22537CFLAGS="-Werror $CFLAGS"
22538
22539cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
22545
22546 #include <stddef.h>
22547
22548int
22549main ()
22550{
22551
22552 typedef void (*fct1)(size_t);
22553 typedef void (*fct2)($f);
22554 fct1 f1 = 0;
22555 fct2 f2 = 0;
22556 if (f1 == f2) {}
22557
22558 ;
22559 return 0;
22560}
22561_ACEOF
22562rm -f conftest.$ac_objext
22563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22564 (eval $ac_compile) 2>conftest.er1
22565 ac_status=$?
22566 grep -v '^ *+' conftest.er1 >conftest.err
22567 rm -f conftest.er1
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } &&
22571 { ac_try='test -z "$ac_c_werror_flag"
22572 || test ! -s conftest.err'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 SIZE_T_TYPE="$f"
22585else
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589SIZE_T_TYPE=""
22590fi
22591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22592
22593CFLAGS=$SAVE_CFLAGS
22594ac_ext=cc
22595ac_cpp='$CXXCPP $CPPFLAGS'
22596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22599
22600
22601 if test -n "${SIZE_T_TYPE}"; then
22602 break
22603 fi
22604 done
22605 if test -n "${SIZE_T_TYPE}"; then
22606 echo "$as_me:$LINENO: result: ${SIZE_T_TYPE}" >&5
22607echo "${ECHO_T}${SIZE_T_TYPE}" >&6
22608 else
22609 { { echo "$as_me:$LINENO: error: not found" >&5
22610echo "$as_me: error: not found" >&2;}
22611 { (exit 1); exit 1; }; }
22612 fi
22613
22614
22615
22616 echo "$as_me:$LINENO: checking type of ptrdiff_t" >&5
22617echo $ECHO_N "checking type of ptrdiff_t... $ECHO_C" >&6
22618 for f in "int" "long"; do
22619
22620
22621
22622ac_ext=c
22623ac_cpp='$CPP $CPPFLAGS'
22624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22626ac_compiler_gnu=$ac_cv_c_compiler_gnu
22627
22628SAVE_CFLAGS=$CFLAGS
22629CFLAGS="-Werror $CFLAGS"
22630
22631cat >conftest.$ac_ext <<_ACEOF
22632/* confdefs.h. */
22633_ACEOF
22634cat confdefs.h >>conftest.$ac_ext
22635cat >>conftest.$ac_ext <<_ACEOF
22636/* end confdefs.h. */
22637
22638 #include <stddef.h>
22639
22640int
22641main ()
22642{
22643
22644 typedef void (*fct1)(ptrdiff_t);
22645 typedef void (*fct2)($f);
22646 fct1 f1 = 0;
22647 fct2 f2 = 0;
22648 if (f1 == f2) {}
22649
22650 ;
22651 return 0;
22652}
22653_ACEOF
22654rm -f conftest.$ac_objext
22655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22656 (eval $ac_compile) 2>conftest.er1
22657 ac_status=$?
22658 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1
22660 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } &&
22663 { ac_try='test -z "$ac_c_werror_flag"
22664 || test ! -s conftest.err'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; } &&
22670 { ac_try='test -s conftest.$ac_objext'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22673 ac_status=$?
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; }; then
22676 PTRDIFF_T_TYPE="$f"
22677else
22678 echo "$as_me: failed program was:" >&5
22679sed 's/^/| /' conftest.$ac_ext >&5
22680
22681PTRDIFF_T_TYPE=""
22682fi
22683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22684
22685CFLAGS=$SAVE_CFLAGS
22686ac_ext=cc
22687ac_cpp='$CXXCPP $CPPFLAGS'
22688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22691
22692
22693 if test -n "${PTRDIFF_T_TYPE}"; then
22694 break
22695 fi
22696 done
22697 if test -n "${PTRDIFF_T_TYPE}"; then
22698 echo "$as_me:$LINENO: result: ${PTRDIFF_T_TYPE}" >&5
22699echo "${ECHO_T}${PTRDIFF_T_TYPE}" >&6
22700 else
22701 { { echo "$as_me:$LINENO: error: not found" >&5
22702echo "$as_me: error: not found" >&2;}
22703 { (exit 1); exit 1; }; }
22704 fi
22705
22706
22707
22708
22709echo "$as_me:$LINENO: checking for X" >&5
22710echo $ECHO_N "checking for X... $ECHO_C" >&6
22711
22712
22713# Check whether --with-x or --without-x was given.
22714if test "${with_x+set}" = set; then
22715 withval="$with_x"
22716
22717fi;
22718# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22719if test "x$with_x" = xno; then
22720 # The user explicitly disabled X.
22721 have_x=disabled
22722else
22723 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22724 # Both variables are already set.
22725 have_x=yes
22726 else
22727 if test "${ac_cv_have_x+set}" = set; then
22728 echo $ECHO_N "(cached) $ECHO_C" >&6
22729else
22730 # One or both of the vars are not set, and there is no cached value.
22731ac_x_includes=no ac_x_libraries=no
22732rm -fr conftest.dir
22733if mkdir conftest.dir; then
22734 cd conftest.dir
22735 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22736 cat >Imakefile <<'_ACEOF'
22737acfindx:
22738 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22739_ACEOF
22740 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22742 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22743 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22744 for ac_extension in a so sl; do
22745 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22746 test -f $ac_im_libdir/libX11.$ac_extension; then
22747 ac_im_usrlibdir=$ac_im_libdir; break
22748 fi
22749 done
22750 # Screen out bogus values from the imake configuration. They are
22751 # bogus both because they are the default anyway, and because
22752 # using them would break gcc on systems where it needs fixed includes.
22753 case $ac_im_incroot in
22754 /usr/include) ;;
22755 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22756 esac
22757 case $ac_im_usrlibdir in
22758 /usr/lib | /lib) ;;
22759 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22760 esac
22761 fi
22762 cd ..
22763 rm -fr conftest.dir
22764fi
22765
22766# Standard set of common directories for X headers.
22767# Check X11 before X11Rn because it is often a symlink to the current release.
22768ac_x_header_dirs='
22769/usr/X11/include
22770/usr/X11R6/include
22771/usr/X11R5/include
22772/usr/X11R4/include
22773
22774/usr/include/X11
22775/usr/include/X11R6
22776/usr/include/X11R5
22777/usr/include/X11R4
22778
22779/usr/local/X11/include
22780/usr/local/X11R6/include
22781/usr/local/X11R5/include
22782/usr/local/X11R4/include
22783
22784/usr/local/include/X11
22785/usr/local/include/X11R6
22786/usr/local/include/X11R5
22787/usr/local/include/X11R4
22788
22789/usr/X386/include
22790/usr/x386/include
22791/usr/XFree86/include/X11
22792
22793/usr/include
22794/usr/local/include
22795/usr/unsupported/include
22796/usr/athena/include
22797/usr/local/x11r5/include
22798/usr/lpp/Xamples/include
22799
22800/usr/openwin/include
22801/usr/openwin/share/include'
22802
22803if test "$ac_x_includes" = no; then
22804 # Guess where to find include files, by looking for Intrinsic.h.
22805 # First, try using that file with no special directory specified.
22806 cat >conftest.$ac_ext <<_ACEOF
22807/* confdefs.h. */
22808_ACEOF
22809cat confdefs.h >>conftest.$ac_ext
22810cat >>conftest.$ac_ext <<_ACEOF
22811/* end confdefs.h. */
22812#include <X11/Intrinsic.h>
22813_ACEOF
22814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22816 ac_status=$?
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } >/dev/null; then
22822 if test -s conftest.err; then
22823 ac_cpp_err=$ac_cxx_preproc_warn_flag
22824 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22825 else
22826 ac_cpp_err=
22827 fi
22828else
22829 ac_cpp_err=yes
22830fi
22831if test -z "$ac_cpp_err"; then
22832 # We can compile using X headers with no special include directory.
22833ac_x_includes=
22834else
22835 echo "$as_me: failed program was:" >&5
22836sed 's/^/| /' conftest.$ac_ext >&5
22837
22838 for ac_dir in $ac_x_header_dirs; do
22839 if test -r "$ac_dir/X11/Intrinsic.h"; then
22840 ac_x_includes=$ac_dir
22841 break
22842 fi
22843done
22844fi
22845rm -f conftest.err conftest.$ac_ext
22846fi # $ac_x_includes = no
22847
22848if test "$ac_x_libraries" = no; then
22849 # Check for the libraries.
22850 # See if we find them without any special options.
22851 # Don't add to $LIBS permanently.
22852 ac_save_LIBS=$LIBS
22853 LIBS="-lXt $LIBS"
22854 cat >conftest.$ac_ext <<_ACEOF
22855/* confdefs.h. */
22856_ACEOF
22857cat confdefs.h >>conftest.$ac_ext
22858cat >>conftest.$ac_ext <<_ACEOF
22859/* end confdefs.h. */
22860#include <X11/Intrinsic.h>
22861int
22862main ()
22863{
22864XtMalloc (0)
22865 ;
22866 return 0;
22867}
22868_ACEOF
22869rm -f conftest.$ac_objext conftest$ac_exeext
22870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22871 (eval $ac_link) 2>conftest.er1
22872 ac_status=$?
22873 grep -v '^ *+' conftest.er1 >conftest.err
22874 rm -f conftest.er1
22875 cat conftest.err >&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } &&
22878 { ac_try='test -z "$ac_cxx_werror_flag"
22879 || test ! -s conftest.err'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; } &&
22885 { ac_try='test -s conftest$ac_exeext'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22888 ac_status=$?
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22891 LIBS=$ac_save_LIBS
22892# We can link X programs with no special library path.
22893ac_x_libraries=
22894else
22895 echo "$as_me: failed program was:" >&5
22896sed 's/^/| /' conftest.$ac_ext >&5
22897
22898LIBS=$ac_save_LIBS
22899for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22900do
22901 # Don't even attempt the hair of trying to link an X program!
22902 for ac_extension in a so sl; do
22903 if test -r $ac_dir/libXt.$ac_extension; then
22904 ac_x_libraries=$ac_dir
22905 break 2
22906 fi
22907 done
22908done
22909fi
22910rm -f conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
22912fi # $ac_x_libraries = no
22913
22914if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22915 # Didn't find X anywhere. Cache the known absence of X.
22916 ac_cv_have_x="have_x=no"
22917else
22918 # Record where we found X for the cache.
22919 ac_cv_have_x="have_x=yes \
22920 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22921fi
22922fi
22923
22924 fi
22925 eval "$ac_cv_have_x"
22926fi # $with_x != no
22927
22928if test "$have_x" != yes; then
22929 echo "$as_me:$LINENO: result: $have_x" >&5
22930echo "${ECHO_T}$have_x" >&6
22931 no_x=yes
22932else
22933 # If each of the values was on the command line, it overrides each guess.
22934 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22935 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22936 # Update the cache value to reflect the command line values.
22937 ac_cv_have_x="have_x=yes \
22938 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22939 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22940echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22941fi
22942
22943if test "$no_x" = yes; then
22944 # Not all programs may use this symbol, but it does not hurt to define it.
22945
22946cat >>confdefs.h <<\_ACEOF
22947#define X_DISPLAY_MISSING 1
22948_ACEOF
22949
22950 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22951else
22952 if test -n "$x_includes"; then
22953 X_CFLAGS="$X_CFLAGS -I$x_includes"
22954 fi
22955
22956 # It would also be nice to do this for all -L options, not just this one.
22957 if test -n "$x_libraries"; then
22958 X_LIBS="$X_LIBS -L$x_libraries"
22959 # For Solaris; some versions of Sun CC require a space after -R and
22960 # others require no space. Words are not sufficient . . . .
22961 case `(uname -sr) 2>/dev/null` in
22962 "SunOS 5"*)
22963 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22964echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22965 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22966 cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972
22973int
22974main ()
22975{
22976
22977 ;
22978 return 0;
22979}
22980_ACEOF
22981rm -f conftest.$ac_objext conftest$ac_exeext
22982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983 (eval $ac_link) 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } &&
22990 { ac_try='test -z "$ac_cxx_werror_flag"
22991 || test ! -s conftest.err'
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; } &&
22997 { ac_try='test -s conftest$ac_exeext'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_R_nospace=yes
23004else
23005 echo "$as_me: failed program was:" >&5
23006sed 's/^/| /' conftest.$ac_ext >&5
23007
23008ac_R_nospace=no
23009fi
23010rm -f conftest.err conftest.$ac_objext \
23011 conftest$ac_exeext conftest.$ac_ext
23012 if test $ac_R_nospace = yes; then
23013 echo "$as_me:$LINENO: result: no" >&5
23014echo "${ECHO_T}no" >&6
23015 X_LIBS="$X_LIBS -R$x_libraries"
23016 else
23017 LIBS="$ac_xsave_LIBS -R $x_libraries"
23018 cat >conftest.$ac_ext <<_ACEOF
23019/* confdefs.h. */
23020_ACEOF
23021cat confdefs.h >>conftest.$ac_ext
23022cat >>conftest.$ac_ext <<_ACEOF
23023/* end confdefs.h. */
23024
23025int
23026main ()
23027{
23028
23029 ;
23030 return 0;
23031}
23032_ACEOF
23033rm -f conftest.$ac_objext conftest$ac_exeext
23034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035 (eval $ac_link) 2>conftest.er1
23036 ac_status=$?
23037 grep -v '^ *+' conftest.er1 >conftest.err
23038 rm -f conftest.er1
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
23042 { ac_try='test -z "$ac_cxx_werror_flag"
23043 || test ! -s conftest.err'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } &&
23049 { ac_try='test -s conftest$ac_exeext'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 ac_R_space=yes
23056else
23057 echo "$as_me: failed program was:" >&5
23058sed 's/^/| /' conftest.$ac_ext >&5
23059
23060ac_R_space=no
23061fi
23062rm -f conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
23064 if test $ac_R_space = yes; then
23065 echo "$as_me:$LINENO: result: yes" >&5
23066echo "${ECHO_T}yes" >&6
23067 X_LIBS="$X_LIBS -R $x_libraries"
23068 else
23069 echo "$as_me:$LINENO: result: neither works" >&5
23070echo "${ECHO_T}neither works" >&6
23071 fi
23072 fi
23073 LIBS=$ac_xsave_LIBS
23074 esac
23075 fi
23076
23077 # Check for system-dependent libraries X programs must link with.
23078 # Do this before checking for the system-independent R6 libraries
23079 # (-lICE), since we may need -lsocket or whatever for X linking.
23080
23081 if test "$ISC" = yes; then
23082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23083 else
23084 # Martyn Johnson says this is needed for Ultrix, if the X
23085 # libraries were built with DECnet support. And Karl Berry says
23086 # the Alpha needs dnet_stub (dnet does not exist).
23087 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23088 cat >conftest.$ac_ext <<_ACEOF
23089/* confdefs.h. */
23090_ACEOF
23091cat confdefs.h >>conftest.$ac_ext
23092cat >>conftest.$ac_ext <<_ACEOF
23093/* end confdefs.h. */
23094
23095/* Override any gcc2 internal prototype to avoid an error. */
23096#ifdef __cplusplus
23097extern "C"
23098#endif
23099/* We use char because int might match the return type of a gcc2
23100 builtin and then its argument prototype would still apply. */
23101char XOpenDisplay ();
23102int
23103main ()
23104{
23105XOpenDisplay ();
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110rm -f conftest.$ac_objext conftest$ac_exeext
23111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23112 (eval $ac_link) 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
23119 { ac_try='test -z "$ac_cxx_werror_flag"
23120 || test ! -s conftest.err'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23123 ac_status=$?
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; } &&
23126 { ac_try='test -s conftest$ac_exeext'
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; }; then
23132 :
23133else
23134 echo "$as_me: failed program was:" >&5
23135sed 's/^/| /' conftest.$ac_ext >&5
23136
23137echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23138echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23139if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141else
23142 ac_check_lib_save_LIBS=$LIBS
23143LIBS="-ldnet $LIBS"
23144cat >conftest.$ac_ext <<_ACEOF
23145/* confdefs.h. */
23146_ACEOF
23147cat confdefs.h >>conftest.$ac_ext
23148cat >>conftest.$ac_ext <<_ACEOF
23149/* end confdefs.h. */
23150
23151/* Override any gcc2 internal prototype to avoid an error. */
23152#ifdef __cplusplus
23153extern "C"
23154#endif
23155/* We use char because int might match the return type of a gcc2
23156 builtin and then its argument prototype would still apply. */
23157char dnet_ntoa ();
23158int
23159main ()
23160{
23161dnet_ntoa ();
23162 ;
23163 return 0;
23164}
23165_ACEOF
23166rm -f conftest.$ac_objext conftest$ac_exeext
23167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23168 (eval $ac_link) 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } &&
23175 { ac_try='test -z "$ac_cxx_werror_flag"
23176 || test ! -s conftest.err'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; } &&
23182 { ac_try='test -s conftest$ac_exeext'
23183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184 (eval $ac_try) 2>&5
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; }; then
23188 ac_cv_lib_dnet_dnet_ntoa=yes
23189else
23190 echo "$as_me: failed program was:" >&5
23191sed 's/^/| /' conftest.$ac_ext >&5
23192
23193ac_cv_lib_dnet_dnet_ntoa=no
23194fi
23195rm -f conftest.err conftest.$ac_objext \
23196 conftest$ac_exeext conftest.$ac_ext
23197LIBS=$ac_check_lib_save_LIBS
23198fi
23199echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23200echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23201if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23202 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23203fi
23204
23205 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23206 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23207echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23208if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23210else
23211 ac_check_lib_save_LIBS=$LIBS
23212LIBS="-ldnet_stub $LIBS"
23213cat >conftest.$ac_ext <<_ACEOF
23214/* confdefs.h. */
23215_ACEOF
23216cat confdefs.h >>conftest.$ac_ext
23217cat >>conftest.$ac_ext <<_ACEOF
23218/* end confdefs.h. */
23219
23220/* Override any gcc2 internal prototype to avoid an error. */
23221#ifdef __cplusplus
23222extern "C"
23223#endif
23224/* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
23226char dnet_ntoa ();
23227int
23228main ()
23229{
23230dnet_ntoa ();
23231 ;
23232 return 0;
23233}
23234_ACEOF
23235rm -f conftest.$ac_objext conftest$ac_exeext
23236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23237 (eval $ac_link) 2>conftest.er1
23238 ac_status=$?
23239 grep -v '^ *+' conftest.er1 >conftest.err
23240 rm -f conftest.er1
23241 cat conftest.err >&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } &&
23244 { ac_try='test -z "$ac_cxx_werror_flag"
23245 || test ! -s conftest.err'
23246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest$ac_exeext'
23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
23257 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23258else
23259 echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
23262ac_cv_lib_dnet_stub_dnet_ntoa=no
23263fi
23264rm -f conftest.err conftest.$ac_objext \
23265 conftest$ac_exeext conftest.$ac_ext
23266LIBS=$ac_check_lib_save_LIBS
23267fi
23268echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23269echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23270if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23271 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23272fi
23273
23274 fi
23275fi
23276rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23278 LIBS="$ac_xsave_LIBS"
23279
23280 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23281 # to get the SysV transport functions.
23282 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23283 # needs -lnsl.
23284 # The nsl library prevents programs from opening the X display
23285 # on Irix 5.2, according to T.E. Dickey.
23286 # The functions gethostbyname, getservbyname, and inet_addr are
23287 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23288 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23289echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23290if test "${ac_cv_func_gethostbyname+set}" = set; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23292else
23293 cat >conftest.$ac_ext <<_ACEOF
23294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
23299/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23301#define gethostbyname innocuous_gethostbyname
23302
23303/* System header to define __stub macros and hopefully few prototypes,
23304 which can conflict with char gethostbyname (); below.
23305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23306 <limits.h> exists even on freestanding compilers. */
23307
23308#ifdef __STDC__
23309# include <limits.h>
23310#else
23311# include <assert.h>
23312#endif
23313
23314#undef gethostbyname
23315
23316/* Override any gcc2 internal prototype to avoid an error. */
23317#ifdef __cplusplus
23318extern "C"
23319{
23320#endif
23321/* We use char because int might match the return type of a gcc2
23322 builtin and then its argument prototype would still apply. */
23323char gethostbyname ();
23324/* The GNU C library defines this for functions which it implements
23325 to always fail with ENOSYS. Some functions are actually named
23326 something starting with __ and the normal name is an alias. */
23327#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23328choke me
23329#else
23330char (*f) () = gethostbyname;
23331#endif
23332#ifdef __cplusplus
23333}
23334#endif
23335
23336int
23337main ()
23338{
23339return f != gethostbyname;
23340 ;
23341 return 0;
23342}
23343_ACEOF
23344rm -f conftest.$ac_objext conftest$ac_exeext
23345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23346 (eval $ac_link) 2>conftest.er1
23347 ac_status=$?
23348 grep -v '^ *+' conftest.er1 >conftest.err
23349 rm -f conftest.er1
23350 cat conftest.err >&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); } &&
23353 { ac_try='test -z "$ac_cxx_werror_flag"
23354 || test ! -s conftest.err'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; } &&
23360 { ac_try='test -s conftest$ac_exeext'
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23363 ac_status=$?
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; }; then
23366 ac_cv_func_gethostbyname=yes
23367else
23368 echo "$as_me: failed program was:" >&5
23369sed 's/^/| /' conftest.$ac_ext >&5
23370
23371ac_cv_func_gethostbyname=no
23372fi
23373rm -f conftest.err conftest.$ac_objext \
23374 conftest$ac_exeext conftest.$ac_ext
23375fi
23376echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23377echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23378
23379 if test $ac_cv_func_gethostbyname = no; then
23380 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23381echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23382if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23384else
23385 ac_check_lib_save_LIBS=$LIBS
23386LIBS="-lnsl $LIBS"
23387cat >conftest.$ac_ext <<_ACEOF
23388/* confdefs.h. */
23389_ACEOF
23390cat confdefs.h >>conftest.$ac_ext
23391cat >>conftest.$ac_ext <<_ACEOF
23392/* end confdefs.h. */
23393
23394/* Override any gcc2 internal prototype to avoid an error. */
23395#ifdef __cplusplus
23396extern "C"
23397#endif
23398/* We use char because int might match the return type of a gcc2
23399 builtin and then its argument prototype would still apply. */
23400char gethostbyname ();
23401int
23402main ()
23403{
23404gethostbyname ();
23405 ;
23406 return 0;
23407}
23408_ACEOF
23409rm -f conftest.$ac_objext conftest$ac_exeext
23410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23411 (eval $ac_link) 2>conftest.er1
23412 ac_status=$?
23413 grep -v '^ *+' conftest.er1 >conftest.err
23414 rm -f conftest.er1
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } &&
23418 { ac_try='test -z "$ac_cxx_werror_flag"
23419 || test ! -s conftest.err'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; } &&
23425 { ac_try='test -s conftest$ac_exeext'
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 ac_cv_lib_nsl_gethostbyname=yes
23432else
23433 echo "$as_me: failed program was:" >&5
23434sed 's/^/| /' conftest.$ac_ext >&5
23435
23436ac_cv_lib_nsl_gethostbyname=no
23437fi
23438rm -f conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
23440LIBS=$ac_check_lib_save_LIBS
23441fi
23442echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23443echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23444if test $ac_cv_lib_nsl_gethostbyname = yes; then
23445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23446fi
23447
23448 if test $ac_cv_lib_nsl_gethostbyname = no; then
23449 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23450echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23451if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23453else
23454 ac_check_lib_save_LIBS=$LIBS
23455LIBS="-lbsd $LIBS"
23456cat >conftest.$ac_ext <<_ACEOF
23457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
23462
23463/* Override any gcc2 internal prototype to avoid an error. */
23464#ifdef __cplusplus
23465extern "C"
23466#endif
23467/* We use char because int might match the return type of a gcc2
23468 builtin and then its argument prototype would still apply. */
23469char gethostbyname ();
23470int
23471main ()
23472{
23473gethostbyname ();
23474 ;
23475 return 0;
23476}
23477_ACEOF
23478rm -f conftest.$ac_objext conftest$ac_exeext
23479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480 (eval $ac_link) 2>conftest.er1
23481 ac_status=$?
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
23487 { ac_try='test -z "$ac_cxx_werror_flag"
23488 || test ! -s conftest.err'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; } &&
23494 { ac_try='test -s conftest$ac_exeext'
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_cv_lib_bsd_gethostbyname=yes
23501else
23502 echo "$as_me: failed program was:" >&5
23503sed 's/^/| /' conftest.$ac_ext >&5
23504
23505ac_cv_lib_bsd_gethostbyname=no
23506fi
23507rm -f conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
23509LIBS=$ac_check_lib_save_LIBS
23510fi
23511echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23512echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23513if test $ac_cv_lib_bsd_gethostbyname = yes; then
23514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23515fi
23516
23517 fi
23518 fi
23519
23520 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23521 # socket/setsockopt and other routines are undefined under SCO ODT
23522 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23523 # on later versions), says Simon Leinen: it contains gethostby*
23524 # variants that don't use the name server (or something). -lsocket
23525 # must be given before -lnsl if both are needed. We assume that
23526 # if connect needs -lnsl, so does gethostbyname.
23527 echo "$as_me:$LINENO: checking for connect" >&5
23528echo $ECHO_N "checking for connect... $ECHO_C" >&6
23529if test "${ac_cv_func_connect+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23531else
23532 cat >conftest.$ac_ext <<_ACEOF
23533/* confdefs.h. */
23534_ACEOF
23535cat confdefs.h >>conftest.$ac_ext
23536cat >>conftest.$ac_ext <<_ACEOF
23537/* end confdefs.h. */
23538/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23540#define connect innocuous_connect
23541
23542/* System header to define __stub macros and hopefully few prototypes,
23543 which can conflict with char connect (); below.
23544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23545 <limits.h> exists even on freestanding compilers. */
23546
23547#ifdef __STDC__
23548# include <limits.h>
23549#else
23550# include <assert.h>
23551#endif
23552
23553#undef connect
23554
23555/* Override any gcc2 internal prototype to avoid an error. */
23556#ifdef __cplusplus
23557extern "C"
23558{
23559#endif
23560/* We use char because int might match the return type of a gcc2
23561 builtin and then its argument prototype would still apply. */
23562char connect ();
23563/* The GNU C library defines this for functions which it implements
23564 to always fail with ENOSYS. Some functions are actually named
23565 something starting with __ and the normal name is an alias. */
23566#if defined (__stub_connect) || defined (__stub___connect)
23567choke me
23568#else
23569char (*f) () = connect;
23570#endif
23571#ifdef __cplusplus
23572}
23573#endif
23574
23575int
23576main ()
23577{
23578return f != connect;
23579 ;
23580 return 0;
23581}
23582_ACEOF
23583rm -f conftest.$ac_objext conftest$ac_exeext
23584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23585 (eval $ac_link) 2>conftest.er1
23586 ac_status=$?
23587 grep -v '^ *+' conftest.er1 >conftest.err
23588 rm -f conftest.er1
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_cxx_werror_flag"
23593 || test ! -s conftest.err'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest$ac_exeext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_func_connect=yes
23606else
23607 echo "$as_me: failed program was:" >&5
23608sed 's/^/| /' conftest.$ac_ext >&5
23609
23610ac_cv_func_connect=no
23611fi
23612rm -f conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext conftest.$ac_ext
23614fi
23615echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23616echo "${ECHO_T}$ac_cv_func_connect" >&6
23617
23618 if test $ac_cv_func_connect = no; then
23619 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23620echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23621if test "${ac_cv_lib_socket_connect+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23623else
23624 ac_check_lib_save_LIBS=$LIBS
23625LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23626cat >conftest.$ac_ext <<_ACEOF
23627/* confdefs.h. */
23628_ACEOF
23629cat confdefs.h >>conftest.$ac_ext
23630cat >>conftest.$ac_ext <<_ACEOF
23631/* end confdefs.h. */
23632
23633/* Override any gcc2 internal prototype to avoid an error. */
23634#ifdef __cplusplus
23635extern "C"
23636#endif
23637/* We use char because int might match the return type of a gcc2
23638 builtin and then its argument prototype would still apply. */
23639char connect ();
23640int
23641main ()
23642{
23643connect ();
23644 ;
23645 return 0;
23646}
23647_ACEOF
23648rm -f conftest.$ac_objext conftest$ac_exeext
23649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>conftest.er1
23651 ac_status=$?
23652 grep -v '^ *+' conftest.er1 >conftest.err
23653 rm -f conftest.er1
23654 cat conftest.err >&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } &&
23657 { ac_try='test -z "$ac_cxx_werror_flag"
23658 || test ! -s conftest.err'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; } &&
23664 { ac_try='test -s conftest$ac_exeext'
23665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666 (eval $ac_try) 2>&5
23667 ac_status=$?
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); }; }; then
23670 ac_cv_lib_socket_connect=yes
23671else
23672 echo "$as_me: failed program was:" >&5
23673sed 's/^/| /' conftest.$ac_ext >&5
23674
23675ac_cv_lib_socket_connect=no
23676fi
23677rm -f conftest.err conftest.$ac_objext \
23678 conftest$ac_exeext conftest.$ac_ext
23679LIBS=$ac_check_lib_save_LIBS
23680fi
23681echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23682echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23683if test $ac_cv_lib_socket_connect = yes; then
23684 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23685fi
23686
23687 fi
23688
23689 # Guillermo Gomez says -lposix is necessary on A/UX.
23690 echo "$as_me:$LINENO: checking for remove" >&5
23691echo $ECHO_N "checking for remove... $ECHO_C" >&6
23692if test "${ac_cv_func_remove+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694else
23695 cat >conftest.$ac_ext <<_ACEOF
23696/* confdefs.h. */
23697_ACEOF
23698cat confdefs.h >>conftest.$ac_ext
23699cat >>conftest.$ac_ext <<_ACEOF
23700/* end confdefs.h. */
23701/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23703#define remove innocuous_remove
23704
23705/* System header to define __stub macros and hopefully few prototypes,
23706 which can conflict with char remove (); below.
23707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23708 <limits.h> exists even on freestanding compilers. */
23709
23710#ifdef __STDC__
23711# include <limits.h>
23712#else
23713# include <assert.h>
23714#endif
23715
23716#undef remove
23717
23718/* Override any gcc2 internal prototype to avoid an error. */
23719#ifdef __cplusplus
23720extern "C"
23721{
23722#endif
23723/* We use char because int might match the return type of a gcc2
23724 builtin and then its argument prototype would still apply. */
23725char remove ();
23726/* The GNU C library defines this for functions which it implements
23727 to always fail with ENOSYS. Some functions are actually named
23728 something starting with __ and the normal name is an alias. */
23729#if defined (__stub_remove) || defined (__stub___remove)
23730choke me
23731#else
23732char (*f) () = remove;
23733#endif
23734#ifdef __cplusplus
23735}
23736#endif
23737
23738int
23739main ()
23740{
23741return f != remove;
23742 ;
23743 return 0;
23744}
23745_ACEOF
23746rm -f conftest.$ac_objext conftest$ac_exeext
23747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23748 (eval $ac_link) 2>conftest.er1
23749 ac_status=$?
23750 grep -v '^ *+' conftest.er1 >conftest.err
23751 rm -f conftest.er1
23752 cat conftest.err >&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } &&
23755 { ac_try='test -z "$ac_cxx_werror_flag"
23756 || test ! -s conftest.err'
23757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23759 ac_status=$?
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); }; } &&
23762 { ac_try='test -s conftest$ac_exeext'
23763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764 (eval $ac_try) 2>&5
23765 ac_status=$?
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; }; then
23768 ac_cv_func_remove=yes
23769else
23770 echo "$as_me: failed program was:" >&5
23771sed 's/^/| /' conftest.$ac_ext >&5
23772
23773ac_cv_func_remove=no
23774fi
23775rm -f conftest.err conftest.$ac_objext \
23776 conftest$ac_exeext conftest.$ac_ext
23777fi
23778echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23779echo "${ECHO_T}$ac_cv_func_remove" >&6
23780
23781 if test $ac_cv_func_remove = no; then
23782 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23783echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23784if test "${ac_cv_lib_posix_remove+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23786else
23787 ac_check_lib_save_LIBS=$LIBS
23788LIBS="-lposix $LIBS"
23789cat >conftest.$ac_ext <<_ACEOF
23790/* confdefs.h. */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h. */
23795
23796/* Override any gcc2 internal prototype to avoid an error. */
23797#ifdef __cplusplus
23798extern "C"
23799#endif
23800/* We use char because int might match the return type of a gcc2
23801 builtin and then its argument prototype would still apply. */
23802char remove ();
23803int
23804main ()
23805{
23806remove ();
23807 ;
23808 return 0;
23809}
23810_ACEOF
23811rm -f conftest.$ac_objext conftest$ac_exeext
23812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23813 (eval $ac_link) 2>conftest.er1
23814 ac_status=$?
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } &&
23820 { ac_try='test -z "$ac_cxx_werror_flag"
23821 || test ! -s conftest.err'
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest$ac_exeext'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 ac_cv_lib_posix_remove=yes
23834else
23835 echo "$as_me: failed program was:" >&5
23836sed 's/^/| /' conftest.$ac_ext >&5
23837
23838ac_cv_lib_posix_remove=no
23839fi
23840rm -f conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23842LIBS=$ac_check_lib_save_LIBS
23843fi
23844echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23845echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23846if test $ac_cv_lib_posix_remove = yes; then
23847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23848fi
23849
23850 fi
23851
23852 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23853 echo "$as_me:$LINENO: checking for shmat" >&5
23854echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23855if test "${ac_cv_func_shmat+set}" = set; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23857else
23858 cat >conftest.$ac_ext <<_ACEOF
23859/* confdefs.h. */
23860_ACEOF
23861cat confdefs.h >>conftest.$ac_ext
23862cat >>conftest.$ac_ext <<_ACEOF
23863/* end confdefs.h. */
23864/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23866#define shmat innocuous_shmat
23867
23868/* System header to define __stub macros and hopefully few prototypes,
23869 which can conflict with char shmat (); below.
23870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23871 <limits.h> exists even on freestanding compilers. */
23872
23873#ifdef __STDC__
23874# include <limits.h>
23875#else
23876# include <assert.h>
23877#endif
23878
23879#undef shmat
23880
23881/* Override any gcc2 internal prototype to avoid an error. */
23882#ifdef __cplusplus
23883extern "C"
23884{
23885#endif
23886/* We use char because int might match the return type of a gcc2
23887 builtin and then its argument prototype would still apply. */
23888char shmat ();
23889/* The GNU C library defines this for functions which it implements
23890 to always fail with ENOSYS. Some functions are actually named
23891 something starting with __ and the normal name is an alias. */
23892#if defined (__stub_shmat) || defined (__stub___shmat)
23893choke me
23894#else
23895char (*f) () = shmat;
23896#endif
23897#ifdef __cplusplus
23898}
23899#endif
23900
23901int
23902main ()
23903{
23904return f != shmat;
23905 ;
23906 return 0;
23907}
23908_ACEOF
23909rm -f conftest.$ac_objext conftest$ac_exeext
23910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23911 (eval $ac_link) 2>conftest.er1
23912 ac_status=$?
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
23918 { ac_try='test -z "$ac_cxx_werror_flag"
23919 || test ! -s conftest.err'
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest$ac_exeext'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 ac_cv_func_shmat=yes
23932else
23933 echo "$as_me: failed program was:" >&5
23934sed 's/^/| /' conftest.$ac_ext >&5
23935
23936ac_cv_func_shmat=no
23937fi
23938rm -f conftest.err conftest.$ac_objext \
23939 conftest$ac_exeext conftest.$ac_ext
23940fi
23941echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23942echo "${ECHO_T}$ac_cv_func_shmat" >&6
23943
23944 if test $ac_cv_func_shmat = no; then
23945 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23946echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23947if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23948 echo $ECHO_N "(cached) $ECHO_C" >&6
23949else
23950 ac_check_lib_save_LIBS=$LIBS
23951LIBS="-lipc $LIBS"
23952cat >conftest.$ac_ext <<_ACEOF
23953/* confdefs.h. */
23954_ACEOF
23955cat confdefs.h >>conftest.$ac_ext
23956cat >>conftest.$ac_ext <<_ACEOF
23957/* end confdefs.h. */
23958
23959/* Override any gcc2 internal prototype to avoid an error. */
23960#ifdef __cplusplus
23961extern "C"
23962#endif
23963/* We use char because int might match the return type of a gcc2
23964 builtin and then its argument prototype would still apply. */
23965char shmat ();
23966int
23967main ()
23968{
23969shmat ();
23970 ;
23971 return 0;
23972}
23973_ACEOF
23974rm -f conftest.$ac_objext conftest$ac_exeext
23975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23976 (eval $ac_link) 2>conftest.er1
23977 ac_status=$?
23978 grep -v '^ *+' conftest.er1 >conftest.err
23979 rm -f conftest.er1
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } &&
23983 { ac_try='test -z "$ac_cxx_werror_flag"
23984 || test ! -s conftest.err'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; } &&
23990 { ac_try='test -s conftest$ac_exeext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ac_cv_lib_ipc_shmat=yes
23997else
23998 echo "$as_me: failed program was:" >&5
23999sed 's/^/| /' conftest.$ac_ext >&5
24000
24001ac_cv_lib_ipc_shmat=no
24002fi
24003rm -f conftest.err conftest.$ac_objext \
24004 conftest$ac_exeext conftest.$ac_ext
24005LIBS=$ac_check_lib_save_LIBS
24006fi
24007echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24008echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24009if test $ac_cv_lib_ipc_shmat = yes; then
24010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24011fi
24012
24013 fi
24014 fi
24015
24016 # Check for libraries that X11R6 Xt/Xaw programs need.
24017 ac_save_LDFLAGS=$LDFLAGS
24018 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24019 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24020 # check for ICE first), but we must link in the order -lSM -lICE or
24021 # we get undefined symbols. So assume we have SM if we have ICE.
24022 # These have to be linked with before -lX11, unlike the other
24023 # libraries we check for below, so use a different variable.
24024 # John Interrante, Karl Berry
24025 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24026echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24027if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24029else
24030 ac_check_lib_save_LIBS=$LIBS
24031LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24032cat >conftest.$ac_ext <<_ACEOF
24033/* confdefs.h. */
24034_ACEOF
24035cat confdefs.h >>conftest.$ac_ext
24036cat >>conftest.$ac_ext <<_ACEOF
24037/* end confdefs.h. */
24038
24039/* Override any gcc2 internal prototype to avoid an error. */
24040#ifdef __cplusplus
24041extern "C"
24042#endif
24043/* We use char because int might match the return type of a gcc2
24044 builtin and then its argument prototype would still apply. */
24045char IceConnectionNumber ();
24046int
24047main ()
24048{
24049IceConnectionNumber ();
24050 ;
24051 return 0;
24052}
24053_ACEOF
24054rm -f conftest.$ac_objext conftest$ac_exeext
24055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24056 (eval $ac_link) 2>conftest.er1
24057 ac_status=$?
24058 grep -v '^ *+' conftest.er1 >conftest.err
24059 rm -f conftest.er1
24060 cat conftest.err >&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } &&
24063 { ac_try='test -z "$ac_cxx_werror_flag"
24064 || test ! -s conftest.err'
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; } &&
24070 { ac_try='test -s conftest$ac_exeext'
24071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 ac_cv_lib_ICE_IceConnectionNumber=yes
24077else
24078 echo "$as_me: failed program was:" >&5
24079sed 's/^/| /' conftest.$ac_ext >&5
24080
24081ac_cv_lib_ICE_IceConnectionNumber=no
24082fi
24083rm -f conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
24085LIBS=$ac_check_lib_save_LIBS
24086fi
24087echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24088echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24089if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24090 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24091fi
24092
24093 LDFLAGS=$ac_save_LDFLAGS
24094
24095fi
24096
24097ORIG_X_SAVE_LIBS="$LIBS"
24098LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
24099X_LIBS="$LIBS"
24100
24101
24102 FATAL=0
24103
24104
24105# Check whether --with-qt-dir or --without-qt-dir was given.
24106if test "${with_qt_dir+set}" = set; then
24107 withval="$with_qt_dir"
24108 qt_cv_dir=`eval echo "$withval"/`
24109fi;
24110
24111
24112# Check whether --with-qt-includes or --without-qt-includes was given.
24113if test "${with_qt_includes+set}" = set; then
24114 withval="$with_qt_includes"
24115 qt_cv_includes=`eval echo "$withval"`
24116fi;
24117
24118
24119# Check whether --with-qt-libraries or --without-qt-libraries was given.
24120if test "${with_qt_libraries+set}" = set; then
24121 withval="$with_qt_libraries"
24122 qt_cv_libraries=`eval echo "$withval"`
24123fi;
24124
24125 if test -z "$qt_cv_dir"; then
24126 qt_cv_dir=$QTDIR
24127 fi
24128
24129 if test -n "$qt_cv_dir"; then
24130 if test -z "$qt_cv_includes"; then
24131 qt_cv_includes=$qt_cv_dir/include
24132 fi
24133 if test -z "$qt_cv_libraries"; then
24134 qt_cv_libraries=$qt_cv_dir/lib
24135 fi
24136 fi
24137
24138 QT_INCLUDES=
24139 QT_LDFLAGS=
24140 if test -n "$qt_cv_includes"; then
24141 QT_INCLUDES="-isystem $qt_cv_includes"
24142 fi
24143 if test -n "$qt_cv_libraries"; then
24144 QT_LDFLAGS="-L$qt_cv_libraries"
24145 fi
24146
24147
24148
24149
24150
24151 echo "$as_me:$LINENO: checking for moc2" >&5
24152echo $ECHO_N "checking for moc2... $ECHO_C" >&6
24153 if test "${qt_cv_path_moc2+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156
24157 qt_cv_path_moc2="NONE"
24158 if test -n "$ac_moc2"; then
24159 qt_cv_path_moc2="$ac_moc2";
24160 else
24161 dirs="$qt_cv_dir/bin"
24162 qt_save_IFS=$IFS
24163 IFS=':'
24164 for dir in $PATH; do
24165 dirs="$dirs $dir"
24166 done
24167 IFS=$qt_save_IFS
24168
24169 for dir in $dirs; do
24170 if test -x "$dir/moc2"; then
24171 if test -n ""; then
24172 evalstr="$dir/moc2 2>&1 "
24173 if eval $evalstr; then
24174 qt_cv_path_moc2="$dir/moc2"
24175 break
24176 fi
24177 else
24178 qt_cv_path_moc2="$dir/moc2"
24179 break
24180 fi
24181 fi
24182 done
24183 fi
24184
24185fi
24186
24187
24188 if test -z "$qt_cv_path_moc2" || test "$qt_cv_path_moc2" = "NONE"; then
24189 echo "$as_me:$LINENO: result: not found" >&5
24190echo "${ECHO_T}not found" >&6
24191
24192 else
24193 echo "$as_me:$LINENO: result: $qt_cv_path_moc2" >&5
24194echo "${ECHO_T}$qt_cv_path_moc2" >&6
24195 ac_moc2=$qt_cv_path_moc2
24196 fi
24197
24198
24199 echo "$as_me:$LINENO: checking for moc" >&5
24200echo $ECHO_N "checking for moc... $ECHO_C" >&6
24201 if test "${qt_cv_path_moc+set}" = set; then
24202 echo $ECHO_N "(cached) $ECHO_C" >&6
24203else
24204
24205 qt_cv_path_moc="NONE"
24206 if test -n "$ac_moc1"; then
24207 qt_cv_path_moc="$ac_moc1";
24208 else
24209 dirs="$qt_cv_dir/bin"
24210 qt_save_IFS=$IFS
24211 IFS=':'
24212 for dir in $PATH; do
24213 dirs="$dirs $dir"
24214 done
24215 IFS=$qt_save_IFS
24216
24217 for dir in $dirs; do
24218 if test -x "$dir/moc"; then
24219 if test -n ""; then
24220 evalstr="$dir/moc 2>&1 "
24221 if eval $evalstr; then
24222 qt_cv_path_moc="$dir/moc"
24223 break
24224 fi
24225 else
24226 qt_cv_path_moc="$dir/moc"
24227 break
24228 fi
24229 fi
24230 done
24231 fi
24232
24233fi
24234
24235
24236 if test -z "$qt_cv_path_moc" || test "$qt_cv_path_moc" = "NONE"; then
24237 echo "$as_me:$LINENO: result: not found" >&5
24238echo "${ECHO_T}not found" >&6
24239
24240 else
24241 echo "$as_me:$LINENO: result: $qt_cv_path_moc" >&5
24242echo "${ECHO_T}$qt_cv_path_moc" >&6
24243 ac_moc1=$qt_cv_path_moc
24244 fi
24245
24246
24247 if test -n "$ac_moc1" -a -n "$ac_moc2"; then
24248 $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null
24249 if test "$?" = 0; then
24250 ac_moc=$ac_moc1;
24251 else
24252 ac_moc=$ac_moc2;
24253 fi
24254 else
24255 if test -n "$ac_moc1"; then
24256 ac_moc=$ac_moc1;
24257 else
24258 ac_moc=$ac_moc2;
24259 fi
24260 fi
24261
24262 if test -z "$ac_moc" -a "$FATAL" = 1; then
24263 { { echo "$as_me:$LINENO: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&5
24264echo "$as_me: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
24265 { (exit 1); exit 1; }; }
24266 fi
24267
24268 MOC=$ac_moc
24269
24270
24271
24272 echo "$as_me:$LINENO: checking for uic" >&5
24273echo $ECHO_N "checking for uic... $ECHO_C" >&6
24274 if test "${qt_cv_path_uic+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276else
24277
24278 qt_cv_path_uic="NONE"
24279 if test -n "$ac_uic"; then
24280 qt_cv_path_uic="$ac_uic";
24281 else
24282 dirs="$qt_cv_dir/bin"
24283 qt_save_IFS=$IFS
24284 IFS=':'
24285 for dir in $PATH; do
24286 dirs="$dirs $dir"
24287 done
24288 IFS=$qt_save_IFS
24289
24290 for dir in $dirs; do
24291 if test -x "$dir/uic"; then
24292 if test -n ""; then
24293 evalstr="$dir/uic 2>&1 "
24294 if eval $evalstr; then
24295 qt_cv_path_uic="$dir/uic"
24296 break
24297 fi
24298 else
24299 qt_cv_path_uic="$dir/uic"
24300 break
24301 fi
24302 fi
24303 done
24304 fi
24305
24306fi
24307
24308
24309 if test -z "$qt_cv_path_uic" || test "$qt_cv_path_uic" = "NONE"; then
24310 echo "$as_me:$LINENO: result: not found" >&5
24311echo "${ECHO_T}not found" >&6
24312
24313 else
24314 echo "$as_me:$LINENO: result: $qt_cv_path_uic" >&5
24315echo "${ECHO_T}$qt_cv_path_uic" >&6
24316 ac_uic=$qt_cv_path_uic
24317 fi
24318
24319 if test -z "$ac_uic" -a "$FATAL" = 1; then
24320 { { echo "$as_me:$LINENO: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&5
24321echo "$as_me: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
24322 { (exit 1); exit 1; }; }
24323 fi
24324
24325 UIC=$ac_uic
24326
24327
24328
24329 echo "$as_me:$LINENO: checking for Qt library name" >&5
24330echo $ECHO_N "checking for Qt library name... $ECHO_C" >&6
24331
24332 if test "${qt_cv_libname+set}" = set; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24334else
24335
24336 ac_ext=cc
24337ac_cpp='$CXXCPP $CPPFLAGS'
24338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24341
24342 SAVE_CXXFLAGS=$CXXFLAGS
24343 CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS"
24344
24345 for libname in -lqt-mt -lqt3 -lqt2 -lqt;
24346 do
24347
24348 SAVE_LIBS="$LIBS"
24349 LIBS="$LIBS $libname"
24350 cat >conftest.$ac_ext <<_ACEOF
24351/* confdefs.h. */
24352_ACEOF
24353cat confdefs.h >>conftest.$ac_ext
24354cat >>conftest.$ac_ext <<_ACEOF
24355/* end confdefs.h. */
24356
24357 #include <qglobal.h>
24358 #include <qstring.h>
24359
24360int
24361main ()
24362{
24363
24364 QString s("mangle_failure");
24365 #if (QT_VERSION < 221)
24366 break_me_(\\\);
24367 #endif
24368
24369 ;
24370 return 0;
24371}
24372_ACEOF
24373rm -f conftest.$ac_objext conftest$ac_exeext
24374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24375 (eval $ac_link) 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } &&
24382 { ac_try='test -z "$ac_cxx_werror_flag"
24383 || test ! -s conftest.err'
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } &&
24389 { ac_try='test -s conftest$ac_exeext'
24390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391 (eval $ac_try) 2>&5
24392 ac_status=$?
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); }; }; then
24395 qt_cv_libname=$libname
24396else
24397 echo "$as_me: failed program was:" >&5
24398sed 's/^/| /' conftest.$ac_ext >&5
24399
24400fi
24401rm -f conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24403 LIBS="$SAVE_LIBS"
24404
24405 if test -n "$qt_cv_libname"; then
24406 break;
24407 fi
24408 done
24409
24410 CXXFLAGS=$SAVE_CXXFLAGS
24411
24412fi
24413
24414
24415 if test -z "$qt_cv_libname"; then
24416 echo "$as_me:$LINENO: result: failed" >&5
24417echo "${ECHO_T}failed" >&6
24418 if test "$FATAL" = 1 ; then
24419 { { echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5
24420echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;}
24421 { (exit 1); exit 1; }; }
24422 fi
24423 else
24424 echo "$as_me:$LINENO: result: $qt_cv_libname" >&5
24425echo "${ECHO_T}$qt_cv_libname" >&6
24426 fi
24427
24428
24429 QT_LIB=$qt_cv_libname;
24430
24431
24432 if test -n "$qt_cv_libname"; then
24433
24434 echo "$as_me:$LINENO: checking Qt version" >&5
24435echo $ECHO_N "checking Qt version... $ECHO_C" >&6
24436if test "${lyx_cv_qtversion+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24438else
24439
24440 ac_ext=cc
24441ac_cpp='$CXXCPP $CPPFLAGS'
24442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24445
24446 SAVE_CPPFLAGS=$CPPFLAGS
24447 CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
24448
24449 cat > conftest.$ac_ext <<EOF
24450#line 24450 "configure"
24451#include "confdefs.h"
24452#include <qglobal.h>
24453"%%%"QT_VERSION_STR"%%%"
24454EOF
24455 lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
24456 grep '^"%%%"' 2>/dev/null | \
24457 sed -e 's/"%%%"//g' -e 's/"//g'`
24458 rm -f conftest.$ac_ext
24459 CPPFLAGS=$SAVE_CPPFLAGS
24460
24461fi
24462echo "$as_me:$LINENO: result: $lyx_cv_qtversion" >&5
24463echo "${ECHO_T}$lyx_cv_qtversion" >&6
24464
24465 QT_VERSION=$lyx_cv_qtversion
24466
24467
24468 fi
24469
24470LIBS="$ORIG_X_SAVE_LIBS"
24471
24472# Check whether --enable-pch or --disable-pch was given.
24473if test "${enable_pch+set}" = set; then
24474 enableval="$enable_pch"
24475 enable_pch=$enableval
24476else
24477 enable_pch=no
24478fi;
24479if test "$enable_pch" = yes; then
24480
24481echo "$as_me:$LINENO: checking whether ${CXX} support precompiled header" >&5
24482echo $ECHO_N "checking whether ${CXX} support precompiled header... $ECHO_C" >&6
24483
24484
24485ac_ext=cc
24486ac_cpp='$CXXCPP $CPPFLAGS'
24487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24490
24491SAVE_CXXFLAGS=$CXXFLAGS
24492CXXFLAGS=-Winvalid-pch
24493cat >conftest.$ac_ext <<_ACEOF
24494/* confdefs.h. */
24495_ACEOF
24496cat confdefs.h >>conftest.$ac_ext
24497cat >>conftest.$ac_ext <<_ACEOF
24498/* end confdefs.h. */
24499
24500int
24501main ()
24502{
24503;
24504 ;
24505 return 0;
24506}
24507_ACEOF
24508rm -f conftest.$ac_objext
24509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24510 (eval $ac_compile) 2>conftest.er1
24511 ac_status=$?
24512 grep -v '^ *+' conftest.er1 >conftest.err
24513 rm -f conftest.er1
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } &&
24517 { ac_try='test -z "$ac_cxx_werror_flag"
24518 || test ! -s conftest.err'
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24521 ac_status=$?
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; } &&
24524 { ac_try='test -s conftest.$ac_objext'
24525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 echo "$as_me:$LINENO: result: yes" >&5
24531echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -include bits/stdc++.h"
24532else
24533 echo "$as_me: failed program was:" >&5
24534sed 's/^/| /' conftest.$ac_ext >&5
24535
24536echo "$as_me:$LINENO: result: no" >&5
24537echo "${ECHO_T}no" >&6
24538fi
24539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24540CXXFLAGS=$SAVE_CXXFLAGS
24541ac_ext=cc
24542ac_cpp='$CXXCPP $CPPFLAGS'
24543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24546
24547
24548fi
24549
24550
24551# It's just rude to go over the net to build
24552XSLTPROC_FLAGS=--nonet
24553DOCBOOK_ROOT=
24554if test ! -f /etc/xml/catalog; then
24555 for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/;
24556 do
24557 if test -d "$i"; then
24558 DOCBOOK_ROOT=$i
24559 fi
24560 done
24561
24562 # Last resort - try net
24563 if test -z "$DOCBOOK_ROOT"; then
24564 XSLTPROC_FLAGS=
24565 fi
24566else
24567 XML_CATALOG=/etc/xml/catalog
24568 CAT_ENTRY_START='<!--'
24569 CAT_ENTRY_END='-->'
24570fi
24571
24572# Extract the first word of "xsltproc", so it can be a program name with args.
24573set dummy xsltproc; ac_word=$2
24574echo "$as_me:$LINENO: checking for $ac_word" >&5
24575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24576if test "${ac_cv_prog_XSLTPROC+set}" = set; then
24577 echo $ECHO_N "(cached) $ECHO_C" >&6
24578else
24579 if test -n "$XSLTPROC"; then
24580 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
24581else
24582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24583for as_dir in $PATH
24584do
24585 IFS=$as_save_IFS
24586 test -z "$as_dir" && as_dir=.
24587 for ac_exec_ext in '' $ac_executable_extensions; do
24588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24589 ac_cv_prog_XSLTPROC="xsltproc"
24590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24591 break 2
24592 fi
24593done
24594done
24595
24596fi
24597fi
24598XSLTPROC=$ac_cv_prog_XSLTPROC
24599if test -n "$XSLTPROC"; then
24600 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
24601echo "${ECHO_T}$XSLTPROC" >&6
24602else
24603 echo "$as_me:$LINENO: result: no" >&5
24604echo "${ECHO_T}no" >&6
24605fi
24606
24607XSLTPROC_WORKS=no
24608if test -n "$XSLTPROC"; then
24609 echo "$as_me:$LINENO: checking whether xsltproc works" >&5
24610echo $ECHO_N "checking whether xsltproc works... $ECHO_C" >&6
24611
24612 if test -n "$XML_CATALOG"; then
24613 DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
24614 else
24615 DB_FILE="$DOCBOOK_ROOT/docbook.xsl"
24616 fi
24617
24618 $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
24619<?xml version="1.0" encoding='ISO-8859-1'?>
24620<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
24621<book id="test">
24622</book>
24623END
24624 if test "$?" = 0; then
24625 XSLTPROC_WORKS=yes
24626 fi
24627 echo "$as_me:$LINENO: result: $XSLTPROC_WORKS" >&5
24628echo "${ECHO_T}$XSLTPROC_WORKS" >&6
24629fi
24630
24631
24632if test "$XSLTPROC_WORKS" = "yes"; then
24633 have_xsltproc_TRUE=
24634 have_xsltproc_FALSE='#'
24635else
24636 have_xsltproc_TRUE='#'
24637 have_xsltproc_FALSE=
24638fi
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648LIBS="$ORIG_SAVE_LIBS"
24649LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB"
24650BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB"
24651POPT_LIBS="-lpopt"
24652
24653
24654
24655
24656# do NOT put tests here, they will fail in the case X is not installed !
24657
24658
24659
24660if test -n "$QT_LIB"; then
24661 have_qt_TRUE=
24662 have_qt_FALSE='#'
24663else
24664 have_qt_TRUE='#'
24665 have_qt_FALSE=
24666fi
24667
24668
24669
24670echo "$as_me:$LINENO: checking whether ${CC} -W is understood" >&5
24671echo $ECHO_N "checking whether ${CC} -W is understood... $ECHO_C" >&6
24672
24673
24674ac_ext=c
24675ac_cpp='$CPP $CPPFLAGS'
24676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24678ac_compiler_gnu=$ac_cv_c_compiler_gnu
24679
24680SAVE_CFLAGS=$CFLAGS
24681CFLAGS=-W
24682cat >conftest.$ac_ext <<_ACEOF
24683/* confdefs.h. */
24684_ACEOF
24685cat confdefs.h >>conftest.$ac_ext
24686cat >>conftest.$ac_ext <<_ACEOF
24687/* end confdefs.h. */
24688
24689int
24690main ()
24691{
24692;
24693 ;
24694 return 0;
24695}
24696_ACEOF
24697rm -f conftest.$ac_objext
24698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24699 (eval $ac_compile) 2>conftest.er1
24700 ac_status=$?
24701 grep -v '^ *+' conftest.er1 >conftest.err
24702 rm -f conftest.er1
24703 cat conftest.err >&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } &&
24706 { ac_try='test -z "$ac_c_werror_flag"
24707 || test ! -s conftest.err'
24708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24709 (eval $ac_try) 2>&5
24710 ac_status=$?
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); }; } &&
24713 { ac_try='test -s conftest.$ac_objext'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; }; then
24719 echo "$as_me:$LINENO: result: yes" >&5
24720echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -W"
24721else
24722 echo "$as_me: failed program was:" >&5
24723sed 's/^/| /' conftest.$ac_ext >&5
24724
24725echo "$as_me:$LINENO: result: no" >&5
24726echo "${ECHO_T}no" >&6
24727fi
24728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24729CFLAGS=$SAVE_CFLAGS
24730ac_ext=cc
24731ac_cpp='$CXXCPP $CPPFLAGS'
24732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24735
24736
24737
24738echo "$as_me:$LINENO: checking whether ${CXX} -W is understood" >&5
24739echo $ECHO_N "checking whether ${CXX} -W is understood... $ECHO_C" >&6
24740
24741
24742ac_ext=cc
24743ac_cpp='$CXXCPP $CPPFLAGS'
24744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24747
24748SAVE_CXXFLAGS=$CXXFLAGS
24749CXXFLAGS=-W
24750cat >conftest.$ac_ext <<_ACEOF
24751/* confdefs.h. */
24752_ACEOF
24753cat confdefs.h >>conftest.$ac_ext
24754cat >>conftest.$ac_ext <<_ACEOF
24755/* end confdefs.h. */
24756
24757int
24758main ()
24759{
24760;
24761 ;
24762 return 0;
24763}
24764_ACEOF
24765rm -f conftest.$ac_objext
24766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24767 (eval $ac_compile) 2>conftest.er1
24768 ac_status=$?
24769 grep -v '^ *+' conftest.er1 >conftest.err
24770 rm -f conftest.er1
24771 cat conftest.err >&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); } &&
24774 { ac_try='test -z "$ac_cxx_werror_flag"
24775 || test ! -s conftest.err'
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; } &&
24781 { ac_try='test -s conftest.$ac_objext'
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; }; then
24787 echo "$as_me:$LINENO: result: yes" >&5
24788echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -W"
24789else
24790 echo "$as_me: failed program was:" >&5
24791sed 's/^/| /' conftest.$ac_ext >&5
24792
24793echo "$as_me:$LINENO: result: no" >&5
24794echo "${ECHO_T}no" >&6
24795fi
24796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24797CXXFLAGS=$SAVE_CXXFLAGS
24798ac_ext=cc
24799ac_cpp='$CXXCPP $CPPFLAGS'
24800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24803
24804
24805
24806echo "$as_me:$LINENO: checking whether ${CC} -Wall is understood" >&5
24807echo $ECHO_N "checking whether ${CC} -Wall is understood... $ECHO_C" >&6
24808
24809
24810ac_ext=c
24811ac_cpp='$CPP $CPPFLAGS'
24812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24814ac_compiler_gnu=$ac_cv_c_compiler_gnu
24815
24816SAVE_CFLAGS=$CFLAGS
24817CFLAGS=-Wall
24818cat >conftest.$ac_ext <<_ACEOF
24819/* confdefs.h. */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h. */
24824
24825int
24826main ()
24827{
24828;
24829 ;
24830 return 0;
24831}
24832_ACEOF
24833rm -f conftest.$ac_objext
24834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24835 (eval $ac_compile) 2>conftest.er1
24836 ac_status=$?
24837 grep -v '^ *+' conftest.er1 >conftest.err
24838 rm -f conftest.er1
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
24842 { ac_try='test -z "$ac_c_werror_flag"
24843 || test ! -s conftest.err'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest.$ac_objext'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24855 echo "$as_me:$LINENO: result: yes" >&5
24856echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Wall"
24857else
24858 echo "$as_me: failed program was:" >&5
24859sed 's/^/| /' conftest.$ac_ext >&5
24860
24861echo "$as_me:$LINENO: result: no" >&5
24862echo "${ECHO_T}no" >&6
24863fi
24864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24865CFLAGS=$SAVE_CFLAGS
24866ac_ext=cc
24867ac_cpp='$CXXCPP $CPPFLAGS'
24868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24871
24872
24873
24874echo "$as_me:$LINENO: checking whether ${CXX} -Wall is understood" >&5
24875echo $ECHO_N "checking whether ${CXX} -Wall is understood... $ECHO_C" >&6
24876
24877
24878ac_ext=cc
24879ac_cpp='$CXXCPP $CPPFLAGS'
24880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24883
24884SAVE_CXXFLAGS=$CXXFLAGS
24885CXXFLAGS=-Wall
24886cat >conftest.$ac_ext <<_ACEOF
24887/* confdefs.h. */
24888_ACEOF
24889cat confdefs.h >>conftest.$ac_ext
24890cat >>conftest.$ac_ext <<_ACEOF
24891/* end confdefs.h. */
24892
24893int
24894main ()
24895{
24896;
24897 ;
24898 return 0;
24899}
24900_ACEOF
24901rm -f conftest.$ac_objext
24902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24903 (eval $ac_compile) 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
24910 { ac_try='test -z "$ac_cxx_werror_flag"
24911 || test ! -s conftest.err'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; } &&
24917 { ac_try='test -s conftest.$ac_objext'
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; }; then
24923 echo "$as_me:$LINENO: result: yes" >&5
24924echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -Wall"
24925else
24926 echo "$as_me: failed program was:" >&5
24927sed 's/^/| /' conftest.$ac_ext >&5
24928
24929echo "$as_me:$LINENO: result: no" >&5
24930echo "${ECHO_T}no" >&6
24931fi
24932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24933CXXFLAGS=$SAVE_CXXFLAGS
24934ac_ext=cc
24935ac_cpp='$CXXCPP $CPPFLAGS'
24936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24939
24940
24941
24942echo "$as_me:$LINENO: checking whether ${CC} -fno-common is understood" >&5
24943echo $ECHO_N "checking whether ${CC} -fno-common is understood... $ECHO_C" >&6
24944
24945
24946ac_ext=c
24947ac_cpp='$CPP $CPPFLAGS'
24948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24950ac_compiler_gnu=$ac_cv_c_compiler_gnu
24951
24952SAVE_CFLAGS=$CFLAGS
24953CFLAGS=-fno-common
24954cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h. */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h. */
24960
24961int
24962main ()
24963{
24964;
24965 ;
24966 return 0;
24967}
24968_ACEOF
24969rm -f conftest.$ac_objext
24970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24971 (eval $ac_compile) 2>conftest.er1
24972 ac_status=$?
24973 grep -v '^ *+' conftest.er1 >conftest.err
24974 rm -f conftest.er1
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } &&
24978 { ac_try='test -z "$ac_c_werror_flag"
24979 || test ! -s conftest.err'
24980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24981 (eval $ac_try) 2>&5
24982 ac_status=$?
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); }; } &&
24985 { ac_try='test -s conftest.$ac_objext'
24986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; }; then
24991 echo "$as_me:$LINENO: result: yes" >&5
24992echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -fno-common"
24993else
24994 echo "$as_me: failed program was:" >&5
24995sed 's/^/| /' conftest.$ac_ext >&5
24996
24997echo "$as_me:$LINENO: result: no" >&5
24998echo "${ECHO_T}no" >&6
24999fi
25000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25001CFLAGS=$SAVE_CFLAGS
25002ac_ext=cc
25003ac_cpp='$CXXCPP $CPPFLAGS'
25004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25007
25008
25009
25010echo "$as_me:$LINENO: checking whether ${CXX} -fno-common is understood" >&5
25011echo $ECHO_N "checking whether ${CXX} -fno-common is understood... $ECHO_C" >&6
25012
25013
25014ac_ext=cc
25015ac_cpp='$CXXCPP $CPPFLAGS'
25016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25019
25020SAVE_CXXFLAGS=$CXXFLAGS
25021CXXFLAGS=-fno-common
25022cat >conftest.$ac_ext <<_ACEOF
25023/* confdefs.h. */
25024_ACEOF
25025cat confdefs.h >>conftest.$ac_ext
25026cat >>conftest.$ac_ext <<_ACEOF
25027/* end confdefs.h. */
25028
25029int
25030main ()
25031{
25032;
25033 ;
25034 return 0;
25035}
25036_ACEOF
25037rm -f conftest.$ac_objext
25038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25039 (eval $ac_compile) 2>conftest.er1
25040 ac_status=$?
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
25046 { ac_try='test -z "$ac_cxx_werror_flag"
25047 || test ! -s conftest.err'
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; } &&
25053 { ac_try='test -s conftest.$ac_objext'
25054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; }; then
25059 echo "$as_me:$LINENO: result: yes" >&5
25060echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -fno-common"
25061else
25062 echo "$as_me: failed program was:" >&5
25063sed 's/^/| /' conftest.$ac_ext >&5
25064
25065echo "$as_me:$LINENO: result: no" >&5
25066echo "${ECHO_T}no" >&6
25067fi
25068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25069CXXFLAGS=$SAVE_CXXFLAGS
25070ac_ext=cc
25071ac_cpp='$CXXCPP $CPPFLAGS'
25072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25075
25076
25077
25078echo "$as_me:$LINENO: checking whether ${CXX} -ftemplate-depth-50 is understood" >&5
25079echo $ECHO_N "checking whether ${CXX} -ftemplate-depth-50 is understood... $ECHO_C" >&6
25080
25081
25082ac_ext=cc
25083ac_cpp='$CXXCPP $CPPFLAGS'
25084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25087
25088SAVE_CXXFLAGS=$CXXFLAGS
25089CXXFLAGS=-ftemplate-depth-50
25090cat >conftest.$ac_ext <<_ACEOF
25091/* confdefs.h. */
25092_ACEOF
25093cat confdefs.h >>conftest.$ac_ext
25094cat >>conftest.$ac_ext <<_ACEOF
25095/* end confdefs.h. */
25096
25097int
25098main ()
25099{
25100;
25101 ;
25102 return 0;
25103}
25104_ACEOF
25105rm -f conftest.$ac_objext
25106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107 (eval $ac_compile) 2>conftest.er1
25108 ac_status=$?
25109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } &&
25114 { ac_try='test -z "$ac_cxx_werror_flag"
25115 || test ! -s conftest.err'
25116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25118 ac_status=$?
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest.$ac_objext'
25122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 echo "$as_me:$LINENO: result: yes" >&5
25128echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -ftemplate-depth-50"
25129else
25130 echo "$as_me: failed program was:" >&5
25131sed 's/^/| /' conftest.$ac_ext >&5
25132
25133echo "$as_me:$LINENO: result: no" >&5
25134echo "${ECHO_T}no" >&6
25135fi
25136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25137CXXFLAGS=$SAVE_CXXFLAGS
25138ac_ext=cc
25139ac_cpp='$CXXCPP $CPPFLAGS'
25140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25143
25144
25145
25146echo "$as_me:$LINENO: checking whether ${CC} -Wdeclaration-after-statement is understood" >&5
25147echo $ECHO_N "checking whether ${CC} -Wdeclaration-after-statement is understood... $ECHO_C" >&6
25148
25149
25150ac_ext=c
25151ac_cpp='$CPP $CPPFLAGS'
25152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25154ac_compiler_gnu=$ac_cv_c_compiler_gnu
25155
25156SAVE_CFLAGS=$CFLAGS
25157CFLAGS=-Wdeclaration-after-statement
25158cat >conftest.$ac_ext <<_ACEOF
25159/* confdefs.h. */
25160_ACEOF
25161cat confdefs.h >>conftest.$ac_ext
25162cat >>conftest.$ac_ext <<_ACEOF
25163/* end confdefs.h. */
25164
25165int
25166main ()
25167{
25168;
25169 ;
25170 return 0;
25171}
25172_ACEOF
25173rm -f conftest.$ac_objext
25174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25175 (eval $ac_compile) 2>conftest.er1
25176 ac_status=$?
25177 grep -v '^ *+' conftest.er1 >conftest.err
25178 rm -f conftest.er1
25179 cat conftest.err >&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
25182 { ac_try='test -z "$ac_c_werror_flag"
25183 || test ! -s conftest.err'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest.$ac_objext'
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 echo "$as_me:$LINENO: result: yes" >&5
25196echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Wdeclaration-after-statement"
25197else
25198 echo "$as_me: failed program was:" >&5
25199sed 's/^/| /' conftest.$ac_ext >&5
25200
25201echo "$as_me:$LINENO: result: no" >&5
25202echo "${ECHO_T}no" >&6
25203fi
25204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25205CFLAGS=$SAVE_CFLAGS
25206ac_ext=cc
25207ac_cpp='$CXXCPP $CPPFLAGS'
25208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25211
25212
25213
25214# Check whether --enable-gcov or --disable-gcov was given.
25215if test "${enable_gcov+set}" = set; then
25216 enableval="$enable_gcov"
25217 enable_gcov=$enableval
25218else
25219 enable_gcov=no
25220fi;
25221if test "$enable_gcov" = yes; then
25222
25223echo "$as_me:$LINENO: checking whether ${CC} -fprofile-arcs is understood" >&5
25224echo $ECHO_N "checking whether ${CC} -fprofile-arcs is understood... $ECHO_C" >&6
25225
25226
25227ac_ext=c
25228ac_cpp='$CPP $CPPFLAGS'
25229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25231ac_compiler_gnu=$ac_cv_c_compiler_gnu
25232
25233SAVE_CFLAGS=$CFLAGS
25234CFLAGS=-fprofile-arcs
25235cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241
25242int
25243main ()
25244{
25245;
25246 ;
25247 return 0;
25248}
25249_ACEOF
25250rm -f conftest.$ac_objext
25251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25252 (eval $ac_compile) 2>conftest.er1
25253 ac_status=$?
25254 grep -v '^ *+' conftest.er1 >conftest.err
25255 rm -f conftest.er1
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } &&
25259 { ac_try='test -z "$ac_c_werror_flag"
25260 || test ! -s conftest.err'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; } &&
25266 { ac_try='test -s conftest.$ac_objext'
25267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; }; then
25272 echo "$as_me:$LINENO: result: yes" >&5
25273echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -fprofile-arcs"
25274else
25275 echo "$as_me: failed program was:" >&5
25276sed 's/^/| /' conftest.$ac_ext >&5
25277
25278echo "$as_me:$LINENO: result: no" >&5
25279echo "${ECHO_T}no" >&6
25280fi
25281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25282CFLAGS=$SAVE_CFLAGS
25283ac_ext=cc
25284ac_cpp='$CXXCPP $CPPFLAGS'
25285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25288
25289
25290
25291echo "$as_me:$LINENO: checking whether ${CXX} -fprofile-arcs is understood" >&5
25292echo $ECHO_N "checking whether ${CXX} -fprofile-arcs is understood... $ECHO_C" >&6
25293
25294
25295ac_ext=cc
25296ac_cpp='$CXXCPP $CPPFLAGS'
25297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25300
25301SAVE_CXXFLAGS=$CXXFLAGS
25302CXXFLAGS=-fprofile-arcs
25303cat >conftest.$ac_ext <<_ACEOF
25304/* confdefs.h. */
25305_ACEOF
25306cat confdefs.h >>conftest.$ac_ext
25307cat >>conftest.$ac_ext <<_ACEOF
25308/* end confdefs.h. */
25309
25310int
25311main ()
25312{
25313;
25314 ;
25315 return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext
25319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25320 (eval $ac_compile) 2>conftest.er1
25321 ac_status=$?
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
25327 { ac_try='test -z "$ac_cxx_werror_flag"
25328 || test ! -s conftest.err'
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; } &&
25334 { ac_try='test -s conftest.$ac_objext'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 echo "$as_me:$LINENO: result: yes" >&5
25341echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -fprofile-arcs"
25342else
25343 echo "$as_me: failed program was:" >&5
25344sed 's/^/| /' conftest.$ac_ext >&5
25345
25346echo "$as_me:$LINENO: result: no" >&5
25347echo "${ECHO_T}no" >&6
25348fi
25349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25350CXXFLAGS=$SAVE_CXXFLAGS
25351ac_ext=cc
25352ac_cpp='$CXXCPP $CPPFLAGS'
25353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25356
25357
25358
25359echo "$as_me:$LINENO: checking whether ${CC} -ftest-coverage is understood" >&5
25360echo $ECHO_N "checking whether ${CC} -ftest-coverage is understood... $ECHO_C" >&6
25361
25362
25363ac_ext=c
25364ac_cpp='$CPP $CPPFLAGS'
25365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25367ac_compiler_gnu=$ac_cv_c_compiler_gnu
25368
25369SAVE_CFLAGS=$CFLAGS
25370CFLAGS=-ftest-coverage
25371cat >conftest.$ac_ext <<_ACEOF
25372/* confdefs.h. */
25373_ACEOF
25374cat confdefs.h >>conftest.$ac_ext
25375cat >>conftest.$ac_ext <<_ACEOF
25376/* end confdefs.h. */
25377
25378int
25379main ()
25380{
25381;
25382 ;
25383 return 0;
25384}
25385_ACEOF
25386rm -f conftest.$ac_objext
25387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388 (eval $ac_compile) 2>conftest.er1
25389 ac_status=$?
25390 grep -v '^ *+' conftest.er1 >conftest.err
25391 rm -f conftest.er1
25392 cat conftest.err >&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } &&
25395 { ac_try='test -z "$ac_c_werror_flag"
25396 || test ! -s conftest.err'
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; } &&
25402 { ac_try='test -s conftest.$ac_objext'
25403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404 (eval $ac_try) 2>&5
25405 ac_status=$?
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); }; }; then
25408 echo "$as_me:$LINENO: result: yes" >&5
25409echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -ftest-coverage"
25410else
25411 echo "$as_me: failed program was:" >&5
25412sed 's/^/| /' conftest.$ac_ext >&5
25413
25414echo "$as_me:$LINENO: result: no" >&5
25415echo "${ECHO_T}no" >&6
25416fi
25417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25418CFLAGS=$SAVE_CFLAGS
25419ac_ext=cc
25420ac_cpp='$CXXCPP $CPPFLAGS'
25421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25424
25425
25426
25427echo "$as_me:$LINENO: checking whether ${CXX} -ftest-coverage is understood" >&5
25428echo $ECHO_N "checking whether ${CXX} -ftest-coverage is understood... $ECHO_C" >&6
25429
25430
25431ac_ext=cc
25432ac_cpp='$CXXCPP $CPPFLAGS'
25433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25436
25437SAVE_CXXFLAGS=$CXXFLAGS
25438CXXFLAGS=-ftest-coverage
25439cat >conftest.$ac_ext <<_ACEOF
25440/* confdefs.h. */
25441_ACEOF
25442cat confdefs.h >>conftest.$ac_ext
25443cat >>conftest.$ac_ext <<_ACEOF
25444/* end confdefs.h. */
25445
25446int
25447main ()
25448{
25449;
25450 ;
25451 return 0;
25452}
25453_ACEOF
25454rm -f conftest.$ac_objext
25455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25456 (eval $ac_compile) 2>conftest.er1
25457 ac_status=$?
25458 grep -v '^ *+' conftest.er1 >conftest.err
25459 rm -f conftest.er1
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_cxx_werror_flag"
25464 || test ! -s conftest.err'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest.$ac_objext'
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 echo "$as_me:$LINENO: result: yes" >&5
25477echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -ftest-coverage"
25478else
25479 echo "$as_me: failed program was:" >&5
25480sed 's/^/| /' conftest.$ac_ext >&5
25481
25482echo "$as_me:$LINENO: result: no" >&5
25483echo "${ECHO_T}no" >&6
25484fi
25485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25486CXXFLAGS=$SAVE_CXXFLAGS
25487ac_ext=cc
25488ac_cpp='$CXXCPP $CPPFLAGS'
25489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25492
25493
25494fi
25495
25496# Check whether --enable-werror or --disable-werror was given.
25497if test "${enable_werror+set}" = set; then
25498 enableval="$enable_werror"
25499 enable_werror=$enableval
25500else
25501 enable_werror=yes
25502fi;
25503if test "$enable_werror" = yes; then
25504 # enable -Werror for non-release versions.
25505 if echo "$VERSION" | grep cvs >/dev/null; then
25506
25507echo "$as_me:$LINENO: checking whether ${CC} -Werror is understood" >&5
25508echo $ECHO_N "checking whether ${CC} -Werror is understood... $ECHO_C" >&6
25509
25510
25511ac_ext=c
25512ac_cpp='$CPP $CPPFLAGS'
25513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25515ac_compiler_gnu=$ac_cv_c_compiler_gnu
25516
25517SAVE_CFLAGS=$CFLAGS
25518CFLAGS=-Werror
25519cat >conftest.$ac_ext <<_ACEOF
25520/* confdefs.h. */
25521_ACEOF
25522cat confdefs.h >>conftest.$ac_ext
25523cat >>conftest.$ac_ext <<_ACEOF
25524/* end confdefs.h. */
25525
25526int
25527main ()
25528{
25529;
25530 ;
25531 return 0;
25532}
25533_ACEOF
25534rm -f conftest.$ac_objext
25535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536 (eval $ac_compile) 2>conftest.er1
25537 ac_status=$?
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_c_werror_flag"
25544 || test ! -s conftest.err'
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; } &&
25550 { ac_try='test -s conftest.$ac_objext'
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; }; then
25556 echo "$as_me:$LINENO: result: yes" >&5
25557echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Werror"
25558else
25559 echo "$as_me: failed program was:" >&5
25560sed 's/^/| /' conftest.$ac_ext >&5
25561
25562echo "$as_me:$LINENO: result: no" >&5
25563echo "${ECHO_T}no" >&6
25564fi
25565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25566CFLAGS=$SAVE_CFLAGS
25567ac_ext=cc
25568ac_cpp='$CXXCPP $CPPFLAGS'
25569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25572
25573
25574
25575echo "$as_me:$LINENO: checking whether ${CXX} -Werror is understood" >&5
25576echo $ECHO_N "checking whether ${CXX} -Werror is understood... $ECHO_C" >&6
25577
25578
25579ac_ext=cc
25580ac_cpp='$CXXCPP $CPPFLAGS'
25581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25584
25585SAVE_CXXFLAGS=$CXXFLAGS
25586CXXFLAGS=-Werror
25587cat >conftest.$ac_ext <<_ACEOF
25588/* confdefs.h. */
25589_ACEOF
25590cat confdefs.h >>conftest.$ac_ext
25591cat >>conftest.$ac_ext <<_ACEOF
25592/* end confdefs.h. */
25593
25594int
25595main ()
25596{
25597;
25598 ;
25599 return 0;
25600}
25601_ACEOF
25602rm -f conftest.$ac_objext
25603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25604 (eval $ac_compile) 2>conftest.er1
25605 ac_status=$?
25606 grep -v '^ *+' conftest.er1 >conftest.err
25607 rm -f conftest.er1
25608 cat conftest.err >&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); } &&
25611 { ac_try='test -z "$ac_cxx_werror_flag"
25612 || test ! -s conftest.err'
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; } &&
25618 { ac_try='test -s conftest.$ac_objext'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; }; then
25624 echo "$as_me:$LINENO: result: yes" >&5
25625echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -Werror"
25626else
25627 echo "$as_me: failed program was:" >&5
25628sed 's/^/| /' conftest.$ac_ext >&5
25629
25630echo "$as_me:$LINENO: result: no" >&5
25631echo "${ECHO_T}no" >&6
25632fi
25633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25634CXXFLAGS=$SAVE_CXXFLAGS
25635ac_ext=cc
25636ac_cpp='$CXXCPP $CPPFLAGS'
25637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25640
25641
25642 fi
25643fi
25644
25645# Check whether --enable-optimization or --disable-optimization was given.
25646if test "${enable_optimization+set}" = set; then
25647 enableval="$enable_optimization"
25648 enable_optimization=$enableval
25649else
25650 enable_optimisation=yes
25651fi;
25652if test "$enable_optimization" = "no"; then
25653 CFLAGS=`echo $CFLAGS | sed 's/-O2//g'`
25654 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'`
25655fi
25656
25657
25658
25659
25660# fixups for config.h
25661if test "$prefix" = "NONE"; then
25662 my_op_prefix="$ac_default_prefix"
25663else
25664 my_op_prefix="$prefix"
25665fi
25666my_op_datadir="$my_op_prefix/share"
25667
25668if test "$exec_prefix" = "NONE"; then
25669 my_op_exec_prefix="$my_op_prefix"
25670else
25671 my_op_exec_prefix="$exec_prefix"
25672fi
25673my_op_bindir="$my_op_exec_prefix/bin"
25674
25675OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"`
25676
25677cat >>confdefs.h <<_ACEOF
25678#define OP_DATADIR "$OP_DATADIR"
25679_ACEOF
25680
25681OP_BINDIR=`eval echo "$my_op_bindir/"`
25682
25683cat >>confdefs.h <<_ACEOF
25684#define OP_BINDIR "$OP_BINDIR"
25685_ACEOF
25686
25687OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"`
25688
25689
25690 ac_config_files="$ac_config_files Makefile m4/Makefile libutil/Makefile libutil/tests/Makefile libutil++/Makefile libutil++/tests/Makefile libop/Makefile libop/tests/Makefile libopagent/Makefile libopt++/Makefile libdb/Makefile libdb/tests/Makefile libabi/Makefile libabi/tests/Makefile libregex/Makefile libregex/tests/Makefile libregex/stl.pat libregex/tests/mangled-name daemon/Makefile daemon/liblegacy/Makefile events/Makefile utils/Makefile doc/Makefile doc/xsl/catalog-1.xml doc/oprofile.1 doc/opcontrol.1 doc/ophelp.1 doc/opreport.1 doc/opannotate.1 doc/opgprof.1 doc/oparchive.1 doc/opimport.1 doc/srcdoc/Doxyfile libpp/Makefile opjitconv/Makefile pp/Makefile gui/Makefile gui/ui/Makefile module/Makefile module/x86/Makefile module/ia64/Makefile agents/Makefile agents/jvmti/Makefile agents/jvmpi/Makefile"
25691cat >confcache <<\_ACEOF
25692# This file is a shell script that caches the results of configure
25693# tests run on this system so they can be shared between configure
25694# scripts and configure runs, see configure's option --config-cache.
25695# It is not useful on other systems. If it contains results you don't
25696# want to keep, you may remove or edit it.
25697#
25698# config.status only pays attention to the cache file if you give it
25699# the --recheck option to rerun configure.
25700#
25701# `ac_cv_env_foo' variables (set or unset) will be overridden when
25702# loading this file, other *unset* `ac_cv_foo' will be assigned the
25703# following values.
25704
25705_ACEOF
25706
25707# The following way of writing the cache mishandles newlines in values,
25708# but we know of no workaround that is simple, portable, and efficient.
25709# So, don't put newlines in cache variables' values.
25710# Ultrix sh set writes to stderr and can't be redirected directly,
25711# and sets the high bit in the cache file unless we assign to the vars.
25712{
25713 (set) 2>&1 |
25714 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25715 *ac_space=\ *)
25716 # `set' does not quote correctly, so add quotes (double-quote
25717 # substitution turns \\\\ into \\, and sed turns \\ into \).
25718 sed -n \
25719 "s/'/'\\\\''/g;
25720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25721 ;;
25722 *)
25723 # `set' quotes correctly as required by POSIX, so do not add quotes.
25724 sed -n \
25725 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25726 ;;
25727 esac;
25728} |
25729 sed '
25730 t clear
25731 : clear
25732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25733 t end
25734 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25735 : end' >>confcache
25736if diff $cache_file confcache >/dev/null 2>&1; then :; else
25737 if test -w $cache_file; then
25738 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25739 cat confcache >$cache_file
25740 else
25741 echo "not updating unwritable cache $cache_file"
25742 fi
25743fi
25744rm -f confcache
25745
25746test "x$prefix" = xNONE && prefix=$ac_default_prefix
25747# Let make expand exec_prefix.
25748test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25749
25750# VPATH may cause trouble with some makes, so we remove $(srcdir),
25751# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25752# trailing colons and then remove the whole line if VPATH becomes empty
25753# (actually we leave an empty line to preserve line numbers).
25754if test "x$srcdir" = x.; then
25755 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25756s/:*\$(srcdir):*/:/;
25757s/:*\${srcdir}:*/:/;
25758s/:*@srcdir@:*/:/;
25759s/^\([^=]*=[ ]*\):*/\1/;
25760s/:*$//;
25761s/^[^=]*=[ ]*$//;
25762}'
25763fi
25764
25765DEFS=-DHAVE_CONFIG_H
25766
25767ac_libobjs=
25768ac_ltlibobjs=
25769for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25770 # 1. Remove the extension, and $U if already installed.
25771 ac_i=`echo "$ac_i" |
25772 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25773 # 2. Add them.
25774 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25775 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25776done
25777LIBOBJS=$ac_libobjs
25778
25779LTLIBOBJS=$ac_ltlibobjs
25780
25781
25782if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25783 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25784Usually this means the macro was only invoked conditionally." >&5
25785echo "$as_me: error: conditional \"AMDEP\" was never defined.
25786Usually this means the macro was only invoked conditionally." >&2;}
25787 { (exit 1); exit 1; }; }
25788fi
25789if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25790 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25791Usually this means the macro was only invoked conditionally." >&5
25792echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25793Usually this means the macro was only invoked conditionally." >&2;}
25794 { (exit 1); exit 1; }; }
25795fi
25796if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25797 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25798Usually this means the macro was only invoked conditionally." >&5
25799echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25800Usually this means the macro was only invoked conditionally." >&2;}
25801 { (exit 1); exit 1; }; }
25802fi
25803if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25804 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25805Usually this means the macro was only invoked conditionally." >&5
25806echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25807Usually this means the macro was only invoked conditionally." >&2;}
25808 { (exit 1); exit 1; }; }
25809fi
25810if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25811 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25812Usually this means the macro was only invoked conditionally." >&5
25813echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25814Usually this means the macro was only invoked conditionally." >&2;}
25815 { (exit 1); exit 1; }; }
25816fi
25817if test -z "${kernel_support_TRUE}" && test -z "${kernel_support_FALSE}"; then
25818 { { echo "$as_me:$LINENO: error: conditional \"kernel_support\" was never defined.
25819Usually this means the macro was only invoked conditionally." >&5
25820echo "$as_me: error: conditional \"kernel_support\" was never defined.
25821Usually this means the macro was only invoked conditionally." >&2;}
25822 { (exit 1); exit 1; }; }
25823fi
25824if test -z "${BUILD_JVMTI_AGENT_TRUE}" && test -z "${BUILD_JVMTI_AGENT_FALSE}"; then
25825 { { echo "$as_me:$LINENO: error: conditional \"BUILD_JVMTI_AGENT\" was never defined.
25826Usually this means the macro was only invoked conditionally." >&5
25827echo "$as_me: error: conditional \"BUILD_JVMTI_AGENT\" was never defined.
25828Usually this means the macro was only invoked conditionally." >&2;}
25829 { (exit 1); exit 1; }; }
25830fi
25831if test -z "${BUILD_JVMPI_AGENT_TRUE}" && test -z "${BUILD_JVMPI_AGENT_FALSE}"; then
25832 { { echo "$as_me:$LINENO: error: conditional \"BUILD_JVMPI_AGENT\" was never defined.
25833Usually this means the macro was only invoked conditionally." >&5
25834echo "$as_me: error: conditional \"BUILD_JVMPI_AGENT\" was never defined.
25835Usually this means the macro was only invoked conditionally." >&2;}
25836 { (exit 1); exit 1; }; }
25837fi
25838if test -z "${have_xsltproc_TRUE}" && test -z "${have_xsltproc_FALSE}"; then
25839 { { echo "$as_me:$LINENO: error: conditional \"have_xsltproc\" was never defined.
25840Usually this means the macro was only invoked conditionally." >&5
25841echo "$as_me: error: conditional \"have_xsltproc\" was never defined.
25842Usually this means the macro was only invoked conditionally." >&2;}
25843 { (exit 1); exit 1; }; }
25844fi
25845if test -z "${have_qt_TRUE}" && test -z "${have_qt_FALSE}"; then
25846 { { echo "$as_me:$LINENO: error: conditional \"have_qt\" was never defined.
25847Usually this means the macro was only invoked conditionally." >&5
25848echo "$as_me: error: conditional \"have_qt\" was never defined.
25849Usually this means the macro was only invoked conditionally." >&2;}
25850 { (exit 1); exit 1; }; }
25851fi
25852
25853: ${CONFIG_STATUS=./config.status}
25854ac_clean_files_save=$ac_clean_files
25855ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25856{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25857echo "$as_me: creating $CONFIG_STATUS" >&6;}
25858cat >$CONFIG_STATUS <<_ACEOF
25859#! $SHELL
25860# Generated by $as_me.
25861# Run this file to recreate the current configuration.
25862# Compiler output produced by configure, useful for debugging
25863# configure, is in config.log if it exists.
25864
25865debug=false
25866ac_cs_recheck=false
25867ac_cs_silent=false
25868SHELL=\${CONFIG_SHELL-$SHELL}
25869_ACEOF
25870
25871cat >>$CONFIG_STATUS <<\_ACEOF
25872## --------------------- ##
25873## M4sh Initialization. ##
25874## --------------------- ##
25875
25876# Be Bourne compatible
25877if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25878 emulate sh
25879 NULLCMD=:
25880 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25881 # is contrary to our usage. Disable this feature.
25882 alias -g '${1+"$@"}'='"$@"'
25883elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25884 set -o posix
25885fi
25886DUALCASE=1; export DUALCASE # for MKS sh
25887
25888# Support unset when possible.
25889if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25890 as_unset=unset
25891else
25892 as_unset=false
25893fi
25894
25895
25896# Work around bugs in pre-3.0 UWIN ksh.
25897$as_unset ENV MAIL MAILPATH
25898PS1='$ '
25899PS2='> '
25900PS4='+ '
25901
25902# NLS nuisances.
25903for as_var in \
25904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25906 LC_TELEPHONE LC_TIME
25907do
25908 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25909 eval $as_var=C; export $as_var
25910 else
25911 $as_unset $as_var
25912 fi
25913done
25914
25915# Required to use basename.
25916if expr a : '\(a\)' >/dev/null 2>&1; then
25917 as_expr=expr
25918else
25919 as_expr=false
25920fi
25921
25922if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25923 as_basename=basename
25924else
25925 as_basename=false
25926fi
25927
25928
25929# Name of the executable.
25930as_me=`$as_basename "$0" ||
25931$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25932 X"$0" : 'X\(//\)$' \| \
25933 X"$0" : 'X\(/\)$' \| \
25934 . : '\(.\)' 2>/dev/null ||
25935echo X/"$0" |
25936 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25937 /^X\/\(\/\/\)$/{ s//\1/; q; }
25938 /^X\/\(\/\).*/{ s//\1/; q; }
25939 s/.*/./; q'`
25940
25941
25942# PATH needs CR, and LINENO needs CR and PATH.
25943# Avoid depending upon Character Ranges.
25944as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25945as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25946as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25947as_cr_digits='0123456789'
25948as_cr_alnum=$as_cr_Letters$as_cr_digits
25949
25950# The user is always right.
25951if test "${PATH_SEPARATOR+set}" != set; then
25952 echo "#! /bin/sh" >conf$$.sh
25953 echo "exit 0" >>conf$$.sh
25954 chmod +x conf$$.sh
25955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25956 PATH_SEPARATOR=';'
25957 else
25958 PATH_SEPARATOR=:
25959 fi
25960 rm -f conf$$.sh
25961fi
25962
25963
25964 as_lineno_1=$LINENO
25965 as_lineno_2=$LINENO
25966 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25967 test "x$as_lineno_1" != "x$as_lineno_2" &&
25968 test "x$as_lineno_3" = "x$as_lineno_2" || {
25969 # Find who we are. Look in the path if we contain no path at all
25970 # relative or not.
25971 case $0 in
25972 *[\\/]* ) as_myself=$0 ;;
25973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25974for as_dir in $PATH
25975do
25976 IFS=$as_save_IFS
25977 test -z "$as_dir" && as_dir=.
25978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25979done
25980
25981 ;;
25982 esac
25983 # We did not find ourselves, most probably we were run as `sh COMMAND'
25984 # in which case we are not to be found in the path.
25985 if test "x$as_myself" = x; then
25986 as_myself=$0
25987 fi
25988 if test ! -f "$as_myself"; then
25989 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25990echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25991 { (exit 1); exit 1; }; }
25992 fi
25993 case $CONFIG_SHELL in
25994 '')
25995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25996for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25997do
25998 IFS=$as_save_IFS
25999 test -z "$as_dir" && as_dir=.
26000 for as_base in sh bash ksh sh5; do
26001 case $as_dir in
26002 /*)
26003 if ("$as_dir/$as_base" -c '
26004 as_lineno_1=$LINENO
26005 as_lineno_2=$LINENO
26006 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26007 test "x$as_lineno_1" != "x$as_lineno_2" &&
26008 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26009 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26010 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26011 CONFIG_SHELL=$as_dir/$as_base
26012 export CONFIG_SHELL
26013 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26014 fi;;
26015 esac
26016 done
26017done
26018;;
26019 esac
26020
26021 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26022 # uniformly replaced by the line number. The first 'sed' inserts a
26023 # line-number line before each line; the second 'sed' does the real
26024 # work. The second script uses 'N' to pair each line-number line
26025 # with the numbered line, and appends trailing '-' during
26026 # substitution so that $LINENO is not a special case at line end.
26027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26028 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26029 sed '=' <$as_myself |
26030 sed '
26031 N
26032 s,$,-,
26033 : loop
26034 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26035 t loop
26036 s,-$,,
26037 s,^['$as_cr_digits']*\n,,
26038 ' >$as_me.lineno &&
26039 chmod +x $as_me.lineno ||
26040 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26041echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26042 { (exit 1); exit 1; }; }
26043
26044 # Don't try to exec as it changes $[0], causing all sort of problems
26045 # (the dirname of $[0] is not the place where we might find the
26046 # original and so on. Autoconf is especially sensible to this).
26047 . ./$as_me.lineno
26048 # Exit status is that of the last command.
26049 exit
26050}
26051
26052
26053case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26054 *c*,-n*) ECHO_N= ECHO_C='
26055' ECHO_T=' ' ;;
26056 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26057 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26058esac
26059
26060if expr a : '\(a\)' >/dev/null 2>&1; then
26061 as_expr=expr
26062else
26063 as_expr=false
26064fi
26065
26066rm -f conf$$ conf$$.exe conf$$.file
26067echo >conf$$.file
26068if ln -s conf$$.file conf$$ 2>/dev/null; then
26069 # We could just check for DJGPP; but this test a) works b) is more generic
26070 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26071 if test -f conf$$.exe; then
26072 # Don't use ln at all; we don't have any links
26073 as_ln_s='cp -p'
26074 else
26075 as_ln_s='ln -s'
26076 fi
26077elif ln conf$$.file conf$$ 2>/dev/null; then
26078 as_ln_s=ln
26079else
26080 as_ln_s='cp -p'
26081fi
26082rm -f conf$$ conf$$.exe conf$$.file
26083
26084if mkdir -p . 2>/dev/null; then
26085 as_mkdir_p=:
26086else
26087 test -d ./-p && rmdir ./-p
26088 as_mkdir_p=false
26089fi
26090
26091as_executable_p="test -f"
26092
26093# Sed expression to map a string onto a valid CPP name.
26094as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26095
26096# Sed expression to map a string onto a valid variable name.
26097as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26098
26099
26100# IFS
26101# We need space, tab and new line, in precisely that order.
26102as_nl='
26103'
26104IFS=" $as_nl"
26105
26106# CDPATH.
26107$as_unset CDPATH
26108
26109exec 6>&1
26110
26111# Open the log real soon, to keep \$[0] and so on meaningful, and to
26112# report actual input values of CONFIG_FILES etc. instead of their
26113# values after options handling. Logging --version etc. is OK.
26114exec 5>>config.log
26115{
26116 echo
26117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26118## Running $as_me. ##
26119_ASBOX
26120} >&5
26121cat >&5 <<_CSEOF
26122
26123This file was extended by $as_me, which was
26124generated by GNU Autoconf 2.59. Invocation command line was
26125
26126 CONFIG_FILES = $CONFIG_FILES
26127 CONFIG_HEADERS = $CONFIG_HEADERS
26128 CONFIG_LINKS = $CONFIG_LINKS
26129 CONFIG_COMMANDS = $CONFIG_COMMANDS
26130 $ $0 $@
26131
26132_CSEOF
26133echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26134echo >&5
26135_ACEOF
26136
26137# Files that config.status was made for.
26138if test -n "$ac_config_files"; then
26139 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26140fi
26141
26142if test -n "$ac_config_headers"; then
26143 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26144fi
26145
26146if test -n "$ac_config_links"; then
26147 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26148fi
26149
26150if test -n "$ac_config_commands"; then
26151 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26152fi
26153
26154cat >>$CONFIG_STATUS <<\_ACEOF
26155
26156ac_cs_usage="\
26157\`$as_me' instantiates files from templates according to the
26158current configuration.
26159
26160Usage: $0 [OPTIONS] [FILE]...
26161
26162 -h, --help print this help, then exit
26163 -V, --version print version number, then exit
26164 -q, --quiet do not print progress messages
26165 -d, --debug don't remove temporary files
26166 --recheck update $as_me by reconfiguring in the same conditions
26167 --file=FILE[:TEMPLATE]
26168 instantiate the configuration file FILE
26169 --header=FILE[:TEMPLATE]
26170 instantiate the configuration header FILE
26171
26172Configuration files:
26173$config_files
26174
26175Configuration headers:
26176$config_headers
26177
26178Configuration commands:
26179$config_commands
26180
26181Report bugs to <bug-autoconf@gnu.org>."
26182_ACEOF
26183
26184cat >>$CONFIG_STATUS <<_ACEOF
26185ac_cs_version="\\
26186config.status
26187configured by $0, generated by GNU Autoconf 2.59,
26188 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26189
26190Copyright (C) 2003 Free Software Foundation, Inc.
26191This config.status script is free software; the Free Software Foundation
26192gives unlimited permission to copy, distribute and modify it."
26193srcdir=$srcdir
26194INSTALL="$INSTALL"
26195_ACEOF
26196
26197cat >>$CONFIG_STATUS <<\_ACEOF
26198# If no file are specified by the user, then we need to provide default
26199# value. By we need to know if files were specified by the user.
26200ac_need_defaults=:
26201while test $# != 0
26202do
26203 case $1 in
26204 --*=*)
26205 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26206 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26207 ac_shift=:
26208 ;;
26209 -*)
26210 ac_option=$1
26211 ac_optarg=$2
26212 ac_shift=shift
26213 ;;
26214 *) # This is not an option, so the user has probably given explicit
26215 # arguments.
26216 ac_option=$1
26217 ac_need_defaults=false;;
26218 esac
26219
26220 case $ac_option in
26221 # Handling of the options.
26222_ACEOF
26223cat >>$CONFIG_STATUS <<\_ACEOF
26224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26225 ac_cs_recheck=: ;;
26226 --version | --vers* | -V )
26227 echo "$ac_cs_version"; exit 0 ;;
26228 --he | --h)
26229 # Conflict between --help and --header
26230 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26231Try \`$0 --help' for more information." >&5
26232echo "$as_me: error: ambiguous option: $1
26233Try \`$0 --help' for more information." >&2;}
26234 { (exit 1); exit 1; }; };;
26235 --help | --hel | -h )
26236 echo "$ac_cs_usage"; exit 0 ;;
26237 --debug | --d* | -d )
26238 debug=: ;;
26239 --file | --fil | --fi | --f )
26240 $ac_shift
26241 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26242 ac_need_defaults=false;;
26243 --header | --heade | --head | --hea )
26244 $ac_shift
26245 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26246 ac_need_defaults=false;;
26247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26249 ac_cs_silent=: ;;
26250
26251 # This is an error.
26252 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26253Try \`$0 --help' for more information." >&5
26254echo "$as_me: error: unrecognized option: $1
26255Try \`$0 --help' for more information." >&2;}
26256 { (exit 1); exit 1; }; } ;;
26257
26258 *) ac_config_targets="$ac_config_targets $1" ;;
26259
26260 esac
26261 shift
26262done
26263
26264ac_configure_extra_args=
26265
26266if $ac_cs_silent; then
26267 exec 6>/dev/null
26268 ac_configure_extra_args="$ac_configure_extra_args --silent"
26269fi
26270
26271_ACEOF
26272cat >>$CONFIG_STATUS <<_ACEOF
26273if \$ac_cs_recheck; then
26274 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26275 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26276fi
26277
26278_ACEOF
26279
26280cat >>$CONFIG_STATUS <<_ACEOF
26281#
26282# INIT-COMMANDS section.
26283#
26284
26285AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26286
26287_ACEOF
26288
26289
26290
26291cat >>$CONFIG_STATUS <<\_ACEOF
26292for ac_config_target in $ac_config_targets
26293do
26294 case "$ac_config_target" in
26295 # Handling of arguments.
26296 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26297 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
26298 "libutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil/Makefile" ;;
26299 "libutil/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil/tests/Makefile" ;;
26300 "libutil++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil++/Makefile" ;;
26301 "libutil++/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil++/tests/Makefile" ;;
26302 "libop/Makefile" ) CONFIG_FILES="$CONFIG_FILES libop/Makefile" ;;
26303 "libop/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libop/tests/Makefile" ;;
26304 "libopagent/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopagent/Makefile" ;;
26305 "libopt++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopt++/Makefile" ;;
26306 "libdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;;
26307 "libdb/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdb/tests/Makefile" ;;
26308 "libabi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libabi/Makefile" ;;
26309 "libabi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libabi/tests/Makefile" ;;
26310 "libregex/Makefile" ) CONFIG_FILES="$CONFIG_FILES libregex/Makefile" ;;
26311 "libregex/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libregex/tests/Makefile" ;;
26312 "libregex/stl.pat" ) CONFIG_FILES="$CONFIG_FILES libregex/stl.pat" ;;
26313 "libregex/tests/mangled-name" ) CONFIG_FILES="$CONFIG_FILES libregex/tests/mangled-name" ;;
26314 "daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
26315 "daemon/liblegacy/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/liblegacy/Makefile" ;;
26316 "events/Makefile" ) CONFIG_FILES="$CONFIG_FILES events/Makefile" ;;
26317 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
26318 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26319 "doc/xsl/catalog-1.xml" ) CONFIG_FILES="$CONFIG_FILES doc/xsl/catalog-1.xml" ;;
26320 "doc/oprofile.1" ) CONFIG_FILES="$CONFIG_FILES doc/oprofile.1" ;;
26321 "doc/opcontrol.1" ) CONFIG_FILES="$CONFIG_FILES doc/opcontrol.1" ;;
26322 "doc/ophelp.1" ) CONFIG_FILES="$CONFIG_FILES doc/ophelp.1" ;;
26323 "doc/opreport.1" ) CONFIG_FILES="$CONFIG_FILES doc/opreport.1" ;;
26324 "doc/opannotate.1" ) CONFIG_FILES="$CONFIG_FILES doc/opannotate.1" ;;
26325 "doc/opgprof.1" ) CONFIG_FILES="$CONFIG_FILES doc/opgprof.1" ;;
26326 "doc/oparchive.1" ) CONFIG_FILES="$CONFIG_FILES doc/oparchive.1" ;;
26327 "doc/opimport.1" ) CONFIG_FILES="$CONFIG_FILES doc/opimport.1" ;;
26328 "doc/srcdoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/srcdoc/Doxyfile" ;;
26329 "libpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libpp/Makefile" ;;
26330 "opjitconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES opjitconv/Makefile" ;;
26331 "pp/Makefile" ) CONFIG_FILES="$CONFIG_FILES pp/Makefile" ;;
26332 "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
26333 "gui/ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/ui/Makefile" ;;
26334 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
26335 "module/x86/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/x86/Makefile" ;;
26336 "module/ia64/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/ia64/Makefile" ;;
26337 "agents/Makefile" ) CONFIG_FILES="$CONFIG_FILES agents/Makefile" ;;
26338 "agents/jvmti/Makefile" ) CONFIG_FILES="$CONFIG_FILES agents/jvmti/Makefile" ;;
26339 "agents/jvmpi/Makefile" ) CONFIG_FILES="$CONFIG_FILES agents/jvmpi/Makefile" ;;
26340 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26341 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26342 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26343echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26344 { (exit 1); exit 1; }; };;
26345 esac
26346done
26347
26348# If the user did not use the arguments to specify the items to instantiate,
26349# then the envvar interface is used. Set only those that are not.
26350# We use the long form for the default assignment because of an extremely
26351# bizarre bug on SunOS 4.1.3.
26352if $ac_need_defaults; then
26353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26354 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26356fi
26357
26358# Have a temporary directory for convenience. Make it in the build tree
26359# simply because there is no reason to put it here, and in addition,
26360# creating and moving files from /tmp can sometimes cause problems.
26361# Create a temporary directory, and hook for its removal unless debugging.
26362$debug ||
26363{
26364 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26365 trap '{ (exit 1); exit 1; }' 1 2 13 15
26366}
26367
26368# Create a (secure) tmp directory for tmp files.
26369
26370{
26371 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26372 test -n "$tmp" && test -d "$tmp"
26373} ||
26374{
26375 tmp=./confstat$$-$RANDOM
26376 (umask 077 && mkdir $tmp)
26377} ||
26378{
26379 echo "$me: cannot create a temporary directory in ." >&2
26380 { (exit 1); exit 1; }
26381}
26382
26383_ACEOF
26384
26385cat >>$CONFIG_STATUS <<_ACEOF
26386
26387#
26388# CONFIG_FILES section.
26389#
26390
26391# No need to generate the scripts if there are no CONFIG_FILES.
26392# This happens for instance when ./config.status config.h
26393if test -n "\$CONFIG_FILES"; then
26394 # Protect against being on the right side of a sed subst in config.status.
26395 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26396 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26397s,@SHELL@,$SHELL,;t t
26398s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26399s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26400s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26401s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26402s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26403s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26404s,@exec_prefix@,$exec_prefix,;t t
26405s,@prefix@,$prefix,;t t
26406s,@program_transform_name@,$program_transform_name,;t t
26407s,@bindir@,$bindir,;t t
26408s,@sbindir@,$sbindir,;t t
26409s,@libexecdir@,$libexecdir,;t t
26410s,@datadir@,$datadir,;t t
26411s,@sysconfdir@,$sysconfdir,;t t
26412s,@sharedstatedir@,$sharedstatedir,;t t
26413s,@localstatedir@,$localstatedir,;t t
26414s,@libdir@,$libdir,;t t
26415s,@includedir@,$includedir,;t t
26416s,@oldincludedir@,$oldincludedir,;t t
26417s,@infodir@,$infodir,;t t
26418s,@mandir@,$mandir,;t t
26419s,@build_alias@,$build_alias,;t t
26420s,@host_alias@,$host_alias,;t t
26421s,@target_alias@,$target_alias,;t t
26422s,@DEFS@,$DEFS,;t t
26423s,@ECHO_C@,$ECHO_C,;t t
26424s,@ECHO_N@,$ECHO_N,;t t
26425s,@ECHO_T@,$ECHO_T,;t t
26426s,@LIBS@,$LIBS,;t t
26427s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26428s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26429s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26430s,@CYGPATH_W@,$CYGPATH_W,;t t
26431s,@PACKAGE@,$PACKAGE,;t t
26432s,@VERSION@,$VERSION,;t t
26433s,@ACLOCAL@,$ACLOCAL,;t t
26434s,@AUTOCONF@,$AUTOCONF,;t t
26435s,@AUTOMAKE@,$AUTOMAKE,;t t
26436s,@AUTOHEADER@,$AUTOHEADER,;t t
26437s,@MAKEINFO@,$MAKEINFO,;t t
26438s,@install_sh@,$install_sh,;t t
26439s,@STRIP@,$STRIP,;t t
26440s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26441s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26442s,@mkdir_p@,$mkdir_p,;t t
26443s,@AWK@,$AWK,;t t
26444s,@SET_MAKE@,$SET_MAKE,;t t
26445s,@am__leading_dot@,$am__leading_dot,;t t
26446s,@AMTAR@,$AMTAR,;t t
26447s,@am__tar@,$am__tar,;t t
26448s,@am__untar@,$am__untar,;t t
26449s,@CC@,$CC,;t t
26450s,@CFLAGS@,$CFLAGS,;t t
26451s,@LDFLAGS@,$LDFLAGS,;t t
26452s,@CPPFLAGS@,$CPPFLAGS,;t t
26453s,@ac_ct_CC@,$ac_ct_CC,;t t
26454s,@EXEEXT@,$EXEEXT,;t t
26455s,@OBJEXT@,$OBJEXT,;t t
26456s,@DEPDIR@,$DEPDIR,;t t
26457s,@am__include@,$am__include,;t t
26458s,@am__quote@,$am__quote,;t t
26459s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26460s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26461s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26462s,@CCDEPMODE@,$CCDEPMODE,;t t
26463s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26464s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26465s,@RANLIB@,$RANLIB,;t t
26466s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26467s,@build@,$build,;t t
26468s,@build_cpu@,$build_cpu,;t t
26469s,@build_vendor@,$build_vendor,;t t
26470s,@build_os@,$build_os,;t t
26471s,@host@,$host,;t t
26472s,@host_cpu@,$host_cpu,;t t
26473s,@host_vendor@,$host_vendor,;t t
26474s,@host_os@,$host_os,;t t
26475s,@EGREP@,$EGREP,;t t
26476s,@LN_S@,$LN_S,;t t
26477s,@ECHO@,$ECHO,;t t
26478s,@AR@,$AR,;t t
26479s,@ac_ct_AR@,$ac_ct_AR,;t t
26480s,@CPP@,$CPP,;t t
26481s,@CXX@,$CXX,;t t
26482s,@CXXFLAGS@,$CXXFLAGS,;t t
26483s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26484s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26485s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26486s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26487s,@CXXCPP@,$CXXCPP,;t t
26488s,@F77@,$F77,;t t
26489s,@FFLAGS@,$FFLAGS,;t t
26490s,@ac_ct_F77@,$ac_ct_F77,;t t
26491s,@LIBTOOL@,$LIBTOOL,;t t
26492s,@DATE@,$DATE,;t t
26493s,@OPROFILE_DIR@,$OPROFILE_DIR,;t t
26494s,@LD@,$LD,;t t
26495s,@KSRC@,$KSRC,;t t
26496s,@KINC@,$KINC,;t t
26497s,@kernel_support_TRUE@,$kernel_support_TRUE,;t t
26498s,@kernel_support_FALSE@,$kernel_support_FALSE,;t t
26499s,@KVERS@,$KVERS,;t t
26500s,@OPROFILE_MODULE_ARCH@,$OPROFILE_MODULE_ARCH,;t t
26501s,@MODINSTALLDIR@,$MODINSTALLDIR,;t t
26502s,@JAVA_HOMEDIR@,$JAVA_HOMEDIR,;t t
26503s,@BUILD_JVMTI_AGENT_TRUE@,$BUILD_JVMTI_AGENT_TRUE,;t t
26504s,@BUILD_JVMTI_AGENT_FALSE@,$BUILD_JVMTI_AGENT_FALSE,;t t
26505s,@BUILD_JVMPI_AGENT_TRUE@,$BUILD_JVMPI_AGENT_TRUE,;t t
26506s,@BUILD_JVMPI_AGENT_FALSE@,$BUILD_JVMPI_AGENT_FALSE,;t t
26507s,@EXTRA_CFLAGS_MODULE@,$EXTRA_CFLAGS_MODULE,;t t
26508s,@topdir@,$topdir,;t t
26509s,@SIZE_T_TYPE@,$SIZE_T_TYPE,;t t
26510s,@PTRDIFF_T_TYPE@,$PTRDIFF_T_TYPE,;t t
26511s,@X_CFLAGS@,$X_CFLAGS,;t t
26512s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26513s,@X_LIBS@,$X_LIBS,;t t
26514s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26515s,@QT_INCLUDES@,$QT_INCLUDES,;t t
26516s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
26517s,@MOC@,$MOC,;t t
26518s,@UIC@,$UIC,;t t
26519s,@QT_LIB@,$QT_LIB,;t t
26520s,@QT_VERSION@,$QT_VERSION,;t t
26521s,@XSLTPROC@,$XSLTPROC,;t t
26522s,@have_xsltproc_TRUE@,$have_xsltproc_TRUE,;t t
26523s,@have_xsltproc_FALSE@,$have_xsltproc_FALSE,;t t
26524s,@XML_CATALOG@,$XML_CATALOG,;t t
26525s,@XSLTPROC_FLAGS@,$XSLTPROC_FLAGS,;t t
26526s,@DOCBOOK_ROOT@,$DOCBOOK_ROOT,;t t
26527s,@CAT_ENTRY_START@,$CAT_ENTRY_START,;t t
26528s,@CAT_ENTRY_END@,$CAT_ENTRY_END,;t t
26529s,@LIBERTY_LIBS@,$LIBERTY_LIBS,;t t
26530s,@BFD_LIBS@,$BFD_LIBS,;t t
26531s,@POPT_LIBS@,$POPT_LIBS,;t t
26532s,@have_qt_TRUE@,$have_qt_TRUE,;t t
26533s,@have_qt_FALSE@,$have_qt_FALSE,;t t
26534s,@OP_CFLAGS@,$OP_CFLAGS,;t t
26535s,@OP_CXXFLAGS@,$OP_CXXFLAGS,;t t
26536s,@OP_DOCDIR@,$OP_DOCDIR,;t t
26537s,@LIBOBJS@,$LIBOBJS,;t t
26538s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26539CEOF
26540
26541_ACEOF
26542
26543 cat >>$CONFIG_STATUS <<\_ACEOF
26544 # Split the substitutions into bite-sized pieces for seds with
26545 # small command number limits, like on Digital OSF/1 and HP-UX.
26546 ac_max_sed_lines=48
26547 ac_sed_frag=1 # Number of current file.
26548 ac_beg=1 # First line for current file.
26549 ac_end=$ac_max_sed_lines # Line after last line for current file.
26550 ac_more_lines=:
26551 ac_sed_cmds=
26552 while $ac_more_lines; do
26553 if test $ac_beg -gt 1; then
26554 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26555 else
26556 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26557 fi
26558 if test ! -s $tmp/subs.frag; then
26559 ac_more_lines=false
26560 else
26561 # The purpose of the label and of the branching condition is to
26562 # speed up the sed processing (if there are no `@' at all, there
26563 # is no need to browse any of the substitutions).
26564 # These are the two extra sed commands mentioned above.
26565 (echo ':t
26566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26567 if test -z "$ac_sed_cmds"; then
26568 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26569 else
26570 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26571 fi
26572 ac_sed_frag=`expr $ac_sed_frag + 1`
26573 ac_beg=$ac_end
26574 ac_end=`expr $ac_end + $ac_max_sed_lines`
26575 fi
26576 done
26577 if test -z "$ac_sed_cmds"; then
26578 ac_sed_cmds=cat
26579 fi
26580fi # test -n "$CONFIG_FILES"
26581
26582_ACEOF
26583cat >>$CONFIG_STATUS <<\_ACEOF
26584for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26585 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26586 case $ac_file in
26587 - | *:- | *:-:* ) # input from stdin
26588 cat >$tmp/stdin
26589 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26591 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26593 * ) ac_file_in=$ac_file.in ;;
26594 esac
26595
26596 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26597 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26598$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26599 X"$ac_file" : 'X\(//\)[^/]' \| \
26600 X"$ac_file" : 'X\(//\)$' \| \
26601 X"$ac_file" : 'X\(/\)' \| \
26602 . : '\(.\)' 2>/dev/null ||
26603echo X"$ac_file" |
26604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26606 /^X\(\/\/\)$/{ s//\1/; q; }
26607 /^X\(\/\).*/{ s//\1/; q; }
26608 s/.*/./; q'`
26609 { if $as_mkdir_p; then
26610 mkdir -p "$ac_dir"
26611 else
26612 as_dir="$ac_dir"
26613 as_dirs=
26614 while test ! -d "$as_dir"; do
26615 as_dirs="$as_dir $as_dirs"
26616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26617$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26618 X"$as_dir" : 'X\(//\)[^/]' \| \
26619 X"$as_dir" : 'X\(//\)$' \| \
26620 X"$as_dir" : 'X\(/\)' \| \
26621 . : '\(.\)' 2>/dev/null ||
26622echo X"$as_dir" |
26623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26625 /^X\(\/\/\)$/{ s//\1/; q; }
26626 /^X\(\/\).*/{ s//\1/; q; }
26627 s/.*/./; q'`
26628 done
26629 test ! -n "$as_dirs" || mkdir $as_dirs
26630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26631echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26632 { (exit 1); exit 1; }; }; }
26633
26634 ac_builddir=.
26635
26636if test "$ac_dir" != .; then
26637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26638 # A "../" for each directory in $ac_dir_suffix.
26639 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26640else
26641 ac_dir_suffix= ac_top_builddir=
26642fi
26643
26644case $srcdir in
26645 .) # No --srcdir option. We are building in place.
26646 ac_srcdir=.
26647 if test -z "$ac_top_builddir"; then
26648 ac_top_srcdir=.
26649 else
26650 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26651 fi ;;
26652 [\\/]* | ?:[\\/]* ) # Absolute path.
26653 ac_srcdir=$srcdir$ac_dir_suffix;
26654 ac_top_srcdir=$srcdir ;;
26655 *) # Relative path.
26656 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26657 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26658esac
26659
26660# Do not use `cd foo && pwd` to compute absolute paths, because
26661# the directories may not exist.
26662case `pwd` in
26663.) ac_abs_builddir="$ac_dir";;
26664*)
26665 case "$ac_dir" in
26666 .) ac_abs_builddir=`pwd`;;
26667 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26668 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26669 esac;;
26670esac
26671case $ac_abs_builddir in
26672.) ac_abs_top_builddir=${ac_top_builddir}.;;
26673*)
26674 case ${ac_top_builddir}. in
26675 .) ac_abs_top_builddir=$ac_abs_builddir;;
26676 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26677 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26678 esac;;
26679esac
26680case $ac_abs_builddir in
26681.) ac_abs_srcdir=$ac_srcdir;;
26682*)
26683 case $ac_srcdir in
26684 .) ac_abs_srcdir=$ac_abs_builddir;;
26685 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26686 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26687 esac;;
26688esac
26689case $ac_abs_builddir in
26690.) ac_abs_top_srcdir=$ac_top_srcdir;;
26691*)
26692 case $ac_top_srcdir in
26693 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26694 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26695 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26696 esac;;
26697esac
26698
26699
26700 case $INSTALL in
26701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26702 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26703 esac
26704
26705 if test x"$ac_file" != x-; then
26706 { echo "$as_me:$LINENO: creating $ac_file" >&5
26707echo "$as_me: creating $ac_file" >&6;}
26708 rm -f "$ac_file"
26709 fi
26710 # Let's still pretend it is `configure' which instantiates (i.e., don't
26711 # use $as_me), people would be surprised to read:
26712 # /* config.h. Generated by config.status. */
26713 if test x"$ac_file" = x-; then
26714 configure_input=
26715 else
26716 configure_input="$ac_file. "
26717 fi
26718 configure_input=$configure_input"Generated from `echo $ac_file_in |
26719 sed 's,.*/,,'` by configure."
26720
26721 # First look for the input files in the build tree, otherwise in the
26722 # src tree.
26723 ac_file_inputs=`IFS=:
26724 for f in $ac_file_in; do
26725 case $f in
26726 -) echo $tmp/stdin ;;
26727 [\\/$]*)
26728 # Absolute (can't be DOS-style, as IFS=:)
26729 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26730echo "$as_me: error: cannot find input file: $f" >&2;}
26731 { (exit 1); exit 1; }; }
26732 echo "$f";;
26733 *) # Relative
26734 if test -f "$f"; then
26735 # Build tree
26736 echo "$f"
26737 elif test -f "$srcdir/$f"; then
26738 # Source tree
26739 echo "$srcdir/$f"
26740 else
26741 # /dev/null tree
26742 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26743echo "$as_me: error: cannot find input file: $f" >&2;}
26744 { (exit 1); exit 1; }; }
26745 fi;;
26746 esac
26747 done` || { (exit 1); exit 1; }
26748_ACEOF
26749cat >>$CONFIG_STATUS <<_ACEOF
26750 sed "$ac_vpsub
26751$extrasub
26752_ACEOF
26753cat >>$CONFIG_STATUS <<\_ACEOF
26754:t
26755/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26756s,@configure_input@,$configure_input,;t t
26757s,@srcdir@,$ac_srcdir,;t t
26758s,@abs_srcdir@,$ac_abs_srcdir,;t t
26759s,@top_srcdir@,$ac_top_srcdir,;t t
26760s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26761s,@builddir@,$ac_builddir,;t t
26762s,@abs_builddir@,$ac_abs_builddir,;t t
26763s,@top_builddir@,$ac_top_builddir,;t t
26764s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26765s,@INSTALL@,$ac_INSTALL,;t t
26766" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26767 rm -f $tmp/stdin
26768 if test x"$ac_file" != x-; then
26769 mv $tmp/out $ac_file
26770 else
26771 cat $tmp/out
26772 rm -f $tmp/out
26773 fi
26774
26775done
26776_ACEOF
26777cat >>$CONFIG_STATUS <<\_ACEOF
26778
26779#
26780# CONFIG_HEADER section.
26781#
26782
26783# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26784# NAME is the cpp macro being defined and VALUE is the value it is being given.
26785#
26786# ac_d sets the value in "#define NAME VALUE" lines.
26787ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26788ac_dB='[ ].*$,\1#\2'
26789ac_dC=' '
26790ac_dD=',;t'
26791# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26792ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26793ac_uB='$,\1#\2define\3'
26794ac_uC=' '
26795ac_uD=',;t'
26796
26797for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26799 case $ac_file in
26800 - | *:- | *:-:* ) # input from stdin
26801 cat >$tmp/stdin
26802 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26804 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26806 * ) ac_file_in=$ac_file.in ;;
26807 esac
26808
26809 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26810echo "$as_me: creating $ac_file" >&6;}
26811
26812 # First look for the input files in the build tree, otherwise in the
26813 # src tree.
26814 ac_file_inputs=`IFS=:
26815 for f in $ac_file_in; do
26816 case $f in
26817 -) echo $tmp/stdin ;;
26818 [\\/$]*)
26819 # Absolute (can't be DOS-style, as IFS=:)
26820 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26821echo "$as_me: error: cannot find input file: $f" >&2;}
26822 { (exit 1); exit 1; }; }
26823 # Do quote $f, to prevent DOS paths from being IFS'd.
26824 echo "$f";;
26825 *) # Relative
26826 if test -f "$f"; then
26827 # Build tree
26828 echo "$f"
26829 elif test -f "$srcdir/$f"; then
26830 # Source tree
26831 echo "$srcdir/$f"
26832 else
26833 # /dev/null tree
26834 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26835echo "$as_me: error: cannot find input file: $f" >&2;}
26836 { (exit 1); exit 1; }; }
26837 fi;;
26838 esac
26839 done` || { (exit 1); exit 1; }
26840 # Remove the trailing spaces.
26841 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26842
26843_ACEOF
26844
26845# Transform confdefs.h into two sed scripts, `conftest.defines' and
26846# `conftest.undefs', that substitutes the proper values into
26847# config.h.in to produce config.h. The first handles `#define'
26848# templates, and the second `#undef' templates.
26849# And first: Protect against being on the right side of a sed subst in
26850# config.status. Protect against being in an unquoted here document
26851# in config.status.
26852rm -f conftest.defines conftest.undefs
26853# Using a here document instead of a string reduces the quoting nightmare.
26854# Putting comments in sed scripts is not portable.
26855#
26856# `end' is used to avoid that the second main sed command (meant for
26857# 0-ary CPP macros) applies to n-ary macro definitions.
26858# See the Autoconf documentation for `clear'.
26859cat >confdef2sed.sed <<\_ACEOF
26860s/[\\&,]/\\&/g
26861s,[\\$`],\\&,g
26862t clear
26863: clear
26864s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26865t end
26866s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26867: end
26868_ACEOF
26869# If some macros were called several times there might be several times
26870# the same #defines, which is useless. Nevertheless, we may not want to
26871# sort them, since we want the *last* AC-DEFINE to be honored.
26872uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26873sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26874rm -f confdef2sed.sed
26875
26876# This sed command replaces #undef with comments. This is necessary, for
26877# example, in the case of _POSIX_SOURCE, which is predefined and required
26878# on some systems where configure will not decide to define it.
26879cat >>conftest.undefs <<\_ACEOF
26880s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26881_ACEOF
26882
26883# Break up conftest.defines because some shells have a limit on the size
26884# of here documents, and old seds have small limits too (100 cmds).
26885echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26886echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26887echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26888echo ' :' >>$CONFIG_STATUS
26889rm -f conftest.tail
26890while grep . conftest.defines >/dev/null
26891do
26892 # Write a limited-size here document to $tmp/defines.sed.
26893 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26894 # Speed up: don't consider the non `#define' lines.
26895 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26896 # Work around the forget-to-reset-the-flag bug.
26897 echo 't clr' >>$CONFIG_STATUS
26898 echo ': clr' >>$CONFIG_STATUS
26899 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26900 echo 'CEOF
26901 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26902 rm -f $tmp/in
26903 mv $tmp/out $tmp/in
26904' >>$CONFIG_STATUS
26905 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26906 rm -f conftest.defines
26907 mv conftest.tail conftest.defines
26908done
26909rm -f conftest.defines
26910echo ' fi # grep' >>$CONFIG_STATUS
26911echo >>$CONFIG_STATUS
26912
26913# Break up conftest.undefs because some shells have a limit on the size
26914# of here documents, and old seds have small limits too (100 cmds).
26915echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26916rm -f conftest.tail
26917while grep . conftest.undefs >/dev/null
26918do
26919 # Write a limited-size here document to $tmp/undefs.sed.
26920 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26921 # Speed up: don't consider the non `#undef'
26922 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26923 # Work around the forget-to-reset-the-flag bug.
26924 echo 't clr' >>$CONFIG_STATUS
26925 echo ': clr' >>$CONFIG_STATUS
26926 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26927 echo 'CEOF
26928 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26929 rm -f $tmp/in
26930 mv $tmp/out $tmp/in
26931' >>$CONFIG_STATUS
26932 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26933 rm -f conftest.undefs
26934 mv conftest.tail conftest.undefs
26935done
26936rm -f conftest.undefs
26937
26938cat >>$CONFIG_STATUS <<\_ACEOF
26939 # Let's still pretend it is `configure' which instantiates (i.e., don't
26940 # use $as_me), people would be surprised to read:
26941 # /* config.h. Generated by config.status. */
26942 if test x"$ac_file" = x-; then
26943 echo "/* Generated by configure. */" >$tmp/config.h
26944 else
26945 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26946 fi
26947 cat $tmp/in >>$tmp/config.h
26948 rm -f $tmp/in
26949 if test x"$ac_file" != x-; then
26950 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26951 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26952echo "$as_me: $ac_file is unchanged" >&6;}
26953 else
26954 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26955$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26956 X"$ac_file" : 'X\(//\)[^/]' \| \
26957 X"$ac_file" : 'X\(//\)$' \| \
26958 X"$ac_file" : 'X\(/\)' \| \
26959 . : '\(.\)' 2>/dev/null ||
26960echo X"$ac_file" |
26961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26963 /^X\(\/\/\)$/{ s//\1/; q; }
26964 /^X\(\/\).*/{ s//\1/; q; }
26965 s/.*/./; q'`
26966 { if $as_mkdir_p; then
26967 mkdir -p "$ac_dir"
26968 else
26969 as_dir="$ac_dir"
26970 as_dirs=
26971 while test ! -d "$as_dir"; do
26972 as_dirs="$as_dir $as_dirs"
26973 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26974$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26975 X"$as_dir" : 'X\(//\)[^/]' \| \
26976 X"$as_dir" : 'X\(//\)$' \| \
26977 X"$as_dir" : 'X\(/\)' \| \
26978 . : '\(.\)' 2>/dev/null ||
26979echo X"$as_dir" |
26980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26982 /^X\(\/\/\)$/{ s//\1/; q; }
26983 /^X\(\/\).*/{ s//\1/; q; }
26984 s/.*/./; q'`
26985 done
26986 test ! -n "$as_dirs" || mkdir $as_dirs
26987 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26988echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26989 { (exit 1); exit 1; }; }; }
26990
26991 rm -f $ac_file
26992 mv $tmp/config.h $ac_file
26993 fi
26994 else
26995 cat $tmp/config.h
26996 rm -f $tmp/config.h
26997 fi
26998# Compute $ac_file's index in $config_headers.
26999_am_stamp_count=1
27000for _am_header in $config_headers :; do
27001 case $_am_header in
27002 $ac_file | $ac_file:* )
27003 break ;;
27004 * )
27005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27006 esac
27007done
27008echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27009$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27010 X$ac_file : 'X\(//\)[^/]' \| \
27011 X$ac_file : 'X\(//\)$' \| \
27012 X$ac_file : 'X\(/\)' \| \
27013 . : '\(.\)' 2>/dev/null ||
27014echo X$ac_file |
27015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27017 /^X\(\/\/\)$/{ s//\1/; q; }
27018 /^X\(\/\).*/{ s//\1/; q; }
27019 s/.*/./; q'`/stamp-h$_am_stamp_count
27020done
27021_ACEOF
27022cat >>$CONFIG_STATUS <<\_ACEOF
27023
27024#
27025# CONFIG_COMMANDS section.
27026#
27027for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27028 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27029 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27030 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27031$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27032 X"$ac_dest" : 'X\(//\)[^/]' \| \
27033 X"$ac_dest" : 'X\(//\)$' \| \
27034 X"$ac_dest" : 'X\(/\)' \| \
27035 . : '\(.\)' 2>/dev/null ||
27036echo X"$ac_dest" |
27037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27039 /^X\(\/\/\)$/{ s//\1/; q; }
27040 /^X\(\/\).*/{ s//\1/; q; }
27041 s/.*/./; q'`
27042 { if $as_mkdir_p; then
27043 mkdir -p "$ac_dir"
27044 else
27045 as_dir="$ac_dir"
27046 as_dirs=
27047 while test ! -d "$as_dir"; do
27048 as_dirs="$as_dir $as_dirs"
27049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27051 X"$as_dir" : 'X\(//\)[^/]' \| \
27052 X"$as_dir" : 'X\(//\)$' \| \
27053 X"$as_dir" : 'X\(/\)' \| \
27054 . : '\(.\)' 2>/dev/null ||
27055echo X"$as_dir" |
27056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27058 /^X\(\/\/\)$/{ s//\1/; q; }
27059 /^X\(\/\).*/{ s//\1/; q; }
27060 s/.*/./; q'`
27061 done
27062 test ! -n "$as_dirs" || mkdir $as_dirs
27063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27064echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27065 { (exit 1); exit 1; }; }; }
27066
27067 ac_builddir=.
27068
27069if test "$ac_dir" != .; then
27070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27071 # A "../" for each directory in $ac_dir_suffix.
27072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27073else
27074 ac_dir_suffix= ac_top_builddir=
27075fi
27076
27077case $srcdir in
27078 .) # No --srcdir option. We are building in place.
27079 ac_srcdir=.
27080 if test -z "$ac_top_builddir"; then
27081 ac_top_srcdir=.
27082 else
27083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27084 fi ;;
27085 [\\/]* | ?:[\\/]* ) # Absolute path.
27086 ac_srcdir=$srcdir$ac_dir_suffix;
27087 ac_top_srcdir=$srcdir ;;
27088 *) # Relative path.
27089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27091esac
27092
27093# Do not use `cd foo && pwd` to compute absolute paths, because
27094# the directories may not exist.
27095case `pwd` in
27096.) ac_abs_builddir="$ac_dir";;
27097*)
27098 case "$ac_dir" in
27099 .) ac_abs_builddir=`pwd`;;
27100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27102 esac;;
27103esac
27104case $ac_abs_builddir in
27105.) ac_abs_top_builddir=${ac_top_builddir}.;;
27106*)
27107 case ${ac_top_builddir}. in
27108 .) ac_abs_top_builddir=$ac_abs_builddir;;
27109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27111 esac;;
27112esac
27113case $ac_abs_builddir in
27114.) ac_abs_srcdir=$ac_srcdir;;
27115*)
27116 case $ac_srcdir in
27117 .) ac_abs_srcdir=$ac_abs_builddir;;
27118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27120 esac;;
27121esac
27122case $ac_abs_builddir in
27123.) ac_abs_top_srcdir=$ac_top_srcdir;;
27124*)
27125 case $ac_top_srcdir in
27126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27129 esac;;
27130esac
27131
27132
27133 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27134echo "$as_me: executing $ac_dest commands" >&6;}
27135 case $ac_dest in
27136 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27137 # Strip MF so we end up with the name of the file.
27138 mf=`echo "$mf" | sed -e 's/:.*$//'`
27139 # Check whether this is an Automake generated Makefile or not.
27140 # We used to match only the files named `Makefile.in', but
27141 # some people rename them; so instead we look at the file content.
27142 # Grep'ing the first line is not enough: some people post-process
27143 # each Makefile.in and add a new line on top of each file to say so.
27144 # So let's grep whole file.
27145 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27146 dirpart=`(dirname "$mf") 2>/dev/null ||
27147$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27148 X"$mf" : 'X\(//\)[^/]' \| \
27149 X"$mf" : 'X\(//\)$' \| \
27150 X"$mf" : 'X\(/\)' \| \
27151 . : '\(.\)' 2>/dev/null ||
27152echo X"$mf" |
27153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27155 /^X\(\/\/\)$/{ s//\1/; q; }
27156 /^X\(\/\).*/{ s//\1/; q; }
27157 s/.*/./; q'`
27158 else
27159 continue
27160 fi
27161 # Extract the definition of DEPDIR, am__include, and am__quote
27162 # from the Makefile without running `make'.
27163 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27164 test -z "$DEPDIR" && continue
27165 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27166 test -z "am__include" && continue
27167 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27168 # When using ansi2knr, U may be empty or an underscore; expand it
27169 U=`sed -n 's/^U = //p' < "$mf"`
27170 # Find all dependency output files, they are included files with
27171 # $(DEPDIR) in their names. We invoke sed twice because it is the
27172 # simplest approach to changing $(DEPDIR) to its actual value in the
27173 # expansion.
27174 for file in `sed -n "
27175 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27176 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27177 # Make sure the directory exists.
27178 test -f "$dirpart/$file" && continue
27179 fdir=`(dirname "$file") 2>/dev/null ||
27180$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27181 X"$file" : 'X\(//\)[^/]' \| \
27182 X"$file" : 'X\(//\)$' \| \
27183 X"$file" : 'X\(/\)' \| \
27184 . : '\(.\)' 2>/dev/null ||
27185echo X"$file" |
27186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27188 /^X\(\/\/\)$/{ s//\1/; q; }
27189 /^X\(\/\).*/{ s//\1/; q; }
27190 s/.*/./; q'`
27191 { if $as_mkdir_p; then
27192 mkdir -p $dirpart/$fdir
27193 else
27194 as_dir=$dirpart/$fdir
27195 as_dirs=
27196 while test ! -d "$as_dir"; do
27197 as_dirs="$as_dir $as_dirs"
27198 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27200 X"$as_dir" : 'X\(//\)[^/]' \| \
27201 X"$as_dir" : 'X\(//\)$' \| \
27202 X"$as_dir" : 'X\(/\)' \| \
27203 . : '\(.\)' 2>/dev/null ||
27204echo X"$as_dir" |
27205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27207 /^X\(\/\/\)$/{ s//\1/; q; }
27208 /^X\(\/\).*/{ s//\1/; q; }
27209 s/.*/./; q'`
27210 done
27211 test ! -n "$as_dirs" || mkdir $as_dirs
27212 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27213echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27214 { (exit 1); exit 1; }; }; }
27215
27216 # echo "creating $dirpart/$file"
27217 echo '# dummy' > "$dirpart/$file"
27218 done
27219done
27220 ;;
27221 esac
27222done
27223_ACEOF
27224
27225cat >>$CONFIG_STATUS <<\_ACEOF
27226
27227{ (exit 0); exit 0; }
27228_ACEOF
27229chmod +x $CONFIG_STATUS
27230ac_clean_files=$ac_clean_files_save
27231
27232
27233# configure is writing to config.log, and then calls config.status.
27234# config.status does its own redirection, appending to config.log.
27235# Unfortunately, on DOS this fails, as config.log is still kept open
27236# by configure, so config.status won't be able to write to it; its
27237# output is simply discarded. So we exec the FD to /dev/null,
27238# effectively closing config.log, so it can be properly (re)opened and
27239# appended to by config.status. When coming back to configure, we
27240# need to make the FD available again.
27241if test "$no_create" != yes; then
27242 ac_cs_success=:
27243 ac_config_status_args=
27244 test "$silent" = yes &&
27245 ac_config_status_args="$ac_config_status_args --quiet"
27246 exec 5>/dev/null
27247 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27248 exec 5>>config.log
27249 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27250 # would make configure fail if this is the last instruction.
27251 $ac_cs_success || { (exit 1); exit 1; }
27252fi
27253
27254
27255
27256if test -r doc/xsl/catalog.xml; then
27257 if cmp doc/xsl/catalog-1.xml doc/xsl/catalog.xml > /dev/null; then
27258 echo doc/xsl/catalog.xml is unchanged
27259 else
27260 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
27261 fi
27262else
27263 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
27264fi
27265
27266
27267if test -z "$QT_LIB"; then
27268 echo "Warning: a working Qt not found; no GUI will be built"
27269fi
27270
27271if test "`getent passwd oprofile 2>/dev/null`" == "" || \
27272 test "`getent group oprofile 2>/dev/null`" == ""; then
27273 if test `id -u` != "0"; then
27274 echo "Warning: The user account 'oprofile:oprofile' does not exist on the system."
27275 echo " To profile JITed code, this special user account must exist."
27276 echo " Please ask your system administrator to add the following user and group:"
27277 echo " user name : 'oprofile'"
27278 echo " group name: 'oprofile'"
27279 echo " The 'oprofile' group must be the default group for the 'oprofile' user."
27280 else
27281 echo "Warning: The user account 'oprofile:oprofile' does not exist on the system."
27282 echo " To profile JITed code, this special user account must exist."
27283 echo " Please add the following user and group:"
27284 echo " user name : 'oprofile'"
27285 echo " group name: 'oprofile'"
27286 echo " The 'oprofile' group must be the default group for the 'oprofile' user."
27287 fi
27288fi
27289