Initial commit
[xorg_rtime.git] / libXext-1.0.2 / configure
blob6596feb8c443b7e5af68e94acf74746530a4eaf4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libXext 1.0.2.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
296 done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
320 done
321 IFS="$lt_save_ifs"
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
369 prev="$cmd"
370 done
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libXext'
425 PACKAGE_TARNAME='libXext'
426 PACKAGE_VERSION='1.0.2'
427 PACKAGE_STRING='libXext 1.0.2'
428 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
430 ac_unique_file="Makefile.am"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
468 ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os XEXT_SOREV 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 SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XEXT_CFLAGS XEXT_LIBS MALLOC_ZERO_CFLAGS XMALLOC_ZERO_CFLAGS XTMALLOC_ZERO_CFLAGS RAWCPP RAWCPPFLAGS APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
509 ac_prev=
510 for ac_option
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
523 case $ac_option in
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
542 --config-cache | -C)
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 esac
806 done
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
881 else
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_env_XEXT_CFLAGS_set=${XEXT_CFLAGS+set}
954 ac_env_XEXT_CFLAGS_value=$XEXT_CFLAGS
955 ac_cv_env_XEXT_CFLAGS_set=${XEXT_CFLAGS+set}
956 ac_cv_env_XEXT_CFLAGS_value=$XEXT_CFLAGS
957 ac_env_XEXT_LIBS_set=${XEXT_LIBS+set}
958 ac_env_XEXT_LIBS_value=$XEXT_LIBS
959 ac_cv_env_XEXT_LIBS_set=${XEXT_LIBS+set}
960 ac_cv_env_XEXT_LIBS_value=$XEXT_LIBS
963 # Report the --help message.
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
969 \`configure' configures libXext 1.0.2 to adapt to many kinds of systems.
971 Usage: $0 [OPTION]... [VAR=VALUE]...
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
976 Defaults for the options are specified in brackets.
978 Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
989 _ACEOF
991 cat <<_ACEOF
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
994 [$ac_default_prefix]
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 [PREFIX]
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1003 For better control, use the options below.
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018 _ACEOF
1020 cat <<\_ACEOF
1022 Program names:
1023 --program-prefix=PREFIX prepend PREFIX to installed program names
1024 --program-suffix=SUFFIX append SUFFIX to installed program names
1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1027 System types:
1028 --build=BUILD configure for building on BUILD [guessed]
1029 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1030 _ACEOF
1033 if test -n "$ac_init_help"; then
1034 case $ac_init_help in
1035 short | recursive ) echo "Configuration of libXext 1.0.2:";;
1036 esac
1037 cat <<\_ACEOF
1039 Optional Features:
1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-shared[=PKGS]
1045 build shared libraries [default=yes]
1046 --enable-static[=PKGS]
1047 build static libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
1050 --disable-dependency-tracking speeds up one-time build
1051 --enable-dependency-tracking do not reject slow dependency extractors
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1053 --enable-malloc0returnsnull
1054 malloc(0) returns NULL (default: auto)
1056 Optional Packages:
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1059 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1061 both]
1062 --with-tags[=TAGS]
1063 include additional configurations [automatic]
1064 --with-release-version=STRING
1065 Use release version string in package name
1067 Some 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 PKG_CONFIG path to pkg-config utility
1081 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1082 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1084 Use these variables to override the choices made by `configure' or to help
1085 it to find libraries and programs with nonstandard names/locations.
1087 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1088 _ACEOF
1091 if test "$ac_init_help" = "recursive"; then
1092 # If there are subdirs, report their specific --help.
1093 ac_popdir=`pwd`
1094 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1095 test -d $ac_dir || continue
1096 ac_builddir=.
1098 if test "$ac_dir" != .; then
1099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1100 # A "../" for each directory in $ac_dir_suffix.
1101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1102 else
1103 ac_dir_suffix= ac_top_builddir=
1106 case $srcdir in
1107 .) # No --srcdir option. We are building in place.
1108 ac_srcdir=.
1109 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=.
1111 else
1112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1113 fi ;;
1114 [\\/]* | ?:[\\/]* ) # Absolute path.
1115 ac_srcdir=$srcdir$ac_dir_suffix;
1116 ac_top_srcdir=$srcdir ;;
1117 *) # Relative path.
1118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 esac
1122 # Do not use `cd foo && pwd` to compute absolute paths, because
1123 # the directories may not exist.
1124 case `pwd` in
1125 .) ac_abs_builddir="$ac_dir";;
1127 case "$ac_dir" in
1128 .) ac_abs_builddir=`pwd`;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 case ${ac_top_builddir}. in
1137 .) ac_abs_top_builddir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_srcdir=$ac_srcdir;;
1145 case $ac_srcdir in
1146 .) ac_abs_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 case $ac_top_srcdir in
1155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 esac;;
1159 esac
1161 cd $ac_dir
1162 # Check for guested configure; otherwise get Cygnus style configure.
1163 if test -f $ac_srcdir/configure.gnu; then
1164 echo
1165 $SHELL $ac_srcdir/configure.gnu --help=recursive
1166 elif test -f $ac_srcdir/configure; then
1167 echo
1168 $SHELL $ac_srcdir/configure --help=recursive
1169 elif test -f $ac_srcdir/configure.ac ||
1170 test -f $ac_srcdir/configure.in; then
1171 echo
1172 $ac_configure --help
1173 else
1174 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 cd $ac_popdir
1177 done
1180 test -n "$ac_init_help" && exit 0
1181 if $ac_init_version; then
1182 cat <<\_ACEOF
1183 libXext configure 1.0.2
1184 generated by GNU Autoconf 2.59
1186 Copyright (C) 2003 Free Software Foundation, Inc.
1187 This configure script is free software; the Free Software Foundation
1188 gives unlimited permission to copy, distribute and modify it.
1189 _ACEOF
1190 exit 0
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1197 It was created by libXext $as_me 1.0.2, which was
1198 generated by GNU Autoconf 2.59. Invocation command line was
1200 $ $0 $@
1202 _ACEOF
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 _ASUNAME
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1231 IFS=$as_save_IFS
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1234 done
1236 } >&5
1238 cat >&5 <<_ACEOF
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1245 _ACEOF
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1260 for ac_arg
1262 case $ac_arg in
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 continue ;;
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 esac
1270 case $ac_pass in
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
1275 ac_must_keep_next=false # Got value, back to normal.
1276 else
1277 case $ac_arg in
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 esac
1286 -* ) ac_must_keep_next=true ;;
1287 esac
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1291 ac_sep=" "
1293 esac
1294 done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log. We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1307 echo
1309 cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314 echo
1315 # The following way of writing the cache mishandles newlines in values,
1317 (set) 2>&1 |
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 *ac_space=\ *)
1320 sed -n \
1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325 sed -n \
1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328 esac;
1330 echo
1332 cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337 echo
1338 for ac_var in $ac_subst_vars
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1342 done | sort
1343 echo
1345 if test -n "$ac_subst_files"; then
1346 cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351 echo
1352 for ac_var in $ac_subst_files
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1356 done | sort
1357 echo
1360 if test -s confdefs.h; then
1361 cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366 echo
1367 sed "/^$/d" confdefs.h | sort
1368 echo
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1373 } >&5
1374 rm -f core *.core &&
1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 exit $exit_status
1378 for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1388 # Predefined preprocessor variables.
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420 else
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1429 . "$ac_site_file"
1431 done
1433 if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439 case $cache_file in
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1442 esac
1444 else
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447 >$cache_file
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1460 set,)
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1464 ,set)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,);;
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1474 echo "$as_me: former value: $ac_old_val" >&2;}
1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1476 echo "$as_me: current value: $ac_new_val" >&2;}
1477 ac_cache_corrupted=:
1478 fi;;
1479 esac
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1482 case $ac_new_val in
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1486 esac
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490 esac
1492 done
1493 if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 am__api_version="1.9"
1536 ac_aux_dir=
1537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1538 if test -f $ac_dir/install-sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 break
1542 elif test -f $ac_dir/install.sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 break
1546 elif test -f $ac_dir/shtool; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 break
1551 done
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555 { (exit 1); exit 1; }; }
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 # Find a good install program. We prefer a C program (faster),
1562 # so one script is as good as another. But avoid the broken or
1563 # incompatible versions:
1564 # SysV /etc/install, /usr/sbin/install
1565 # SunOS /usr/etc/install
1566 # IRIX /sbin/install
1567 # AIX /bin/install
1568 # AmigaOS /C/install, which installs bootblocks on floppy discs
1569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1572 # OS/2's system install, which has a completely different semantic
1573 # ./install, which can be erroneously created by make from ./install.sh.
1574 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1575 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1576 if test -z "$INSTALL"; then
1577 if test "${ac_cv_path_install+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 # Account for people who put trailing slashes in PATH elements.
1586 case $as_dir/ in
1587 ./ | .// | /cC/* | \
1588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1589 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1590 /usr/ucb/* ) ;;
1592 # OSF1 and SCO ODT 3.0 have their own names for install.
1593 # Don't use installbsd from OSF since it installs stuff as root
1594 # by default.
1595 for ac_prog in ginstall scoinst install; do
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1598 if test $ac_prog = install &&
1599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600 # AIX install. It has an incompatible calling convention.
1602 elif test $ac_prog = install &&
1603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604 # program-specific install script used by HP pwplus--don't use.
1606 else
1607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1608 break 3
1611 done
1612 done
1614 esac
1615 done
1619 if test "${ac_cv_path_install+set}" = set; then
1620 INSTALL=$ac_cv_path_install
1621 else
1622 # As a last resort, use the slow shell script. We don't cache a
1623 # path for INSTALL within a source directory, because that will
1624 # break other packages using the cache if that directory is
1625 # removed, or if the path is relative.
1626 INSTALL=$ac_install_sh
1629 echo "$as_me:$LINENO: result: $INSTALL" >&5
1630 echo "${ECHO_T}$INSTALL" >&6
1632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1633 # It thinks the first close brace ends the variable substitution.
1634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1640 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1641 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1642 # Just in case
1643 sleep 1
1644 echo timestamp > conftest.file
1645 # Do `set' in a subshell so we don't clobber the current shell's
1646 # arguments. Must try -L first in case configure is actually a
1647 # symlink; some systems play weird games with the mod time of symlinks
1648 # (eg FreeBSD returns the mod time of the symlink's containing
1649 # directory).
1650 if (
1651 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1652 if test "$*" = "X"; then
1653 # -L didn't work.
1654 set X `ls -t $srcdir/configure conftest.file`
1656 rm -f conftest.file
1657 if test "$*" != "X $srcdir/configure conftest.file" \
1658 && test "$*" != "X conftest.file $srcdir/configure"; then
1660 # If neither matched, then we have a broken ls. This can happen
1661 # if, for instance, CONFIG_SHELL is bash and it inherits a
1662 # broken ls alias from the environment. This has actually
1663 # happened. Such a system could not be considered "sane".
1664 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1665 alias in your environment" >&5
1666 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1667 alias in your environment" >&2;}
1668 { (exit 1); exit 1; }; }
1671 test "$2" = conftest.file
1673 then
1674 # Ok.
1676 else
1677 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1678 Check your system clock" >&5
1679 echo "$as_me: error: newly created file is older than distributed files!
1680 Check your system clock" >&2;}
1681 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: yes" >&5
1684 echo "${ECHO_T}yes" >&6
1685 test "$program_prefix" != NONE &&
1686 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1687 # Use a double $ so make ignores it.
1688 test "$program_suffix" != NONE &&
1689 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1690 # Double any \ or $. echo might interpret backslashes.
1691 # By default was `s,x,x', remove it if useless.
1692 cat <<\_ACEOF >conftest.sed
1693 s/[\\$]/&&/g;s/;s,x,x,$//
1694 _ACEOF
1695 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1696 rm conftest.sed
1698 # expand $ac_aux_dir to an absolute path
1699 am_aux_dir=`cd $ac_aux_dir && pwd`
1701 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1702 # Use eval to expand $SHELL
1703 if eval "$MISSING --run true"; then
1704 am_missing_run="$MISSING --run "
1705 else
1706 am_missing_run=
1707 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1708 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1711 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1712 # We used to keeping the `.' as first argument, in order to
1713 # allow $(mkdir_p) to be used without argument. As in
1714 # $(mkdir_p) $(somedir)
1715 # where $(somedir) is conditionally defined. However this is wrong
1716 # for two reasons:
1717 # 1. if the package is installed by a user who cannot write `.'
1718 # make install will fail,
1719 # 2. the above comment should most certainly read
1720 # $(mkdir_p) $(DESTDIR)$(somedir)
1721 # so it does not work when $(somedir) is undefined and
1722 # $(DESTDIR) is not.
1723 # To support the latter case, we have to write
1724 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1725 # so the `.' trick is pointless.
1726 mkdir_p='mkdir -p --'
1727 else
1728 # On NextStep and OpenStep, the `mkdir' command does not
1729 # recognize any option. It will interpret all options as
1730 # directories to create, and then abort because `.' already
1731 # exists.
1732 for d in ./-p ./--version;
1734 test -d $d && rmdir $d
1735 done
1736 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1737 if test -f "$ac_aux_dir/mkinstalldirs"; then
1738 mkdir_p='$(mkinstalldirs)'
1739 else
1740 mkdir_p='$(install_sh) -d'
1744 for ac_prog in gawk mawk nawk awk
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_AWK+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$AWK"; then
1754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_AWK="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 AWK=$ac_cv_prog_AWK
1773 if test -n "$AWK"; then
1774 echo "$as_me:$LINENO: result: $AWK" >&5
1775 echo "${ECHO_T}$AWK" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$AWK" && break
1782 done
1784 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1786 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1787 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 cat >conftest.make <<\_ACEOF
1791 all:
1792 @echo 'ac_maketemp="$(MAKE)"'
1793 _ACEOF
1794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1796 if test -n "$ac_maketemp"; then
1797 eval ac_cv_prog_make_${ac_make}_set=yes
1798 else
1799 eval ac_cv_prog_make_${ac_make}_set=no
1801 rm -f conftest.make
1803 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1806 SET_MAKE=
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 SET_MAKE="MAKE=${MAKE-make}"
1813 rm -rf .tst 2>/dev/null
1814 mkdir .tst 2>/dev/null
1815 if test -d .tst; then
1816 am__leading_dot=.
1817 else
1818 am__leading_dot=_
1820 rmdir .tst 2>/dev/null
1822 # test to see if srcdir already configured
1823 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1824 test -f $srcdir/config.status; then
1825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1826 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1827 { (exit 1); exit 1; }; }
1830 # test whether we have cygpath
1831 if test -z "$CYGPATH_W"; then
1832 if (cygpath --version) >/dev/null 2>/dev/null; then
1833 CYGPATH_W='cygpath -w'
1834 else
1835 CYGPATH_W=echo
1840 # Define the identity of the package.
1841 PACKAGE='libXext'
1842 VERSION='1.0.2'
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE "$PACKAGE"
1847 _ACEOF
1850 cat >>confdefs.h <<_ACEOF
1851 #define VERSION "$VERSION"
1852 _ACEOF
1854 # Some tools Automake needs.
1856 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1870 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1872 # Installed binaries are usually stripped using `strip' when the user
1873 # run `make install-strip'. However `strip' might not be the right
1874 # tool to use in cross-compilation environments, therefore Automake
1875 # will honor the `STRIP' environment variable to overrule this program.
1876 if test "$cross_compiling" != no; then
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}strip; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$STRIP"; then
1886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1899 done
1900 done
1904 STRIP=$ac_cv_prog_STRIP
1905 if test -n "$STRIP"; then
1906 echo "$as_me:$LINENO: result: $STRIP" >&5
1907 echo "${ECHO_T}$STRIP" >&6
1908 else
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1914 if test -z "$ac_cv_prog_STRIP"; then
1915 ac_ct_STRIP=$STRIP
1916 # Extract the first word of "strip", so it can be a program name with args.
1917 set dummy strip; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 if test -n "$ac_ct_STRIP"; then
1924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_ac_ct_STRIP="strip"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1937 done
1938 done
1940 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1943 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1944 if test -n "$ac_ct_STRIP"; then
1945 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1946 echo "${ECHO_T}$ac_ct_STRIP" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1952 STRIP=$ac_ct_STRIP
1953 else
1954 STRIP="$ac_cv_prog_STRIP"
1958 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1960 # We need awk for the "check" target. The system "awk" is bad on
1961 # some platforms.
1962 # Always define AMTAR for backward compatibility.
1964 AMTAR=${AMTAR-"${am_missing_run}tar"}
1966 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1973 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1974 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1975 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1976 if test "${enable_maintainer_mode+set}" = set; then
1977 enableval="$enable_maintainer_mode"
1978 USE_MAINTAINER_MODE=$enableval
1979 else
1980 USE_MAINTAINER_MODE=no
1982 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1983 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1986 if test $USE_MAINTAINER_MODE = yes; then
1987 MAINTAINER_MODE_TRUE=
1988 MAINTAINER_MODE_FALSE='#'
1989 else
1990 MAINTAINER_MODE_TRUE='#'
1991 MAINTAINER_MODE_FALSE=
1994 MAINT=$MAINTAINER_MODE_TRUE
1998 ac_config_headers="$ac_config_headers config.h"
2001 # Determine .so library version per platform
2002 # based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
2003 # Make sure we can run config.sub.
2004 $ac_config_sub sun4 >/dev/null 2>&1 ||
2005 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2006 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2007 { (exit 1); exit 1; }; }
2009 echo "$as_me:$LINENO: checking build system type" >&5
2010 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2011 if test "${ac_cv_build+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 ac_cv_build_alias=$build_alias
2015 test -z "$ac_cv_build_alias" &&
2016 ac_cv_build_alias=`$ac_config_guess`
2017 test -z "$ac_cv_build_alias" &&
2018 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2020 { (exit 1); exit 1; }; }
2021 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2022 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2023 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2024 { (exit 1); exit 1; }; }
2027 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2028 echo "${ECHO_T}$ac_cv_build" >&6
2029 build=$ac_cv_build
2030 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2031 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2032 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2035 echo "$as_me:$LINENO: checking host system type" >&5
2036 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2037 if test "${ac_cv_host+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 ac_cv_host_alias=$host_alias
2041 test -z "$ac_cv_host_alias" &&
2042 ac_cv_host_alias=$ac_cv_build_alias
2043 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2044 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2045 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2046 { (exit 1); exit 1; }; }
2049 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050 echo "${ECHO_T}$ac_cv_host" >&6
2051 host=$ac_cv_host
2052 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2053 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2054 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057 case $host_os in
2058 openbsd*) XEXT_SOREV=8:0 ;;
2059 solaris*) XEXT_SOREV=0 ;;
2060 *) XEXT_SOREV=6:4:0 ;;
2061 esac
2064 # Checks for programs.
2065 # Check whether --enable-shared or --disable-shared was given.
2066 if test "${enable_shared+set}" = set; then
2067 enableval="$enable_shared"
2068 p=${PACKAGE-default}
2069 case $enableval in
2070 yes) enable_shared=yes ;;
2071 no) enable_shared=no ;;
2073 enable_shared=no
2074 # Look at the argument we got. We use all the common list separators.
2075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2076 for pkg in $enableval; do
2077 IFS="$lt_save_ifs"
2078 if test "X$pkg" = "X$p"; then
2079 enable_shared=yes
2081 done
2082 IFS="$lt_save_ifs"
2084 esac
2085 else
2086 enable_shared=yes
2089 # Check whether --enable-static or --disable-static was given.
2090 if test "${enable_static+set}" = set; then
2091 enableval="$enable_static"
2092 p=${PACKAGE-default}
2093 case $enableval in
2094 yes) enable_static=yes ;;
2095 no) enable_static=no ;;
2097 enable_static=no
2098 # Look at the argument we got. We use all the common list separators.
2099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2100 for pkg in $enableval; do
2101 IFS="$lt_save_ifs"
2102 if test "X$pkg" = "X$p"; then
2103 enable_static=yes
2105 done
2106 IFS="$lt_save_ifs"
2108 esac
2109 else
2110 enable_static=yes
2113 # Check whether --enable-fast-install or --disable-fast-install was given.
2114 if test "${enable_fast_install+set}" = set; then
2115 enableval="$enable_fast_install"
2116 p=${PACKAGE-default}
2117 case $enableval in
2118 yes) enable_fast_install=yes ;;
2119 no) enable_fast_install=no ;;
2121 enable_fast_install=no
2122 # Look at the argument we got. We use all the common list separators.
2123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2124 for pkg in $enableval; do
2125 IFS="$lt_save_ifs"
2126 if test "X$pkg" = "X$p"; then
2127 enable_fast_install=yes
2129 done
2130 IFS="$lt_save_ifs"
2132 esac
2133 else
2134 enable_fast_install=yes
2137 DEPDIR="${am__leading_dot}deps"
2139 ac_config_commands="$ac_config_commands depfiles"
2142 am_make=${MAKE-make}
2143 cat > confinc << 'END'
2144 am__doit:
2145 @echo done
2146 .PHONY: am__doit
2148 # If we don't find an include directive, just comment out the code.
2149 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2150 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2151 am__include="#"
2152 am__quote=
2153 _am_result=none
2154 # First try GNU make style include.
2155 echo "include confinc" > confmf
2156 # We grep out `Entering directory' and `Leaving directory'
2157 # messages which can occur if `w' ends up in MAKEFLAGS.
2158 # In particular we don't look at `^make:' because GNU make might
2159 # be invoked under some other name (usually "gmake"), in which
2160 # case it prints its new name instead of `make'.
2161 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2162 am__include=include
2163 am__quote=
2164 _am_result=GNU
2166 # Now try BSD make style include.
2167 if test "$am__include" = "#"; then
2168 echo '.include "confinc"' > confmf
2169 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2170 am__include=.include
2171 am__quote="\""
2172 _am_result=BSD
2177 echo "$as_me:$LINENO: result: $_am_result" >&5
2178 echo "${ECHO_T}$_am_result" >&6
2179 rm -f confinc confmf
2181 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2182 if test "${enable_dependency_tracking+set}" = set; then
2183 enableval="$enable_dependency_tracking"
2186 if test "x$enable_dependency_tracking" != xno; then
2187 am_depcomp="$ac_aux_dir/depcomp"
2188 AMDEPBACKSLASH='\'
2192 if test "x$enable_dependency_tracking" != xno; then
2193 AMDEP_TRUE=
2194 AMDEP_FALSE='#'
2195 else
2196 AMDEP_TRUE='#'
2197 AMDEP_FALSE=
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207 if test -n "$ac_tool_prefix"; then
2208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2209 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2234 CC=$ac_cv_prog_CC
2235 if test -n "$CC"; then
2236 echo "$as_me:$LINENO: result: $CC" >&5
2237 echo "${ECHO_T}$CC" >&6
2238 else
2239 echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2244 if test -z "$ac_cv_prog_CC"; then
2245 ac_ct_CC=$CC
2246 # Extract the first word of "gcc", so it can be a program name with args.
2247 set dummy gcc; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 if test -n "$ac_ct_CC"; then
2254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263 ac_cv_prog_ac_ct_CC="gcc"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2267 done
2268 done
2272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273 if test -n "$ac_ct_CC"; then
2274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275 echo "${ECHO_T}$ac_ct_CC" >&6
2276 else
2277 echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2281 CC=$ac_ct_CC
2282 else
2283 CC="$ac_cv_prog_CC"
2286 if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
2288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}cc; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2305 ac_cv_prog_CC="${ac_tool_prefix}cc"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2309 done
2310 done
2314 CC=$ac_cv_prog_CC
2315 if test -n "$CC"; then
2316 echo "$as_me:$LINENO: result: $CC" >&5
2317 echo "${ECHO_T}$CC" >&6
2318 else
2319 echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6
2324 if test -z "$ac_cv_prog_CC"; then
2325 ac_ct_CC=$CC
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$ac_ct_CC"; then
2334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343 ac_cv_prog_ac_ct_CC="cc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2347 done
2348 done
2352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2353 if test -n "$ac_ct_CC"; then
2354 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2355 echo "${ECHO_T}$ac_ct_CC" >&6
2356 else
2357 echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6
2361 CC=$ac_ct_CC
2362 else
2363 CC="$ac_cv_prog_CC"
2367 if test -z "$CC"; then
2368 # Extract the first word of "cc", so it can be a program name with args.
2369 set dummy cc; ac_word=$2
2370 echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2377 else
2378 ac_prog_rejected=no
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2387 ac_prog_rejected=yes
2388 continue
2390 ac_cv_prog_CC="cc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy $ac_cv_prog_CC
2400 shift
2401 if test $# != 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2405 shift
2406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413 echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6
2415 else
2416 echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2421 if test -z "$CC"; then
2422 if test -n "$ac_tool_prefix"; then
2423 for ac_prog in cl
2425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2451 CC=$ac_cv_prog_CC
2452 if test -n "$CC"; then
2453 echo "$as_me:$LINENO: result: $CC" >&5
2454 echo "${ECHO_T}$CC" >&6
2455 else
2456 echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2460 test -n "$CC" && break
2461 done
2463 if test -z "$CC"; then
2464 ac_ct_CC=$CC
2465 for ac_prog in cl
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_ac_ct_CC="$ac_prog"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2488 done
2489 done
2493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494 if test -n "$ac_ct_CC"; then
2495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2496 echo "${ECHO_T}$ac_ct_CC" >&6
2497 else
2498 echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2502 test -n "$ac_ct_CC" && break
2503 done
2505 CC=$ac_ct_CC
2511 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: no acceptable C compiler found in \$PATH
2514 See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2517 # Provide some information about the compiler.
2518 echo "$as_me:$LINENO:" \
2519 "checking for C compiler version" >&5
2520 ac_compiler=`set X $ac_compile; echo $2`
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2522 (eval $ac_compiler --version </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2527 (eval $ac_compiler -v </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2532 (eval $ac_compiler -V </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2545 main ()
2549 return 0;
2551 _ACEOF
2552 ac_clean_files_save=$ac_clean_files
2553 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2554 # Try to create an executable without -o first, disregard a.out.
2555 # It will help us diagnose broken compilers, and finding out an intuition
2556 # of exeext.
2557 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2558 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2559 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2560 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2561 (eval $ac_link_default) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 # Find the output, starting from the most likely. This scheme is
2566 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2567 # resort.
2569 # Be careful to initialize this variable, since it used to be cached.
2570 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2571 ac_cv_exeext=
2572 # b.out is created by i960 compilers.
2573 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2575 test -f "$ac_file" || continue
2576 case $ac_file in
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2579 conftest.$ac_ext )
2580 # This is the source file.
2582 [ab].out )
2583 # We found the default executable, but exeext='' is most
2584 # certainly right.
2585 break;;
2586 *.* )
2587 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2588 # FIXME: I believe we export ac_cv_exeext for Libtool,
2589 # but it would be cool to find out if it's true. Does anybody
2590 # maintain Libtool? --akim.
2591 export ac_cv_exeext
2592 break;;
2594 break;;
2595 esac
2596 done
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2601 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2602 See \`config.log' for more details." >&5
2603 echo "$as_me: error: C compiler cannot create executables
2604 See \`config.log' for more details." >&2;}
2605 { (exit 77); exit 77; }; }
2608 ac_exeext=$ac_cv_exeext
2609 echo "$as_me:$LINENO: result: $ac_file" >&5
2610 echo "${ECHO_T}$ac_file" >&6
2612 # Check the compiler produces executables we can run. If not, either
2613 # the compiler is broken, or we cross compile.
2614 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2615 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2616 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2617 # If not cross compiling, check that we can run a simple program.
2618 if test "$cross_compiling" != yes; then
2619 if { ac_try='./$ac_file'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 cross_compiling=no
2626 else
2627 if test "$cross_compiling" = maybe; then
2628 cross_compiling=yes
2629 else
2630 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2631 If you meant to cross compile, use \`--host'.
2632 See \`config.log' for more details." >&5
2633 echo "$as_me: error: cannot run C compiled programs.
2634 If you meant to cross compile, use \`--host'.
2635 See \`config.log' for more details." >&2;}
2636 { (exit 1); exit 1; }; }
2640 echo "$as_me:$LINENO: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2644 ac_clean_files=$ac_clean_files_save
2645 # Check the compiler produces executables we can run. If not, either
2646 # the compiler is broken, or we cross compile.
2647 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2648 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2649 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2650 echo "${ECHO_T}$cross_compiling" >&6
2652 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2653 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2655 (eval $ac_link) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2660 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2661 # work properly (i.e., refer to `conftest.exe'), while it won't with
2662 # `rm'.
2663 for ac_file in conftest.exe conftest conftest.*; do
2664 test -f "$ac_file" || continue
2665 case $ac_file in
2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2668 export ac_cv_exeext
2669 break;;
2670 * ) break;;
2671 esac
2672 done
2673 else
2674 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2675 See \`config.log' for more details." >&5
2676 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2677 See \`config.log' for more details." >&2;}
2678 { (exit 1); exit 1; }; }
2681 rm -f conftest$ac_cv_exeext
2682 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2683 echo "${ECHO_T}$ac_cv_exeext" >&6
2685 rm -f conftest.$ac_ext
2686 EXEEXT=$ac_cv_exeext
2687 ac_exeext=$EXEEXT
2688 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2689 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2690 if test "${ac_cv_objext+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2701 main ()
2705 return 0;
2707 _ACEOF
2708 rm -f conftest.o conftest.obj
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; then
2714 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2715 case $ac_file in
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2717 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2718 break;;
2719 esac
2720 done
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2728 See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }
2732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2734 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2735 echo "${ECHO_T}$ac_cv_objext" >&6
2736 OBJEXT=$ac_cv_objext
2737 ac_objext=$OBJEXT
2738 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2739 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 main ()
2753 #ifndef __GNUC__
2754 choke me
2755 #endif
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2764 ac_status=$?
2765 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_c_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_compiler_gnu=yes
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 ac_compiler_gnu=no
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2794 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2795 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2796 GCC=`test $ac_compiler_gnu = yes && echo yes`
2797 ac_test_CFLAGS=${CFLAGS+set}
2798 ac_save_CFLAGS=$CFLAGS
2799 CFLAGS="-g"
2800 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2801 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2802 if test "${ac_cv_prog_cc_g+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h. */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2813 main ()
2817 return 0;
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
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); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_prog_cc_g=yes
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_cv_prog_cc_g=no
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2852 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2853 if test "$ac_test_CFLAGS" = set; then
2854 CFLAGS=$ac_save_CFLAGS
2855 elif test $ac_cv_prog_cc_g = yes; then
2856 if test "$GCC" = yes; then
2857 CFLAGS="-g -O2"
2858 else
2859 CFLAGS="-g"
2861 else
2862 if test "$GCC" = yes; then
2863 CFLAGS="-O2"
2864 else
2865 CFLAGS=
2868 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2869 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2870 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 ac_cv_prog_cc_stdc=no
2874 ac_save_CC=$CC
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2881 #include <stdarg.h>
2882 #include <stdio.h>
2883 #include <sys/types.h>
2884 #include <sys/stat.h>
2885 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2886 struct buf { int x; };
2887 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2888 static char *e (p, i)
2889 char **p;
2890 int i;
2892 return p[i];
2894 static char *f (char * (*g) (char **, int), char **p, ...)
2896 char *s;
2897 va_list v;
2898 va_start (v,p);
2899 s = g (p, va_arg (v,int));
2900 va_end (v);
2901 return s;
2904 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2905 function prototypes and stuff, but not '\xHH' hex character constants.
2906 These don't provoke an error unfortunately, instead are silently treated
2907 as 'x'. The following induces an error, until -std1 is added to get
2908 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2909 array size at least. It's necessary to write '\x00'==0 to get something
2910 that's true only with -std1. */
2911 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2913 int test (int i, double x);
2914 struct s1 {int (*f) (int a);};
2915 struct s2 {int (*f) (double a);};
2916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2917 int argc;
2918 char **argv;
2920 main ()
2922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2924 return 0;
2926 _ACEOF
2927 # Don't try gcc -ansi; that turns off useful extensions and
2928 # breaks some systems' header files.
2929 # AIX -qlanglvl=ansi
2930 # Ultrix and OSF/1 -std1
2931 # HP-UX 10.20 and later -Ae
2932 # HP-UX older versions -Aa -D_HPUX_SOURCE
2933 # SVR4 -Xc -D__EXTENSIONS__
2934 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2936 CC="$ac_save_CC $ac_arg"
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 ac_cv_prog_cc_stdc=$ac_arg
2960 break
2961 else
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.err conftest.$ac_objext
2967 done
2968 rm -f conftest.$ac_ext conftest.$ac_objext
2969 CC=$ac_save_CC
2973 case "x$ac_cv_prog_cc_stdc" in
2974 x|xno)
2975 echo "$as_me:$LINENO: result: none needed" >&5
2976 echo "${ECHO_T}none needed" >&6 ;;
2978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2979 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2980 CC="$CC $ac_cv_prog_cc_stdc" ;;
2981 esac
2983 # Some people use a C++ compiler to compile C. Since we use `exit',
2984 # in C++ we need to declare it. In case someone uses the same compiler
2985 # for both compiling C and C++ we need to have the C++ compiler decide
2986 # the declaration of exit, since it's the most demanding environment.
2987 cat >conftest.$ac_ext <<_ACEOF
2988 #ifndef __cplusplus
2989 choke me
2990 #endif
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag"
3002 || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 (eval $ac_try) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 for ac_declaration in \
3015 '' \
3016 'extern "C" void std::exit (int) throw (); using std::exit;' \
3017 'extern "C" void std::exit (int); using std::exit;' \
3018 'extern "C" void exit (int) throw ();' \
3019 'extern "C" void exit (int);' \
3020 'void exit (int);'
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 $ac_declaration
3029 #include <stdlib.h>
3031 main ()
3033 exit (42);
3035 return 0;
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 continue
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 $ac_declaration
3076 main ()
3078 exit (42);
3080 return 0;
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>conftest.er1
3086 ac_status=$?
3087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_c_werror_flag"
3093 || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 (eval $ac_try) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 break
3106 else
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3112 done
3113 rm -f conftest*
3114 if test -n "$ac_declaration"; then
3115 echo '#ifdef __cplusplus' >>confdefs.h
3116 echo $ac_declaration >>confdefs.h
3117 echo '#endif' >>confdefs.h
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 depcc="$CC" am_compiler_list=
3134 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3140 # We make a subdir and do the tests there. Otherwise we can end up
3141 # making bogus files that we don't know about and never remove. For
3142 # instance it was reported that on HP-UX the gcc test will end up
3143 # making a dummy file named `D' -- because `-MD' means `put the output
3144 # in D'.
3145 mkdir conftest.dir
3146 # Copy depcomp to subdir because otherwise we won't find it if we're
3147 # using a relative directory.
3148 cp "$am_depcomp" conftest.dir
3149 cd conftest.dir
3150 # We will build objects and dependencies in a subdirectory because
3151 # it helps to detect inapplicable dependency modes. For instance
3152 # both Tru64's cc and ICC support -MD to output dependencies as a
3153 # side effect of compilation, but ICC will put the dependencies in
3154 # the current directory while Tru64 will put them in the object
3155 # directory.
3156 mkdir sub
3158 am_cv_CC_dependencies_compiler_type=none
3159 if test "$am_compiler_list" = ""; then
3160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3162 for depmode in $am_compiler_list; do
3163 # Setup a source with many dependencies, because some compilers
3164 # like to wrap large dependency lists on column 80 (with \), and
3165 # we should not choose a depcomp mode which is confused by this.
3167 # We need to recreate these files for each test, as the compiler may
3168 # overwrite some of them when testing with obscure command lines.
3169 # This happens at least with the AIX C compiler.
3170 : > sub/conftest.c
3171 for i in 1 2 3 4 5 6; do
3172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3174 # Solaris 8's {/usr,}/bin/sh.
3175 touch sub/conftst$i.h
3176 done
3177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3179 case $depmode in
3180 nosideeffect)
3181 # after this tag, mechanisms are not by side-effect, so they'll
3182 # only be used when explicitly requested
3183 if test "x$enable_dependency_tracking" = xyes; then
3184 continue
3185 else
3186 break
3189 none) break ;;
3190 esac
3191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3192 # mode. It turns out that the SunPro C++ compiler does not properly
3193 # handle `-M -o', and we need to detect this.
3194 if depmode=$depmode \
3195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3198 >/dev/null 2>conftest.err &&
3199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202 # icc doesn't choke on unknown options, it will just issue warnings
3203 # or remarks (even with -Werror). So we grep stderr for any message
3204 # that says an option was ignored or not supported.
3205 # When given -MP, icc 7.0 and 7.1 complain thusly:
3206 # icc: Command line warning: ignoring option '-M'; no argument required
3207 # The diagnosis changed in icc 8.0:
3208 # icc: Command line remark: option '-MP' not supported
3209 if (grep 'ignoring option' conftest.err ||
3210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211 am_cv_CC_dependencies_compiler_type=$depmode
3212 break
3215 done
3217 cd ..
3218 rm -rf conftest.dir
3219 else
3220 am_cv_CC_dependencies_compiler_type=none
3224 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3231 test "x$enable_dependency_tracking" != xno \
3232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3233 am__fastdepCC_TRUE=
3234 am__fastdepCC_FALSE='#'
3235 else
3236 am__fastdepCC_TRUE='#'
3237 am__fastdepCC_FALSE=
3241 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3242 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3243 if test "${lt_cv_path_SED+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 # Loop through the user's path and test for sed and gsed.
3247 # Then use that list of sed's as ones to test for truncation.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for lt_ac_prog in sed gsed; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3256 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3258 done
3259 done
3260 done
3261 IFS=$as_save_IFS
3262 lt_ac_max=0
3263 lt_ac_count=0
3264 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3265 # along with /bin/sed that truncates output.
3266 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3267 test ! -f $lt_ac_sed && continue
3268 cat /dev/null > conftest.in
3269 lt_ac_count=0
3270 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3271 # Check for GNU sed and select it if it is found.
3272 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3273 lt_cv_path_SED=$lt_ac_sed
3274 break
3276 while true; do
3277 cat conftest.in conftest.in >conftest.tmp
3278 mv conftest.tmp conftest.in
3279 cp conftest.in conftest.nl
3280 echo >>conftest.nl
3281 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3282 cmp -s conftest.out conftest.nl || break
3283 # 10000 chars as input seems more than enough
3284 test $lt_ac_count -gt 10 && break
3285 lt_ac_count=`expr $lt_ac_count + 1`
3286 if test $lt_ac_count -gt $lt_ac_max; then
3287 lt_ac_max=$lt_ac_count
3288 lt_cv_path_SED=$lt_ac_sed
3290 done
3291 done
3295 SED=$lt_cv_path_SED
3297 echo "$as_me:$LINENO: result: $SED" >&5
3298 echo "${ECHO_T}$SED" >&6
3300 echo "$as_me:$LINENO: checking for egrep" >&5
3301 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3302 if test "${ac_cv_prog_egrep+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3306 then ac_cv_prog_egrep='grep -E'
3307 else ac_cv_prog_egrep='egrep'
3310 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3311 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3312 EGREP=$ac_cv_prog_egrep
3316 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3317 if test "${with_gnu_ld+set}" = set; then
3318 withval="$with_gnu_ld"
3319 test "$withval" = no || with_gnu_ld=yes
3320 else
3321 with_gnu_ld=no
3323 ac_prog=ld
3324 if test "$GCC" = yes; then
3325 # Check if gcc -print-prog-name=ld gives a path.
3326 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3327 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3328 case $host in
3329 *-*-mingw*)
3330 # gcc leaves a trailing carriage return which upsets mingw
3331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3334 esac
3335 case $ac_prog in
3336 # Accept absolute paths.
3337 [\\/]* | ?:[\\/]*)
3338 re_direlt='/[^/][^/]*/\.\./'
3339 # Canonicalize the pathname of ld
3340 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3341 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3342 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3343 done
3344 test -z "$LD" && LD="$ac_prog"
3347 # If it fails, then pretend we aren't using GCC.
3348 ac_prog=ld
3351 # If it is relative, then search for the first ld in PATH.
3352 with_gnu_ld=unknown
3354 esac
3355 elif test "$with_gnu_ld" = yes; then
3356 echo "$as_me:$LINENO: checking for GNU ld" >&5
3357 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3358 else
3359 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3360 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3362 if test "${lt_cv_path_LD+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 if test -z "$LD"; then
3366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3367 for ac_dir in $PATH; do
3368 IFS="$lt_save_ifs"
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3371 lt_cv_path_LD="$ac_dir/$ac_prog"
3372 # Check to see if the program is GNU ld. I'd rather use --version,
3373 # but apparently some variants of GNU ld only accept -v.
3374 # Break only if it was the GNU/non-GNU ld that we prefer.
3375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3376 *GNU* | *'with BFD'*)
3377 test "$with_gnu_ld" != no && break
3380 test "$with_gnu_ld" != yes && break
3382 esac
3384 done
3385 IFS="$lt_save_ifs"
3386 else
3387 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3391 LD="$lt_cv_path_LD"
3392 if test -n "$LD"; then
3393 echo "$as_me:$LINENO: result: $LD" >&5
3394 echo "${ECHO_T}$LD" >&6
3395 else
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3399 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3400 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3401 { (exit 1); exit 1; }; }
3402 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3403 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3404 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3408 case `$LD -v 2>&1 </dev/null` in
3409 *GNU* | *'with BFD'*)
3410 lt_cv_prog_gnu_ld=yes
3413 lt_cv_prog_gnu_ld=no
3415 esac
3417 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3418 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3419 with_gnu_ld=$lt_cv_prog_gnu_ld
3422 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3423 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3424 if test "${lt_cv_ld_reload_flag+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 lt_cv_ld_reload_flag='-r'
3429 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3430 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3431 reload_flag=$lt_cv_ld_reload_flag
3432 case $reload_flag in
3433 "" | " "*) ;;
3434 *) reload_flag=" $reload_flag" ;;
3435 esac
3436 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3437 case $host_os in
3438 darwin*)
3439 if test "$GCC" = yes; then
3440 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3441 else
3442 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3445 esac
3447 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3448 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3449 if test "${lt_cv_path_NM+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$NM"; then
3453 # Let the user override the test.
3454 lt_cv_path_NM="$NM"
3455 else
3456 lt_nm_to_check="${ac_tool_prefix}nm"
3457 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3458 lt_nm_to_check="$lt_nm_to_check nm"
3460 for lt_tmp_nm in $lt_nm_to_check; do
3461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3462 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3463 IFS="$lt_save_ifs"
3464 test -z "$ac_dir" && ac_dir=.
3465 tmp_nm="$ac_dir/$lt_tmp_nm"
3466 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3467 # Check to see if the nm accepts a BSD-compat flag.
3468 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3469 # nm: unknown option "B" ignored
3470 # Tru64's nm complains that /dev/null is an invalid object file
3471 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3472 */dev/null* | *'Invalid file or object type'*)
3473 lt_cv_path_NM="$tmp_nm -B"
3474 break
3477 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3478 */dev/null*)
3479 lt_cv_path_NM="$tmp_nm -p"
3480 break
3483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3484 continue # so that we can try to find one that supports BSD flags
3486 esac
3488 esac
3490 done
3491 IFS="$lt_save_ifs"
3492 done
3493 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3496 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3497 echo "${ECHO_T}$lt_cv_path_NM" >&6
3498 NM="$lt_cv_path_NM"
3500 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3501 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3502 LN_S=$as_ln_s
3503 if test "$LN_S" = "ln -s"; then
3504 echo "$as_me:$LINENO: result: yes" >&5
3505 echo "${ECHO_T}yes" >&6
3506 else
3507 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3508 echo "${ECHO_T}no, using $LN_S" >&6
3511 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3512 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3513 if test "${lt_cv_deplibs_check_method+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 lt_cv_file_magic_cmd='$MAGIC_CMD'
3517 lt_cv_file_magic_test_file=
3518 lt_cv_deplibs_check_method='unknown'
3519 # Need to set the preceding variable on all platforms that support
3520 # interlibrary dependencies.
3521 # 'none' -- dependencies not supported.
3522 # `unknown' -- same as none, but documents that we really don't know.
3523 # 'pass_all' -- all dependencies passed with no checks.
3524 # 'test_compile' -- check by making test program.
3525 # 'file_magic [[regex]]' -- check by looking for files in library path
3526 # which responds to the $file_magic_cmd with a given extended regex.
3527 # If you have `file' or equivalent on your system and you're not sure
3528 # whether `pass_all' will *always* work, you probably want this one.
3530 case $host_os in
3531 aix4* | aix5*)
3532 lt_cv_deplibs_check_method=pass_all
3535 beos*)
3536 lt_cv_deplibs_check_method=pass_all
3539 bsdi[45]*)
3540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3541 lt_cv_file_magic_cmd='/usr/bin/file -L'
3542 lt_cv_file_magic_test_file=/shlib/libc.so
3545 cygwin*)
3546 # func_win32_libid is a shell function defined in ltmain.sh
3547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3548 lt_cv_file_magic_cmd='func_win32_libid'
3551 mingw* | pw32*)
3552 # Base MSYS/MinGW do not provide the 'file' command needed by
3553 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3555 lt_cv_file_magic_cmd='$OBJDUMP -f'
3558 darwin* | rhapsody*)
3559 lt_cv_deplibs_check_method=pass_all
3562 freebsd* | kfreebsd*-gnu | dragonfly*)
3563 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564 case $host_cpu in
3565 i*86 )
3566 # Not sure whether the presence of OpenBSD here was a mistake.
3567 # Let's accept both of them until this is cleared up.
3568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3569 lt_cv_file_magic_cmd=/usr/bin/file
3570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3572 esac
3573 else
3574 lt_cv_deplibs_check_method=pass_all
3578 gnu*)
3579 lt_cv_deplibs_check_method=pass_all
3582 hpux10.20* | hpux11*)
3583 lt_cv_file_magic_cmd=/usr/bin/file
3584 case $host_cpu in
3585 ia64*)
3586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3589 hppa*64*)
3590 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]'
3591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3597 esac
3600 interix3*)
3601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3605 irix5* | irix6* | nonstopux*)
3606 case $LD in
3607 *-32|*"-32 ") libmagic=32-bit;;
3608 *-n32|*"-n32 ") libmagic=N32;;
3609 *-64|*"-64 ") libmagic=64-bit;;
3610 *) libmagic=never-match;;
3611 esac
3612 lt_cv_deplibs_check_method=pass_all
3615 # This must be Linux ELF.
3616 linux*)
3617 lt_cv_deplibs_check_method=pass_all
3620 netbsd*)
3621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3623 else
3624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3628 newos6*)
3629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3630 lt_cv_file_magic_cmd=/usr/bin/file
3631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3634 nto-qnx*)
3635 lt_cv_deplibs_check_method=unknown
3638 openbsd*)
3639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3641 else
3642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3646 osf3* | osf4* | osf5*)
3647 lt_cv_deplibs_check_method=pass_all
3650 solaris*)
3651 lt_cv_deplibs_check_method=pass_all
3654 sysv4 | sysv4.3*)
3655 case $host_vendor in
3656 motorola)
3657 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]'
3658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3660 ncr)
3661 lt_cv_deplibs_check_method=pass_all
3663 sequent)
3664 lt_cv_file_magic_cmd='/bin/file'
3665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3667 sni)
3668 lt_cv_file_magic_cmd='/bin/file'
3669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3670 lt_cv_file_magic_test_file=/lib/libc.so
3672 siemens)
3673 lt_cv_deplibs_check_method=pass_all
3676 lt_cv_deplibs_check_method=pass_all
3678 esac
3681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3682 lt_cv_deplibs_check_method=pass_all
3684 esac
3687 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3688 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3689 file_magic_cmd=$lt_cv_file_magic_cmd
3690 deplibs_check_method=$lt_cv_deplibs_check_method
3691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3696 # If no C compiler was specified, use CC.
3697 LTCC=${LTCC-"$CC"}
3699 # If no C compiler flags were specified, use CFLAGS.
3700 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3702 # Allow CC to be a program name with arguments.
3703 compiler=$CC
3706 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3707 if test "${enable_libtool_lock+set}" = set; then
3708 enableval="$enable_libtool_lock"
3711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3713 # Some flags need to be propagated to the compiler or linker for good
3714 # libtool support.
3715 case $host in
3716 ia64-*-hpux*)
3717 # Find out which ABI we are using.
3718 echo 'int i;' > conftest.$ac_ext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 case `/usr/bin/file conftest.$ac_objext` in
3725 *ELF-32*)
3726 HPUX_IA64_MODE="32"
3728 *ELF-64*)
3729 HPUX_IA64_MODE="64"
3731 esac
3733 rm -rf conftest*
3735 *-*-irix6*)
3736 # Find out which ABI we are using.
3737 echo '#line 3737 "configure"' > conftest.$ac_ext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 if test "$lt_cv_prog_gnu_ld" = yes; then
3744 case `/usr/bin/file conftest.$ac_objext` in
3745 *32-bit*)
3746 LD="${LD-ld} -melf32bsmip"
3748 *N32*)
3749 LD="${LD-ld} -melf32bmipn32"
3751 *64-bit*)
3752 LD="${LD-ld} -melf64bmip"
3754 esac
3755 else
3756 case `/usr/bin/file conftest.$ac_objext` in
3757 *32-bit*)
3758 LD="${LD-ld} -32"
3760 *N32*)
3761 LD="${LD-ld} -n32"
3763 *64-bit*)
3764 LD="${LD-ld} -64"
3766 esac
3769 rm -rf conftest*
3772 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3773 # Find out which ABI we are using.
3774 echo 'int i;' > conftest.$ac_ext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; then
3780 case `/usr/bin/file conftest.o` in
3781 *32-bit*)
3782 case $host in
3783 x86_64-*linux*)
3784 LD="${LD-ld} -m elf_i386"
3786 ppc64-*linux*|powerpc64-*linux*)
3787 LD="${LD-ld} -m elf32ppclinux"
3789 s390x-*linux*)
3790 LD="${LD-ld} -m elf_s390"
3792 sparc64-*linux*)
3793 LD="${LD-ld} -m elf32_sparc"
3795 esac
3797 *64-bit*)
3798 case $host in
3799 x86_64-*linux*)
3800 LD="${LD-ld} -m elf_x86_64"
3802 ppc*-*linux*|powerpc*-*linux*)
3803 LD="${LD-ld} -m elf64ppc"
3805 s390*-*linux*)
3806 LD="${LD-ld} -m elf64_s390"
3808 sparc*-*linux*)
3809 LD="${LD-ld} -m elf64_sparc"
3811 esac
3813 esac
3815 rm -rf conftest*
3818 *-*-sco3.2v5*)
3819 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3820 SAVE_CFLAGS="$CFLAGS"
3821 CFLAGS="$CFLAGS -belf"
3822 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3823 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3824 if test "${lt_cv_cc_needs_belf+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.$ac_objext conftest$ac_exeext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850 (eval $ac_link) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try='test -s conftest$ac_exeext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 lt_cv_cc_needs_belf=yes
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 lt_cv_cc_needs_belf=no
3877 rm -f conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3887 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3890 CFLAGS="$SAVE_CFLAGS"
3893 sparc*-*solaris*)
3894 # Find out which ABI we are using.
3895 echo 'int i;' > conftest.$ac_ext
3896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3897 (eval $ac_compile) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; then
3901 case `/usr/bin/file conftest.o` in
3902 *64-bit*)
3903 case $lt_cv_prog_gnu_ld in
3904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3905 *) LD="${LD-ld} -64" ;;
3906 esac
3908 esac
3910 rm -rf conftest*
3914 esac
3916 need_locks="$enable_libtool_lock"
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3926 # On Suns, sometimes $CPP names a directory.
3927 if test -n "$CPP" && test -d "$CPP"; then
3928 CPP=
3930 if test -z "$CPP"; then
3931 if test "${ac_cv_prog_CPP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 # Double quotes because CPP needs to be expanded
3935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3937 ac_preproc_ok=false
3938 for ac_c_preproc_warn_flag in '' yes
3940 # Use a header file that comes with gcc, so configuring glibc
3941 # with a fresh cross-compiler works.
3942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3943 # <limits.h> exists even on freestanding compilers.
3944 # On the NeXT, cc -E runs the code through the compiler's parser,
3945 # not just through cpp. "Syntax error" is here to catch this case.
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 #ifdef __STDC__
3953 # include <limits.h>
3954 #else
3955 # include <assert.h>
3956 #endif
3957 Syntax error
3958 _ACEOF
3959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev/null; then
3967 if test -s conftest.err; then
3968 ac_cpp_err=$ac_c_preproc_warn_flag
3969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970 else
3971 ac_cpp_err=
3973 else
3974 ac_cpp_err=yes
3976 if test -z "$ac_cpp_err"; then
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 # Broken: fails on valid input.
3983 continue
3985 rm -f conftest.err conftest.$ac_ext
3987 # OK, works on sane cases. Now check whether non-existent headers
3988 # can be detected and how.
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3996 _ACEOF
3997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } >/dev/null; then
4005 if test -s conftest.err; then
4006 ac_cpp_err=$ac_c_preproc_warn_flag
4007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4008 else
4009 ac_cpp_err=
4011 else
4012 ac_cpp_err=yes
4014 if test -z "$ac_cpp_err"; then
4015 # Broken: success on invalid input.
4016 continue
4017 else
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 # Passes both tests.
4022 ac_preproc_ok=:
4023 break
4025 rm -f conftest.err conftest.$ac_ext
4027 done
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029 rm -f conftest.err conftest.$ac_ext
4030 if $ac_preproc_ok; then
4031 break
4034 done
4035 ac_cv_prog_CPP=$CPP
4038 CPP=$ac_cv_prog_CPP
4039 else
4040 ac_cv_prog_CPP=$CPP
4042 echo "$as_me:$LINENO: result: $CPP" >&5
4043 echo "${ECHO_T}$CPP" >&6
4044 ac_preproc_ok=false
4045 for ac_c_preproc_warn_flag in '' yes
4047 # Use a header file that comes with gcc, so configuring glibc
4048 # with a fresh cross-compiler works.
4049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4050 # <limits.h> exists even on freestanding compilers.
4051 # On the NeXT, cc -E runs the code through the compiler's parser,
4052 # not just through cpp. "Syntax error" is here to catch this case.
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064 Syntax error
4065 _ACEOF
4066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } >/dev/null; then
4074 if test -s conftest.err; then
4075 ac_cpp_err=$ac_c_preproc_warn_flag
4076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4077 else
4078 ac_cpp_err=
4080 else
4081 ac_cpp_err=yes
4083 if test -z "$ac_cpp_err"; then
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 # Broken: fails on valid input.
4090 continue
4092 rm -f conftest.err conftest.$ac_ext
4094 # OK, works on sane cases. Now check whether non-existent headers
4095 # can be detected and how.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <ac_nonexistent.h>
4103 _ACEOF
4104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null; then
4112 if test -s conftest.err; then
4113 ac_cpp_err=$ac_c_preproc_warn_flag
4114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4115 else
4116 ac_cpp_err=
4118 else
4119 ac_cpp_err=yes
4121 if test -z "$ac_cpp_err"; then
4122 # Broken: success on invalid input.
4123 continue
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 # Passes both tests.
4129 ac_preproc_ok=:
4130 break
4132 rm -f conftest.err conftest.$ac_ext
4134 done
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then
4139 else
4140 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4141 See \`config.log' for more details." >&5
4142 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4143 See \`config.log' for more details." >&2;}
4144 { (exit 1); exit 1; }; }
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4156 if test "${ac_cv_header_stdc+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 #include <stdlib.h>
4166 #include <stdarg.h>
4167 #include <string.h>
4168 #include <float.h>
4171 main ()
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest.$ac_objext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_header_stdc=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_header_stdc=no
4207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 if test $ac_cv_header_stdc = yes; then
4210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <string.h>
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "memchr" >/dev/null 2>&1; then
4223 else
4224 ac_cv_header_stdc=no
4226 rm -f conftest*
4230 if test $ac_cv_header_stdc = yes; then
4231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #include <stdlib.h>
4240 _ACEOF
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "free" >/dev/null 2>&1; then
4244 else
4245 ac_cv_header_stdc=no
4247 rm -f conftest*
4251 if test $ac_cv_header_stdc = yes; then
4252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4253 if test "$cross_compiling" = yes; then
4255 else
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 #include <ctype.h>
4263 #if ((' ' & 0x0FF) == 0x020)
4264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4266 #else
4267 # define ISLOWER(c) \
4268 (('a' <= (c) && (c) <= 'i') \
4269 || ('j' <= (c) && (c) <= 'r') \
4270 || ('s' <= (c) && (c) <= 'z'))
4271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4272 #endif
4274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4276 main ()
4278 int i;
4279 for (i = 0; i < 256; i++)
4280 if (XOR (islower (i), ISLOWER (i))
4281 || toupper (i) != TOUPPER (i))
4282 exit(2);
4283 exit (0);
4285 _ACEOF
4286 rm -f conftest$ac_exeext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4298 else
4299 echo "$as_me: program exited with status $ac_status" >&5
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 ( exit $ac_status )
4304 ac_cv_header_stdc=no
4306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4310 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4312 if test $ac_cv_header_stdc = yes; then
4314 cat >>confdefs.h <<\_ACEOF
4315 #define STDC_HEADERS 1
4316 _ACEOF
4320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331 inttypes.h stdint.h unistd.h
4333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4347 #include <$ac_header>
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag"
4359 || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 eval "$as_ac_Header=yes"
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 eval "$as_ac_Header=no"
4378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h <<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385 _ACEOF
4389 done
4393 for ac_header in dlfcn.h
4395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397 echo "$as_me:$LINENO: checking for $ac_header" >&5
4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4404 else
4405 # Is the header compilable?
4406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4415 #include <$ac_header>
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag"
4427 || test ! -s conftest.err'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 (eval $ac_try) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_header_compiler=yes
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_header_compiler=no
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4448 echo "${ECHO_T}$ac_header_compiler" >&6
4450 # Is the header present?
4451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h. */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 #include <$ac_header>
4460 _ACEOF
4461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } >/dev/null; then
4469 if test -s conftest.err; then
4470 ac_cpp_err=$ac_c_preproc_warn_flag
4471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4472 else
4473 ac_cpp_err=
4475 else
4476 ac_cpp_err=yes
4478 if test -z "$ac_cpp_err"; then
4479 ac_header_preproc=yes
4480 else
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_header_preproc=no
4486 rm -f conftest.err conftest.$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4488 echo "${ECHO_T}$ac_header_preproc" >&6
4490 # So? What about this header?
4491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4492 yes:no: )
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4497 ac_header_preproc=yes
4499 no:yes:* )
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4513 cat <<\_ASBOX
4514 ## ---------------------------------------------------------------------- ##
4515 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4516 ## ---------------------------------------------------------------------- ##
4517 _ASBOX
4519 sed "s/^/$as_me: WARNING: /" >&2
4521 esac
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 eval "$as_ac_Header=\$ac_header_preproc"
4529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4534 cat >>confdefs.h <<_ACEOF
4535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4536 _ACEOF
4540 done
4542 ac_ext=cc
4543 ac_cpp='$CXXCPP $CPPFLAGS'
4544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4547 if test -n "$ac_tool_prefix"; then
4548 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_prog_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test -n "$CXX"; then
4558 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4576 CXX=$ac_cv_prog_CXX
4577 if test -n "$CXX"; then
4578 echo "$as_me:$LINENO: result: $CXX" >&5
4579 echo "${ECHO_T}$CXX" >&6
4580 else
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4585 test -n "$CXX" && break
4586 done
4588 if test -z "$CXX"; then
4589 ac_ct_CXX=$CXX
4590 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4592 # Extract the first word of "$ac_prog", so it can be a program name with args.
4593 set dummy $ac_prog; ac_word=$2
4594 echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4596 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 if test -n "$ac_ct_CXX"; then
4600 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_ac_ct_CXX="$ac_prog"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4618 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4619 if test -n "$ac_ct_CXX"; then
4620 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4621 echo "${ECHO_T}$ac_ct_CXX" >&6
4622 else
4623 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4627 test -n "$ac_ct_CXX" && break
4628 done
4629 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4631 CXX=$ac_ct_CXX
4635 # Provide some information about the compiler.
4636 echo "$as_me:$LINENO:" \
4637 "checking for C++ compiler version" >&5
4638 ac_compiler=`set X $ac_compile; echo $2`
4639 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4640 (eval $ac_compiler --version </dev/null >&5) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }
4644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4645 (eval $ac_compiler -v </dev/null >&5) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }
4649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4650 (eval $ac_compiler -V </dev/null >&5) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }
4655 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4656 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4668 main ()
4670 #ifndef __GNUC__
4671 choke me
4672 #endif
4675 return 0;
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try='test -z "$ac_cxx_werror_flag"
4688 || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_compiler_gnu=yes
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 ac_compiler_gnu=no
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4711 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4712 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4713 GXX=`test $ac_compiler_gnu = yes && echo yes`
4714 ac_test_CXXFLAGS=${CXXFLAGS+set}
4715 ac_save_CXXFLAGS=$CXXFLAGS
4716 CXXFLAGS="-g"
4717 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4718 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4719 if test "${ac_cv_prog_cxx_g+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_cxx_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_prog_cxx_g=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_cv_prog_cxx_g=no
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4769 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4770 if test "$ac_test_CXXFLAGS" = set; then
4771 CXXFLAGS=$ac_save_CXXFLAGS
4772 elif test $ac_cv_prog_cxx_g = yes; then
4773 if test "$GXX" = yes; then
4774 CXXFLAGS="-g -O2"
4775 else
4776 CXXFLAGS="-g"
4778 else
4779 if test "$GXX" = yes; then
4780 CXXFLAGS="-O2"
4781 else
4782 CXXFLAGS=
4785 for ac_declaration in \
4786 '' \
4787 'extern "C" void std::exit (int) throw (); using std::exit;' \
4788 'extern "C" void std::exit (int); using std::exit;' \
4789 'extern "C" void exit (int) throw ();' \
4790 'extern "C" void exit (int);' \
4791 'void exit (int);'
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_declaration
4800 #include <stdlib.h>
4802 main ()
4804 exit (42);
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_cxx_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 continue
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 $ac_declaration
4847 main ()
4849 exit (42);
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_cxx_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 break
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883 done
4884 rm -f conftest*
4885 if test -n "$ac_declaration"; then
4886 echo '#ifdef __cplusplus' >>confdefs.h
4887 echo $ac_declaration >>confdefs.h
4888 echo '#endif' >>confdefs.h
4891 ac_ext=cc
4892 ac_cpp='$CXXCPP $CPPFLAGS'
4893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4897 depcc="$CXX" am_compiler_list=
4899 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4900 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4901 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4905 # We make a subdir and do the tests there. Otherwise we can end up
4906 # making bogus files that we don't know about and never remove. For
4907 # instance it was reported that on HP-UX the gcc test will end up
4908 # making a dummy file named `D' -- because `-MD' means `put the output
4909 # in D'.
4910 mkdir conftest.dir
4911 # Copy depcomp to subdir because otherwise we won't find it if we're
4912 # using a relative directory.
4913 cp "$am_depcomp" conftest.dir
4914 cd conftest.dir
4915 # We will build objects and dependencies in a subdirectory because
4916 # it helps to detect inapplicable dependency modes. For instance
4917 # both Tru64's cc and ICC support -MD to output dependencies as a
4918 # side effect of compilation, but ICC will put the dependencies in
4919 # the current directory while Tru64 will put them in the object
4920 # directory.
4921 mkdir sub
4923 am_cv_CXX_dependencies_compiler_type=none
4924 if test "$am_compiler_list" = ""; then
4925 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4927 for depmode in $am_compiler_list; do
4928 # Setup a source with many dependencies, because some compilers
4929 # like to wrap large dependency lists on column 80 (with \), and
4930 # we should not choose a depcomp mode which is confused by this.
4932 # We need to recreate these files for each test, as the compiler may
4933 # overwrite some of them when testing with obscure command lines.
4934 # This happens at least with the AIX C compiler.
4935 : > sub/conftest.c
4936 for i in 1 2 3 4 5 6; do
4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4938 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4939 # Solaris 8's {/usr,}/bin/sh.
4940 touch sub/conftst$i.h
4941 done
4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4944 case $depmode in
4945 nosideeffect)
4946 # after this tag, mechanisms are not by side-effect, so they'll
4947 # only be used when explicitly requested
4948 if test "x$enable_dependency_tracking" = xyes; then
4949 continue
4950 else
4951 break
4954 none) break ;;
4955 esac
4956 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4957 # mode. It turns out that the SunPro C++ compiler does not properly
4958 # handle `-M -o', and we need to detect this.
4959 if depmode=$depmode \
4960 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4962 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4963 >/dev/null 2>conftest.err &&
4964 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4965 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4966 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4967 # icc doesn't choke on unknown options, it will just issue warnings
4968 # or remarks (even with -Werror). So we grep stderr for any message
4969 # that says an option was ignored or not supported.
4970 # When given -MP, icc 7.0 and 7.1 complain thusly:
4971 # icc: Command line warning: ignoring option '-M'; no argument required
4972 # The diagnosis changed in icc 8.0:
4973 # icc: Command line remark: option '-MP' not supported
4974 if (grep 'ignoring option' conftest.err ||
4975 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4976 am_cv_CXX_dependencies_compiler_type=$depmode
4977 break
4980 done
4982 cd ..
4983 rm -rf conftest.dir
4984 else
4985 am_cv_CXX_dependencies_compiler_type=none
4989 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4990 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4991 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4996 test "x$enable_dependency_tracking" != xno \
4997 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4998 am__fastdepCXX_TRUE=
4999 am__fastdepCXX_FALSE='#'
5000 else
5001 am__fastdepCXX_TRUE='#'
5002 am__fastdepCXX_FALSE=
5008 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5009 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5010 (test "X$CXX" != "Xg++"))) ; then
5011 ac_ext=cc
5012 ac_cpp='$CXXCPP $CPPFLAGS'
5013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5017 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5018 if test -z "$CXXCPP"; then
5019 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 # Double quotes because CXXCPP needs to be expanded
5023 for CXXCPP in "$CXX -E" "/lib/cpp"
5025 ac_preproc_ok=false
5026 for ac_cxx_preproc_warn_flag in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_cxx_preproc_warn_flag
5057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5058 else
5059 ac_cpp_err=
5061 else
5062 ac_cpp_err=yes
5064 if test -z "$ac_cpp_err"; then
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 # Broken: fails on valid input.
5071 continue
5073 rm -f conftest.err conftest.$ac_ext
5075 # OK, works on sane cases. Now check whether non-existent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5084 _ACEOF
5085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } >/dev/null; then
5093 if test -s conftest.err; then
5094 ac_cpp_err=$ac_cxx_preproc_warn_flag
5095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5096 else
5097 ac_cpp_err=
5099 else
5100 ac_cpp_err=yes
5102 if test -z "$ac_cpp_err"; then
5103 # Broken: success on invalid input.
5104 continue
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Passes both tests.
5110 ac_preproc_ok=:
5111 break
5113 rm -f conftest.err conftest.$ac_ext
5115 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5119 break
5122 done
5123 ac_cv_prog_CXXCPP=$CXXCPP
5126 CXXCPP=$ac_cv_prog_CXXCPP
5127 else
5128 ac_cv_prog_CXXCPP=$CXXCPP
5130 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5131 echo "${ECHO_T}$CXXCPP" >&6
5132 ac_preproc_ok=false
5133 for ac_cxx_preproc_warn_flag in '' yes
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5152 Syntax error
5153 _ACEOF
5154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } >/dev/null; then
5162 if test -s conftest.err; then
5163 ac_cpp_err=$ac_cxx_preproc_warn_flag
5164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5165 else
5166 ac_cpp_err=
5168 else
5169 ac_cpp_err=yes
5171 if test -z "$ac_cpp_err"; then
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 # Broken: fails on valid input.
5178 continue
5180 rm -f conftest.err conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether non-existent headers
5183 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } >/dev/null; then
5200 if test -s conftest.err; then
5201 ac_cpp_err=$ac_cxx_preproc_warn_flag
5202 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5203 else
5204 ac_cpp_err=
5206 else
5207 ac_cpp_err=yes
5209 if test -z "$ac_cpp_err"; then
5210 # Broken: success on invalid input.
5211 continue
5212 else
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 # Passes both tests.
5217 ac_preproc_ok=:
5218 break
5220 rm -f conftest.err conftest.$ac_ext
5222 done
5223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224 rm -f conftest.err conftest.$ac_ext
5225 if $ac_preproc_ok; then
5227 else
5228 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5229 See \`config.log' for more details." >&5
5230 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5231 See \`config.log' for more details." >&2;}
5232 { (exit 1); exit 1; }; }
5235 ac_ext=cc
5236 ac_cpp='$CXXCPP $CPPFLAGS'
5237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5244 ac_ext=f
5245 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5246 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5248 if test -n "$ac_tool_prefix"; then
5249 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5253 echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255 if test "${ac_cv_prog_F77+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 if test -n "$F77"; then
5259 ac_cv_prog_F77="$F77" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5277 F77=$ac_cv_prog_F77
5278 if test -n "$F77"; then
5279 echo "$as_me:$LINENO: result: $F77" >&5
5280 echo "${ECHO_T}$F77" >&6
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5286 test -n "$F77" && break
5287 done
5289 if test -z "$F77"; then
5290 ac_ct_F77=$F77
5291 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5293 # Extract the first word of "$ac_prog", so it can be a program name with args.
5294 set dummy $ac_prog; ac_word=$2
5295 echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5297 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 if test -n "$ac_ct_F77"; then
5301 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_ac_ct_F77="$ac_prog"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5319 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5320 if test -n "$ac_ct_F77"; then
5321 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5322 echo "${ECHO_T}$ac_ct_F77" >&6
5323 else
5324 echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5328 test -n "$ac_ct_F77" && break
5329 done
5331 F77=$ac_ct_F77
5335 # Provide some information about the compiler.
5336 echo "$as_me:5336:" \
5337 "checking for Fortran 77 compiler version" >&5
5338 ac_compiler=`set X $ac_compile; echo $2`
5339 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5340 (eval $ac_compiler --version </dev/null >&5) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }
5344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5345 (eval $ac_compiler -v </dev/null >&5) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }
5349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5350 (eval $ac_compiler -V </dev/null >&5) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }
5354 rm -f a.out
5356 # If we don't use `.F' as extension, the preprocessor is not run on the
5357 # input file. (Note that this only needs to work for GNU compilers.)
5358 ac_save_ext=$ac_ext
5359 ac_ext=F
5360 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5361 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5362 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 program main
5367 #ifndef __GNUC__
5368 choke me
5369 #endif
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_f77_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_compiler_gnu=yes
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 ac_compiler_gnu=no
5402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5403 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5406 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5407 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5408 ac_ext=$ac_save_ext
5409 ac_test_FFLAGS=${FFLAGS+set}
5410 ac_save_FFLAGS=$FFLAGS
5411 FFLAGS=
5412 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5413 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5414 if test "${ac_cv_prog_f77_g+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417 FFLAGS=-g
5418 cat >conftest.$ac_ext <<_ACEOF
5419 program main
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_f77_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_prog_f77_g=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 ac_cv_prog_f77_g=no
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5456 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5457 if test "$ac_test_FFLAGS" = set; then
5458 FFLAGS=$ac_save_FFLAGS
5459 elif test $ac_cv_prog_f77_g = yes; then
5460 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5461 FFLAGS="-g -O2"
5462 else
5463 FFLAGS="-g"
5465 else
5466 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5467 FFLAGS="-O2"
5468 else
5469 FFLAGS=
5473 G77=`test $ac_compiler_gnu = yes && echo yes`
5474 ac_ext=c
5475 ac_cpp='$CPP $CPPFLAGS'
5476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5484 # find the maximum length of command line arguments
5485 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5486 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5491 teststring="ABCD"
5493 case $build_os in
5494 msdosdjgpp*)
5495 # On DJGPP, this test can blow up pretty badly due to problems in libc
5496 # (any single argument exceeding 2000 bytes causes a buffer overrun
5497 # during glob expansion). Even if it were fixed, the result of this
5498 # check would be larger than it should be.
5499 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5502 gnu*)
5503 # Under GNU Hurd, this test is not required because there is
5504 # no limit to the length of command line arguments.
5505 # Libtool will interpret -1 as no limit whatsoever
5506 lt_cv_sys_max_cmd_len=-1;
5509 cygwin* | mingw*)
5510 # On Win9x/ME, this test blows up -- it succeeds, but takes
5511 # about 5 minutes as the teststring grows exponentially.
5512 # Worse, since 9x/ME are not pre-emptively multitasking,
5513 # you end up with a "frozen" computer, even though with patience
5514 # the test eventually succeeds (with a max line length of 256k).
5515 # Instead, let's just punt: use the minimum linelength reported by
5516 # all of the supported platforms: 8192 (on NT/2K/XP).
5517 lt_cv_sys_max_cmd_len=8192;
5520 amigaos*)
5521 # On AmigaOS with pdksh, this test takes hours, literally.
5522 # So we just punt and use a minimum line length of 8192.
5523 lt_cv_sys_max_cmd_len=8192;
5526 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5527 # This has been around since 386BSD, at least. Likely further.
5528 if test -x /sbin/sysctl; then
5529 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5530 elif test -x /usr/sbin/sysctl; then
5531 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5532 else
5533 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5535 # And add a safety zone
5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5540 interix*)
5541 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5542 lt_cv_sys_max_cmd_len=196608
5545 osf*)
5546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5548 # nice to cause kernel panics so lets avoid the loop below.
5549 # First set a reasonable default.
5550 lt_cv_sys_max_cmd_len=16384
5552 if test -x /sbin/sysconfig; then
5553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5554 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5555 esac
5558 sco3.2v5*)
5559 lt_cv_sys_max_cmd_len=102400
5561 sysv5* | sco5v6* | sysv4.2uw2*)
5562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5563 if test -n "$kargmax"; then
5564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5565 else
5566 lt_cv_sys_max_cmd_len=32768
5570 # If test is not a shell built-in, we'll probably end up computing a
5571 # maximum length that is only half of the actual maximum length, but
5572 # we can't tell.
5573 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5574 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5575 = "XX$teststring") >/dev/null 2>&1 &&
5576 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5577 lt_cv_sys_max_cmd_len=$new_result &&
5578 test $i != 17 # 1/2 MB should be enough
5580 i=`expr $i + 1`
5581 teststring=$teststring$teststring
5582 done
5583 teststring=
5584 # Add a significant safety factor because C++ compilers can tack on massive
5585 # amounts of additional arguments before passing them to the linker.
5586 # It appears as though 1/2 is a usable value.
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5589 esac
5593 if test -n $lt_cv_sys_max_cmd_len ; then
5594 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5595 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5596 else
5597 echo "$as_me:$LINENO: result: none" >&5
5598 echo "${ECHO_T}none" >&6
5604 # Check for command to grab the raw symbol name followed by C symbol from nm.
5605 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5606 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5607 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5611 # These are sane defaults that work on at least a few old systems.
5612 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5614 # Character class describing NM global symbol codes.
5615 symcode='[BCDEGRST]'
5617 # Regexp to match symbols that can be accessed directly from C.
5618 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5620 # Transform an extracted symbol line into a proper C declaration
5621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5623 # Transform an extracted symbol line into symbol name and symbol address
5624 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'"
5626 # Define system-specific variables.
5627 case $host_os in
5628 aix*)
5629 symcode='[BCDT]'
5631 cygwin* | mingw* | pw32*)
5632 symcode='[ABCDGISTW]'
5634 hpux*) # Its linker distinguishes data from code symbols
5635 if test "$host_cpu" = ia64; then
5636 symcode='[ABCDEGRST]'
5638 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5639 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'"
5641 linux*)
5642 if test "$host_cpu" = ia64; then
5643 symcode='[ABCDGIRSTW]'
5644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5645 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'"
5648 irix* | nonstopux*)
5649 symcode='[BCDEGRST]'
5651 osf*)
5652 symcode='[BCDEGQRST]'
5654 solaris*)
5655 symcode='[BDRT]'
5657 sco3.2v5*)
5658 symcode='[DT]'
5660 sysv4.2uw2*)
5661 symcode='[DT]'
5663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5664 symcode='[ABDT]'
5666 sysv4)
5667 symcode='[DFNSTU]'
5669 esac
5671 # Handle CRLF in mingw tool chain
5672 opt_cr=
5673 case $build_os in
5674 mingw*)
5675 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5677 esac
5679 # If we're using GNU nm, then use its standard symbol codes.
5680 case `$NM -V 2>&1` in
5681 *GNU* | *'with BFD'*)
5682 symcode='[ABCDGIRSTW]' ;;
5683 esac
5685 # Try without a prefix undercore, then with it.
5686 for ac_symprfx in "" "_"; do
5688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5689 symxfrm="\\1 $ac_symprfx\\2 \\2"
5691 # Write the raw and C identifiers.
5692 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5694 # Check to see that the pipe works correctly.
5695 pipe_works=no
5697 rm -f conftest*
5698 cat > conftest.$ac_ext <<EOF
5699 #ifdef __cplusplus
5700 extern "C" {
5701 #endif
5702 char nm_test_var;
5703 void nm_test_func(){}
5704 #ifdef __cplusplus
5706 #endif
5707 int main(){nm_test_var='a';nm_test_func();return(0);}
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; then
5715 # Now try to grab the symbols.
5716 nlist=conftest.nm
5717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5719 ac_status=$?
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && test -s "$nlist"; then
5722 # Try sorting and uniquifying the output.
5723 if sort "$nlist" | uniq > "$nlist"T; then
5724 mv -f "$nlist"T "$nlist"
5725 else
5726 rm -f "$nlist"T
5729 # Make sure that we snagged all the symbols we need.
5730 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5731 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5732 cat <<EOF > conftest.$ac_ext
5733 #ifdef __cplusplus
5734 extern "C" {
5735 #endif
5738 # Now generate the symbol file.
5739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5741 cat <<EOF >> conftest.$ac_ext
5742 #if defined (__STDC__) && __STDC__
5743 # define lt_ptr_t void *
5744 #else
5745 # define lt_ptr_t char *
5746 # define const
5747 #endif
5749 /* The mapping between symbol names and symbols. */
5750 const struct {
5751 const char *name;
5752 lt_ptr_t address;
5754 lt_preloaded_symbols[] =
5757 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5758 cat <<\EOF >> conftest.$ac_ext
5759 {0, (lt_ptr_t) 0}
5762 #ifdef __cplusplus
5764 #endif
5766 # Now try linking the two files.
5767 mv conftest.$ac_objext conftstm.$ac_objext
5768 lt_save_LIBS="$LIBS"
5769 lt_save_CFLAGS="$CFLAGS"
5770 LIBS="conftstm.$ac_objext"
5771 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773 (eval $ac_link) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5777 pipe_works=yes
5779 LIBS="$lt_save_LIBS"
5780 CFLAGS="$lt_save_CFLAGS"
5781 else
5782 echo "cannot find nm_test_func in $nlist" >&5
5784 else
5785 echo "cannot find nm_test_var in $nlist" >&5
5787 else
5788 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5790 else
5791 echo "$progname: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5794 rm -f conftest* conftst*
5796 # Do not use the global_symbol_pipe unless it works.
5797 if test "$pipe_works" = yes; then
5798 break
5799 else
5800 lt_cv_sys_global_symbol_pipe=
5802 done
5806 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5807 lt_cv_sys_global_symbol_to_cdecl=
5809 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5810 echo "$as_me:$LINENO: result: failed" >&5
5811 echo "${ECHO_T}failed" >&6
5812 else
5813 echo "$as_me:$LINENO: result: ok" >&5
5814 echo "${ECHO_T}ok" >&6
5817 echo "$as_me:$LINENO: checking for objdir" >&5
5818 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5819 if test "${lt_cv_objdir+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 rm -f .libs 2>/dev/null
5823 mkdir .libs 2>/dev/null
5824 if test -d .libs; then
5825 lt_cv_objdir=.libs
5826 else
5827 # MS-DOS does not allow filenames that begin with a dot.
5828 lt_cv_objdir=_libs
5830 rmdir .libs 2>/dev/null
5832 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5833 echo "${ECHO_T}$lt_cv_objdir" >&6
5834 objdir=$lt_cv_objdir
5840 case $host_os in
5841 aix3*)
5842 # AIX sometimes has problems with the GCC collect2 program. For some
5843 # reason, if we set the COLLECT_NAMES environment variable, the problems
5844 # vanish in a puff of smoke.
5845 if test "X${COLLECT_NAMES+set}" != Xset; then
5846 COLLECT_NAMES=
5847 export COLLECT_NAMES
5850 esac
5852 # Sed substitution that helps us do robust quoting. It backslashifies
5853 # metacharacters that are still active within double-quoted strings.
5854 Xsed='sed -e 1s/^X//'
5855 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5857 # Same as above, but do not quote variable references.
5858 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5860 # Sed substitution to delay expansion of an escaped shell variable in a
5861 # double_quote_subst'ed string.
5862 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5864 # Sed substitution to avoid accidental globbing in evaled expressions
5865 no_glob_subst='s/\*/\\\*/g'
5867 # Constants:
5868 rm="rm -f"
5870 # Global variables:
5871 default_ofile=libtool
5872 can_build_shared=yes
5874 # All known linkers require a `.a' archive for static linking (except MSVC,
5875 # which needs '.lib').
5876 libext=a
5877 ltmain="$ac_aux_dir/ltmain.sh"
5878 ofile="$default_ofile"
5879 with_gnu_ld="$lt_cv_prog_gnu_ld"
5881 if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5883 set dummy ${ac_tool_prefix}ar; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_AR+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 if test -n "$AR"; then
5890 ac_cv_prog_AR="$AR" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_AR="${ac_tool_prefix}ar"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5903 done
5904 done
5908 AR=$ac_cv_prog_AR
5909 if test -n "$AR"; then
5910 echo "$as_me:$LINENO: result: $AR" >&5
5911 echo "${ECHO_T}$AR" >&6
5912 else
5913 echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5918 if test -z "$ac_cv_prog_AR"; then
5919 ac_ct_AR=$AR
5920 # Extract the first word of "ar", so it can be a program name with args.
5921 set dummy ar; ac_word=$2
5922 echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 if test -n "$ac_ct_AR"; then
5928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_AR="ar"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5941 done
5942 done
5944 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5948 if test -n "$ac_ct_AR"; then
5949 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5950 echo "${ECHO_T}$ac_ct_AR" >&6
5951 else
5952 echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5956 AR=$ac_ct_AR
5957 else
5958 AR="$ac_cv_prog_AR"
5961 if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_RANLIB+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 if test -n "$RANLIB"; then
5970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5983 done
5984 done
5988 RANLIB=$ac_cv_prog_RANLIB
5989 if test -n "$RANLIB"; then
5990 echo "$as_me:$LINENO: result: $RANLIB" >&5
5991 echo "${ECHO_T}$RANLIB" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6024 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6030 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6031 else
6032 echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6
6036 RANLIB=$ac_ct_RANLIB
6037 else
6038 RANLIB="$ac_cv_prog_RANLIB"
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}strip; ac_word=$2
6044 echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6046 if test "${ac_cv_prog_STRIP+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 if test -n "$STRIP"; then
6050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6063 done
6064 done
6068 STRIP=$ac_cv_prog_STRIP
6069 if test -n "$STRIP"; then
6070 echo "$as_me:$LINENO: result: $STRIP" >&5
6071 echo "${ECHO_T}$STRIP" >&6
6072 else
6073 echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6078 if test -z "$ac_cv_prog_STRIP"; then
6079 ac_ct_STRIP=$STRIP
6080 # Extract the first word of "strip", so it can be a program name with args.
6081 set dummy strip; ac_word=$2
6082 echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6084 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 if test -n "$ac_ct_STRIP"; then
6088 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_ac_ct_STRIP="strip"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6101 done
6102 done
6104 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6107 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6108 if test -n "$ac_ct_STRIP"; then
6109 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6110 echo "${ECHO_T}$ac_ct_STRIP" >&6
6111 else
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6116 STRIP=$ac_ct_STRIP
6117 else
6118 STRIP="$ac_cv_prog_STRIP"
6122 old_CC="$CC"
6123 old_CFLAGS="$CFLAGS"
6125 # Set sane defaults for various variables
6126 test -z "$AR" && AR=ar
6127 test -z "$AR_FLAGS" && AR_FLAGS=cru
6128 test -z "$AS" && AS=as
6129 test -z "$CC" && CC=cc
6130 test -z "$LTCC" && LTCC=$CC
6131 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6132 test -z "$DLLTOOL" && DLLTOOL=dlltool
6133 test -z "$LD" && LD=ld
6134 test -z "$LN_S" && LN_S="ln -s"
6135 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6136 test -z "$NM" && NM=nm
6137 test -z "$SED" && SED=sed
6138 test -z "$OBJDUMP" && OBJDUMP=objdump
6139 test -z "$RANLIB" && RANLIB=:
6140 test -z "$STRIP" && STRIP=:
6141 test -z "$ac_objext" && ac_objext=o
6143 # Determine commands to create old-style static archives.
6144 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6145 old_postinstall_cmds='chmod 644 $oldlib'
6146 old_postuninstall_cmds=
6148 if test -n "$RANLIB"; then
6149 case $host_os in
6150 openbsd*)
6151 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6156 esac
6157 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6160 for cc_temp in $compiler""; do
6161 case $cc_temp in
6162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6164 \-*) ;;
6165 *) break;;
6166 esac
6167 done
6168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6171 # Only perform the check for file, if the check method requires it
6172 case $deplibs_check_method in
6173 file_magic*)
6174 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6175 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6176 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6177 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 case $MAGIC_CMD in
6181 [\\/*] | ?:[\\/]*)
6182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6185 lt_save_MAGIC_CMD="$MAGIC_CMD"
6186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6188 for ac_dir in $ac_dummy; do
6189 IFS="$lt_save_ifs"
6190 test -z "$ac_dir" && ac_dir=.
6191 if test -f $ac_dir/${ac_tool_prefix}file; then
6192 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6193 if test -n "$file_magic_test_file"; then
6194 case $deplibs_check_method in
6195 "file_magic "*)
6196 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6199 $EGREP "$file_magic_regex" > /dev/null; then
6201 else
6202 cat <<EOF 1>&2
6204 *** Warning: the command libtool uses to detect shared libraries,
6205 *** $file_magic_cmd, produces output that libtool cannot recognize.
6206 *** The result is that libtool may fail to recognize shared libraries
6207 *** as such. This will affect the creation of libtool libraries that
6208 *** depend on shared libraries, but programs linked with such libtool
6209 *** libraries will work regardless of this problem. Nevertheless, you
6210 *** may want to report the problem to your system manager and/or to
6211 *** bug-libtool@gnu.org
6214 fi ;;
6215 esac
6217 break
6219 done
6220 IFS="$lt_save_ifs"
6221 MAGIC_CMD="$lt_save_MAGIC_CMD"
6223 esac
6226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6227 if test -n "$MAGIC_CMD"; then
6228 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6229 echo "${ECHO_T}$MAGIC_CMD" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6
6235 if test -z "$lt_cv_path_MAGIC_CMD"; then
6236 if test -n "$ac_tool_prefix"; then
6237 echo "$as_me:$LINENO: checking for file" >&5
6238 echo $ECHO_N "checking for file... $ECHO_C" >&6
6239 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 case $MAGIC_CMD in
6243 [\\/*] | ?:[\\/]*)
6244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6247 lt_save_MAGIC_CMD="$MAGIC_CMD"
6248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6250 for ac_dir in $ac_dummy; do
6251 IFS="$lt_save_ifs"
6252 test -z "$ac_dir" && ac_dir=.
6253 if test -f $ac_dir/file; then
6254 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6255 if test -n "$file_magic_test_file"; then
6256 case $deplibs_check_method in
6257 "file_magic "*)
6258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6261 $EGREP "$file_magic_regex" > /dev/null; then
6263 else
6264 cat <<EOF 1>&2
6266 *** Warning: the command libtool uses to detect shared libraries,
6267 *** $file_magic_cmd, produces output that libtool cannot recognize.
6268 *** The result is that libtool may fail to recognize shared libraries
6269 *** as such. This will affect the creation of libtool libraries that
6270 *** depend on shared libraries, but programs linked with such libtool
6271 *** libraries will work regardless of this problem. Nevertheless, you
6272 *** may want to report the problem to your system manager and/or to
6273 *** bug-libtool@gnu.org
6276 fi ;;
6277 esac
6279 break
6281 done
6282 IFS="$lt_save_ifs"
6283 MAGIC_CMD="$lt_save_MAGIC_CMD"
6285 esac
6288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6289 if test -n "$MAGIC_CMD"; then
6290 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6291 echo "${ECHO_T}$MAGIC_CMD" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6
6297 else
6298 MAGIC_CMD=:
6304 esac
6306 enable_dlopen=no
6307 enable_win32_dll=no
6309 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6310 if test "${enable_libtool_lock+set}" = set; then
6311 enableval="$enable_libtool_lock"
6314 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6317 # Check whether --with-pic or --without-pic was given.
6318 if test "${with_pic+set}" = set; then
6319 withval="$with_pic"
6320 pic_mode="$withval"
6321 else
6322 pic_mode=default
6324 test -z "$pic_mode" && pic_mode=default
6326 # Use C for the default configuration in the libtool script
6327 tagname=
6328 lt_save_CC="$CC"
6329 ac_ext=c
6330 ac_cpp='$CPP $CPPFLAGS'
6331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 # Source file extension for C test sources.
6337 ac_ext=c
6339 # Object file extension for compiled C test sources.
6340 objext=o
6341 objext=$objext
6343 # Code to be used in simple compile tests
6344 lt_simple_compile_test_code="int some_variable = 0;\n"
6346 # Code to be used in simple link tests
6347 lt_simple_link_test_code='int main(){return(0);}\n'
6350 # If no C compiler was specified, use CC.
6351 LTCC=${LTCC-"$CC"}
6353 # If no C compiler flags were specified, use CFLAGS.
6354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6356 # Allow CC to be a program name with arguments.
6357 compiler=$CC
6360 # save warnings/boilerplate of simple test code
6361 ac_outfile=conftest.$ac_objext
6362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6364 _lt_compiler_boilerplate=`cat conftest.err`
6365 $rm conftest*
6367 ac_outfile=conftest.$ac_objext
6368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6370 _lt_linker_boilerplate=`cat conftest.err`
6371 $rm conftest*
6375 lt_prog_compiler_no_builtin_flag=
6377 if test "$GCC" = yes; then
6378 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6381 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6382 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6383 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 lt_cv_prog_compiler_rtti_exceptions=no
6387 ac_outfile=conftest.$ac_objext
6388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6389 lt_compiler_flag="-fno-rtti -fno-exceptions"
6390 # Insert the option either (1) after the last *FLAGS variable, or
6391 # (2) before a word containing "conftest.", or (3) at the end.
6392 # Note that $ac_compile itself does not contain backslashes and begins
6393 # with a dollar sign (not a hyphen), so the echo should work correctly.
6394 # The option is referenced via a variable to avoid confusing sed.
6395 lt_compile=`echo "$ac_compile" | $SED \
6396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6398 -e 's:$: $lt_compiler_flag:'`
6399 (eval echo "\"\$as_me:6399: $lt_compile\"" >&5)
6400 (eval "$lt_compile" 2>conftest.err)
6401 ac_status=$?
6402 cat conftest.err >&5
6403 echo "$as_me:6403: \$? = $ac_status" >&5
6404 if (exit $ac_status) && test -s "$ac_outfile"; then
6405 # The compiler can only warn and ignore the option if not recognized
6406 # So say no if there are warnings other than the usual output.
6407 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6410 lt_cv_prog_compiler_rtti_exceptions=yes
6413 $rm conftest*
6416 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6417 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6419 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6421 else
6427 lt_prog_compiler_wl=
6428 lt_prog_compiler_pic=
6429 lt_prog_compiler_static=
6431 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6432 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6434 if test "$GCC" = yes; then
6435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_static='-static'
6438 case $host_os in
6439 aix*)
6440 # All AIX code is PIC.
6441 if test "$host_cpu" = ia64; then
6442 # AIX 5 now supports IA64 processor
6443 lt_prog_compiler_static='-Bstatic'
6447 amigaos*)
6448 # FIXME: we need at least 68020 code to build shared libraries, but
6449 # adding the `-m68020' flag to GCC prevents building anything better,
6450 # like `-m68040'.
6451 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6454 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6455 # PIC is the default for these OSes.
6458 mingw* | pw32* | os2*)
6459 # This hack is so that the source file can tell whether it is being
6460 # built for inclusion in a dll (and should export symbols for example).
6461 lt_prog_compiler_pic='-DDLL_EXPORT'
6464 darwin* | rhapsody*)
6465 # PIC is the default on this platform
6466 # Common symbols not allowed in MH_DYLIB files
6467 lt_prog_compiler_pic='-fno-common'
6470 interix3*)
6471 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6472 # Instead, we relocate shared libraries at runtime.
6475 msdosdjgpp*)
6476 # Just because we use GCC doesn't mean we suddenly get shared libraries
6477 # on systems that don't support them.
6478 lt_prog_compiler_can_build_shared=no
6479 enable_shared=no
6482 sysv4*MP*)
6483 if test -d /usr/nec; then
6484 lt_prog_compiler_pic=-Kconform_pic
6488 hpux*)
6489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6490 # not for PA HP-UX.
6491 case $host_cpu in
6492 hppa*64*|ia64*)
6493 # +Z the default
6496 lt_prog_compiler_pic='-fPIC'
6498 esac
6502 lt_prog_compiler_pic='-fPIC'
6504 esac
6505 else
6506 # PORTME Check for flag to pass linker flags through the system compiler.
6507 case $host_os in
6508 aix*)
6509 lt_prog_compiler_wl='-Wl,'
6510 if test "$host_cpu" = ia64; then
6511 # AIX 5 now supports IA64 processor
6512 lt_prog_compiler_static='-Bstatic'
6513 else
6514 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6517 darwin*)
6518 # PIC is the default on this platform
6519 # Common symbols not allowed in MH_DYLIB files
6520 case $cc_basename in
6521 xlc*)
6522 lt_prog_compiler_pic='-qnocommon'
6523 lt_prog_compiler_wl='-Wl,'
6525 esac
6528 mingw* | pw32* | os2*)
6529 # This hack is so that the source file can tell whether it is being
6530 # built for inclusion in a dll (and should export symbols for example).
6531 lt_prog_compiler_pic='-DDLL_EXPORT'
6534 hpux9* | hpux10* | hpux11*)
6535 lt_prog_compiler_wl='-Wl,'
6536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6537 # not for PA HP-UX.
6538 case $host_cpu in
6539 hppa*64*|ia64*)
6540 # +Z the default
6543 lt_prog_compiler_pic='+Z'
6545 esac
6546 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6547 lt_prog_compiler_static='${wl}-a ${wl}archive'
6550 irix5* | irix6* | nonstopux*)
6551 lt_prog_compiler_wl='-Wl,'
6552 # PIC (with -KPIC) is the default.
6553 lt_prog_compiler_static='-non_shared'
6556 newsos6)
6557 lt_prog_compiler_pic='-KPIC'
6558 lt_prog_compiler_static='-Bstatic'
6561 linux*)
6562 case $cc_basename in
6563 icc* | ecc*)
6564 lt_prog_compiler_wl='-Wl,'
6565 lt_prog_compiler_pic='-KPIC'
6566 lt_prog_compiler_static='-static'
6568 pgcc* | pgf77* | pgf90* | pgf95*)
6569 # Portland Group compilers (*not* the Pentium gcc compiler,
6570 # which looks to be a dead project)
6571 lt_prog_compiler_wl='-Wl,'
6572 lt_prog_compiler_pic='-fpic'
6573 lt_prog_compiler_static='-Bstatic'
6575 ccc*)
6576 lt_prog_compiler_wl='-Wl,'
6577 # All Alpha code is PIC.
6578 lt_prog_compiler_static='-non_shared'
6580 esac
6583 osf3* | osf4* | osf5*)
6584 lt_prog_compiler_wl='-Wl,'
6585 # All OSF/1 code is PIC.
6586 lt_prog_compiler_static='-non_shared'
6589 solaris*)
6590 lt_prog_compiler_pic='-KPIC'
6591 lt_prog_compiler_static='-Bstatic'
6592 case $cc_basename in
6593 f77* | f90* | f95*)
6594 lt_prog_compiler_wl='-Qoption ld ';;
6596 lt_prog_compiler_wl='-Wl,';;
6597 esac
6600 sunos4*)
6601 lt_prog_compiler_wl='-Qoption ld '
6602 lt_prog_compiler_pic='-PIC'
6603 lt_prog_compiler_static='-Bstatic'
6606 sysv4 | sysv4.2uw2* | sysv4.3*)
6607 lt_prog_compiler_wl='-Wl,'
6608 lt_prog_compiler_pic='-KPIC'
6609 lt_prog_compiler_static='-Bstatic'
6612 sysv4*MP*)
6613 if test -d /usr/nec ;then
6614 lt_prog_compiler_pic='-Kconform_pic'
6615 lt_prog_compiler_static='-Bstatic'
6619 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6620 lt_prog_compiler_wl='-Wl,'
6621 lt_prog_compiler_pic='-KPIC'
6622 lt_prog_compiler_static='-Bstatic'
6625 unicos*)
6626 lt_prog_compiler_wl='-Wl,'
6627 lt_prog_compiler_can_build_shared=no
6630 uts4*)
6631 lt_prog_compiler_pic='-pic'
6632 lt_prog_compiler_static='-Bstatic'
6636 lt_prog_compiler_can_build_shared=no
6638 esac
6641 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6642 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6645 # Check to make sure the PIC flag actually works.
6647 if test -n "$lt_prog_compiler_pic"; then
6649 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6650 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6651 if test "${lt_prog_compiler_pic_works+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 lt_prog_compiler_pic_works=no
6655 ac_outfile=conftest.$ac_objext
6656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6657 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6658 # Insert the option either (1) after the last *FLAGS variable, or
6659 # (2) before a word containing "conftest.", or (3) at the end.
6660 # Note that $ac_compile itself does not contain backslashes and begins
6661 # with a dollar sign (not a hyphen), so the echo should work correctly.
6662 # The option is referenced via a variable to avoid confusing sed.
6663 lt_compile=`echo "$ac_compile" | $SED \
6664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6666 -e 's:$: $lt_compiler_flag:'`
6667 (eval echo "\"\$as_me:6667: $lt_compile\"" >&5)
6668 (eval "$lt_compile" 2>conftest.err)
6669 ac_status=$?
6670 cat conftest.err >&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 if (exit $ac_status) && test -s "$ac_outfile"; then
6673 # The compiler can only warn and ignore the option if not recognized
6674 # So say no if there are warnings other than the usual output.
6675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6678 lt_prog_compiler_pic_works=yes
6681 $rm conftest*
6684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6685 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6687 if test x"$lt_prog_compiler_pic_works" = xyes; then
6688 case $lt_prog_compiler_pic in
6689 "" | " "*) ;;
6690 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6691 esac
6692 else
6693 lt_prog_compiler_pic=
6694 lt_prog_compiler_can_build_shared=no
6698 case $host_os in
6699 # For platforms which do not support PIC, -DPIC is meaningless:
6700 *djgpp*)
6701 lt_prog_compiler_pic=
6704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6706 esac
6709 # Check to make sure the static flag actually works.
6711 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6712 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6713 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6714 if test "${lt_prog_compiler_static_works+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 lt_prog_compiler_static_works=no
6718 save_LDFLAGS="$LDFLAGS"
6719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6720 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6722 # The linker can only warn and ignore the option if not recognized
6723 # So say no if there are warnings
6724 if test -s conftest.err; then
6725 # Append any errors to the config.log.
6726 cat conftest.err 1>&5
6727 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6729 if diff conftest.exp conftest.er2 >/dev/null; then
6730 lt_prog_compiler_static_works=yes
6732 else
6733 lt_prog_compiler_static_works=yes
6736 $rm conftest*
6737 LDFLAGS="$save_LDFLAGS"
6740 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6741 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6743 if test x"$lt_prog_compiler_static_works" = xyes; then
6745 else
6746 lt_prog_compiler_static=
6750 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6751 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6752 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 lt_cv_prog_compiler_c_o=no
6756 $rm -r conftest 2>/dev/null
6757 mkdir conftest
6758 cd conftest
6759 mkdir out
6760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6762 lt_compiler_flag="-o out/conftest2.$ac_objext"
6763 # Insert the option either (1) after the last *FLAGS variable, or
6764 # (2) before a word containing "conftest.", or (3) at the end.
6765 # Note that $ac_compile itself does not contain backslashes and begins
6766 # with a dollar sign (not a hyphen), so the echo should work correctly.
6767 lt_compile=`echo "$ac_compile" | $SED \
6768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6770 -e 's:$: $lt_compiler_flag:'`
6771 (eval echo "\"\$as_me:6771: $lt_compile\"" >&5)
6772 (eval "$lt_compile" 2>out/conftest.err)
6773 ac_status=$?
6774 cat out/conftest.err >&5
6775 echo "$as_me:6775: \$? = $ac_status" >&5
6776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6777 then
6778 # The compiler can only warn and ignore the option if not recognized
6779 # So say no if there are warnings
6780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6783 lt_cv_prog_compiler_c_o=yes
6786 chmod u+w . 2>&5
6787 $rm conftest*
6788 # SGI C++ compiler will create directory out/ii_files/ for
6789 # template instantiation
6790 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6791 $rm out/* && rmdir out
6792 cd ..
6793 rmdir conftest
6794 $rm conftest*
6797 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6798 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6801 hard_links="nottested"
6802 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6803 # do not overwrite the value of need_locks provided by the user
6804 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6805 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6806 hard_links=yes
6807 $rm conftest*
6808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6809 touch conftest.a
6810 ln conftest.a conftest.b 2>&5 || hard_links=no
6811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6812 echo "$as_me:$LINENO: result: $hard_links" >&5
6813 echo "${ECHO_T}$hard_links" >&6
6814 if test "$hard_links" = no; then
6815 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6816 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6817 need_locks=warn
6819 else
6820 need_locks=no
6823 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6824 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6826 runpath_var=
6827 allow_undefined_flag=
6828 enable_shared_with_static_runtimes=no
6829 archive_cmds=
6830 archive_expsym_cmds=
6831 old_archive_From_new_cmds=
6832 old_archive_from_expsyms_cmds=
6833 export_dynamic_flag_spec=
6834 whole_archive_flag_spec=
6835 thread_safe_flag_spec=
6836 hardcode_libdir_flag_spec=
6837 hardcode_libdir_flag_spec_ld=
6838 hardcode_libdir_separator=
6839 hardcode_direct=no
6840 hardcode_minus_L=no
6841 hardcode_shlibpath_var=unsupported
6842 link_all_deplibs=unknown
6843 hardcode_automatic=no
6844 module_cmds=
6845 module_expsym_cmds=
6846 always_export_symbols=no
6847 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6848 # include_expsyms should be a list of space-separated symbols to be *always*
6849 # included in the symbol list
6850 include_expsyms=
6851 # exclude_expsyms can be an extended regexp of symbols to exclude
6852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6854 # as well as any symbol that contains `d'.
6855 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6857 # platforms (ab)use it in PIC code, but their linkers get confused if
6858 # the symbol is explicitly referenced. Since portable code cannot
6859 # rely on this symbol name, it's probably fine to never include it in
6860 # preloaded symbol tables.
6861 extract_expsyms_cmds=
6862 # Just being paranoid about ensuring that cc_basename is set.
6863 for cc_temp in $compiler""; do
6864 case $cc_temp in
6865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6867 \-*) ;;
6868 *) break;;
6869 esac
6870 done
6871 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6873 case $host_os in
6874 cygwin* | mingw* | pw32*)
6875 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6876 # When not using gcc, we currently assume that we are using
6877 # Microsoft Visual C++.
6878 if test "$GCC" != yes; then
6879 with_gnu_ld=no
6882 interix*)
6883 # we just hope/assume this is gcc and not c89 (= MSVC++)
6884 with_gnu_ld=yes
6886 openbsd*)
6887 with_gnu_ld=no
6889 esac
6891 ld_shlibs=yes
6892 if test "$with_gnu_ld" = yes; then
6893 # If archive_cmds runs LD, not CC, wlarc should be empty
6894 wlarc='${wl}'
6896 # Set some defaults for GNU ld with shared library support. These
6897 # are reset later if shared libraries are not supported. Putting them
6898 # here allows them to be overridden if necessary.
6899 runpath_var=LD_RUN_PATH
6900 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6901 export_dynamic_flag_spec='${wl}--export-dynamic'
6902 # ancient GNU ld didn't support --whole-archive et. al.
6903 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6904 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6905 else
6906 whole_archive_flag_spec=
6908 supports_anon_versioning=no
6909 case `$LD -v 2>/dev/null` in
6910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6913 *\ 2.11.*) ;; # other 2.11 versions
6914 *) supports_anon_versioning=yes ;;
6915 esac
6917 # See if GNU ld supports shared libraries.
6918 case $host_os in
6919 aix3* | aix4* | aix5*)
6920 # On AIX/PPC, the GNU linker is very broken
6921 if test "$host_cpu" != ia64; then
6922 ld_shlibs=no
6923 cat <<EOF 1>&2
6925 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6926 *** to be unable to reliably create shared libraries on AIX.
6927 *** Therefore, libtool is disabling shared libraries support. If you
6928 *** really care for shared libraries, you may want to modify your PATH
6929 *** so that a non-GNU linker is found, and then restart.
6935 amigaos*)
6936 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)'
6937 hardcode_libdir_flag_spec='-L$libdir'
6938 hardcode_minus_L=yes
6940 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6941 # that the semantics of dynamic libraries on AmigaOS, at least up
6942 # to version 4, is to share data among multiple programs linked
6943 # with the same dynamic library. Since this doesn't match the
6944 # behavior of shared libraries on other platforms, we can't use
6945 # them.
6946 ld_shlibs=no
6949 beos*)
6950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6951 allow_undefined_flag=unsupported
6952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6953 # support --undefined. This deserves some investigation. FIXME
6954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6955 else
6956 ld_shlibs=no
6960 cygwin* | mingw* | pw32*)
6961 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6962 # as there is no search path for DLLs.
6963 hardcode_libdir_flag_spec='-L$libdir'
6964 allow_undefined_flag=unsupported
6965 always_export_symbols=no
6966 enable_shared_with_static_runtimes=yes
6967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6969 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6971 # If the export-symbols file already is a .def file (1st line
6972 # is EXPORTS), use it as is; otherwise, prepend...
6973 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6974 cp $export_symbols $output_objdir/$soname.def;
6975 else
6976 echo EXPORTS > $output_objdir/$soname.def;
6977 cat $export_symbols >> $output_objdir/$soname.def;
6979 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6980 else
6981 ld_shlibs=no
6985 interix3*)
6986 hardcode_direct=no
6987 hardcode_shlibpath_var=no
6988 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6989 export_dynamic_flag_spec='${wl}-E'
6990 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6991 # Instead, shared libraries are loaded at an image base (0x10000000 by
6992 # default) and relocated if they conflict, which is a slow very memory
6993 # consuming and fragmenting process. To avoid this, we pick a random,
6994 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6995 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6996 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6997 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'
7000 linux*)
7001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7002 tmp_addflag=
7003 case $cc_basename,$host_cpu in
7004 pgcc*) # Portland Group C compiler
7005 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'
7006 tmp_addflag=' $pic_flag'
7008 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7009 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'
7010 tmp_addflag=' $pic_flag -Mnomain' ;;
7011 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7012 tmp_addflag=' -i_dynamic' ;;
7013 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7014 tmp_addflag=' -i_dynamic -nofor_main' ;;
7015 ifc* | ifort*) # Intel Fortran compiler
7016 tmp_addflag=' -nofor_main' ;;
7017 esac
7018 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020 if test $supports_anon_versioning = yes; then
7021 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7023 $echo "local: *; };" >> $output_objdir/$libname.ver~
7024 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7026 else
7027 ld_shlibs=no
7031 netbsd*)
7032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7033 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7034 wlarc=
7035 else
7036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041 solaris*)
7042 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7043 ld_shlibs=no
7044 cat <<EOF 1>&2
7046 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7047 *** create shared libraries on Solaris systems. Therefore, libtool
7048 *** is disabling shared libraries support. We urge you to upgrade GNU
7049 *** binutils to release 2.9.1 or newer. Another option is to modify
7050 *** your PATH or compiler configuration so that the native linker is
7051 *** used, and then restart.
7054 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7057 else
7058 ld_shlibs=no
7062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7063 case `$LD -v 2>&1` in
7064 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7065 ld_shlibs=no
7066 cat <<_LT_EOF 1>&2
7068 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7069 *** reliably create shared libraries on SCO systems. Therefore, libtool
7070 *** is disabling shared libraries support. We urge you to upgrade GNU
7071 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7072 *** your PATH or compiler configuration so that the native linker is
7073 *** used, and then restart.
7075 _LT_EOF
7078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7079 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7082 else
7083 ld_shlibs=no
7086 esac
7089 sunos4*)
7090 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7091 wlarc=
7092 hardcode_direct=yes
7093 hardcode_shlibpath_var=no
7097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7100 else
7101 ld_shlibs=no
7104 esac
7106 if test "$ld_shlibs" = no; then
7107 runpath_var=
7108 hardcode_libdir_flag_spec=
7109 export_dynamic_flag_spec=
7110 whole_archive_flag_spec=
7112 else
7113 # PORTME fill in a description of your system's linker (not GNU ld)
7114 case $host_os in
7115 aix3*)
7116 allow_undefined_flag=unsupported
7117 always_export_symbols=yes
7118 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'
7119 # Note: this linker hardcodes the directories in LIBPATH if there
7120 # are no directories specified by -L.
7121 hardcode_minus_L=yes
7122 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7123 # Neither direct hardcoding nor static linking is supported with a
7124 # broken collect2.
7125 hardcode_direct=unsupported
7129 aix4* | aix5*)
7130 if test "$host_cpu" = ia64; then
7131 # On IA64, the linker does run time linking by default, so we don't
7132 # have to do anything special.
7133 aix_use_runtimelinking=no
7134 exp_sym_flag='-Bexport'
7135 no_entry_flag=""
7136 else
7137 # If we're using GNU nm, then we don't want the "-C" option.
7138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7140 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'
7141 else
7142 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'
7144 aix_use_runtimelinking=no
7146 # Test if we are trying to use run time linking or normal
7147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7148 # need to do runtime linking.
7149 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7150 for ld_flag in $LDFLAGS; do
7151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7152 aix_use_runtimelinking=yes
7153 break
7155 done
7157 esac
7159 exp_sym_flag='-bexport'
7160 no_entry_flag='-bnoentry'
7163 # When large executables or shared objects are built, AIX ld can
7164 # have problems creating the table of contents. If linking a library
7165 # or program results in "error TOC overflow" add -mminimal-toc to
7166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7169 archive_cmds=''
7170 hardcode_direct=yes
7171 hardcode_libdir_separator=':'
7172 link_all_deplibs=yes
7174 if test "$GCC" = yes; then
7175 case $host_os in aix4.[012]|aix4.[012].*)
7176 # We only want to do this on AIX 4.2 and lower, the check
7177 # below for broken collect2 doesn't work under 4.3+
7178 collect2name=`${CC} -print-prog-name=collect2`
7179 if test -f "$collect2name" && \
7180 strings "$collect2name" | grep resolve_lib_name >/dev/null
7181 then
7182 # We have reworked collect2
7183 hardcode_direct=yes
7184 else
7185 # We have old collect2
7186 hardcode_direct=unsupported
7187 # It fails to find uninstalled libraries when the uninstalled
7188 # path is not listed in the libpath. Setting hardcode_minus_L
7189 # to unsupported forces relinking
7190 hardcode_minus_L=yes
7191 hardcode_libdir_flag_spec='-L$libdir'
7192 hardcode_libdir_separator=
7195 esac
7196 shared_flag='-shared'
7197 if test "$aix_use_runtimelinking" = yes; then
7198 shared_flag="$shared_flag "'${wl}-G'
7200 else
7201 # not using gcc
7202 if test "$host_cpu" = ia64; then
7203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7204 # chokes on -Wl,-G. The following line is correct:
7205 shared_flag='-G'
7206 else
7207 if test "$aix_use_runtimelinking" = yes; then
7208 shared_flag='${wl}-G'
7209 else
7210 shared_flag='${wl}-bM:SRE'
7215 # It seems that -bexpall does not export symbols beginning with
7216 # underscore (_), so it is better to generate a list of symbols to export.
7217 always_export_symbols=yes
7218 if test "$aix_use_runtimelinking" = yes; then
7219 # Warning - without using the other runtime loading flags (-brtl),
7220 # -berok will link without error, but may produce a broken library.
7221 allow_undefined_flag='-berok'
7222 # Determine the default libpath from the value encoded in an empty executable.
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7231 main ()
7235 return 0;
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_c_werror_flag"
7248 || test ! -s conftest.err'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest$ac_exeext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7263 # Check for a 64-bit object if we didn't find anything.
7264 if 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; }
7265 }'`; fi
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7271 rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7276 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"
7277 else
7278 if test "$host_cpu" = ia64; then
7279 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7280 allow_undefined_flag="-z nodefs"
7281 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"
7282 else
7283 # Determine the default libpath from the value encoded in an empty executable.
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7292 main ()
7296 return 0;
7298 _ACEOF
7299 rm -f conftest.$ac_objext conftest$ac_exeext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7301 (eval $ac_link) 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
7308 { ac_try='test -z "$ac_c_werror_flag"
7309 || test ! -s conftest.err'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; } &&
7315 { ac_try='test -s conftest$ac_exeext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7324 # Check for a 64-bit object if we didn't find anything.
7325 if 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; }
7326 }'`; fi
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7332 rm -f conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
7334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7337 # Warning - without using the other run time loading flags,
7338 # -berok will link without error, but may produce a broken library.
7339 no_undefined_flag=' ${wl}-bernotok'
7340 allow_undefined_flag=' ${wl}-berok'
7341 # Exported symbols can be pulled into shared objects from archives
7342 whole_archive_flag_spec='$convenience'
7343 archive_cmds_need_lc=yes
7344 # This is similar to how AIX traditionally builds its shared libraries.
7345 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'
7350 amigaos*)
7351 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)'
7352 hardcode_libdir_flag_spec='-L$libdir'
7353 hardcode_minus_L=yes
7354 # see comment about different semantics on the GNU ld section
7355 ld_shlibs=no
7358 bsdi[45]*)
7359 export_dynamic_flag_spec=-rdynamic
7362 cygwin* | mingw* | pw32*)
7363 # When not using gcc, we currently assume that we are using
7364 # Microsoft Visual C++.
7365 # hardcode_libdir_flag_spec is actually meaningless, as there is
7366 # no search path for DLLs.
7367 hardcode_libdir_flag_spec=' '
7368 allow_undefined_flag=unsupported
7369 # Tell ltmain to make .lib files, not .a files.
7370 libext=lib
7371 # Tell ltmain to make .dll files, not .so files.
7372 shrext_cmds=".dll"
7373 # FIXME: Setting linknames here is a bad hack.
7374 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7375 # The linker will automatically build a .lib file if we build a DLL.
7376 old_archive_From_new_cmds='true'
7377 # FIXME: Should let the user specify the lib program.
7378 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7379 fix_srcfile_path='`cygpath -w "$srcfile"`'
7380 enable_shared_with_static_runtimes=yes
7383 darwin* | rhapsody*)
7384 case $host_os in
7385 rhapsody* | darwin1.[012])
7386 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7388 *) # Darwin 1.3 on
7389 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7390 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7391 else
7392 case ${MACOSX_DEPLOYMENT_TARGET} in
7393 10.[012])
7394 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7396 10.*)
7397 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7399 esac
7402 esac
7403 archive_cmds_need_lc=no
7404 hardcode_direct=no
7405 hardcode_automatic=yes
7406 hardcode_shlibpath_var=unsupported
7407 whole_archive_flag_spec=''
7408 link_all_deplibs=yes
7409 if test "$GCC" = yes ; then
7410 output_verbose_link_cmd='echo'
7411 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7412 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7414 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}'
7415 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}'
7416 else
7417 case $cc_basename in
7418 xlc*)
7419 output_verbose_link_cmd='echo'
7420 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7421 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7422 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7423 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}'
7424 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}'
7427 ld_shlibs=no
7429 esac
7433 dgux*)
7434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_libdir_flag_spec='-L$libdir'
7436 hardcode_shlibpath_var=no
7439 freebsd1*)
7440 ld_shlibs=no
7443 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7444 # support. Future versions do this automatically, but an explicit c++rt0.o
7445 # does not break anything, and helps significantly (at the cost of a little
7446 # extra space).
7447 freebsd2.2*)
7448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7449 hardcode_libdir_flag_spec='-R$libdir'
7450 hardcode_direct=yes
7451 hardcode_shlibpath_var=no
7454 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7455 freebsd2*)
7456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7457 hardcode_direct=yes
7458 hardcode_minus_L=yes
7459 hardcode_shlibpath_var=no
7462 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7463 freebsd* | kfreebsd*-gnu | dragonfly*)
7464 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7465 hardcode_libdir_flag_spec='-R$libdir'
7466 hardcode_direct=yes
7467 hardcode_shlibpath_var=no
7470 hpux9*)
7471 if test "$GCC" = yes; then
7472 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'
7473 else
7474 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'
7476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7477 hardcode_libdir_separator=:
7478 hardcode_direct=yes
7480 # hardcode_minus_L: Not really in the search PATH,
7481 # but as the default location of the library.
7482 hardcode_minus_L=yes
7483 export_dynamic_flag_spec='${wl}-E'
7486 hpux10*)
7487 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7489 else
7490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7492 if test "$with_gnu_ld" = no; then
7493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7494 hardcode_libdir_separator=:
7496 hardcode_direct=yes
7497 export_dynamic_flag_spec='${wl}-E'
7499 # hardcode_minus_L: Not really in the search PATH,
7500 # but as the default location of the library.
7501 hardcode_minus_L=yes
7505 hpux11*)
7506 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7507 case $host_cpu in
7508 hppa*64*)
7509 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7511 ia64*)
7512 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7515 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7517 esac
7518 else
7519 case $host_cpu in
7520 hppa*64*)
7521 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7523 ia64*)
7524 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7527 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7529 esac
7531 if test "$with_gnu_ld" = no; then
7532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7533 hardcode_libdir_separator=:
7535 case $host_cpu in
7536 hppa*64*|ia64*)
7537 hardcode_libdir_flag_spec_ld='+b $libdir'
7538 hardcode_direct=no
7539 hardcode_shlibpath_var=no
7542 hardcode_direct=yes
7543 export_dynamic_flag_spec='${wl}-E'
7545 # hardcode_minus_L: Not really in the search PATH,
7546 # but as the default location of the library.
7547 hardcode_minus_L=yes
7549 esac
7553 irix5* | irix6* | nonstopux*)
7554 if test "$GCC" = yes; then
7555 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'
7556 else
7557 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'
7558 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7561 hardcode_libdir_separator=:
7562 link_all_deplibs=yes
7565 netbsd*)
7566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7568 else
7569 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7571 hardcode_libdir_flag_spec='-R$libdir'
7572 hardcode_direct=yes
7573 hardcode_shlibpath_var=no
7576 newsos6)
7577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7578 hardcode_direct=yes
7579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7580 hardcode_libdir_separator=:
7581 hardcode_shlibpath_var=no
7584 openbsd*)
7585 hardcode_direct=yes
7586 hardcode_shlibpath_var=no
7587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7589 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7591 export_dynamic_flag_spec='${wl}-E'
7592 else
7593 case $host_os in
7594 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7596 hardcode_libdir_flag_spec='-R$libdir'
7599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7602 esac
7606 os2*)
7607 hardcode_libdir_flag_spec='-L$libdir'
7608 hardcode_minus_L=yes
7609 allow_undefined_flag=unsupported
7610 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'
7611 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7614 osf3*)
7615 if test "$GCC" = yes; then
7616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7617 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'
7618 else
7619 allow_undefined_flag=' -expect_unresolved \*'
7620 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'
7622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7623 hardcode_libdir_separator=:
7626 osf4* | osf5*) # as osf3* with the addition of -msym flag
7627 if test "$GCC" = yes; then
7628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7629 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'
7630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7631 else
7632 allow_undefined_flag=' -expect_unresolved \*'
7633 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'
7634 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7635 $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'
7637 # Both c and cxx compiler support -rpath directly
7638 hardcode_libdir_flag_spec='-rpath $libdir'
7640 hardcode_libdir_separator=:
7643 solaris*)
7644 no_undefined_flag=' -z text'
7645 if test "$GCC" = yes; then
7646 wlarc='${wl}'
7647 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7648 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7649 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7650 else
7651 wlarc=''
7652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7653 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7656 hardcode_libdir_flag_spec='-R$libdir'
7657 hardcode_shlibpath_var=no
7658 case $host_os in
7659 solaris2.[0-5] | solaris2.[0-5].*) ;;
7661 # The compiler driver will combine linker options so we
7662 # cannot just pass the convience library names through
7663 # without $wl, iff we do not link with $LD.
7664 # Luckily, gcc supports the same syntax we need for Sun Studio.
7665 # Supported since Solaris 2.6 (maybe 2.5.1?)
7666 case $wlarc in
7668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7670 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' ;;
7671 esac ;;
7672 esac
7673 link_all_deplibs=yes
7676 sunos4*)
7677 if test "x$host_vendor" = xsequent; then
7678 # Use $CC to link under sequent, because it throws in some extra .o
7679 # files that make .init and .fini sections work.
7680 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7681 else
7682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_libdir_flag_spec='-L$libdir'
7685 hardcode_direct=yes
7686 hardcode_minus_L=yes
7687 hardcode_shlibpath_var=no
7690 sysv4)
7691 case $host_vendor in
7692 sni)
7693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7694 hardcode_direct=yes # is this really true???
7696 siemens)
7697 ## LD is ld it makes a PLAMLIB
7698 ## CC just makes a GrossModule.
7699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7700 reload_cmds='$CC -r -o $output$reload_objs'
7701 hardcode_direct=no
7703 motorola)
7704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7707 esac
7708 runpath_var='LD_RUN_PATH'
7709 hardcode_shlibpath_var=no
7712 sysv4.3*)
7713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714 hardcode_shlibpath_var=no
7715 export_dynamic_flag_spec='-Bexport'
7718 sysv4*MP*)
7719 if test -d /usr/nec; then
7720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721 hardcode_shlibpath_var=no
7722 runpath_var=LD_RUN_PATH
7723 hardcode_runpath_var=yes
7724 ld_shlibs=yes
7728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7729 no_undefined_flag='${wl}-z,text'
7730 archive_cmds_need_lc=no
7731 hardcode_shlibpath_var=no
7732 runpath_var='LD_RUN_PATH'
7734 if test "$GCC" = yes; then
7735 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7737 else
7738 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 sysv5* | sco3.2v5* | sco5v6*)
7744 # Note: We can NOT use -z defs as we might desire, because we do not
7745 # link with -lc, and that would cause any symbols used from libc to
7746 # always be unresolved, which means just about no library would
7747 # ever link correctly. If we're not using GNU ld we use -z text
7748 # though, which does catch some bad symbols but isn't as heavy-handed
7749 # as -z defs.
7750 no_undefined_flag='${wl}-z,text'
7751 allow_undefined_flag='${wl}-z,nodefs'
7752 archive_cmds_need_lc=no
7753 hardcode_shlibpath_var=no
7754 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7755 hardcode_libdir_separator=':'
7756 link_all_deplibs=yes
7757 export_dynamic_flag_spec='${wl}-Bexport'
7758 runpath_var='LD_RUN_PATH'
7760 if test "$GCC" = yes; then
7761 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7763 else
7764 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7765 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7769 uts4*)
7770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 hardcode_shlibpath_var=no
7776 ld_shlibs=no
7778 esac
7781 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7782 echo "${ECHO_T}$ld_shlibs" >&6
7783 test "$ld_shlibs" = no && can_build_shared=no
7786 # Do we need to explicitly link libc?
7788 case "x$archive_cmds_need_lc" in
7789 x|xyes)
7790 # Assume -lc should be added
7791 archive_cmds_need_lc=yes
7793 if test "$enable_shared" = yes && test "$GCC" = yes; then
7794 case $archive_cmds in
7795 *'~'*)
7796 # FIXME: we may have to deal with multi-command sequences.
7798 '$CC '*)
7799 # Test whether the compiler implicitly links with -lc since on some
7800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7801 # to ld, don't add -lc before -lgcc.
7802 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7804 $rm conftest*
7805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7808 (eval $ac_compile) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } 2>conftest.err; then
7812 soname=conftest
7813 lib=conftest
7814 libobjs=conftest.$ac_objext
7815 deplibs=
7816 wl=$lt_prog_compiler_wl
7817 pic_flag=$lt_prog_compiler_pic
7818 compiler_flags=-v
7819 linker_flags=-v
7820 verstring=
7821 output_objdir=.
7822 libname=conftest
7823 lt_save_allow_undefined_flag=$allow_undefined_flag
7824 allow_undefined_flag=
7825 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7826 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }
7830 then
7831 archive_cmds_need_lc=no
7832 else
7833 archive_cmds_need_lc=yes
7835 allow_undefined_flag=$lt_save_allow_undefined_flag
7836 else
7837 cat conftest.err 1>&5
7839 $rm conftest*
7840 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7841 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7843 esac
7846 esac
7848 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7849 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7850 library_names_spec=
7851 libname_spec='lib$name'
7852 soname_spec=
7853 shrext_cmds=".so"
7854 postinstall_cmds=
7855 postuninstall_cmds=
7856 finish_cmds=
7857 finish_eval=
7858 shlibpath_var=
7859 shlibpath_overrides_runpath=unknown
7860 version_type=none
7861 dynamic_linker="$host_os ld.so"
7862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7863 if test "$GCC" = yes; then
7864 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7865 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7866 # if the path contains ";" then we assume it to be the separator
7867 # otherwise default to the standard path separator (i.e. ":") - it is
7868 # assumed that no part of a normal pathname contains ";" but that should
7869 # okay in the real world where ";" in dirpaths is itself problematic.
7870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7871 else
7872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7874 else
7875 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7877 need_lib_prefix=unknown
7878 hardcode_into_libs=no
7880 # when you set need_version to no, make sure it does not cause -set_version
7881 # flags to be left without arguments
7882 need_version=unknown
7884 case $host_os in
7885 aix3*)
7886 version_type=linux
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7888 shlibpath_var=LIBPATH
7890 # AIX 3 has no versioning support, so we append a major version to the name.
7891 soname_spec='${libname}${release}${shared_ext}$major'
7894 aix4* | aix5*)
7895 version_type=linux
7896 need_lib_prefix=no
7897 need_version=no
7898 hardcode_into_libs=yes
7899 if test "$host_cpu" = ia64; then
7900 # AIX 5 supports IA64
7901 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7902 shlibpath_var=LD_LIBRARY_PATH
7903 else
7904 # With GCC up to 2.95.x, collect2 would create an import file
7905 # for dependence libraries. The import file would start with
7906 # the line `#! .'. This would cause the generated library to
7907 # depend on `.', always an invalid library. This was fixed in
7908 # development snapshots of GCC prior to 3.0.
7909 case $host_os in
7910 aix4 | aix4.[01] | aix4.[01].*)
7911 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7912 echo ' yes '
7913 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7915 else
7916 can_build_shared=no
7919 esac
7920 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7921 # soname into executable. Probably we can add versioning support to
7922 # collect2, so additional links can be useful in future.
7923 if test "$aix_use_runtimelinking" = yes; then
7924 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7925 # instead of lib<name>.a to let people know that these are not
7926 # typical AIX shared libraries.
7927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7928 else
7929 # We preserve .a as extension for shared libraries through AIX4.2
7930 # and later when we are not doing run time linking.
7931 library_names_spec='${libname}${release}.a $libname.a'
7932 soname_spec='${libname}${release}${shared_ext}$major'
7934 shlibpath_var=LIBPATH
7938 amigaos*)
7939 library_names_spec='$libname.ixlibrary $libname.a'
7940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7941 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'
7944 beos*)
7945 library_names_spec='${libname}${shared_ext}'
7946 dynamic_linker="$host_os ld.so"
7947 shlibpath_var=LIBRARY_PATH
7950 bsdi[45]*)
7951 version_type=linux
7952 need_version=no
7953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954 soname_spec='${libname}${release}${shared_ext}$major'
7955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7956 shlibpath_var=LD_LIBRARY_PATH
7957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7959 # the default ld.so.conf also contains /usr/contrib/lib and
7960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7961 # libtool to hard-code these into programs
7964 cygwin* | mingw* | pw32*)
7965 version_type=windows
7966 shrext_cmds=".dll"
7967 need_version=no
7968 need_lib_prefix=no
7970 case $GCC,$host_os in
7971 yes,cygwin* | yes,mingw* | yes,pw32*)
7972 library_names_spec='$libname.dll.a'
7973 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7974 postinstall_cmds='base_file=`basename \${file}`~
7975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7976 dldir=$destdir/`dirname \$dlpath`~
7977 test -d \$dldir || mkdir -p \$dldir~
7978 $install_prog $dir/$dlname \$dldir/$dlname~
7979 chmod a+x \$dldir/$dlname'
7980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7981 dlpath=$dir/\$dldll~
7982 $rm \$dlpath'
7983 shlibpath_overrides_runpath=yes
7985 case $host_os in
7986 cygwin*)
7987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7989 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7991 mingw*)
7992 # MinGW DLLs use traditional 'lib' prefix
7993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7994 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7995 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7996 # It is most probably a Windows format PATH printed by
7997 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7998 # path with ; separators, and with drive letters. We can handle the
7999 # drive letters (cygwin fileutils understands them), so leave them,
8000 # especially as we might pass files found there to a mingw objdump,
8001 # which wouldn't understand a cygwinified path. Ahh.
8002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8003 else
8004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8007 pw32*)
8008 # pw32 DLLs use 'pw' prefix rather than 'lib'
8009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8011 esac
8015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8017 esac
8018 dynamic_linker='Win32 ld.exe'
8019 # FIXME: first we should search . and the directory the executable is in
8020 shlibpath_var=PATH
8023 darwin* | rhapsody*)
8024 dynamic_linker="$host_os dyld"
8025 version_type=darwin
8026 need_lib_prefix=no
8027 need_version=no
8028 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8029 soname_spec='${libname}${release}${major}$shared_ext'
8030 shlibpath_overrides_runpath=yes
8031 shlibpath_var=DYLD_LIBRARY_PATH
8032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8033 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8034 if test "$GCC" = yes; then
8035 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"`
8036 else
8037 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8039 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8042 dgux*)
8043 version_type=linux
8044 need_lib_prefix=no
8045 need_version=no
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 shlibpath_var=LD_LIBRARY_PATH
8051 freebsd1*)
8052 dynamic_linker=no
8055 kfreebsd*-gnu)
8056 version_type=linux
8057 need_lib_prefix=no
8058 need_version=no
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8060 soname_spec='${libname}${release}${shared_ext}$major'
8061 shlibpath_var=LD_LIBRARY_PATH
8062 shlibpath_overrides_runpath=no
8063 hardcode_into_libs=yes
8064 dynamic_linker='GNU ld.so'
8067 freebsd* | dragonfly*)
8068 # DragonFly does not have aout. When/if they implement a new
8069 # versioning mechanism, adjust this.
8070 if test -x /usr/bin/objformat; then
8071 objformat=`/usr/bin/objformat`
8072 else
8073 case $host_os in
8074 freebsd[123]*) objformat=aout ;;
8075 *) objformat=elf ;;
8076 esac
8078 version_type=freebsd-$objformat
8079 case $version_type in
8080 freebsd-elf*)
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8082 need_version=no
8083 need_lib_prefix=no
8085 freebsd-*)
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8087 need_version=yes
8089 esac
8090 shlibpath_var=LD_LIBRARY_PATH
8091 case $host_os in
8092 freebsd2*)
8093 shlibpath_overrides_runpath=yes
8095 freebsd3.[01]* | freebsdelf3.[01]*)
8096 shlibpath_overrides_runpath=yes
8097 hardcode_into_libs=yes
8099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8101 shlibpath_overrides_runpath=no
8102 hardcode_into_libs=yes
8104 freebsd*) # from 4.6 on
8105 shlibpath_overrides_runpath=yes
8106 hardcode_into_libs=yes
8108 esac
8111 gnu*)
8112 version_type=linux
8113 need_lib_prefix=no
8114 need_version=no
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8116 soname_spec='${libname}${release}${shared_ext}$major'
8117 shlibpath_var=LD_LIBRARY_PATH
8118 hardcode_into_libs=yes
8121 hpux9* | hpux10* | hpux11*)
8122 # Give a soname corresponding to the major version so that dld.sl refuses to
8123 # link against other versions.
8124 version_type=sunos
8125 need_lib_prefix=no
8126 need_version=no
8127 case $host_cpu in
8128 ia64*)
8129 shrext_cmds='.so'
8130 hardcode_into_libs=yes
8131 dynamic_linker="$host_os dld.so"
8132 shlibpath_var=LD_LIBRARY_PATH
8133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 if test "X$HPUX_IA64_MODE" = X32; then
8137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8138 else
8139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8143 hppa*64*)
8144 shrext_cmds='.sl'
8145 hardcode_into_libs=yes
8146 dynamic_linker="$host_os dld.sl"
8147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8155 shrext_cmds='.sl'
8156 dynamic_linker="$host_os dld.sl"
8157 shlibpath_var=SHLIB_PATH
8158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8160 soname_spec='${libname}${release}${shared_ext}$major'
8162 esac
8163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8164 postinstall_cmds='chmod 555 $lib'
8167 interix3*)
8168 version_type=linux
8169 need_lib_prefix=no
8170 need_version=no
8171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8172 soname_spec='${libname}${release}${shared_ext}$major'
8173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8174 shlibpath_var=LD_LIBRARY_PATH
8175 shlibpath_overrides_runpath=no
8176 hardcode_into_libs=yes
8179 irix5* | irix6* | nonstopux*)
8180 case $host_os in
8181 nonstopux*) version_type=nonstopux ;;
8183 if test "$lt_cv_prog_gnu_ld" = yes; then
8184 version_type=linux
8185 else
8186 version_type=irix
8187 fi ;;
8188 esac
8189 need_lib_prefix=no
8190 need_version=no
8191 soname_spec='${libname}${release}${shared_ext}$major'
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8193 case $host_os in
8194 irix5* | nonstopux*)
8195 libsuff= shlibsuff=
8198 case $LD in # libtool.m4 will add one of these switches to LD
8199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8200 libsuff= shlibsuff= libmagic=32-bit;;
8201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8202 libsuff=32 shlibsuff=N32 libmagic=N32;;
8203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8205 *) libsuff= shlibsuff= libmagic=never-match;;
8206 esac
8208 esac
8209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8210 shlibpath_overrides_runpath=no
8211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8213 hardcode_into_libs=yes
8216 # No shared lib support for Linux oldld, aout, or coff.
8217 linux*oldld* | linux*aout* | linux*coff*)
8218 dynamic_linker=no
8221 # This must be Linux ELF.
8222 linux*)
8223 version_type=linux
8224 need_lib_prefix=no
8225 need_version=no
8226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8227 soname_spec='${libname}${release}${shared_ext}$major'
8228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8229 shlibpath_var=LD_LIBRARY_PATH
8230 shlibpath_overrides_runpath=no
8231 # This implies no fast_install, which is unacceptable.
8232 # Some rework will be needed to allow for fast_install
8233 # before this can be enabled.
8234 hardcode_into_libs=yes
8236 # find out which ABI we are using
8237 libsuff=
8238 case "$host_cpu" in
8239 x86_64*|s390x*|powerpc64*)
8240 echo '#line 8240 "configure"' > conftest.$ac_ext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; then
8246 case `/usr/bin/file conftest.$ac_objext` in
8247 *64-bit*)
8248 libsuff=64
8249 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8251 esac
8253 rm -rf conftest*
8255 esac
8257 # Append ld.so.conf contents to the search path
8258 if test -f /etc/ld.so.conf; then
8259 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8260 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8263 # We used to test for /lib/ld.so.1 and disable shared libraries on
8264 # powerpc, because MkLinux only supported shared libraries with the
8265 # GNU dynamic linker. Since this was broken with cross compilers,
8266 # most powerpc-linux boxes support dynamic linking these days and
8267 # people can always --disable-shared, the test was removed, and we
8268 # assume the GNU/Linux dynamic linker is in use.
8269 dynamic_linker='GNU/Linux ld.so'
8272 knetbsd*-gnu)
8273 version_type=linux
8274 need_lib_prefix=no
8275 need_version=no
8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8277 soname_spec='${libname}${release}${shared_ext}$major'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=no
8280 hardcode_into_libs=yes
8281 dynamic_linker='GNU ld.so'
8284 netbsd*)
8285 version_type=sunos
8286 need_lib_prefix=no
8287 need_version=no
8288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8291 dynamic_linker='NetBSD (a.out) ld.so'
8292 else
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8294 soname_spec='${libname}${release}${shared_ext}$major'
8295 dynamic_linker='NetBSD ld.elf_so'
8297 shlibpath_var=LD_LIBRARY_PATH
8298 shlibpath_overrides_runpath=yes
8299 hardcode_into_libs=yes
8302 newsos6)
8303 version_type=linux
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 shlibpath_var=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath=yes
8309 nto-qnx*)
8310 version_type=linux
8311 need_lib_prefix=no
8312 need_version=no
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8316 shlibpath_overrides_runpath=yes
8319 openbsd*)
8320 version_type=sunos
8321 sys_lib_dlsearch_path_spec="/usr/lib"
8322 need_lib_prefix=no
8323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8324 case $host_os in
8325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8326 *) need_version=no ;;
8327 esac
8328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8330 shlibpath_var=LD_LIBRARY_PATH
8331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8332 case $host_os in
8333 openbsd2.[89] | openbsd2.[89].*)
8334 shlibpath_overrides_runpath=no
8337 shlibpath_overrides_runpath=yes
8339 esac
8340 else
8341 shlibpath_overrides_runpath=yes
8345 os2*)
8346 libname_spec='$name'
8347 shrext_cmds=".dll"
8348 need_lib_prefix=no
8349 library_names_spec='$libname${shared_ext} $libname.a'
8350 dynamic_linker='OS/2 ld.exe'
8351 shlibpath_var=LIBPATH
8354 osf3* | osf4* | osf5*)
8355 version_type=osf
8356 need_lib_prefix=no
8357 need_version=no
8358 soname_spec='${libname}${release}${shared_ext}$major'
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 shlibpath_var=LD_LIBRARY_PATH
8361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8365 solaris*)
8366 version_type=linux
8367 need_lib_prefix=no
8368 need_version=no
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 shlibpath_overrides_runpath=yes
8373 hardcode_into_libs=yes
8374 # ldd complains unless libraries are executable
8375 postinstall_cmds='chmod +x $lib'
8378 sunos4*)
8379 version_type=sunos
8380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8382 shlibpath_var=LD_LIBRARY_PATH
8383 shlibpath_overrides_runpath=yes
8384 if test "$with_gnu_ld" = yes; then
8385 need_lib_prefix=no
8387 need_version=yes
8390 sysv4 | sysv4.3*)
8391 version_type=linux
8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8393 soname_spec='${libname}${release}${shared_ext}$major'
8394 shlibpath_var=LD_LIBRARY_PATH
8395 case $host_vendor in
8396 sni)
8397 shlibpath_overrides_runpath=no
8398 need_lib_prefix=no
8399 export_dynamic_flag_spec='${wl}-Blargedynsym'
8400 runpath_var=LD_RUN_PATH
8402 siemens)
8403 need_lib_prefix=no
8405 motorola)
8406 need_lib_prefix=no
8407 need_version=no
8408 shlibpath_overrides_runpath=no
8409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8411 esac
8414 sysv4*MP*)
8415 if test -d /usr/nec ;then
8416 version_type=linux
8417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8418 soname_spec='$libname${shared_ext}.$major'
8419 shlibpath_var=LD_LIBRARY_PATH
8423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8424 version_type=freebsd-elf
8425 need_lib_prefix=no
8426 need_version=no
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 shlibpath_var=LD_LIBRARY_PATH
8430 hardcode_into_libs=yes
8431 if test "$with_gnu_ld" = yes; then
8432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8433 shlibpath_overrides_runpath=no
8434 else
8435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8436 shlibpath_overrides_runpath=yes
8437 case $host_os in
8438 sco3.2v5*)
8439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8441 esac
8443 sys_lib_dlsearch_path_spec='/usr/lib'
8446 uts4*)
8447 version_type=linux
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8449 soname_spec='${libname}${release}${shared_ext}$major'
8450 shlibpath_var=LD_LIBRARY_PATH
8454 dynamic_linker=no
8456 esac
8457 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8458 echo "${ECHO_T}$dynamic_linker" >&6
8459 test "$dynamic_linker" = no && can_build_shared=no
8461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8462 if test "$GCC" = yes; then
8463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8466 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8467 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8468 hardcode_action=
8469 if test -n "$hardcode_libdir_flag_spec" || \
8470 test -n "$runpath_var" || \
8471 test "X$hardcode_automatic" = "Xyes" ; then
8473 # We can hardcode non-existant directories.
8474 if test "$hardcode_direct" != no &&
8475 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8476 # have to relink, otherwise we might link with an installed library
8477 # when we should be linking with a yet-to-be-installed one
8478 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8479 test "$hardcode_minus_L" != no; then
8480 # Linking always hardcodes the temporary library directory.
8481 hardcode_action=relink
8482 else
8483 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8484 hardcode_action=immediate
8486 else
8487 # We cannot hardcode anything, or else we can only hardcode existing
8488 # directories.
8489 hardcode_action=unsupported
8491 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8492 echo "${ECHO_T}$hardcode_action" >&6
8494 if test "$hardcode_action" = relink; then
8495 # Fast installation is not supported
8496 enable_fast_install=no
8497 elif test "$shlibpath_overrides_runpath" = yes ||
8498 test "$enable_shared" = no; then
8499 # Fast installation is not necessary
8500 enable_fast_install=needless
8503 striplib=
8504 old_striplib=
8505 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8506 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8507 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8508 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8509 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8510 echo "$as_me:$LINENO: result: yes" >&5
8511 echo "${ECHO_T}yes" >&6
8512 else
8513 # FIXME - insert some real tests, host_os isn't really good enough
8514 case $host_os in
8515 darwin*)
8516 if test -n "$STRIP" ; then
8517 striplib="$STRIP -x"
8518 echo "$as_me:$LINENO: result: yes" >&5
8519 echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8526 echo "$as_me:$LINENO: result: no" >&5
8527 echo "${ECHO_T}no" >&6
8529 esac
8532 if test "x$enable_dlopen" != xyes; then
8533 enable_dlopen=unknown
8534 enable_dlopen_self=unknown
8535 enable_dlopen_self_static=unknown
8536 else
8537 lt_cv_dlopen=no
8538 lt_cv_dlopen_libs=
8540 case $host_os in
8541 beos*)
8542 lt_cv_dlopen="load_add_on"
8543 lt_cv_dlopen_libs=
8544 lt_cv_dlopen_self=yes
8547 mingw* | pw32*)
8548 lt_cv_dlopen="LoadLibrary"
8549 lt_cv_dlopen_libs=
8552 cygwin*)
8553 lt_cv_dlopen="dlopen"
8554 lt_cv_dlopen_libs=
8557 darwin*)
8558 # if libdl is installed we need to link against it
8559 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8560 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8561 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 ac_check_lib_save_LIBS=$LIBS
8565 LIBS="-ldl $LIBS"
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 /* Override any gcc2 internal prototype to avoid an error. */
8574 #ifdef __cplusplus
8575 extern "C"
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8579 char dlopen ();
8581 main ()
8583 dlopen ();
8585 return 0;
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590 (eval $ac_link) 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag"
8598 || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_lib_dl_dlopen=yes
8611 else
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_cv_lib_dl_dlopen=no
8617 rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8621 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8622 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8623 if test $ac_cv_lib_dl_dlopen = yes; then
8624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8625 else
8627 lt_cv_dlopen="dyld"
8628 lt_cv_dlopen_libs=
8629 lt_cv_dlopen_self=yes
8636 echo "$as_me:$LINENO: checking for shl_load" >&5
8637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8638 if test "${ac_cv_func_shl_load+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8649 #define shl_load innocuous_shl_load
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char shl_load (); below.
8653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 <limits.h> exists even on freestanding compilers. */
8656 #ifdef __STDC__
8657 # include <limits.h>
8658 #else
8659 # include <assert.h>
8660 #endif
8662 #undef shl_load
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 #ifdef __cplusplus
8666 extern "C"
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671 char shl_load ();
8672 /* The GNU C library defines this for functions which it implements
8673 to always fail with ENOSYS. Some functions are actually named
8674 something starting with __ and the normal name is an alias. */
8675 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8676 choke me
8677 #else
8678 char (*f) () = shl_load;
8679 #endif
8680 #ifdef __cplusplus
8682 #endif
8685 main ()
8687 return f != shl_load;
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_func_shl_load=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_func_shl_load=no
8721 rm -f conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8725 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8726 if test $ac_cv_func_shl_load = yes; then
8727 lt_cv_dlopen="shl_load"
8728 else
8729 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8730 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8731 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734 ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-ldld $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8744 #ifdef __cplusplus
8745 extern "C"
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. */
8749 char shl_load ();
8751 main ()
8753 shl_load ();
8755 return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_lib_dld_shl_load=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_lib_dld_shl_load=no
8787 rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8792 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8793 if test $ac_cv_lib_dld_shl_load = yes; then
8794 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8795 else
8796 echo "$as_me:$LINENO: checking for dlopen" >&5
8797 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8798 if test "${ac_cv_func_dlopen+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809 #define dlopen innocuous_dlopen
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char dlopen (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8816 #ifdef __STDC__
8817 # include <limits.h>
8818 #else
8819 # include <assert.h>
8820 #endif
8822 #undef dlopen
8824 /* Override any gcc2 internal prototype to avoid an error. */
8825 #ifdef __cplusplus
8826 extern "C"
8828 #endif
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8831 char dlopen ();
8832 /* The GNU C library defines this for functions which it implements
8833 to always fail with ENOSYS. Some functions are actually named
8834 something starting with __ and the normal name is an alias. */
8835 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8836 choke me
8837 #else
8838 char (*f) () = dlopen;
8839 #endif
8840 #ifdef __cplusplus
8842 #endif
8845 main ()
8847 return f != dlopen;
8849 return 0;
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_func_dlopen=yes
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_func_dlopen=no
8881 rm -f conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8885 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8886 if test $ac_cv_func_dlopen = yes; then
8887 lt_cv_dlopen="dlopen"
8888 else
8889 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 ac_check_lib_save_LIBS=$LIBS
8895 LIBS="-ldl $LIBS"
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8903 /* Override any gcc2 internal prototype to avoid an error. */
8904 #ifdef __cplusplus
8905 extern "C"
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. */
8909 char dlopen ();
8911 main ()
8913 dlopen ();
8915 return 0;
8917 _ACEOF
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_cv_lib_dl_dlopen=yes
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_cv_lib_dl_dlopen=no
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8951 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8952 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8953 if test $ac_cv_lib_dl_dlopen = yes; then
8954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8955 else
8956 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8957 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8958 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 ac_check_lib_save_LIBS=$LIBS
8962 LIBS="-lsvld $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8976 char dlopen ();
8978 main ()
8980 dlopen ();
8982 return 0;
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_cv_lib_svld_dlopen=yes
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 ac_cv_lib_svld_dlopen=no
9014 rm -f conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_check_lib_save_LIBS
9018 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9019 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9020 if test $ac_cv_lib_svld_dlopen = yes; then
9021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9022 else
9023 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9024 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9025 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 ac_check_lib_save_LIBS=$LIBS
9029 LIBS="-ldld $LIBS"
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9037 /* Override any gcc2 internal prototype to avoid an error. */
9038 #ifdef __cplusplus
9039 extern "C"
9040 #endif
9041 /* We use char because int might match the return type of a gcc2
9042 builtin and then its argument prototype would still apply. */
9043 char dld_link ();
9045 main ()
9047 dld_link ();
9049 return 0;
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054 (eval $ac_link) 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag"
9062 || test ! -s conftest.err'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_lib_dld_dld_link=yes
9075 else
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ac_cv_lib_dld_dld_link=no
9081 rm -f conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 LIBS=$ac_check_lib_save_LIBS
9085 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9086 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9087 if test $ac_cv_lib_dld_dld_link = yes; then
9088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9107 esac
9109 if test "x$lt_cv_dlopen" != xno; then
9110 enable_dlopen=yes
9111 else
9112 enable_dlopen=no
9115 case $lt_cv_dlopen in
9116 dlopen)
9117 save_CPPFLAGS="$CPPFLAGS"
9118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9120 save_LDFLAGS="$LDFLAGS"
9121 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9123 save_LIBS="$LIBS"
9124 LIBS="$lt_cv_dlopen_libs $LIBS"
9126 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9127 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9128 if test "${lt_cv_dlopen_self+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 if test "$cross_compiling" = yes; then :
9132 lt_cv_dlopen_self=cross
9133 else
9134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9135 lt_status=$lt_dlunknown
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9137 "configure"
9138 #include "confdefs.h"
9140 #if HAVE_DLFCN_H
9141 #include <dlfcn.h>
9142 #endif
9144 #include <stdio.h>
9146 #ifdef RTLD_GLOBAL
9147 # define LT_DLGLOBAL RTLD_GLOBAL
9148 #else
9149 # ifdef DL_GLOBAL
9150 # define LT_DLGLOBAL DL_GLOBAL
9151 # else
9152 # define LT_DLGLOBAL 0
9153 # endif
9154 #endif
9156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9157 find out it does not work in some platform. */
9158 #ifndef LT_DLLAZY_OR_NOW
9159 # ifdef RTLD_LAZY
9160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9161 # else
9162 # ifdef DL_LAZY
9163 # define LT_DLLAZY_OR_NOW DL_LAZY
9164 # else
9165 # ifdef RTLD_NOW
9166 # define LT_DLLAZY_OR_NOW RTLD_NOW
9167 # else
9168 # ifdef DL_NOW
9169 # define LT_DLLAZY_OR_NOW DL_NOW
9170 # else
9171 # define LT_DLLAZY_OR_NOW 0
9172 # endif
9173 # endif
9174 # endif
9175 # endif
9176 #endif
9178 #ifdef __cplusplus
9179 extern "C" void exit (int);
9180 #endif
9182 void fnord() { int i=42;}
9183 int main ()
9185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9186 int status = $lt_dlunknown;
9188 if (self)
9190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9192 /* dlclose (self); */
9194 else
9195 puts (dlerror ());
9197 exit (status);
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9205 (./conftest; exit; ) >&5 2>/dev/null
9206 lt_status=$?
9207 case x$lt_status in
9208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9210 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9211 esac
9212 else :
9213 # compilation failed
9214 lt_cv_dlopen_self=no
9217 rm -fr conftest*
9221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9224 if test "x$lt_cv_dlopen_self" = xyes; then
9225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9226 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9228 if test "${lt_cv_dlopen_self_static+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231 if test "$cross_compiling" = yes; then :
9232 lt_cv_dlopen_self_static=cross
9233 else
9234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9235 lt_status=$lt_dlunknown
9236 cat > conftest.$ac_ext <<EOF
9237 #line 9237 "configure"
9238 #include "confdefs.h"
9240 #if HAVE_DLFCN_H
9241 #include <dlfcn.h>
9242 #endif
9244 #include <stdio.h>
9246 #ifdef RTLD_GLOBAL
9247 # define LT_DLGLOBAL RTLD_GLOBAL
9248 #else
9249 # ifdef DL_GLOBAL
9250 # define LT_DLGLOBAL DL_GLOBAL
9251 # else
9252 # define LT_DLGLOBAL 0
9253 # endif
9254 #endif
9256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9257 find out it does not work in some platform. */
9258 #ifndef LT_DLLAZY_OR_NOW
9259 # ifdef RTLD_LAZY
9260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9261 # else
9262 # ifdef DL_LAZY
9263 # define LT_DLLAZY_OR_NOW DL_LAZY
9264 # else
9265 # ifdef RTLD_NOW
9266 # define LT_DLLAZY_OR_NOW RTLD_NOW
9267 # else
9268 # ifdef DL_NOW
9269 # define LT_DLLAZY_OR_NOW DL_NOW
9270 # else
9271 # define LT_DLLAZY_OR_NOW 0
9272 # endif
9273 # endif
9274 # endif
9275 # endif
9276 #endif
9278 #ifdef __cplusplus
9279 extern "C" void exit (int);
9280 #endif
9282 void fnord() { int i=42;}
9283 int main ()
9285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9286 int status = $lt_dlunknown;
9288 if (self)
9290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9292 /* dlclose (self); */
9294 else
9295 puts (dlerror ());
9297 exit (status);
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9305 (./conftest; exit; ) >&5 2>/dev/null
9306 lt_status=$?
9307 case x$lt_status in
9308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9310 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9311 esac
9312 else :
9313 # compilation failed
9314 lt_cv_dlopen_self_static=no
9317 rm -fr conftest*
9321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9322 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9325 CPPFLAGS="$save_CPPFLAGS"
9326 LDFLAGS="$save_LDFLAGS"
9327 LIBS="$save_LIBS"
9329 esac
9331 case $lt_cv_dlopen_self in
9332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9333 *) enable_dlopen_self=unknown ;;
9334 esac
9336 case $lt_cv_dlopen_self_static in
9337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9338 *) enable_dlopen_self_static=unknown ;;
9339 esac
9343 # Report which library types will actually be built
9344 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9345 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9346 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9347 echo "${ECHO_T}$can_build_shared" >&6
9349 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9350 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9351 test "$can_build_shared" = "no" && enable_shared=no
9353 # On AIX, shared libraries and static libraries use the same namespace, and
9354 # are all built from PIC.
9355 case $host_os in
9356 aix3*)
9357 test "$enable_shared" = yes && enable_static=no
9358 if test -n "$RANLIB"; then
9359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9360 postinstall_cmds='$RANLIB $lib'
9364 aix4* | aix5*)
9365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9366 test "$enable_shared" = yes && enable_static=no
9369 esac
9370 echo "$as_me:$LINENO: result: $enable_shared" >&5
9371 echo "${ECHO_T}$enable_shared" >&6
9373 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9374 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9375 # Make sure either enable_shared or enable_static is yes.
9376 test "$enable_shared" = yes || enable_static=yes
9377 echo "$as_me:$LINENO: result: $enable_static" >&5
9378 echo "${ECHO_T}$enable_static" >&6
9380 # The else clause should only fire when bootstrapping the
9381 # libtool distribution, otherwise you forgot to ship ltmain.sh
9382 # with your package, and you will get complaints that there are
9383 # no rules to generate ltmain.sh.
9384 if test -f "$ltmain"; then
9385 # See if we are running on zsh, and set the options which allow our commands through
9386 # without removal of \ escapes.
9387 if test -n "${ZSH_VERSION+set}" ; then
9388 setopt NO_GLOB_SUBST
9390 # Now quote all the things that may contain metacharacters while being
9391 # careful not to overquote the AC_SUBSTed values. We take copies of the
9392 # variables and quote the copies for generation of the libtool script.
9393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9394 SED SHELL STRIP \
9395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9397 deplibs_check_method reload_flag reload_cmds need_locks \
9398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9399 lt_cv_sys_global_symbol_to_c_name_address \
9400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9401 old_postinstall_cmds old_postuninstall_cmds \
9402 compiler \
9403 CC \
9404 LD \
9405 lt_prog_compiler_wl \
9406 lt_prog_compiler_pic \
9407 lt_prog_compiler_static \
9408 lt_prog_compiler_no_builtin_flag \
9409 export_dynamic_flag_spec \
9410 thread_safe_flag_spec \
9411 whole_archive_flag_spec \
9412 enable_shared_with_static_runtimes \
9413 old_archive_cmds \
9414 old_archive_from_new_cmds \
9415 predep_objects \
9416 postdep_objects \
9417 predeps \
9418 postdeps \
9419 compiler_lib_search_path \
9420 archive_cmds \
9421 archive_expsym_cmds \
9422 postinstall_cmds \
9423 postuninstall_cmds \
9424 old_archive_from_expsyms_cmds \
9425 allow_undefined_flag \
9426 no_undefined_flag \
9427 export_symbols_cmds \
9428 hardcode_libdir_flag_spec \
9429 hardcode_libdir_flag_spec_ld \
9430 hardcode_libdir_separator \
9431 hardcode_automatic \
9432 module_cmds \
9433 module_expsym_cmds \
9434 lt_cv_prog_compiler_c_o \
9435 exclude_expsyms \
9436 include_expsyms; do
9438 case $var in
9439 old_archive_cmds | \
9440 old_archive_from_new_cmds | \
9441 archive_cmds | \
9442 archive_expsym_cmds | \
9443 module_cmds | \
9444 module_expsym_cmds | \
9445 old_archive_from_expsyms_cmds | \
9446 export_symbols_cmds | \
9447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9448 postinstall_cmds | postuninstall_cmds | \
9449 old_postinstall_cmds | old_postuninstall_cmds | \
9450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9451 # Double-quote double-evaled strings.
9452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9457 esac
9458 done
9460 case $lt_echo in
9461 *'\$0 --fallback-echo"')
9462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9464 esac
9466 cfgfile="${ofile}T"
9467 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9468 $rm -f "$cfgfile"
9469 { echo "$as_me:$LINENO: creating $ofile" >&5
9470 echo "$as_me: creating $ofile" >&6;}
9472 cat <<__EOF__ >> "$cfgfile"
9473 #! $SHELL
9475 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9476 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9479 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9480 # Free Software Foundation, Inc.
9482 # This file is part of GNU Libtool:
9483 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9485 # This program is free software; you can redistribute it and/or modify
9486 # it under the terms of the GNU General Public License as published by
9487 # the Free Software Foundation; either version 2 of the License, or
9488 # (at your option) any later version.
9490 # This program is distributed in the hope that it will be useful, but
9491 # WITHOUT ANY WARRANTY; without even the implied warranty of
9492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9493 # General Public License for more details.
9495 # You should have received a copy of the GNU General Public License
9496 # along with this program; if not, write to the Free Software
9497 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9499 # As a special exception to the GNU General Public License, if you
9500 # distribute this file as part of a program that contains a
9501 # configuration script generated by Autoconf, you may include it under
9502 # the same distribution terms that you use for the rest of that program.
9504 # A sed program that does not truncate output.
9505 SED=$lt_SED
9507 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9508 Xsed="$SED -e 1s/^X//"
9510 # The HP-UX ksh and POSIX shell print the target directory to stdout
9511 # if CDPATH is set.
9512 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9514 # The names of the tagged configurations supported by this script.
9515 available_tags=
9517 # ### BEGIN LIBTOOL CONFIG
9519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9521 # Shell to use when invoking shell scripts.
9522 SHELL=$lt_SHELL
9524 # Whether or not to build shared libraries.
9525 build_libtool_libs=$enable_shared
9527 # Whether or not to build static libraries.
9528 build_old_libs=$enable_static
9530 # Whether or not to add -lc for building shared libraries.
9531 build_libtool_need_lc=$archive_cmds_need_lc
9533 # Whether or not to disallow shared libs when runtime libs are static
9534 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9536 # Whether or not to optimize for fast installation.
9537 fast_install=$enable_fast_install
9539 # The host system.
9540 host_alias=$host_alias
9541 host=$host
9542 host_os=$host_os
9544 # The build system.
9545 build_alias=$build_alias
9546 build=$build
9547 build_os=$build_os
9549 # An echo program that does not interpret backslashes.
9550 echo=$lt_echo
9552 # The archiver.
9553 AR=$lt_AR
9554 AR_FLAGS=$lt_AR_FLAGS
9556 # A C compiler.
9557 LTCC=$lt_LTCC
9559 # LTCC compiler flags.
9560 LTCFLAGS=$lt_LTCFLAGS
9562 # A language-specific compiler.
9563 CC=$lt_compiler
9565 # Is the compiler the GNU C compiler?
9566 with_gcc=$GCC
9568 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9569 gcc_ver=\`gcc -dumpversion\`
9571 # An ERE matcher.
9572 EGREP=$lt_EGREP
9574 # The linker used to build libraries.
9575 LD=$lt_LD
9577 # Whether we need hard or soft links.
9578 LN_S=$lt_LN_S
9580 # A BSD-compatible nm program.
9581 NM=$lt_NM
9583 # A symbol stripping program
9584 STRIP=$lt_STRIP
9586 # Used to examine libraries when file_magic_cmd begins "file"
9587 MAGIC_CMD=$MAGIC_CMD
9589 # Used on cygwin: DLL creation program.
9590 DLLTOOL="$DLLTOOL"
9592 # Used on cygwin: object dumper.
9593 OBJDUMP="$OBJDUMP"
9595 # Used on cygwin: assembler.
9596 AS="$AS"
9598 # The name of the directory that contains temporary libtool files.
9599 objdir=$objdir
9601 # How to create reloadable object files.
9602 reload_flag=$lt_reload_flag
9603 reload_cmds=$lt_reload_cmds
9605 # How to pass a linker flag through the compiler.
9606 wl=$lt_lt_prog_compiler_wl
9608 # Object file suffix (normally "o").
9609 objext="$ac_objext"
9611 # Old archive suffix (normally "a").
9612 libext="$libext"
9614 # Shared library suffix (normally ".so").
9615 shrext_cmds='$shrext_cmds'
9617 # Executable file suffix (normally "").
9618 exeext="$exeext"
9620 # Additional compiler flags for building library objects.
9621 pic_flag=$lt_lt_prog_compiler_pic
9622 pic_mode=$pic_mode
9624 # What is the maximum length of a command?
9625 max_cmd_len=$lt_cv_sys_max_cmd_len
9627 # Does compiler simultaneously support -c and -o options?
9628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9630 # Must we lock files when doing compilation?
9631 need_locks=$lt_need_locks
9633 # Do we need the lib prefix for modules?
9634 need_lib_prefix=$need_lib_prefix
9636 # Do we need a version for libraries?
9637 need_version=$need_version
9639 # Whether dlopen is supported.
9640 dlopen_support=$enable_dlopen
9642 # Whether dlopen of programs is supported.
9643 dlopen_self=$enable_dlopen_self
9645 # Whether dlopen of statically linked programs is supported.
9646 dlopen_self_static=$enable_dlopen_self_static
9648 # Compiler flag to prevent dynamic linking.
9649 link_static_flag=$lt_lt_prog_compiler_static
9651 # Compiler flag to turn off builtin functions.
9652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9654 # Compiler flag to allow reflexive dlopens.
9655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9657 # Compiler flag to generate shared objects directly from archives.
9658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9660 # Compiler flag to generate thread-safe objects.
9661 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9663 # Library versioning type.
9664 version_type=$version_type
9666 # Format of library name prefix.
9667 libname_spec=$lt_libname_spec
9669 # List of archive names. First name is the real one, the rest are links.
9670 # The last name is the one that the linker finds with -lNAME.
9671 library_names_spec=$lt_library_names_spec
9673 # The coded name of the library, if different from the real name.
9674 soname_spec=$lt_soname_spec
9676 # Commands used to build and install an old-style archive.
9677 RANLIB=$lt_RANLIB
9678 old_archive_cmds=$lt_old_archive_cmds
9679 old_postinstall_cmds=$lt_old_postinstall_cmds
9680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9682 # Create an old-style archive from a shared archive.
9683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9685 # Create a temporary old-style archive to link instead of a shared archive.
9686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9688 # Commands used to build and install a shared archive.
9689 archive_cmds=$lt_archive_cmds
9690 archive_expsym_cmds=$lt_archive_expsym_cmds
9691 postinstall_cmds=$lt_postinstall_cmds
9692 postuninstall_cmds=$lt_postuninstall_cmds
9694 # Commands used to build a loadable module (assumed same as above if empty)
9695 module_cmds=$lt_module_cmds
9696 module_expsym_cmds=$lt_module_expsym_cmds
9698 # Commands to strip libraries.
9699 old_striplib=$lt_old_striplib
9700 striplib=$lt_striplib
9702 # Dependencies to place before the objects being linked to create a
9703 # shared library.
9704 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9706 # Dependencies to place after the objects being linked to create a
9707 # shared library.
9708 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9710 # Dependencies to place before the objects being linked to create a
9711 # shared library.
9712 predeps=$lt_predeps
9714 # Dependencies to place after the objects being linked to create a
9715 # shared library.
9716 postdeps=$lt_postdeps
9718 # The library search path used internally by the compiler when linking
9719 # a shared library.
9720 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9722 # Method to check whether dependent libraries are shared objects.
9723 deplibs_check_method=$lt_deplibs_check_method
9725 # Command to use when deplibs_check_method == file_magic.
9726 file_magic_cmd=$lt_file_magic_cmd
9728 # Flag that allows shared libraries with undefined symbols to be built.
9729 allow_undefined_flag=$lt_allow_undefined_flag
9731 # Flag that forces no undefined symbols.
9732 no_undefined_flag=$lt_no_undefined_flag
9734 # Commands used to finish a libtool library installation in a directory.
9735 finish_cmds=$lt_finish_cmds
9737 # Same as above, but a single script fragment to be evaled but not shown.
9738 finish_eval=$lt_finish_eval
9740 # Take the output of nm and produce a listing of raw symbols and C names.
9741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9743 # Transform the output of nm in a proper C declaration
9744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9746 # Transform the output of nm in a C name address pair
9747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9749 # This is the shared library runtime path variable.
9750 runpath_var=$runpath_var
9752 # This is the shared library path variable.
9753 shlibpath_var=$shlibpath_var
9755 # Is shlibpath searched before the hard-coded library search path?
9756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9758 # How to hardcode a shared library path into an executable.
9759 hardcode_action=$hardcode_action
9761 # Whether we should hardcode library paths into libraries.
9762 hardcode_into_libs=$hardcode_into_libs
9764 # Flag to hardcode \$libdir into a binary during linking.
9765 # This must work even if \$libdir does not exist.
9766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9768 # If ld is used when linking, flag to hardcode \$libdir into
9769 # a binary during linking. This must work even if \$libdir does
9770 # not exist.
9771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9773 # Whether we need a single -rpath flag with a separated argument.
9774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9777 # resulting binary.
9778 hardcode_direct=$hardcode_direct
9780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9781 # resulting binary.
9782 hardcode_minus_L=$hardcode_minus_L
9784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9785 # the resulting binary.
9786 hardcode_shlibpath_var=$hardcode_shlibpath_var
9788 # Set to yes if building a shared library automatically hardcodes DIR into the library
9789 # and all subsequent libraries and executables linked against it.
9790 hardcode_automatic=$hardcode_automatic
9792 # Variables whose values should be saved in libtool wrapper scripts and
9793 # restored at relink time.
9794 variables_saved_for_relink="$variables_saved_for_relink"
9796 # Whether libtool must link a program against all its dependency libraries.
9797 link_all_deplibs=$link_all_deplibs
9799 # Compile-time system search path for libraries
9800 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9802 # Run-time system search path for libraries
9803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9805 # Fix the shell variable \$srcfile for the compiler.
9806 fix_srcfile_path="$fix_srcfile_path"
9808 # Set to yes if exported symbols are required.
9809 always_export_symbols=$always_export_symbols
9811 # The commands to list exported symbols.
9812 export_symbols_cmds=$lt_export_symbols_cmds
9814 # The commands to extract the exported symbol list from a shared archive.
9815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9817 # Symbols that should not be listed in the preloaded symbols.
9818 exclude_expsyms=$lt_exclude_expsyms
9820 # Symbols that must always be exported.
9821 include_expsyms=$lt_include_expsyms
9823 # ### END LIBTOOL CONFIG
9825 __EOF__
9828 case $host_os in
9829 aix3*)
9830 cat <<\EOF >> "$cfgfile"
9832 # AIX sometimes has problems with the GCC collect2 program. For some
9833 # reason, if we set the COLLECT_NAMES environment variable, the problems
9834 # vanish in a puff of smoke.
9835 if test "X${COLLECT_NAMES+set}" != Xset; then
9836 COLLECT_NAMES=
9837 export COLLECT_NAMES
9841 esac
9843 # We use sed instead of cat because bash on DJGPP gets confused if
9844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9845 # text mode, it properly converts lines to CR/LF. This bash problem
9846 # is reportedly fixed, but why not run on old versions too?
9847 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9849 mv -f "$cfgfile" "$ofile" || \
9850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9851 chmod +x "$ofile"
9853 else
9854 # If there is no Makefile yet, we rely on a make rule to execute
9855 # `config.status --recheck' to rerun these tests and create the
9856 # libtool script then.
9857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9858 if test -f "$ltmain_in"; then
9859 test -f Makefile && make "$ltmain"
9864 ac_ext=c
9865 ac_cpp='$CPP $CPPFLAGS'
9866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9870 CC="$lt_save_CC"
9873 # Check whether --with-tags or --without-tags was given.
9874 if test "${with_tags+set}" = set; then
9875 withval="$with_tags"
9876 tagnames="$withval"
9879 if test -f "$ltmain" && test -n "$tagnames"; then
9880 if test ! -f "${ofile}"; then
9881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9882 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9885 if test -z "$LTCC"; then
9886 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9887 if test -z "$LTCC"; then
9888 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9889 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9890 else
9891 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9892 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9895 if test -z "$LTCFLAGS"; then
9896 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9899 # Extract list of available tagged configurations in $ofile.
9900 # Note that this assumes the entire list is on one line.
9901 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9904 for tagname in $tagnames; do
9905 IFS="$lt_save_ifs"
9906 # Check whether tagname contains only valid characters
9907 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9908 "") ;;
9909 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9910 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9911 { (exit 1); exit 1; }; }
9913 esac
9915 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9916 then
9917 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9918 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9919 { (exit 1); exit 1; }; }
9922 # Update the list of available tags.
9923 if test -n "$tagname"; then
9924 echo appending configuration tag \"$tagname\" to $ofile
9926 case $tagname in
9927 CXX)
9928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9930 (test "X$CXX" != "Xg++"))) ; then
9931 ac_ext=cc
9932 ac_cpp='$CXXCPP $CPPFLAGS'
9933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9940 archive_cmds_need_lc_CXX=no
9941 allow_undefined_flag_CXX=
9942 always_export_symbols_CXX=no
9943 archive_expsym_cmds_CXX=
9944 export_dynamic_flag_spec_CXX=
9945 hardcode_direct_CXX=no
9946 hardcode_libdir_flag_spec_CXX=
9947 hardcode_libdir_flag_spec_ld_CXX=
9948 hardcode_libdir_separator_CXX=
9949 hardcode_minus_L_CXX=no
9950 hardcode_shlibpath_var_CXX=unsupported
9951 hardcode_automatic_CXX=no
9952 module_cmds_CXX=
9953 module_expsym_cmds_CXX=
9954 link_all_deplibs_CXX=unknown
9955 old_archive_cmds_CXX=$old_archive_cmds
9956 no_undefined_flag_CXX=
9957 whole_archive_flag_spec_CXX=
9958 enable_shared_with_static_runtimes_CXX=no
9960 # Dependencies to place before and after the object being linked:
9961 predep_objects_CXX=
9962 postdep_objects_CXX=
9963 predeps_CXX=
9964 postdeps_CXX=
9965 compiler_lib_search_path_CXX=
9967 # Source file extension for C++ test sources.
9968 ac_ext=cpp
9970 # Object file extension for compiled C++ test sources.
9971 objext=o
9972 objext_CXX=$objext
9974 # Code to be used in simple compile tests
9975 lt_simple_compile_test_code="int some_variable = 0;\n"
9977 # Code to be used in simple link tests
9978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9982 # If no C compiler was specified, use CC.
9983 LTCC=${LTCC-"$CC"}
9985 # If no C compiler flags were specified, use CFLAGS.
9986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9988 # Allow CC to be a program name with arguments.
9989 compiler=$CC
9992 # save warnings/boilerplate of simple test code
9993 ac_outfile=conftest.$ac_objext
9994 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9996 _lt_compiler_boilerplate=`cat conftest.err`
9997 $rm conftest*
9999 ac_outfile=conftest.$ac_objext
10000 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10002 _lt_linker_boilerplate=`cat conftest.err`
10003 $rm conftest*
10006 # Allow CC to be a program name with arguments.
10007 lt_save_CC=$CC
10008 lt_save_LD=$LD
10009 lt_save_GCC=$GCC
10010 GCC=$GXX
10011 lt_save_with_gnu_ld=$with_gnu_ld
10012 lt_save_path_LD=$lt_cv_path_LD
10013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10015 else
10016 $as_unset lt_cv_prog_gnu_ld
10018 if test -n "${lt_cv_path_LDCXX+set}"; then
10019 lt_cv_path_LD=$lt_cv_path_LDCXX
10020 else
10021 $as_unset lt_cv_path_LD
10023 test -z "${LDCXX+set}" || LD=$LDCXX
10024 CC=${CXX-"c++"}
10025 compiler=$CC
10026 compiler_CXX=$CC
10027 for cc_temp in $compiler""; do
10028 case $cc_temp in
10029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10031 \-*) ;;
10032 *) break;;
10033 esac
10034 done
10035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10038 # We don't want -fno-exception wen compiling C++ code, so set the
10039 # no_builtin_flag separately
10040 if test "$GXX" = yes; then
10041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10042 else
10043 lt_prog_compiler_no_builtin_flag_CXX=
10046 if test "$GXX" = yes; then
10047 # Set up default GNU C++ configuration
10050 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10051 if test "${with_gnu_ld+set}" = set; then
10052 withval="$with_gnu_ld"
10053 test "$withval" = no || with_gnu_ld=yes
10054 else
10055 with_gnu_ld=no
10057 ac_prog=ld
10058 if test "$GCC" = yes; then
10059 # Check if gcc -print-prog-name=ld gives a path.
10060 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10062 case $host in
10063 *-*-mingw*)
10064 # gcc leaves a trailing carriage return which upsets mingw
10065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10068 esac
10069 case $ac_prog in
10070 # Accept absolute paths.
10071 [\\/]* | ?:[\\/]*)
10072 re_direlt='/[^/][^/]*/\.\./'
10073 # Canonicalize the pathname of ld
10074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10077 done
10078 test -z "$LD" && LD="$ac_prog"
10081 # If it fails, then pretend we aren't using GCC.
10082 ac_prog=ld
10085 # If it is relative, then search for the first ld in PATH.
10086 with_gnu_ld=unknown
10088 esac
10089 elif test "$with_gnu_ld" = yes; then
10090 echo "$as_me:$LINENO: checking for GNU ld" >&5
10091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10092 else
10093 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10096 if test "${lt_cv_path_LD+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099 if test -z "$LD"; then
10100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10101 for ac_dir in $PATH; do
10102 IFS="$lt_save_ifs"
10103 test -z "$ac_dir" && ac_dir=.
10104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10105 lt_cv_path_LD="$ac_dir/$ac_prog"
10106 # Check to see if the program is GNU ld. I'd rather use --version,
10107 # but apparently some variants of GNU ld only accept -v.
10108 # Break only if it was the GNU/non-GNU ld that we prefer.
10109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10110 *GNU* | *'with BFD'*)
10111 test "$with_gnu_ld" != no && break
10114 test "$with_gnu_ld" != yes && break
10116 esac
10118 done
10119 IFS="$lt_save_ifs"
10120 else
10121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10125 LD="$lt_cv_path_LD"
10126 if test -n "$LD"; then
10127 echo "$as_me:$LINENO: result: $LD" >&5
10128 echo "${ECHO_T}$LD" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10135 { (exit 1); exit 1; }; }
10136 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10142 case `$LD -v 2>&1 </dev/null` in
10143 *GNU* | *'with BFD'*)
10144 lt_cv_prog_gnu_ld=yes
10147 lt_cv_prog_gnu_ld=no
10149 esac
10151 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10153 with_gnu_ld=$lt_cv_prog_gnu_ld
10157 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10158 # archiving commands below assume that GNU ld is being used.
10159 if test "$with_gnu_ld" = yes; then
10160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10161 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'
10163 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10166 # If archive_cmds runs LD, not CC, wlarc should be empty
10167 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10168 # investigate it a little bit more. (MM)
10169 wlarc='${wl}'
10171 # ancient GNU ld didn't support --whole-archive et. al.
10172 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10173 grep 'no-whole-archive' > /dev/null; then
10174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10175 else
10176 whole_archive_flag_spec_CXX=
10178 else
10179 with_gnu_ld=no
10180 wlarc=
10182 # A generic and very simple default shared library creation
10183 # command for GNU C++ for the case where it uses the native
10184 # linker, instead of GNU ld. If possible, this setting should
10185 # overridden to take advantage of the native linker features on
10186 # the platform it is being used on.
10187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10190 # Commands to make compiler produce verbose output that lists
10191 # what "hidden" libraries, object files and flags are used when
10192 # linking a shared library.
10193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10195 else
10196 GXX=no
10197 with_gnu_ld=no
10198 wlarc=
10201 # PORTME: fill in a description of your system's C++ link characteristics
10202 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10203 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10204 ld_shlibs_CXX=yes
10205 case $host_os in
10206 aix3*)
10207 # FIXME: insert proper C++ library support
10208 ld_shlibs_CXX=no
10210 aix4* | aix5*)
10211 if test "$host_cpu" = ia64; then
10212 # On IA64, the linker does run time linking by default, so we don't
10213 # have to do anything special.
10214 aix_use_runtimelinking=no
10215 exp_sym_flag='-Bexport'
10216 no_entry_flag=""
10217 else
10218 aix_use_runtimelinking=no
10220 # Test if we are trying to use run time linking or normal
10221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10222 # need to do runtime linking.
10223 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10224 for ld_flag in $LDFLAGS; do
10225 case $ld_flag in
10226 *-brtl*)
10227 aix_use_runtimelinking=yes
10228 break
10230 esac
10231 done
10233 esac
10235 exp_sym_flag='-bexport'
10236 no_entry_flag='-bnoentry'
10239 # When large executables or shared objects are built, AIX ld can
10240 # have problems creating the table of contents. If linking a library
10241 # or program results in "error TOC overflow" add -mminimal-toc to
10242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10245 archive_cmds_CXX=''
10246 hardcode_direct_CXX=yes
10247 hardcode_libdir_separator_CXX=':'
10248 link_all_deplibs_CXX=yes
10250 if test "$GXX" = yes; then
10251 case $host_os in aix4.[012]|aix4.[012].*)
10252 # We only want to do this on AIX 4.2 and lower, the check
10253 # below for broken collect2 doesn't work under 4.3+
10254 collect2name=`${CC} -print-prog-name=collect2`
10255 if test -f "$collect2name" && \
10256 strings "$collect2name" | grep resolve_lib_name >/dev/null
10257 then
10258 # We have reworked collect2
10259 hardcode_direct_CXX=yes
10260 else
10261 # We have old collect2
10262 hardcode_direct_CXX=unsupported
10263 # It fails to find uninstalled libraries when the uninstalled
10264 # path is not listed in the libpath. Setting hardcode_minus_L
10265 # to unsupported forces relinking
10266 hardcode_minus_L_CXX=yes
10267 hardcode_libdir_flag_spec_CXX='-L$libdir'
10268 hardcode_libdir_separator_CXX=
10271 esac
10272 shared_flag='-shared'
10273 if test "$aix_use_runtimelinking" = yes; then
10274 shared_flag="$shared_flag "'${wl}-G'
10276 else
10277 # not using gcc
10278 if test "$host_cpu" = ia64; then
10279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10280 # chokes on -Wl,-G. The following line is correct:
10281 shared_flag='-G'
10282 else
10283 if test "$aix_use_runtimelinking" = yes; then
10284 shared_flag='${wl}-G'
10285 else
10286 shared_flag='${wl}-bM:SRE'
10291 # It seems that -bexpall does not export symbols beginning with
10292 # underscore (_), so it is better to generate a list of symbols to export.
10293 always_export_symbols_CXX=yes
10294 if test "$aix_use_runtimelinking" = yes; then
10295 # Warning - without using the other runtime loading flags (-brtl),
10296 # -berok will link without error, but may produce a broken library.
10297 allow_undefined_flag_CXX='-berok'
10298 # Determine the default libpath from the value encoded in an empty executable.
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10307 main ()
10311 return 0;
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_cxx_werror_flag"
10324 || test ! -s conftest.err'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10339 # Check for a 64-bit object if we didn't find anything.
10340 if 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; }
10341 }'`; fi
10342 else
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10347 rm -f conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10353 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"
10354 else
10355 if test "$host_cpu" = ia64; then
10356 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10357 allow_undefined_flag_CXX="-z nodefs"
10358 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"
10359 else
10360 # Determine the default libpath from the value encoded in an empty executable.
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10369 main ()
10373 return 0;
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378 (eval $ac_link) 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_cxx_werror_flag"
10386 || test ! -s conftest.err'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10401 # Check for a 64-bit object if we didn't find anything.
10402 if 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; }
10403 }'`; fi
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10409 rm -f conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10413 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10414 # Warning - without using the other run time loading flags,
10415 # -berok will link without error, but may produce a broken library.
10416 no_undefined_flag_CXX=' ${wl}-bernotok'
10417 allow_undefined_flag_CXX=' ${wl}-berok'
10418 # Exported symbols can be pulled into shared objects from archives
10419 whole_archive_flag_spec_CXX='$convenience'
10420 archive_cmds_need_lc_CXX=yes
10421 # This is similar to how AIX traditionally builds its shared libraries.
10422 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'
10427 beos*)
10428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10429 allow_undefined_flag_CXX=unsupported
10430 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10431 # support --undefined. This deserves some investigation. FIXME
10432 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433 else
10434 ld_shlibs_CXX=no
10438 chorus*)
10439 case $cc_basename in
10441 # FIXME: insert proper C++ library support
10442 ld_shlibs_CXX=no
10444 esac
10447 cygwin* | mingw* | pw32*)
10448 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10449 # as there is no search path for DLLs.
10450 hardcode_libdir_flag_spec_CXX='-L$libdir'
10451 allow_undefined_flag_CXX=unsupported
10452 always_export_symbols_CXX=no
10453 enable_shared_with_static_runtimes_CXX=yes
10455 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10456 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'
10457 # If the export-symbols file already is a .def file (1st line
10458 # is EXPORTS), use it as is; otherwise, prepend...
10459 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10460 cp $export_symbols $output_objdir/$soname.def;
10461 else
10462 echo EXPORTS > $output_objdir/$soname.def;
10463 cat $export_symbols >> $output_objdir/$soname.def;
10465 $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'
10466 else
10467 ld_shlibs_CXX=no
10470 darwin* | rhapsody*)
10471 case $host_os in
10472 rhapsody* | darwin1.[012])
10473 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10475 *) # Darwin 1.3 on
10476 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10477 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10478 else
10479 case ${MACOSX_DEPLOYMENT_TARGET} in
10480 10.[012])
10481 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10483 10.*)
10484 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10486 esac
10489 esac
10490 archive_cmds_need_lc_CXX=no
10491 hardcode_direct_CXX=no
10492 hardcode_automatic_CXX=yes
10493 hardcode_shlibpath_var_CXX=unsupported
10494 whole_archive_flag_spec_CXX=''
10495 link_all_deplibs_CXX=yes
10497 if test "$GXX" = yes ; then
10498 lt_int_apple_cc_single_mod=no
10499 output_verbose_link_cmd='echo'
10500 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10501 lt_int_apple_cc_single_mod=yes
10503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10504 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10505 else
10506 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'
10508 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10510 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511 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}'
10512 else
10513 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}'
10515 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}'
10516 else
10517 case $cc_basename in
10518 xlc*)
10519 output_verbose_link_cmd='echo'
10520 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'
10521 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10523 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}'
10524 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}'
10527 ld_shlibs_CXX=no
10529 esac
10533 dgux*)
10534 case $cc_basename in
10535 ec++*)
10536 # FIXME: insert proper C++ library support
10537 ld_shlibs_CXX=no
10539 ghcx*)
10540 # Green Hills C++ Compiler
10541 # FIXME: insert proper C++ library support
10542 ld_shlibs_CXX=no
10545 # FIXME: insert proper C++ library support
10546 ld_shlibs_CXX=no
10548 esac
10550 freebsd[12]*)
10551 # C++ shared libraries reported to be fairly broken before switch to ELF
10552 ld_shlibs_CXX=no
10554 freebsd-elf*)
10555 archive_cmds_need_lc_CXX=no
10557 freebsd* | kfreebsd*-gnu | dragonfly*)
10558 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10559 # conventions
10560 ld_shlibs_CXX=yes
10562 gnu*)
10564 hpux9*)
10565 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10566 hardcode_libdir_separator_CXX=:
10567 export_dynamic_flag_spec_CXX='${wl}-E'
10568 hardcode_direct_CXX=yes
10569 hardcode_minus_L_CXX=yes # Not in the search PATH,
10570 # but as the default
10571 # location of the library.
10573 case $cc_basename in
10574 CC*)
10575 # FIXME: insert proper C++ library support
10576 ld_shlibs_CXX=no
10578 aCC*)
10579 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'
10580 # Commands to make compiler produce verbose output that lists
10581 # what "hidden" libraries, object files and flags are used when
10582 # linking a shared library.
10584 # There doesn't appear to be a way to prevent this compiler from
10585 # explicitly linking system object files so we need to strip them
10586 # from the output so that they don't get included in the library
10587 # dependencies.
10588 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'
10591 if test "$GXX" = yes; then
10592 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'
10593 else
10594 # FIXME: insert proper C++ library support
10595 ld_shlibs_CXX=no
10598 esac
10600 hpux10*|hpux11*)
10601 if test $with_gnu_ld = no; then
10602 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10603 hardcode_libdir_separator_CXX=:
10605 case $host_cpu in
10606 hppa*64*|ia64*)
10607 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10610 export_dynamic_flag_spec_CXX='${wl}-E'
10612 esac
10614 case $host_cpu in
10615 hppa*64*|ia64*)
10616 hardcode_direct_CXX=no
10617 hardcode_shlibpath_var_CXX=no
10620 hardcode_direct_CXX=yes
10621 hardcode_minus_L_CXX=yes # Not in the search PATH,
10622 # but as the default
10623 # location of the library.
10625 esac
10627 case $cc_basename in
10628 CC*)
10629 # FIXME: insert proper C++ library support
10630 ld_shlibs_CXX=no
10632 aCC*)
10633 case $host_cpu in
10634 hppa*64*)
10635 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10637 ia64*)
10638 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10643 esac
10644 # Commands to make compiler produce verbose output that lists
10645 # what "hidden" libraries, object files and flags are used when
10646 # linking a shared library.
10648 # There doesn't appear to be a way to prevent this compiler from
10649 # explicitly linking system object files so we need to strip them
10650 # from the output so that they don't get included in the library
10651 # dependencies.
10652 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'
10655 if test "$GXX" = yes; then
10656 if test $with_gnu_ld = no; then
10657 case $host_cpu in
10658 hppa*64*)
10659 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10661 ia64*)
10662 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10665 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'
10667 esac
10669 else
10670 # FIXME: insert proper C++ library support
10671 ld_shlibs_CXX=no
10674 esac
10676 interix3*)
10677 hardcode_direct_CXX=no
10678 hardcode_shlibpath_var_CXX=no
10679 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10680 export_dynamic_flag_spec_CXX='${wl}-E'
10681 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10682 # Instead, shared libraries are loaded at an image base (0x10000000 by
10683 # default) and relocated if they conflict, which is a slow very memory
10684 # consuming and fragmenting process. To avoid this, we pick a random,
10685 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10686 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10687 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'
10688 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'
10690 irix5* | irix6*)
10691 case $cc_basename in
10692 CC*)
10693 # SGI C++
10694 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'
10696 # Archives containing C++ object files must be created using
10697 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10698 # necessary to make sure instantiated templates are included
10699 # in the archive.
10700 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10703 if test "$GXX" = yes; then
10704 if test "$with_gnu_ld" = no; then
10705 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'
10706 else
10707 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'
10710 link_all_deplibs_CXX=yes
10712 esac
10713 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10714 hardcode_libdir_separator_CXX=:
10716 linux*)
10717 case $cc_basename in
10718 KCC*)
10719 # Kuck and Associates, Inc. (KAI) C++ Compiler
10721 # KCC will only create a shared library if the output file
10722 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10723 # to its proper name (with version) after linking.
10724 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'
10725 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'
10726 # Commands to make compiler produce verbose output that lists
10727 # what "hidden" libraries, object files and flags are used when
10728 # linking a shared library.
10730 # There doesn't appear to be a way to prevent this compiler from
10731 # explicitly linking system object files so we need to strip them
10732 # from the output so that they don't get included in the library
10733 # dependencies.
10734 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'
10736 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10739 # Archives containing C++ object files must be created using
10740 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10741 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10743 icpc*)
10744 # Intel C++
10745 with_gnu_ld=yes
10746 # version 8.0 and above of icpc choke on multiply defined symbols
10747 # if we add $predep_objects and $postdep_objects, however 7.1 and
10748 # earlier do not add the objects themselves.
10749 case `$CC -V 2>&1` in
10750 *"Version 7."*)
10751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752 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'
10754 *) # Version 8.0 or newer
10755 tmp_idyn=
10756 case $host_cpu in
10757 ia64*) tmp_idyn=' -i_dynamic';;
10758 esac
10759 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10760 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'
10762 esac
10763 archive_cmds_need_lc_CXX=no
10764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10766 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10768 pgCC*)
10769 # Portland Group C++ compiler
10770 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10771 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'
10773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10775 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'
10777 cxx*)
10778 # Compaq C++
10779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780 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'
10782 runpath_var=LD_RUN_PATH
10783 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10784 hardcode_libdir_separator_CXX=:
10786 # Commands to make compiler produce verbose output that lists
10787 # what "hidden" libraries, object files and flags are used when
10788 # linking a shared library.
10790 # There doesn't appear to be a way to prevent this compiler from
10791 # explicitly linking system object files so we need to strip them
10792 # from the output so that they don't get included in the library
10793 # dependencies.
10794 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'
10796 esac
10798 lynxos*)
10799 # FIXME: insert proper C++ library support
10800 ld_shlibs_CXX=no
10802 m88k*)
10803 # FIXME: insert proper C++ library support
10804 ld_shlibs_CXX=no
10806 mvs*)
10807 case $cc_basename in
10808 cxx*)
10809 # FIXME: insert proper C++ library support
10810 ld_shlibs_CXX=no
10813 # FIXME: insert proper C++ library support
10814 ld_shlibs_CXX=no
10816 esac
10818 netbsd*)
10819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10820 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10821 wlarc=
10822 hardcode_libdir_flag_spec_CXX='-R$libdir'
10823 hardcode_direct_CXX=yes
10824 hardcode_shlibpath_var_CXX=no
10826 # Workaround some broken pre-1.5 toolchains
10827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10829 openbsd2*)
10830 # C++ shared libraries are fairly broken
10831 ld_shlibs_CXX=no
10833 openbsd*)
10834 hardcode_direct_CXX=yes
10835 hardcode_shlibpath_var_CXX=no
10836 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10837 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10839 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10840 export_dynamic_flag_spec_CXX='${wl}-E'
10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10843 output_verbose_link_cmd='echo'
10845 osf3*)
10846 case $cc_basename in
10847 KCC*)
10848 # Kuck and Associates, Inc. (KAI) C++ Compiler
10850 # KCC will only create a shared library if the output file
10851 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10852 # to its proper name (with version) after linking.
10853 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'
10855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10856 hardcode_libdir_separator_CXX=:
10858 # Archives containing C++ object files must be created using
10859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10863 RCC*)
10864 # Rational C++ 2.4.1
10865 # FIXME: insert proper C++ library support
10866 ld_shlibs_CXX=no
10868 cxx*)
10869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10870 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'
10872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10873 hardcode_libdir_separator_CXX=:
10875 # Commands to make compiler produce verbose output that lists
10876 # what "hidden" libraries, object files and flags are used when
10877 # linking a shared library.
10879 # There doesn't appear to be a way to prevent this compiler from
10880 # explicitly linking system object files so we need to strip them
10881 # from the output so that they don't get included in the library
10882 # dependencies.
10883 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'
10886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10888 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'
10890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10891 hardcode_libdir_separator_CXX=:
10893 # Commands to make compiler produce verbose output that lists
10894 # what "hidden" libraries, object files and flags are used when
10895 # linking a shared library.
10896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10898 else
10899 # FIXME: insert proper C++ library support
10900 ld_shlibs_CXX=no
10903 esac
10905 osf4* | osf5*)
10906 case $cc_basename in
10907 KCC*)
10908 # Kuck and Associates, Inc. (KAI) C++ Compiler
10910 # KCC will only create a shared library if the output file
10911 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10912 # to its proper name (with version) after linking.
10913 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'
10915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10916 hardcode_libdir_separator_CXX=:
10918 # Archives containing C++ object files must be created using
10919 # the KAI C++ compiler.
10920 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10922 RCC*)
10923 # Rational C++ 2.4.1
10924 # FIXME: insert proper C++ library support
10925 ld_shlibs_CXX=no
10927 cxx*)
10928 allow_undefined_flag_CXX=' -expect_unresolved \*'
10929 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'
10930 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10931 echo "-hidden">> $lib.exp~
10932 $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~
10933 $rm $lib.exp'
10935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10936 hardcode_libdir_separator_CXX=:
10938 # Commands to make compiler produce verbose output that lists
10939 # what "hidden" libraries, object files and flags are used when
10940 # linking a shared library.
10942 # There doesn't appear to be a way to prevent this compiler from
10943 # explicitly linking system object files so we need to strip them
10944 # from the output so that they don't get included in the library
10945 # dependencies.
10946 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'
10949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10951 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'
10953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10954 hardcode_libdir_separator_CXX=:
10956 # Commands to make compiler produce verbose output that lists
10957 # what "hidden" libraries, object files and flags are used when
10958 # linking a shared library.
10959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10961 else
10962 # FIXME: insert proper C++ library support
10963 ld_shlibs_CXX=no
10966 esac
10968 psos*)
10969 # FIXME: insert proper C++ library support
10970 ld_shlibs_CXX=no
10972 sunos4*)
10973 case $cc_basename in
10974 CC*)
10975 # Sun C++ 4.x
10976 # FIXME: insert proper C++ library support
10977 ld_shlibs_CXX=no
10979 lcc*)
10980 # Lucid
10981 # FIXME: insert proper C++ library support
10982 ld_shlibs_CXX=no
10985 # FIXME: insert proper C++ library support
10986 ld_shlibs_CXX=no
10988 esac
10990 solaris*)
10991 case $cc_basename in
10992 CC*)
10993 # Sun C++ 4.2, 5.x and Centerline C++
10994 archive_cmds_need_lc_CXX=yes
10995 no_undefined_flag_CXX=' -zdefs'
10996 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10997 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10998 $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'
11000 hardcode_libdir_flag_spec_CXX='-R$libdir'
11001 hardcode_shlibpath_var_CXX=no
11002 case $host_os in
11003 solaris2.[0-5] | solaris2.[0-5].*) ;;
11005 # The C++ compiler is used as linker so we must use $wl
11006 # flag to pass the commands to the underlying system
11007 # linker. We must also pass each convience library through
11008 # to the system linker between allextract/defaultextract.
11009 # The C++ compiler will combine linker options so we
11010 # cannot just pass the convience library names through
11011 # without $wl.
11012 # Supported since Solaris 2.6 (maybe 2.5.1?)
11013 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'
11015 esac
11016 link_all_deplibs_CXX=yes
11018 output_verbose_link_cmd='echo'
11020 # Archives containing C++ object files must be created using
11021 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11022 # necessary to make sure instantiated templates are included
11023 # in the archive.
11024 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11026 gcx*)
11027 # Green Hills C++ Compiler
11028 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11030 # The C++ compiler must be used to create the archive.
11031 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11034 # GNU C++ compiler with Solaris linker
11035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11036 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11037 if $CC --version | grep -v '^2\.7' > /dev/null; then
11038 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11039 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11040 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11042 # Commands to make compiler produce verbose output that lists
11043 # what "hidden" libraries, object files and flags are used when
11044 # linking a shared library.
11045 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11046 else
11047 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11048 # platform.
11049 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11050 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11051 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11053 # Commands to make compiler produce verbose output that lists
11054 # what "hidden" libraries, object files and flags are used when
11055 # linking a shared library.
11056 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11059 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11062 esac
11064 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11065 no_undefined_flag_CXX='${wl}-z,text'
11066 archive_cmds_need_lc_CXX=no
11067 hardcode_shlibpath_var_CXX=no
11068 runpath_var='LD_RUN_PATH'
11070 case $cc_basename in
11071 CC*)
11072 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11073 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11077 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11079 esac
11081 sysv5* | sco3.2v5* | sco5v6*)
11082 # Note: We can NOT use -z defs as we might desire, because we do not
11083 # link with -lc, and that would cause any symbols used from libc to
11084 # always be unresolved, which means just about no library would
11085 # ever link correctly. If we're not using GNU ld we use -z text
11086 # though, which does catch some bad symbols but isn't as heavy-handed
11087 # as -z defs.
11088 # For security reasons, it is highly recommended that you always
11089 # use absolute paths for naming shared libraries, and exclude the
11090 # DT_RUNPATH tag from executables and libraries. But doing so
11091 # requires that you compile everything twice, which is a pain.
11092 # So that behaviour is only enabled if SCOABSPATH is set to a
11093 # non-empty value in the environment. Most likely only useful for
11094 # creating official distributions of packages.
11095 # This is a hack until libtool officially supports absolute path
11096 # names for shared libraries.
11097 no_undefined_flag_CXX='${wl}-z,text'
11098 allow_undefined_flag_CXX='${wl}-z,nodefs'
11099 archive_cmds_need_lc_CXX=no
11100 hardcode_shlibpath_var_CXX=no
11101 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11102 hardcode_libdir_separator_CXX=':'
11103 link_all_deplibs_CXX=yes
11104 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11105 runpath_var='LD_RUN_PATH'
11107 case $cc_basename in
11108 CC*)
11109 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11114 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11116 esac
11118 tandem*)
11119 case $cc_basename in
11120 NCC*)
11121 # NonStop-UX NCC 3.20
11122 # FIXME: insert proper C++ library support
11123 ld_shlibs_CXX=no
11126 # FIXME: insert proper C++ library support
11127 ld_shlibs_CXX=no
11129 esac
11131 vxworks*)
11132 # FIXME: insert proper C++ library support
11133 ld_shlibs_CXX=no
11136 # FIXME: insert proper C++ library support
11137 ld_shlibs_CXX=no
11139 esac
11140 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11141 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11142 test "$ld_shlibs_CXX" = no && can_build_shared=no
11144 GCC_CXX="$GXX"
11145 LD_CXX="$LD"
11148 cat > conftest.$ac_ext <<EOF
11149 class Foo
11151 public:
11152 Foo (void) { a = 0; }
11153 private:
11154 int a;
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; then
11163 # Parse the compiler output and extract the necessary
11164 # objects, libraries and library flags.
11166 # Sentinel used to keep track of whether or not we are before
11167 # the conftest object file.
11168 pre_test_object_deps_done=no
11170 # The `*' in the case matches for architectures that use `case' in
11171 # $output_verbose_cmd can trigger glob expansion during the loop
11172 # eval without this substitution.
11173 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11175 for p in `eval $output_verbose_link_cmd`; do
11176 case $p in
11178 -L* | -R* | -l*)
11179 # Some compilers place space between "-{L,R}" and the path.
11180 # Remove the space.
11181 if test $p = "-L" \
11182 || test $p = "-R"; then
11183 prev=$p
11184 continue
11185 else
11186 prev=
11189 if test "$pre_test_object_deps_done" = no; then
11190 case $p in
11191 -L* | -R*)
11192 # Internal compiler library paths should come after those
11193 # provided the user. The postdeps already come after the
11194 # user supplied libs so there is no need to process them.
11195 if test -z "$compiler_lib_search_path_CXX"; then
11196 compiler_lib_search_path_CXX="${prev}${p}"
11197 else
11198 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11201 # The "-l" case would never come before the object being
11202 # linked, so don't bother handling this case.
11203 esac
11204 else
11205 if test -z "$postdeps_CXX"; then
11206 postdeps_CXX="${prev}${p}"
11207 else
11208 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11213 *.$objext)
11214 # This assumes that the test object file only shows up
11215 # once in the compiler output.
11216 if test "$p" = "conftest.$objext"; then
11217 pre_test_object_deps_done=yes
11218 continue
11221 if test "$pre_test_object_deps_done" = no; then
11222 if test -z "$predep_objects_CXX"; then
11223 predep_objects_CXX="$p"
11224 else
11225 predep_objects_CXX="$predep_objects_CXX $p"
11227 else
11228 if test -z "$postdep_objects_CXX"; then
11229 postdep_objects_CXX="$p"
11230 else
11231 postdep_objects_CXX="$postdep_objects_CXX $p"
11236 *) ;; # Ignore the rest.
11238 esac
11239 done
11241 # Clean up.
11242 rm -f a.out a.exe
11243 else
11244 echo "libtool.m4: error: problem compiling CXX test program"
11247 $rm -f confest.$objext
11249 # PORTME: override above test on systems where it is broken
11250 case $host_os in
11251 interix3*)
11252 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11253 # hack all around it, let's just trust "g++" to DTRT.
11254 predep_objects_CXX=
11255 postdep_objects_CXX=
11256 postdeps_CXX=
11259 solaris*)
11260 case $cc_basename in
11261 CC*)
11262 # Adding this requires a known-good setup of shared libraries for
11263 # Sun compiler versions before 5.6, else PIC objects from an old
11264 # archive will be linked into the output, leading to subtle bugs.
11265 postdeps_CXX='-lCstd -lCrun'
11267 esac
11269 esac
11272 case " $postdeps_CXX " in
11273 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11274 esac
11276 lt_prog_compiler_wl_CXX=
11277 lt_prog_compiler_pic_CXX=
11278 lt_prog_compiler_static_CXX=
11280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11283 # C++ specific cases for pic, static, wl, etc.
11284 if test "$GXX" = yes; then
11285 lt_prog_compiler_wl_CXX='-Wl,'
11286 lt_prog_compiler_static_CXX='-static'
11288 case $host_os in
11289 aix*)
11290 # All AIX code is PIC.
11291 if test "$host_cpu" = ia64; then
11292 # AIX 5 now supports IA64 processor
11293 lt_prog_compiler_static_CXX='-Bstatic'
11296 amigaos*)
11297 # FIXME: we need at least 68020 code to build shared libraries, but
11298 # adding the `-m68020' flag to GCC prevents building anything better,
11299 # like `-m68040'.
11300 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11302 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11303 # PIC is the default for these OSes.
11305 mingw* | os2* | pw32*)
11306 # This hack is so that the source file can tell whether it is being
11307 # built for inclusion in a dll (and should export symbols for example).
11308 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11310 darwin* | rhapsody*)
11311 # PIC is the default on this platform
11312 # Common symbols not allowed in MH_DYLIB files
11313 lt_prog_compiler_pic_CXX='-fno-common'
11315 *djgpp*)
11316 # DJGPP does not support shared libraries at all
11317 lt_prog_compiler_pic_CXX=
11319 interix3*)
11320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11321 # Instead, we relocate shared libraries at runtime.
11323 sysv4*MP*)
11324 if test -d /usr/nec; then
11325 lt_prog_compiler_pic_CXX=-Kconform_pic
11328 hpux*)
11329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11330 # not for PA HP-UX.
11331 case $host_cpu in
11332 hppa*64*|ia64*)
11335 lt_prog_compiler_pic_CXX='-fPIC'
11337 esac
11340 lt_prog_compiler_pic_CXX='-fPIC'
11342 esac
11343 else
11344 case $host_os in
11345 aix4* | aix5*)
11346 # All AIX code is PIC.
11347 if test "$host_cpu" = ia64; then
11348 # AIX 5 now supports IA64 processor
11349 lt_prog_compiler_static_CXX='-Bstatic'
11350 else
11351 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11354 chorus*)
11355 case $cc_basename in
11356 cxch68*)
11357 # Green Hills C++ Compiler
11358 # _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"
11360 esac
11362 darwin*)
11363 # PIC is the default on this platform
11364 # Common symbols not allowed in MH_DYLIB files
11365 case $cc_basename in
11366 xlc*)
11367 lt_prog_compiler_pic_CXX='-qnocommon'
11368 lt_prog_compiler_wl_CXX='-Wl,'
11370 esac
11372 dgux*)
11373 case $cc_basename in
11374 ec++*)
11375 lt_prog_compiler_pic_CXX='-KPIC'
11377 ghcx*)
11378 # Green Hills C++ Compiler
11379 lt_prog_compiler_pic_CXX='-pic'
11383 esac
11385 freebsd* | kfreebsd*-gnu | dragonfly*)
11386 # FreeBSD uses GNU C++
11388 hpux9* | hpux10* | hpux11*)
11389 case $cc_basename in
11390 CC*)
11391 lt_prog_compiler_wl_CXX='-Wl,'
11392 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11393 if test "$host_cpu" != ia64; then
11394 lt_prog_compiler_pic_CXX='+Z'
11397 aCC*)
11398 lt_prog_compiler_wl_CXX='-Wl,'
11399 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11400 case $host_cpu in
11401 hppa*64*|ia64*)
11402 # +Z the default
11405 lt_prog_compiler_pic_CXX='+Z'
11407 esac
11411 esac
11413 interix*)
11414 # This is c89, which is MS Visual C++ (no shared libs)
11415 # Anyone wants to do a port?
11417 irix5* | irix6* | nonstopux*)
11418 case $cc_basename in
11419 CC*)
11420 lt_prog_compiler_wl_CXX='-Wl,'
11421 lt_prog_compiler_static_CXX='-non_shared'
11422 # CC pic flag -KPIC is the default.
11426 esac
11428 linux*)
11429 case $cc_basename in
11430 KCC*)
11431 # KAI C++ Compiler
11432 lt_prog_compiler_wl_CXX='--backend -Wl,'
11433 lt_prog_compiler_pic_CXX='-fPIC'
11435 icpc* | ecpc*)
11436 # Intel C++
11437 lt_prog_compiler_wl_CXX='-Wl,'
11438 lt_prog_compiler_pic_CXX='-KPIC'
11439 lt_prog_compiler_static_CXX='-static'
11441 pgCC*)
11442 # Portland Group C++ compiler.
11443 lt_prog_compiler_wl_CXX='-Wl,'
11444 lt_prog_compiler_pic_CXX='-fpic'
11445 lt_prog_compiler_static_CXX='-Bstatic'
11447 cxx*)
11448 # Compaq C++
11449 # Make sure the PIC flag is empty. It appears that all Alpha
11450 # Linux and Compaq Tru64 Unix objects are PIC.
11451 lt_prog_compiler_pic_CXX=
11452 lt_prog_compiler_static_CXX='-non_shared'
11456 esac
11458 lynxos*)
11460 m88k*)
11462 mvs*)
11463 case $cc_basename in
11464 cxx*)
11465 lt_prog_compiler_pic_CXX='-W c,exportall'
11469 esac
11471 netbsd*)
11473 osf3* | osf4* | osf5*)
11474 case $cc_basename in
11475 KCC*)
11476 lt_prog_compiler_wl_CXX='--backend -Wl,'
11478 RCC*)
11479 # Rational C++ 2.4.1
11480 lt_prog_compiler_pic_CXX='-pic'
11482 cxx*)
11483 # Digital/Compaq C++
11484 lt_prog_compiler_wl_CXX='-Wl,'
11485 # Make sure the PIC flag is empty. It appears that all Alpha
11486 # Linux and Compaq Tru64 Unix objects are PIC.
11487 lt_prog_compiler_pic_CXX=
11488 lt_prog_compiler_static_CXX='-non_shared'
11492 esac
11494 psos*)
11496 solaris*)
11497 case $cc_basename in
11498 CC*)
11499 # Sun C++ 4.2, 5.x and Centerline C++
11500 lt_prog_compiler_pic_CXX='-KPIC'
11501 lt_prog_compiler_static_CXX='-Bstatic'
11502 lt_prog_compiler_wl_CXX='-Qoption ld '
11504 gcx*)
11505 # Green Hills C++ Compiler
11506 lt_prog_compiler_pic_CXX='-PIC'
11510 esac
11512 sunos4*)
11513 case $cc_basename in
11514 CC*)
11515 # Sun C++ 4.x
11516 lt_prog_compiler_pic_CXX='-pic'
11517 lt_prog_compiler_static_CXX='-Bstatic'
11519 lcc*)
11520 # Lucid
11521 lt_prog_compiler_pic_CXX='-pic'
11525 esac
11527 tandem*)
11528 case $cc_basename in
11529 NCC*)
11530 # NonStop-UX NCC 3.20
11531 lt_prog_compiler_pic_CXX='-KPIC'
11535 esac
11537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11538 case $cc_basename in
11539 CC*)
11540 lt_prog_compiler_wl_CXX='-Wl,'
11541 lt_prog_compiler_pic_CXX='-KPIC'
11542 lt_prog_compiler_static_CXX='-Bstatic'
11544 esac
11546 vxworks*)
11549 lt_prog_compiler_can_build_shared_CXX=no
11551 esac
11554 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11555 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11558 # Check to make sure the PIC flag actually works.
11560 if test -n "$lt_prog_compiler_pic_CXX"; then
11562 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11563 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11564 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 lt_prog_compiler_pic_works_CXX=no
11568 ac_outfile=conftest.$ac_objext
11569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11570 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11571 # Insert the option either (1) after the last *FLAGS variable, or
11572 # (2) before a word containing "conftest.", or (3) at the end.
11573 # Note that $ac_compile itself does not contain backslashes and begins
11574 # with a dollar sign (not a hyphen), so the echo should work correctly.
11575 # The option is referenced via a variable to avoid confusing sed.
11576 lt_compile=`echo "$ac_compile" | $SED \
11577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11579 -e 's:$: $lt_compiler_flag:'`
11580 (eval echo "\"\$as_me:11580: $lt_compile\"" >&5)
11581 (eval "$lt_compile" 2>conftest.err)
11582 ac_status=$?
11583 cat conftest.err >&5
11584 echo "$as_me:11584: \$? = $ac_status" >&5
11585 if (exit $ac_status) && test -s "$ac_outfile"; then
11586 # The compiler can only warn and ignore the option if not recognized
11587 # So say no if there are warnings other than the usual output.
11588 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11591 lt_prog_compiler_pic_works_CXX=yes
11594 $rm conftest*
11597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11598 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11600 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11601 case $lt_prog_compiler_pic_CXX in
11602 "" | " "*) ;;
11603 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11604 esac
11605 else
11606 lt_prog_compiler_pic_CXX=
11607 lt_prog_compiler_can_build_shared_CXX=no
11611 case $host_os in
11612 # For platforms which do not support PIC, -DPIC is meaningless:
11613 *djgpp*)
11614 lt_prog_compiler_pic_CXX=
11617 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11619 esac
11622 # Check to make sure the static flag actually works.
11624 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11625 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11626 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11627 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630 lt_prog_compiler_static_works_CXX=no
11631 save_LDFLAGS="$LDFLAGS"
11632 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11633 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11635 # The linker can only warn and ignore the option if not recognized
11636 # So say no if there are warnings
11637 if test -s conftest.err; then
11638 # Append any errors to the config.log.
11639 cat conftest.err 1>&5
11640 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11642 if diff conftest.exp conftest.er2 >/dev/null; then
11643 lt_prog_compiler_static_works_CXX=yes
11645 else
11646 lt_prog_compiler_static_works_CXX=yes
11649 $rm conftest*
11650 LDFLAGS="$save_LDFLAGS"
11653 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11654 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11656 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11658 else
11659 lt_prog_compiler_static_CXX=
11663 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11664 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11665 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 lt_cv_prog_compiler_c_o_CXX=no
11669 $rm -r conftest 2>/dev/null
11670 mkdir conftest
11671 cd conftest
11672 mkdir out
11673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11675 lt_compiler_flag="-o out/conftest2.$ac_objext"
11676 # Insert the option either (1) after the last *FLAGS variable, or
11677 # (2) before a word containing "conftest.", or (3) at the end.
11678 # Note that $ac_compile itself does not contain backslashes and begins
11679 # with a dollar sign (not a hyphen), so the echo should work correctly.
11680 lt_compile=`echo "$ac_compile" | $SED \
11681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11683 -e 's:$: $lt_compiler_flag:'`
11684 (eval echo "\"\$as_me:11684: $lt_compile\"" >&5)
11685 (eval "$lt_compile" 2>out/conftest.err)
11686 ac_status=$?
11687 cat out/conftest.err >&5
11688 echo "$as_me:11688: \$? = $ac_status" >&5
11689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11690 then
11691 # The compiler can only warn and ignore the option if not recognized
11692 # So say no if there are warnings
11693 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11696 lt_cv_prog_compiler_c_o_CXX=yes
11699 chmod u+w . 2>&5
11700 $rm conftest*
11701 # SGI C++ compiler will create directory out/ii_files/ for
11702 # template instantiation
11703 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11704 $rm out/* && rmdir out
11705 cd ..
11706 rmdir conftest
11707 $rm conftest*
11710 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11711 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11714 hard_links="nottested"
11715 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11716 # do not overwrite the value of need_locks provided by the user
11717 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11718 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11719 hard_links=yes
11720 $rm conftest*
11721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11722 touch conftest.a
11723 ln conftest.a conftest.b 2>&5 || hard_links=no
11724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11725 echo "$as_me:$LINENO: result: $hard_links" >&5
11726 echo "${ECHO_T}$hard_links" >&6
11727 if test "$hard_links" = no; then
11728 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11729 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11730 need_locks=warn
11732 else
11733 need_locks=no
11736 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11737 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11739 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11740 case $host_os in
11741 aix4* | aix5*)
11742 # If we're using GNU nm, then we don't want the "-C" option.
11743 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11744 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11745 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'
11746 else
11747 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'
11750 pw32*)
11751 export_symbols_cmds_CXX="$ltdll_cmds"
11753 cygwin* | mingw*)
11754 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'
11757 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11759 esac
11761 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11762 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11763 test "$ld_shlibs_CXX" = no && can_build_shared=no
11766 # Do we need to explicitly link libc?
11768 case "x$archive_cmds_need_lc_CXX" in
11769 x|xyes)
11770 # Assume -lc should be added
11771 archive_cmds_need_lc_CXX=yes
11773 if test "$enable_shared" = yes && test "$GCC" = yes; then
11774 case $archive_cmds_CXX in
11775 *'~'*)
11776 # FIXME: we may have to deal with multi-command sequences.
11778 '$CC '*)
11779 # Test whether the compiler implicitly links with -lc since on some
11780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11781 # to ld, don't add -lc before -lgcc.
11782 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11783 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11784 $rm conftest*
11785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } 2>conftest.err; then
11792 soname=conftest
11793 lib=conftest
11794 libobjs=conftest.$ac_objext
11795 deplibs=
11796 wl=$lt_prog_compiler_wl_CXX
11797 pic_flag=$lt_prog_compiler_pic_CXX
11798 compiler_flags=-v
11799 linker_flags=-v
11800 verstring=
11801 output_objdir=.
11802 libname=conftest
11803 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11804 allow_undefined_flag_CXX=
11805 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11806 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }
11810 then
11811 archive_cmds_need_lc_CXX=no
11812 else
11813 archive_cmds_need_lc_CXX=yes
11815 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11816 else
11817 cat conftest.err 1>&5
11819 $rm conftest*
11820 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11821 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11823 esac
11826 esac
11828 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11830 library_names_spec=
11831 libname_spec='lib$name'
11832 soname_spec=
11833 shrext_cmds=".so"
11834 postinstall_cmds=
11835 postuninstall_cmds=
11836 finish_cmds=
11837 finish_eval=
11838 shlibpath_var=
11839 shlibpath_overrides_runpath=unknown
11840 version_type=none
11841 dynamic_linker="$host_os ld.so"
11842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11843 if test "$GCC" = yes; then
11844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11845 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11846 # if the path contains ";" then we assume it to be the separator
11847 # otherwise default to the standard path separator (i.e. ":") - it is
11848 # assumed that no part of a normal pathname contains ";" but that should
11849 # okay in the real world where ";" in dirpaths is itself problematic.
11850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11851 else
11852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11854 else
11855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11857 need_lib_prefix=unknown
11858 hardcode_into_libs=no
11860 # when you set need_version to no, make sure it does not cause -set_version
11861 # flags to be left without arguments
11862 need_version=unknown
11864 case $host_os in
11865 aix3*)
11866 version_type=linux
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11868 shlibpath_var=LIBPATH
11870 # AIX 3 has no versioning support, so we append a major version to the name.
11871 soname_spec='${libname}${release}${shared_ext}$major'
11874 aix4* | aix5*)
11875 version_type=linux
11876 need_lib_prefix=no
11877 need_version=no
11878 hardcode_into_libs=yes
11879 if test "$host_cpu" = ia64; then
11880 # AIX 5 supports IA64
11881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 else
11884 # With GCC up to 2.95.x, collect2 would create an import file
11885 # for dependence libraries. The import file would start with
11886 # the line `#! .'. This would cause the generated library to
11887 # depend on `.', always an invalid library. This was fixed in
11888 # development snapshots of GCC prior to 3.0.
11889 case $host_os in
11890 aix4 | aix4.[01] | aix4.[01].*)
11891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11892 echo ' yes '
11893 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11895 else
11896 can_build_shared=no
11899 esac
11900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11901 # soname into executable. Probably we can add versioning support to
11902 # collect2, so additional links can be useful in future.
11903 if test "$aix_use_runtimelinking" = yes; then
11904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11905 # instead of lib<name>.a to let people know that these are not
11906 # typical AIX shared libraries.
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 else
11909 # We preserve .a as extension for shared libraries through AIX4.2
11910 # and later when we are not doing run time linking.
11911 library_names_spec='${libname}${release}.a $libname.a'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11914 shlibpath_var=LIBPATH
11918 amigaos*)
11919 library_names_spec='$libname.ixlibrary $libname.a'
11920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11921 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'
11924 beos*)
11925 library_names_spec='${libname}${shared_ext}'
11926 dynamic_linker="$host_os ld.so"
11927 shlibpath_var=LIBRARY_PATH
11930 bsdi[45]*)
11931 version_type=linux
11932 need_version=no
11933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11934 soname_spec='${libname}${release}${shared_ext}$major'
11935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11939 # the default ld.so.conf also contains /usr/contrib/lib and
11940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11941 # libtool to hard-code these into programs
11944 cygwin* | mingw* | pw32*)
11945 version_type=windows
11946 shrext_cmds=".dll"
11947 need_version=no
11948 need_lib_prefix=no
11950 case $GCC,$host_os in
11951 yes,cygwin* | yes,mingw* | yes,pw32*)
11952 library_names_spec='$libname.dll.a'
11953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11954 postinstall_cmds='base_file=`basename \${file}`~
11955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11956 dldir=$destdir/`dirname \$dlpath`~
11957 test -d \$dldir || mkdir -p \$dldir~
11958 $install_prog $dir/$dlname \$dldir/$dlname~
11959 chmod a+x \$dldir/$dlname'
11960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11961 dlpath=$dir/\$dldll~
11962 $rm \$dlpath'
11963 shlibpath_overrides_runpath=yes
11965 case $host_os in
11966 cygwin*)
11967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11971 mingw*)
11972 # MinGW DLLs use traditional 'lib' prefix
11973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11975 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11976 # It is most probably a Windows format PATH printed by
11977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11978 # path with ; separators, and with drive letters. We can handle the
11979 # drive letters (cygwin fileutils understands them), so leave them,
11980 # especially as we might pass files found there to a mingw objdump,
11981 # which wouldn't understand a cygwinified path. Ahh.
11982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11983 else
11984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11987 pw32*)
11988 # pw32 DLLs use 'pw' prefix rather than 'lib'
11989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11991 esac
11995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11997 esac
11998 dynamic_linker='Win32 ld.exe'
11999 # FIXME: first we should search . and the directory the executable is in
12000 shlibpath_var=PATH
12003 darwin* | rhapsody*)
12004 dynamic_linker="$host_os dyld"
12005 version_type=darwin
12006 need_lib_prefix=no
12007 need_version=no
12008 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12009 soname_spec='${libname}${release}${major}$shared_ext'
12010 shlibpath_overrides_runpath=yes
12011 shlibpath_var=DYLD_LIBRARY_PATH
12012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12013 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12014 if test "$GCC" = yes; then
12015 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"`
12016 else
12017 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12022 dgux*)
12023 version_type=linux
12024 need_lib_prefix=no
12025 need_version=no
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12031 freebsd1*)
12032 dynamic_linker=no
12035 kfreebsd*-gnu)
12036 version_type=linux
12037 need_lib_prefix=no
12038 need_version=no
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 shlibpath_overrides_runpath=no
12043 hardcode_into_libs=yes
12044 dynamic_linker='GNU ld.so'
12047 freebsd* | dragonfly*)
12048 # DragonFly does not have aout. When/if they implement a new
12049 # versioning mechanism, adjust this.
12050 if test -x /usr/bin/objformat; then
12051 objformat=`/usr/bin/objformat`
12052 else
12053 case $host_os in
12054 freebsd[123]*) objformat=aout ;;
12055 *) objformat=elf ;;
12056 esac
12058 version_type=freebsd-$objformat
12059 case $version_type in
12060 freebsd-elf*)
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12062 need_version=no
12063 need_lib_prefix=no
12065 freebsd-*)
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12067 need_version=yes
12069 esac
12070 shlibpath_var=LD_LIBRARY_PATH
12071 case $host_os in
12072 freebsd2*)
12073 shlibpath_overrides_runpath=yes
12075 freebsd3.[01]* | freebsdelf3.[01]*)
12076 shlibpath_overrides_runpath=yes
12077 hardcode_into_libs=yes
12079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12081 shlibpath_overrides_runpath=no
12082 hardcode_into_libs=yes
12084 freebsd*) # from 4.6 on
12085 shlibpath_overrides_runpath=yes
12086 hardcode_into_libs=yes
12088 esac
12091 gnu*)
12092 version_type=linux
12093 need_lib_prefix=no
12094 need_version=no
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12096 soname_spec='${libname}${release}${shared_ext}$major'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 hardcode_into_libs=yes
12101 hpux9* | hpux10* | hpux11*)
12102 # Give a soname corresponding to the major version so that dld.sl refuses to
12103 # link against other versions.
12104 version_type=sunos
12105 need_lib_prefix=no
12106 need_version=no
12107 case $host_cpu in
12108 ia64*)
12109 shrext_cmds='.so'
12110 hardcode_into_libs=yes
12111 dynamic_linker="$host_os dld.so"
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
12117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12118 else
12119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12123 hppa*64*)
12124 shrext_cmds='.sl'
12125 hardcode_into_libs=yes
12126 dynamic_linker="$host_os dld.sl"
12127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12135 shrext_cmds='.sl'
12136 dynamic_linker="$host_os dld.sl"
12137 shlibpath_var=SHLIB_PATH
12138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12142 esac
12143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12144 postinstall_cmds='chmod 555 $lib'
12147 interix3*)
12148 version_type=linux
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156 hardcode_into_libs=yes
12159 irix5* | irix6* | nonstopux*)
12160 case $host_os in
12161 nonstopux*) version_type=nonstopux ;;
12163 if test "$lt_cv_prog_gnu_ld" = yes; then
12164 version_type=linux
12165 else
12166 version_type=irix
12167 fi ;;
12168 esac
12169 need_lib_prefix=no
12170 need_version=no
12171 soname_spec='${libname}${release}${shared_ext}$major'
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12173 case $host_os in
12174 irix5* | nonstopux*)
12175 libsuff= shlibsuff=
12178 case $LD in # libtool.m4 will add one of these switches to LD
12179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12180 libsuff= shlibsuff= libmagic=32-bit;;
12181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12182 libsuff=32 shlibsuff=N32 libmagic=N32;;
12183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12185 *) libsuff= shlibsuff= libmagic=never-match;;
12186 esac
12188 esac
12189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12190 shlibpath_overrides_runpath=no
12191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12193 hardcode_into_libs=yes
12196 # No shared lib support for Linux oldld, aout, or coff.
12197 linux*oldld* | linux*aout* | linux*coff*)
12198 dynamic_linker=no
12201 # This must be Linux ELF.
12202 linux*)
12203 version_type=linux
12204 need_lib_prefix=no
12205 need_version=no
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207 soname_spec='${libname}${release}${shared_ext}$major'
12208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12209 shlibpath_var=LD_LIBRARY_PATH
12210 shlibpath_overrides_runpath=no
12211 # This implies no fast_install, which is unacceptable.
12212 # Some rework will be needed to allow for fast_install
12213 # before this can be enabled.
12214 hardcode_into_libs=yes
12216 # find out which ABI we are using
12217 libsuff=
12218 case "$host_cpu" in
12219 x86_64*|s390x*|powerpc64*)
12220 echo '#line 12220 "configure"' > conftest.$ac_ext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222 (eval $ac_compile) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; then
12226 case `/usr/bin/file conftest.$ac_objext` in
12227 *64-bit*)
12228 libsuff=64
12229 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12231 esac
12233 rm -rf conftest*
12235 esac
12237 # Append ld.so.conf contents to the search path
12238 if test -f /etc/ld.so.conf; then
12239 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12240 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12243 # We used to test for /lib/ld.so.1 and disable shared libraries on
12244 # powerpc, because MkLinux only supported shared libraries with the
12245 # GNU dynamic linker. Since this was broken with cross compilers,
12246 # most powerpc-linux boxes support dynamic linking these days and
12247 # people can always --disable-shared, the test was removed, and we
12248 # assume the GNU/Linux dynamic linker is in use.
12249 dynamic_linker='GNU/Linux ld.so'
12252 knetbsd*-gnu)
12253 version_type=linux
12254 need_lib_prefix=no
12255 need_version=no
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=no
12260 hardcode_into_libs=yes
12261 dynamic_linker='GNU ld.so'
12264 netbsd*)
12265 version_type=sunos
12266 need_lib_prefix=no
12267 need_version=no
12268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12271 dynamic_linker='NetBSD (a.out) ld.so'
12272 else
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12274 soname_spec='${libname}${release}${shared_ext}$major'
12275 dynamic_linker='NetBSD ld.elf_so'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=yes
12279 hardcode_into_libs=yes
12282 newsos6)
12283 version_type=linux
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12285 shlibpath_var=LD_LIBRARY_PATH
12286 shlibpath_overrides_runpath=yes
12289 nto-qnx*)
12290 version_type=linux
12291 need_lib_prefix=no
12292 need_version=no
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12299 openbsd*)
12300 version_type=sunos
12301 sys_lib_dlsearch_path_spec="/usr/lib"
12302 need_lib_prefix=no
12303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12304 case $host_os in
12305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12306 *) need_version=no ;;
12307 esac
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12312 case $host_os in
12313 openbsd2.[89] | openbsd2.[89].*)
12314 shlibpath_overrides_runpath=no
12317 shlibpath_overrides_runpath=yes
12319 esac
12320 else
12321 shlibpath_overrides_runpath=yes
12325 os2*)
12326 libname_spec='$name'
12327 shrext_cmds=".dll"
12328 need_lib_prefix=no
12329 library_names_spec='$libname${shared_ext} $libname.a'
12330 dynamic_linker='OS/2 ld.exe'
12331 shlibpath_var=LIBPATH
12334 osf3* | osf4* | osf5*)
12335 version_type=osf
12336 need_lib_prefix=no
12337 need_version=no
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12345 solaris*)
12346 version_type=linux
12347 need_lib_prefix=no
12348 need_version=no
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 shlibpath_overrides_runpath=yes
12353 hardcode_into_libs=yes
12354 # ldd complains unless libraries are executable
12355 postinstall_cmds='chmod +x $lib'
12358 sunos4*)
12359 version_type=sunos
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=yes
12364 if test "$with_gnu_ld" = yes; then
12365 need_lib_prefix=no
12367 need_version=yes
12370 sysv4 | sysv4.3*)
12371 version_type=linux
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373 soname_spec='${libname}${release}${shared_ext}$major'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 case $host_vendor in
12376 sni)
12377 shlibpath_overrides_runpath=no
12378 need_lib_prefix=no
12379 export_dynamic_flag_spec='${wl}-Blargedynsym'
12380 runpath_var=LD_RUN_PATH
12382 siemens)
12383 need_lib_prefix=no
12385 motorola)
12386 need_lib_prefix=no
12387 need_version=no
12388 shlibpath_overrides_runpath=no
12389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12391 esac
12394 sysv4*MP*)
12395 if test -d /usr/nec ;then
12396 version_type=linux
12397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12398 soname_spec='$libname${shared_ext}.$major'
12399 shlibpath_var=LD_LIBRARY_PATH
12403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12404 version_type=freebsd-elf
12405 need_lib_prefix=no
12406 need_version=no
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12408 soname_spec='${libname}${release}${shared_ext}$major'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 hardcode_into_libs=yes
12411 if test "$with_gnu_ld" = yes; then
12412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12413 shlibpath_overrides_runpath=no
12414 else
12415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12416 shlibpath_overrides_runpath=yes
12417 case $host_os in
12418 sco3.2v5*)
12419 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12421 esac
12423 sys_lib_dlsearch_path_spec='/usr/lib'
12426 uts4*)
12427 version_type=linux
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429 soname_spec='${libname}${release}${shared_ext}$major'
12430 shlibpath_var=LD_LIBRARY_PATH
12434 dynamic_linker=no
12436 esac
12437 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12438 echo "${ECHO_T}$dynamic_linker" >&6
12439 test "$dynamic_linker" = no && can_build_shared=no
12441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12442 if test "$GCC" = yes; then
12443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12446 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12448 hardcode_action_CXX=
12449 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12450 test -n "$runpath_var_CXX" || \
12451 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12453 # We can hardcode non-existant directories.
12454 if test "$hardcode_direct_CXX" != no &&
12455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12456 # have to relink, otherwise we might link with an installed library
12457 # when we should be linking with a yet-to-be-installed one
12458 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12459 test "$hardcode_minus_L_CXX" != no; then
12460 # Linking always hardcodes the temporary library directory.
12461 hardcode_action_CXX=relink
12462 else
12463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12464 hardcode_action_CXX=immediate
12466 else
12467 # We cannot hardcode anything, or else we can only hardcode existing
12468 # directories.
12469 hardcode_action_CXX=unsupported
12471 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12472 echo "${ECHO_T}$hardcode_action_CXX" >&6
12474 if test "$hardcode_action_CXX" = relink; then
12475 # Fast installation is not supported
12476 enable_fast_install=no
12477 elif test "$shlibpath_overrides_runpath" = yes ||
12478 test "$enable_shared" = no; then
12479 # Fast installation is not necessary
12480 enable_fast_install=needless
12484 # The else clause should only fire when bootstrapping the
12485 # libtool distribution, otherwise you forgot to ship ltmain.sh
12486 # with your package, and you will get complaints that there are
12487 # no rules to generate ltmain.sh.
12488 if test -f "$ltmain"; then
12489 # See if we are running on zsh, and set the options which allow our commands through
12490 # without removal of \ escapes.
12491 if test -n "${ZSH_VERSION+set}" ; then
12492 setopt NO_GLOB_SUBST
12494 # Now quote all the things that may contain metacharacters while being
12495 # careful not to overquote the AC_SUBSTed values. We take copies of the
12496 # variables and quote the copies for generation of the libtool script.
12497 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12498 SED SHELL STRIP \
12499 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12500 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12501 deplibs_check_method reload_flag reload_cmds need_locks \
12502 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12503 lt_cv_sys_global_symbol_to_c_name_address \
12504 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12505 old_postinstall_cmds old_postuninstall_cmds \
12506 compiler_CXX \
12507 CC_CXX \
12508 LD_CXX \
12509 lt_prog_compiler_wl_CXX \
12510 lt_prog_compiler_pic_CXX \
12511 lt_prog_compiler_static_CXX \
12512 lt_prog_compiler_no_builtin_flag_CXX \
12513 export_dynamic_flag_spec_CXX \
12514 thread_safe_flag_spec_CXX \
12515 whole_archive_flag_spec_CXX \
12516 enable_shared_with_static_runtimes_CXX \
12517 old_archive_cmds_CXX \
12518 old_archive_from_new_cmds_CXX \
12519 predep_objects_CXX \
12520 postdep_objects_CXX \
12521 predeps_CXX \
12522 postdeps_CXX \
12523 compiler_lib_search_path_CXX \
12524 archive_cmds_CXX \
12525 archive_expsym_cmds_CXX \
12526 postinstall_cmds_CXX \
12527 postuninstall_cmds_CXX \
12528 old_archive_from_expsyms_cmds_CXX \
12529 allow_undefined_flag_CXX \
12530 no_undefined_flag_CXX \
12531 export_symbols_cmds_CXX \
12532 hardcode_libdir_flag_spec_CXX \
12533 hardcode_libdir_flag_spec_ld_CXX \
12534 hardcode_libdir_separator_CXX \
12535 hardcode_automatic_CXX \
12536 module_cmds_CXX \
12537 module_expsym_cmds_CXX \
12538 lt_cv_prog_compiler_c_o_CXX \
12539 exclude_expsyms_CXX \
12540 include_expsyms_CXX; do
12542 case $var in
12543 old_archive_cmds_CXX | \
12544 old_archive_from_new_cmds_CXX | \
12545 archive_cmds_CXX | \
12546 archive_expsym_cmds_CXX | \
12547 module_cmds_CXX | \
12548 module_expsym_cmds_CXX | \
12549 old_archive_from_expsyms_cmds_CXX | \
12550 export_symbols_cmds_CXX | \
12551 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12552 postinstall_cmds | postuninstall_cmds | \
12553 old_postinstall_cmds | old_postuninstall_cmds | \
12554 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12555 # Double-quote double-evaled strings.
12556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12561 esac
12562 done
12564 case $lt_echo in
12565 *'\$0 --fallback-echo"')
12566 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12568 esac
12570 cfgfile="$ofile"
12572 cat <<__EOF__ >> "$cfgfile"
12573 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12577 # Shell to use when invoking shell scripts.
12578 SHELL=$lt_SHELL
12580 # Whether or not to build shared libraries.
12581 build_libtool_libs=$enable_shared
12583 # Whether or not to build static libraries.
12584 build_old_libs=$enable_static
12586 # Whether or not to add -lc for building shared libraries.
12587 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12589 # Whether or not to disallow shared libs when runtime libs are static
12590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12592 # Whether or not to optimize for fast installation.
12593 fast_install=$enable_fast_install
12595 # The host system.
12596 host_alias=$host_alias
12597 host=$host
12598 host_os=$host_os
12600 # The build system.
12601 build_alias=$build_alias
12602 build=$build
12603 build_os=$build_os
12605 # An echo program that does not interpret backslashes.
12606 echo=$lt_echo
12608 # The archiver.
12609 AR=$lt_AR
12610 AR_FLAGS=$lt_AR_FLAGS
12612 # A C compiler.
12613 LTCC=$lt_LTCC
12615 # LTCC compiler flags.
12616 LTCFLAGS=$lt_LTCFLAGS
12618 # A language-specific compiler.
12619 CC=$lt_compiler_CXX
12621 # Is the compiler the GNU C compiler?
12622 with_gcc=$GCC_CXX
12624 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12625 gcc_ver=\`gcc -dumpversion\`
12627 # An ERE matcher.
12628 EGREP=$lt_EGREP
12630 # The linker used to build libraries.
12631 LD=$lt_LD_CXX
12633 # Whether we need hard or soft links.
12634 LN_S=$lt_LN_S
12636 # A BSD-compatible nm program.
12637 NM=$lt_NM
12639 # A symbol stripping program
12640 STRIP=$lt_STRIP
12642 # Used to examine libraries when file_magic_cmd begins "file"
12643 MAGIC_CMD=$MAGIC_CMD
12645 # Used on cygwin: DLL creation program.
12646 DLLTOOL="$DLLTOOL"
12648 # Used on cygwin: object dumper.
12649 OBJDUMP="$OBJDUMP"
12651 # Used on cygwin: assembler.
12652 AS="$AS"
12654 # The name of the directory that contains temporary libtool files.
12655 objdir=$objdir
12657 # How to create reloadable object files.
12658 reload_flag=$lt_reload_flag
12659 reload_cmds=$lt_reload_cmds
12661 # How to pass a linker flag through the compiler.
12662 wl=$lt_lt_prog_compiler_wl_CXX
12664 # Object file suffix (normally "o").
12665 objext="$ac_objext"
12667 # Old archive suffix (normally "a").
12668 libext="$libext"
12670 # Shared library suffix (normally ".so").
12671 shrext_cmds='$shrext_cmds'
12673 # Executable file suffix (normally "").
12674 exeext="$exeext"
12676 # Additional compiler flags for building library objects.
12677 pic_flag=$lt_lt_prog_compiler_pic_CXX
12678 pic_mode=$pic_mode
12680 # What is the maximum length of a command?
12681 max_cmd_len=$lt_cv_sys_max_cmd_len
12683 # Does compiler simultaneously support -c and -o options?
12684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12686 # Must we lock files when doing compilation?
12687 need_locks=$lt_need_locks
12689 # Do we need the lib prefix for modules?
12690 need_lib_prefix=$need_lib_prefix
12692 # Do we need a version for libraries?
12693 need_version=$need_version
12695 # Whether dlopen is supported.
12696 dlopen_support=$enable_dlopen
12698 # Whether dlopen of programs is supported.
12699 dlopen_self=$enable_dlopen_self
12701 # Whether dlopen of statically linked programs is supported.
12702 dlopen_self_static=$enable_dlopen_self_static
12704 # Compiler flag to prevent dynamic linking.
12705 link_static_flag=$lt_lt_prog_compiler_static_CXX
12707 # Compiler flag to turn off builtin functions.
12708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12710 # Compiler flag to allow reflexive dlopens.
12711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12713 # Compiler flag to generate shared objects directly from archives.
12714 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12716 # Compiler flag to generate thread-safe objects.
12717 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12719 # Library versioning type.
12720 version_type=$version_type
12722 # Format of library name prefix.
12723 libname_spec=$lt_libname_spec
12725 # List of archive names. First name is the real one, the rest are links.
12726 # The last name is the one that the linker finds with -lNAME.
12727 library_names_spec=$lt_library_names_spec
12729 # The coded name of the library, if different from the real name.
12730 soname_spec=$lt_soname_spec
12732 # Commands used to build and install an old-style archive.
12733 RANLIB=$lt_RANLIB
12734 old_archive_cmds=$lt_old_archive_cmds_CXX
12735 old_postinstall_cmds=$lt_old_postinstall_cmds
12736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12738 # Create an old-style archive from a shared archive.
12739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12741 # Create a temporary old-style archive to link instead of a shared archive.
12742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12744 # Commands used to build and install a shared archive.
12745 archive_cmds=$lt_archive_cmds_CXX
12746 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12747 postinstall_cmds=$lt_postinstall_cmds
12748 postuninstall_cmds=$lt_postuninstall_cmds
12750 # Commands used to build a loadable module (assumed same as above if empty)
12751 module_cmds=$lt_module_cmds_CXX
12752 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12754 # Commands to strip libraries.
12755 old_striplib=$lt_old_striplib
12756 striplib=$lt_striplib
12758 # Dependencies to place before the objects being linked to create a
12759 # shared library.
12760 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12762 # Dependencies to place after the objects being linked to create a
12763 # shared library.
12764 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12766 # Dependencies to place before the objects being linked to create a
12767 # shared library.
12768 predeps=$lt_predeps_CXX
12770 # Dependencies to place after the objects being linked to create a
12771 # shared library.
12772 postdeps=$lt_postdeps_CXX
12774 # The library search path used internally by the compiler when linking
12775 # a shared library.
12776 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12778 # Method to check whether dependent libraries are shared objects.
12779 deplibs_check_method=$lt_deplibs_check_method
12781 # Command to use when deplibs_check_method == file_magic.
12782 file_magic_cmd=$lt_file_magic_cmd
12784 # Flag that allows shared libraries with undefined symbols to be built.
12785 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12787 # Flag that forces no undefined symbols.
12788 no_undefined_flag=$lt_no_undefined_flag_CXX
12790 # Commands used to finish a libtool library installation in a directory.
12791 finish_cmds=$lt_finish_cmds
12793 # Same as above, but a single script fragment to be evaled but not shown.
12794 finish_eval=$lt_finish_eval
12796 # Take the output of nm and produce a listing of raw symbols and C names.
12797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12799 # Transform the output of nm in a proper C declaration
12800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12802 # Transform the output of nm in a C name address pair
12803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12805 # This is the shared library runtime path variable.
12806 runpath_var=$runpath_var
12808 # This is the shared library path variable.
12809 shlibpath_var=$shlibpath_var
12811 # Is shlibpath searched before the hard-coded library search path?
12812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12814 # How to hardcode a shared library path into an executable.
12815 hardcode_action=$hardcode_action_CXX
12817 # Whether we should hardcode library paths into libraries.
12818 hardcode_into_libs=$hardcode_into_libs
12820 # Flag to hardcode \$libdir into a binary during linking.
12821 # This must work even if \$libdir does not exist.
12822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12824 # If ld is used when linking, flag to hardcode \$libdir into
12825 # a binary during linking. This must work even if \$libdir does
12826 # not exist.
12827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12829 # Whether we need a single -rpath flag with a separated argument.
12830 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12833 # resulting binary.
12834 hardcode_direct=$hardcode_direct_CXX
12836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12837 # resulting binary.
12838 hardcode_minus_L=$hardcode_minus_L_CXX
12840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12841 # the resulting binary.
12842 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12844 # Set to yes if building a shared library automatically hardcodes DIR into the library
12845 # and all subsequent libraries and executables linked against it.
12846 hardcode_automatic=$hardcode_automatic_CXX
12848 # Variables whose values should be saved in libtool wrapper scripts and
12849 # restored at relink time.
12850 variables_saved_for_relink="$variables_saved_for_relink"
12852 # Whether libtool must link a program against all its dependency libraries.
12853 link_all_deplibs=$link_all_deplibs_CXX
12855 # Compile-time system search path for libraries
12856 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12858 # Run-time system search path for libraries
12859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12861 # Fix the shell variable \$srcfile for the compiler.
12862 fix_srcfile_path="$fix_srcfile_path_CXX"
12864 # Set to yes if exported symbols are required.
12865 always_export_symbols=$always_export_symbols_CXX
12867 # The commands to list exported symbols.
12868 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12870 # The commands to extract the exported symbol list from a shared archive.
12871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12873 # Symbols that should not be listed in the preloaded symbols.
12874 exclude_expsyms=$lt_exclude_expsyms_CXX
12876 # Symbols that must always be exported.
12877 include_expsyms=$lt_include_expsyms_CXX
12879 # ### END LIBTOOL TAG CONFIG: $tagname
12881 __EOF__
12884 else
12885 # If there is no Makefile yet, we rely on a make rule to execute
12886 # `config.status --recheck' to rerun these tests and create the
12887 # libtool script then.
12888 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12889 if test -f "$ltmain_in"; then
12890 test -f Makefile && make "$ltmain"
12895 ac_ext=c
12896 ac_cpp='$CPP $CPPFLAGS'
12897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12901 CC=$lt_save_CC
12902 LDCXX=$LD
12903 LD=$lt_save_LD
12904 GCC=$lt_save_GCC
12905 with_gnu_ldcxx=$with_gnu_ld
12906 with_gnu_ld=$lt_save_with_gnu_ld
12907 lt_cv_path_LDCXX=$lt_cv_path_LD
12908 lt_cv_path_LD=$lt_save_path_LD
12909 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12910 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12912 else
12913 tagname=""
12917 F77)
12918 if test -n "$F77" && test "X$F77" != "Xno"; then
12920 ac_ext=f
12921 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12922 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12923 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12926 archive_cmds_need_lc_F77=no
12927 allow_undefined_flag_F77=
12928 always_export_symbols_F77=no
12929 archive_expsym_cmds_F77=
12930 export_dynamic_flag_spec_F77=
12931 hardcode_direct_F77=no
12932 hardcode_libdir_flag_spec_F77=
12933 hardcode_libdir_flag_spec_ld_F77=
12934 hardcode_libdir_separator_F77=
12935 hardcode_minus_L_F77=no
12936 hardcode_automatic_F77=no
12937 module_cmds_F77=
12938 module_expsym_cmds_F77=
12939 link_all_deplibs_F77=unknown
12940 old_archive_cmds_F77=$old_archive_cmds
12941 no_undefined_flag_F77=
12942 whole_archive_flag_spec_F77=
12943 enable_shared_with_static_runtimes_F77=no
12945 # Source file extension for f77 test sources.
12946 ac_ext=f
12948 # Object file extension for compiled f77 test sources.
12949 objext=o
12950 objext_F77=$objext
12952 # Code to be used in simple compile tests
12953 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12955 # Code to be used in simple link tests
12956 lt_simple_link_test_code=" program t\n end\n"
12958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12960 # If no C compiler was specified, use CC.
12961 LTCC=${LTCC-"$CC"}
12963 # If no C compiler flags were specified, use CFLAGS.
12964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12966 # Allow CC to be a program name with arguments.
12967 compiler=$CC
12970 # save warnings/boilerplate of simple test code
12971 ac_outfile=conftest.$ac_objext
12972 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12974 _lt_compiler_boilerplate=`cat conftest.err`
12975 $rm conftest*
12977 ac_outfile=conftest.$ac_objext
12978 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12980 _lt_linker_boilerplate=`cat conftest.err`
12981 $rm conftest*
12984 # Allow CC to be a program name with arguments.
12985 lt_save_CC="$CC"
12986 CC=${F77-"f77"}
12987 compiler=$CC
12988 compiler_F77=$CC
12989 for cc_temp in $compiler""; do
12990 case $cc_temp in
12991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12993 \-*) ;;
12994 *) break;;
12995 esac
12996 done
12997 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13000 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13001 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13002 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13003 echo "${ECHO_T}$can_build_shared" >&6
13005 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13006 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13007 test "$can_build_shared" = "no" && enable_shared=no
13009 # On AIX, shared libraries and static libraries use the same namespace, and
13010 # are all built from PIC.
13011 case $host_os in
13012 aix3*)
13013 test "$enable_shared" = yes && enable_static=no
13014 if test -n "$RANLIB"; then
13015 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13016 postinstall_cmds='$RANLIB $lib'
13019 aix4* | aix5*)
13020 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13021 test "$enable_shared" = yes && enable_static=no
13024 esac
13025 echo "$as_me:$LINENO: result: $enable_shared" >&5
13026 echo "${ECHO_T}$enable_shared" >&6
13028 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13029 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13030 # Make sure either enable_shared or enable_static is yes.
13031 test "$enable_shared" = yes || enable_static=yes
13032 echo "$as_me:$LINENO: result: $enable_static" >&5
13033 echo "${ECHO_T}$enable_static" >&6
13035 GCC_F77="$G77"
13036 LD_F77="$LD"
13038 lt_prog_compiler_wl_F77=
13039 lt_prog_compiler_pic_F77=
13040 lt_prog_compiler_static_F77=
13042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13045 if test "$GCC" = yes; then
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 lt_prog_compiler_static_F77='-static'
13049 case $host_os in
13050 aix*)
13051 # All AIX code is PIC.
13052 if test "$host_cpu" = ia64; then
13053 # AIX 5 now supports IA64 processor
13054 lt_prog_compiler_static_F77='-Bstatic'
13058 amigaos*)
13059 # FIXME: we need at least 68020 code to build shared libraries, but
13060 # adding the `-m68020' flag to GCC prevents building anything better,
13061 # like `-m68040'.
13062 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13065 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13066 # PIC is the default for these OSes.
13069 mingw* | pw32* | os2*)
13070 # This hack is so that the source file can tell whether it is being
13071 # built for inclusion in a dll (and should export symbols for example).
13072 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13075 darwin* | rhapsody*)
13076 # PIC is the default on this platform
13077 # Common symbols not allowed in MH_DYLIB files
13078 lt_prog_compiler_pic_F77='-fno-common'
13081 interix3*)
13082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13083 # Instead, we relocate shared libraries at runtime.
13086 msdosdjgpp*)
13087 # Just because we use GCC doesn't mean we suddenly get shared libraries
13088 # on systems that don't support them.
13089 lt_prog_compiler_can_build_shared_F77=no
13090 enable_shared=no
13093 sysv4*MP*)
13094 if test -d /usr/nec; then
13095 lt_prog_compiler_pic_F77=-Kconform_pic
13099 hpux*)
13100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13101 # not for PA HP-UX.
13102 case $host_cpu in
13103 hppa*64*|ia64*)
13104 # +Z the default
13107 lt_prog_compiler_pic_F77='-fPIC'
13109 esac
13113 lt_prog_compiler_pic_F77='-fPIC'
13115 esac
13116 else
13117 # PORTME Check for flag to pass linker flags through the system compiler.
13118 case $host_os in
13119 aix*)
13120 lt_prog_compiler_wl_F77='-Wl,'
13121 if test "$host_cpu" = ia64; then
13122 # AIX 5 now supports IA64 processor
13123 lt_prog_compiler_static_F77='-Bstatic'
13124 else
13125 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13128 darwin*)
13129 # PIC is the default on this platform
13130 # Common symbols not allowed in MH_DYLIB files
13131 case $cc_basename in
13132 xlc*)
13133 lt_prog_compiler_pic_F77='-qnocommon'
13134 lt_prog_compiler_wl_F77='-Wl,'
13136 esac
13139 mingw* | pw32* | os2*)
13140 # This hack is so that the source file can tell whether it is being
13141 # built for inclusion in a dll (and should export symbols for example).
13142 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13145 hpux9* | hpux10* | hpux11*)
13146 lt_prog_compiler_wl_F77='-Wl,'
13147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13148 # not for PA HP-UX.
13149 case $host_cpu in
13150 hppa*64*|ia64*)
13151 # +Z the default
13154 lt_prog_compiler_pic_F77='+Z'
13156 esac
13157 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13158 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13161 irix5* | irix6* | nonstopux*)
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 # PIC (with -KPIC) is the default.
13164 lt_prog_compiler_static_F77='-non_shared'
13167 newsos6)
13168 lt_prog_compiler_pic_F77='-KPIC'
13169 lt_prog_compiler_static_F77='-Bstatic'
13172 linux*)
13173 case $cc_basename in
13174 icc* | ecc*)
13175 lt_prog_compiler_wl_F77='-Wl,'
13176 lt_prog_compiler_pic_F77='-KPIC'
13177 lt_prog_compiler_static_F77='-static'
13179 pgcc* | pgf77* | pgf90* | pgf95*)
13180 # Portland Group compilers (*not* the Pentium gcc compiler,
13181 # which looks to be a dead project)
13182 lt_prog_compiler_wl_F77='-Wl,'
13183 lt_prog_compiler_pic_F77='-fpic'
13184 lt_prog_compiler_static_F77='-Bstatic'
13186 ccc*)
13187 lt_prog_compiler_wl_F77='-Wl,'
13188 # All Alpha code is PIC.
13189 lt_prog_compiler_static_F77='-non_shared'
13191 esac
13194 osf3* | osf4* | osf5*)
13195 lt_prog_compiler_wl_F77='-Wl,'
13196 # All OSF/1 code is PIC.
13197 lt_prog_compiler_static_F77='-non_shared'
13200 solaris*)
13201 lt_prog_compiler_pic_F77='-KPIC'
13202 lt_prog_compiler_static_F77='-Bstatic'
13203 case $cc_basename in
13204 f77* | f90* | f95*)
13205 lt_prog_compiler_wl_F77='-Qoption ld ';;
13207 lt_prog_compiler_wl_F77='-Wl,';;
13208 esac
13211 sunos4*)
13212 lt_prog_compiler_wl_F77='-Qoption ld '
13213 lt_prog_compiler_pic_F77='-PIC'
13214 lt_prog_compiler_static_F77='-Bstatic'
13217 sysv4 | sysv4.2uw2* | sysv4.3*)
13218 lt_prog_compiler_wl_F77='-Wl,'
13219 lt_prog_compiler_pic_F77='-KPIC'
13220 lt_prog_compiler_static_F77='-Bstatic'
13223 sysv4*MP*)
13224 if test -d /usr/nec ;then
13225 lt_prog_compiler_pic_F77='-Kconform_pic'
13226 lt_prog_compiler_static_F77='-Bstatic'
13230 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13231 lt_prog_compiler_wl_F77='-Wl,'
13232 lt_prog_compiler_pic_F77='-KPIC'
13233 lt_prog_compiler_static_F77='-Bstatic'
13236 unicos*)
13237 lt_prog_compiler_wl_F77='-Wl,'
13238 lt_prog_compiler_can_build_shared_F77=no
13241 uts4*)
13242 lt_prog_compiler_pic_F77='-pic'
13243 lt_prog_compiler_static_F77='-Bstatic'
13247 lt_prog_compiler_can_build_shared_F77=no
13249 esac
13252 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13253 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13256 # Check to make sure the PIC flag actually works.
13258 if test -n "$lt_prog_compiler_pic_F77"; then
13260 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13261 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13262 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265 lt_prog_compiler_pic_works_F77=no
13266 ac_outfile=conftest.$ac_objext
13267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13268 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13269 # Insert the option either (1) after the last *FLAGS variable, or
13270 # (2) before a word containing "conftest.", or (3) at the end.
13271 # Note that $ac_compile itself does not contain backslashes and begins
13272 # with a dollar sign (not a hyphen), so the echo should work correctly.
13273 # The option is referenced via a variable to avoid confusing sed.
13274 lt_compile=`echo "$ac_compile" | $SED \
13275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13277 -e 's:$: $lt_compiler_flag:'`
13278 (eval echo "\"\$as_me:13278: $lt_compile\"" >&5)
13279 (eval "$lt_compile" 2>conftest.err)
13280 ac_status=$?
13281 cat conftest.err >&5
13282 echo "$as_me:13282: \$? = $ac_status" >&5
13283 if (exit $ac_status) && test -s "$ac_outfile"; then
13284 # The compiler can only warn and ignore the option if not recognized
13285 # So say no if there are warnings other than the usual output.
13286 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13289 lt_prog_compiler_pic_works_F77=yes
13292 $rm conftest*
13295 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13296 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13298 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13299 case $lt_prog_compiler_pic_F77 in
13300 "" | " "*) ;;
13301 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13302 esac
13303 else
13304 lt_prog_compiler_pic_F77=
13305 lt_prog_compiler_can_build_shared_F77=no
13309 case $host_os in
13310 # For platforms which do not support PIC, -DPIC is meaningless:
13311 *djgpp*)
13312 lt_prog_compiler_pic_F77=
13315 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13317 esac
13320 # Check to make sure the static flag actually works.
13322 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13323 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13324 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13325 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328 lt_prog_compiler_static_works_F77=no
13329 save_LDFLAGS="$LDFLAGS"
13330 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13331 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13333 # The linker can only warn and ignore the option if not recognized
13334 # So say no if there are warnings
13335 if test -s conftest.err; then
13336 # Append any errors to the config.log.
13337 cat conftest.err 1>&5
13338 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13340 if diff conftest.exp conftest.er2 >/dev/null; then
13341 lt_prog_compiler_static_works_F77=yes
13343 else
13344 lt_prog_compiler_static_works_F77=yes
13347 $rm conftest*
13348 LDFLAGS="$save_LDFLAGS"
13351 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13352 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13354 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13356 else
13357 lt_prog_compiler_static_F77=
13361 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13362 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13363 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 lt_cv_prog_compiler_c_o_F77=no
13367 $rm -r conftest 2>/dev/null
13368 mkdir conftest
13369 cd conftest
13370 mkdir out
13371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13373 lt_compiler_flag="-o out/conftest2.$ac_objext"
13374 # Insert the option either (1) after the last *FLAGS variable, or
13375 # (2) before a word containing "conftest.", or (3) at the end.
13376 # Note that $ac_compile itself does not contain backslashes and begins
13377 # with a dollar sign (not a hyphen), so the echo should work correctly.
13378 lt_compile=`echo "$ac_compile" | $SED \
13379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13381 -e 's:$: $lt_compiler_flag:'`
13382 (eval echo "\"\$as_me:13382: $lt_compile\"" >&5)
13383 (eval "$lt_compile" 2>out/conftest.err)
13384 ac_status=$?
13385 cat out/conftest.err >&5
13386 echo "$as_me:13386: \$? = $ac_status" >&5
13387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13388 then
13389 # The compiler can only warn and ignore the option if not recognized
13390 # So say no if there are warnings
13391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13394 lt_cv_prog_compiler_c_o_F77=yes
13397 chmod u+w . 2>&5
13398 $rm conftest*
13399 # SGI C++ compiler will create directory out/ii_files/ for
13400 # template instantiation
13401 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13402 $rm out/* && rmdir out
13403 cd ..
13404 rmdir conftest
13405 $rm conftest*
13408 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13409 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13412 hard_links="nottested"
13413 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13414 # do not overwrite the value of need_locks provided by the user
13415 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13416 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13417 hard_links=yes
13418 $rm conftest*
13419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13420 touch conftest.a
13421 ln conftest.a conftest.b 2>&5 || hard_links=no
13422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13423 echo "$as_me:$LINENO: result: $hard_links" >&5
13424 echo "${ECHO_T}$hard_links" >&6
13425 if test "$hard_links" = no; then
13426 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13427 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13428 need_locks=warn
13430 else
13431 need_locks=no
13434 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13435 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13437 runpath_var=
13438 allow_undefined_flag_F77=
13439 enable_shared_with_static_runtimes_F77=no
13440 archive_cmds_F77=
13441 archive_expsym_cmds_F77=
13442 old_archive_From_new_cmds_F77=
13443 old_archive_from_expsyms_cmds_F77=
13444 export_dynamic_flag_spec_F77=
13445 whole_archive_flag_spec_F77=
13446 thread_safe_flag_spec_F77=
13447 hardcode_libdir_flag_spec_F77=
13448 hardcode_libdir_flag_spec_ld_F77=
13449 hardcode_libdir_separator_F77=
13450 hardcode_direct_F77=no
13451 hardcode_minus_L_F77=no
13452 hardcode_shlibpath_var_F77=unsupported
13453 link_all_deplibs_F77=unknown
13454 hardcode_automatic_F77=no
13455 module_cmds_F77=
13456 module_expsym_cmds_F77=
13457 always_export_symbols_F77=no
13458 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13459 # include_expsyms should be a list of space-separated symbols to be *always*
13460 # included in the symbol list
13461 include_expsyms_F77=
13462 # exclude_expsyms can be an extended regexp of symbols to exclude
13463 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13464 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13465 # as well as any symbol that contains `d'.
13466 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13467 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13468 # platforms (ab)use it in PIC code, but their linkers get confused if
13469 # the symbol is explicitly referenced. Since portable code cannot
13470 # rely on this symbol name, it's probably fine to never include it in
13471 # preloaded symbol tables.
13472 extract_expsyms_cmds=
13473 # Just being paranoid about ensuring that cc_basename is set.
13474 for cc_temp in $compiler""; do
13475 case $cc_temp in
13476 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13477 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13478 \-*) ;;
13479 *) break;;
13480 esac
13481 done
13482 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13484 case $host_os in
13485 cygwin* | mingw* | pw32*)
13486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13487 # When not using gcc, we currently assume that we are using
13488 # Microsoft Visual C++.
13489 if test "$GCC" != yes; then
13490 with_gnu_ld=no
13493 interix*)
13494 # we just hope/assume this is gcc and not c89 (= MSVC++)
13495 with_gnu_ld=yes
13497 openbsd*)
13498 with_gnu_ld=no
13500 esac
13502 ld_shlibs_F77=yes
13503 if test "$with_gnu_ld" = yes; then
13504 # If archive_cmds runs LD, not CC, wlarc should be empty
13505 wlarc='${wl}'
13507 # Set some defaults for GNU ld with shared library support. These
13508 # are reset later if shared libraries are not supported. Putting them
13509 # here allows them to be overridden if necessary.
13510 runpath_var=LD_RUN_PATH
13511 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13512 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13513 # ancient GNU ld didn't support --whole-archive et. al.
13514 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13515 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13516 else
13517 whole_archive_flag_spec_F77=
13519 supports_anon_versioning=no
13520 case `$LD -v 2>/dev/null` in
13521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13524 *\ 2.11.*) ;; # other 2.11 versions
13525 *) supports_anon_versioning=yes ;;
13526 esac
13528 # See if GNU ld supports shared libraries.
13529 case $host_os in
13530 aix3* | aix4* | aix5*)
13531 # On AIX/PPC, the GNU linker is very broken
13532 if test "$host_cpu" != ia64; then
13533 ld_shlibs_F77=no
13534 cat <<EOF 1>&2
13536 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13537 *** to be unable to reliably create shared libraries on AIX.
13538 *** Therefore, libtool is disabling shared libraries support. If you
13539 *** really care for shared libraries, you may want to modify your PATH
13540 *** so that a non-GNU linker is found, and then restart.
13546 amigaos*)
13547 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)'
13548 hardcode_libdir_flag_spec_F77='-L$libdir'
13549 hardcode_minus_L_F77=yes
13551 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13552 # that the semantics of dynamic libraries on AmigaOS, at least up
13553 # to version 4, is to share data among multiple programs linked
13554 # with the same dynamic library. Since this doesn't match the
13555 # behavior of shared libraries on other platforms, we can't use
13556 # them.
13557 ld_shlibs_F77=no
13560 beos*)
13561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13562 allow_undefined_flag_F77=unsupported
13563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13564 # support --undefined. This deserves some investigation. FIXME
13565 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13566 else
13567 ld_shlibs_F77=no
13571 cygwin* | mingw* | pw32*)
13572 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13573 # as there is no search path for DLLs.
13574 hardcode_libdir_flag_spec_F77='-L$libdir'
13575 allow_undefined_flag_F77=unsupported
13576 always_export_symbols_F77=no
13577 enable_shared_with_static_runtimes_F77=yes
13578 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13580 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13581 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13582 # If the export-symbols file already is a .def file (1st line
13583 # is EXPORTS), use it as is; otherwise, prepend...
13584 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13585 cp $export_symbols $output_objdir/$soname.def;
13586 else
13587 echo EXPORTS > $output_objdir/$soname.def;
13588 cat $export_symbols >> $output_objdir/$soname.def;
13590 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13591 else
13592 ld_shlibs_F77=no
13596 interix3*)
13597 hardcode_direct_F77=no
13598 hardcode_shlibpath_var_F77=no
13599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13600 export_dynamic_flag_spec_F77='${wl}-E'
13601 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13602 # Instead, shared libraries are loaded at an image base (0x10000000 by
13603 # default) and relocated if they conflict, which is a slow very memory
13604 # consuming and fragmenting process. To avoid this, we pick a random,
13605 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13606 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13607 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'
13608 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'
13611 linux*)
13612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613 tmp_addflag=
13614 case $cc_basename,$host_cpu in
13615 pgcc*) # Portland Group C compiler
13616 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'
13617 tmp_addflag=' $pic_flag'
13619 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13620 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'
13621 tmp_addflag=' $pic_flag -Mnomain' ;;
13622 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13623 tmp_addflag=' -i_dynamic' ;;
13624 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13625 tmp_addflag=' -i_dynamic -nofor_main' ;;
13626 ifc* | ifort*) # Intel Fortran compiler
13627 tmp_addflag=' -nofor_main' ;;
13628 esac
13629 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631 if test $supports_anon_versioning = yes; then
13632 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13634 $echo "local: *; };" >> $output_objdir/$libname.ver~
13635 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13637 else
13638 ld_shlibs_F77=no
13642 netbsd*)
13643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13644 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13645 wlarc=
13646 else
13647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13648 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13652 solaris*)
13653 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13654 ld_shlibs_F77=no
13655 cat <<EOF 1>&2
13657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13658 *** create shared libraries on Solaris systems. Therefore, libtool
13659 *** is disabling shared libraries support. We urge you to upgrade GNU
13660 *** binutils to release 2.9.1 or newer. Another option is to modify
13661 *** your PATH or compiler configuration so that the native linker is
13662 *** used, and then restart.
13665 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13668 else
13669 ld_shlibs_F77=no
13673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13674 case `$LD -v 2>&1` in
13675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13676 ld_shlibs_F77=no
13677 cat <<_LT_EOF 1>&2
13679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13680 *** reliably create shared libraries on SCO systems. Therefore, libtool
13681 *** is disabling shared libraries support. We urge you to upgrade GNU
13682 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13683 *** your PATH or compiler configuration so that the native linker is
13684 *** used, and then restart.
13686 _LT_EOF
13689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13690 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13691 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13692 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13693 else
13694 ld_shlibs_F77=no
13697 esac
13700 sunos4*)
13701 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13702 wlarc=
13703 hardcode_direct_F77=yes
13704 hardcode_shlibpath_var_F77=no
13708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13710 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13711 else
13712 ld_shlibs_F77=no
13715 esac
13717 if test "$ld_shlibs_F77" = no; then
13718 runpath_var=
13719 hardcode_libdir_flag_spec_F77=
13720 export_dynamic_flag_spec_F77=
13721 whole_archive_flag_spec_F77=
13723 else
13724 # PORTME fill in a description of your system's linker (not GNU ld)
13725 case $host_os in
13726 aix3*)
13727 allow_undefined_flag_F77=unsupported
13728 always_export_symbols_F77=yes
13729 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'
13730 # Note: this linker hardcodes the directories in LIBPATH if there
13731 # are no directories specified by -L.
13732 hardcode_minus_L_F77=yes
13733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13734 # Neither direct hardcoding nor static linking is supported with a
13735 # broken collect2.
13736 hardcode_direct_F77=unsupported
13740 aix4* | aix5*)
13741 if test "$host_cpu" = ia64; then
13742 # On IA64, the linker does run time linking by default, so we don't
13743 # have to do anything special.
13744 aix_use_runtimelinking=no
13745 exp_sym_flag='-Bexport'
13746 no_entry_flag=""
13747 else
13748 # If we're using GNU nm, then we don't want the "-C" option.
13749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13750 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13751 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'
13752 else
13753 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'
13755 aix_use_runtimelinking=no
13757 # Test if we are trying to use run time linking or normal
13758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13759 # need to do runtime linking.
13760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13761 for ld_flag in $LDFLAGS; do
13762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13763 aix_use_runtimelinking=yes
13764 break
13766 done
13768 esac
13770 exp_sym_flag='-bexport'
13771 no_entry_flag='-bnoentry'
13774 # When large executables or shared objects are built, AIX ld can
13775 # have problems creating the table of contents. If linking a library
13776 # or program results in "error TOC overflow" add -mminimal-toc to
13777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13780 archive_cmds_F77=''
13781 hardcode_direct_F77=yes
13782 hardcode_libdir_separator_F77=':'
13783 link_all_deplibs_F77=yes
13785 if test "$GCC" = yes; then
13786 case $host_os in aix4.[012]|aix4.[012].*)
13787 # We only want to do this on AIX 4.2 and lower, the check
13788 # below for broken collect2 doesn't work under 4.3+
13789 collect2name=`${CC} -print-prog-name=collect2`
13790 if test -f "$collect2name" && \
13791 strings "$collect2name" | grep resolve_lib_name >/dev/null
13792 then
13793 # We have reworked collect2
13794 hardcode_direct_F77=yes
13795 else
13796 # We have old collect2
13797 hardcode_direct_F77=unsupported
13798 # It fails to find uninstalled libraries when the uninstalled
13799 # path is not listed in the libpath. Setting hardcode_minus_L
13800 # to unsupported forces relinking
13801 hardcode_minus_L_F77=yes
13802 hardcode_libdir_flag_spec_F77='-L$libdir'
13803 hardcode_libdir_separator_F77=
13806 esac
13807 shared_flag='-shared'
13808 if test "$aix_use_runtimelinking" = yes; then
13809 shared_flag="$shared_flag "'${wl}-G'
13811 else
13812 # not using gcc
13813 if test "$host_cpu" = ia64; then
13814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13815 # chokes on -Wl,-G. The following line is correct:
13816 shared_flag='-G'
13817 else
13818 if test "$aix_use_runtimelinking" = yes; then
13819 shared_flag='${wl}-G'
13820 else
13821 shared_flag='${wl}-bM:SRE'
13826 # It seems that -bexpall does not export symbols beginning with
13827 # underscore (_), so it is better to generate a list of symbols to export.
13828 always_export_symbols_F77=yes
13829 if test "$aix_use_runtimelinking" = yes; then
13830 # Warning - without using the other runtime loading flags (-brtl),
13831 # -berok will link without error, but may produce a broken library.
13832 allow_undefined_flag_F77='-berok'
13833 # Determine the default libpath from the value encoded in an empty executable.
13834 cat >conftest.$ac_ext <<_ACEOF
13835 program main
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_f77_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13864 # Check for a 64-bit object if we didn't find anything.
13865 if 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; }
13866 }'`; fi
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13872 rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13876 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13877 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"
13878 else
13879 if test "$host_cpu" = ia64; then
13880 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13881 allow_undefined_flag_F77="-z nodefs"
13882 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"
13883 else
13884 # Determine the default libpath from the value encoded in an empty executable.
13885 cat >conftest.$ac_ext <<_ACEOF
13886 program main
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (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
13913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13915 # Check for a 64-bit object if we didn't find anything.
13916 if 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
13918 else
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13923 rm -f conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13927 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13928 # Warning - without using the other run time loading flags,
13929 # -berok will link without error, but may produce a broken library.
13930 no_undefined_flag_F77=' ${wl}-bernotok'
13931 allow_undefined_flag_F77=' ${wl}-berok'
13932 # Exported symbols can be pulled into shared objects from archives
13933 whole_archive_flag_spec_F77='$convenience'
13934 archive_cmds_need_lc_F77=yes
13935 # This is similar to how AIX traditionally builds its shared libraries.
13936 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'
13941 amigaos*)
13942 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)'
13943 hardcode_libdir_flag_spec_F77='-L$libdir'
13944 hardcode_minus_L_F77=yes
13945 # see comment about different semantics on the GNU ld section
13946 ld_shlibs_F77=no
13949 bsdi[45]*)
13950 export_dynamic_flag_spec_F77=-rdynamic
13953 cygwin* | mingw* | pw32*)
13954 # When not using gcc, we currently assume that we are using
13955 # Microsoft Visual C++.
13956 # hardcode_libdir_flag_spec is actually meaningless, as there is
13957 # no search path for DLLs.
13958 hardcode_libdir_flag_spec_F77=' '
13959 allow_undefined_flag_F77=unsupported
13960 # Tell ltmain to make .lib files, not .a files.
13961 libext=lib
13962 # Tell ltmain to make .dll files, not .so files.
13963 shrext_cmds=".dll"
13964 # FIXME: Setting linknames here is a bad hack.
13965 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13966 # The linker will automatically build a .lib file if we build a DLL.
13967 old_archive_From_new_cmds_F77='true'
13968 # FIXME: Should let the user specify the lib program.
13969 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13970 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13971 enable_shared_with_static_runtimes_F77=yes
13974 darwin* | rhapsody*)
13975 case $host_os in
13976 rhapsody* | darwin1.[012])
13977 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13979 *) # Darwin 1.3 on
13980 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13981 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13982 else
13983 case ${MACOSX_DEPLOYMENT_TARGET} in
13984 10.[012])
13985 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13987 10.*)
13988 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13990 esac
13993 esac
13994 archive_cmds_need_lc_F77=no
13995 hardcode_direct_F77=no
13996 hardcode_automatic_F77=yes
13997 hardcode_shlibpath_var_F77=unsupported
13998 whole_archive_flag_spec_F77=''
13999 link_all_deplibs_F77=yes
14000 if test "$GCC" = yes ; then
14001 output_verbose_link_cmd='echo'
14002 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14003 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14004 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14005 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}'
14006 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}'
14007 else
14008 case $cc_basename in
14009 xlc*)
14010 output_verbose_link_cmd='echo'
14011 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14012 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14014 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}'
14015 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}'
14018 ld_shlibs_F77=no
14020 esac
14024 dgux*)
14025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_libdir_flag_spec_F77='-L$libdir'
14027 hardcode_shlibpath_var_F77=no
14030 freebsd1*)
14031 ld_shlibs_F77=no
14034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14035 # support. Future versions do this automatically, but an explicit c++rt0.o
14036 # does not break anything, and helps significantly (at the cost of a little
14037 # extra space).
14038 freebsd2.2*)
14039 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14040 hardcode_libdir_flag_spec_F77='-R$libdir'
14041 hardcode_direct_F77=yes
14042 hardcode_shlibpath_var_F77=no
14045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14046 freebsd2*)
14047 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14048 hardcode_direct_F77=yes
14049 hardcode_minus_L_F77=yes
14050 hardcode_shlibpath_var_F77=no
14053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14054 freebsd* | kfreebsd*-gnu | dragonfly*)
14055 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14056 hardcode_libdir_flag_spec_F77='-R$libdir'
14057 hardcode_direct_F77=yes
14058 hardcode_shlibpath_var_F77=no
14061 hpux9*)
14062 if test "$GCC" = yes; then
14063 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'
14064 else
14065 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'
14067 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068 hardcode_libdir_separator_F77=:
14069 hardcode_direct_F77=yes
14071 # hardcode_minus_L: Not really in the search PATH,
14072 # but as the default location of the library.
14073 hardcode_minus_L_F77=yes
14074 export_dynamic_flag_spec_F77='${wl}-E'
14077 hpux10*)
14078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14079 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14080 else
14081 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14083 if test "$with_gnu_ld" = no; then
14084 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14085 hardcode_libdir_separator_F77=:
14087 hardcode_direct_F77=yes
14088 export_dynamic_flag_spec_F77='${wl}-E'
14090 # hardcode_minus_L: Not really in the search PATH,
14091 # but as the default location of the library.
14092 hardcode_minus_L_F77=yes
14096 hpux11*)
14097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14098 case $host_cpu in
14099 hppa*64*)
14100 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14102 ia64*)
14103 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14106 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14108 esac
14109 else
14110 case $host_cpu in
14111 hppa*64*)
14112 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14114 ia64*)
14115 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14118 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14120 esac
14122 if test "$with_gnu_ld" = no; then
14123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14126 case $host_cpu in
14127 hppa*64*|ia64*)
14128 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14129 hardcode_direct_F77=no
14130 hardcode_shlibpath_var_F77=no
14133 hardcode_direct_F77=yes
14134 export_dynamic_flag_spec_F77='${wl}-E'
14136 # hardcode_minus_L: Not really in the search PATH,
14137 # but as the default location of the library.
14138 hardcode_minus_L_F77=yes
14140 esac
14144 irix5* | irix6* | nonstopux*)
14145 if test "$GCC" = yes; then
14146 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'
14147 else
14148 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'
14149 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14151 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14152 hardcode_libdir_separator_F77=:
14153 link_all_deplibs_F77=yes
14156 netbsd*)
14157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14159 else
14160 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14162 hardcode_libdir_flag_spec_F77='-R$libdir'
14163 hardcode_direct_F77=yes
14164 hardcode_shlibpath_var_F77=no
14167 newsos6)
14168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14169 hardcode_direct_F77=yes
14170 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14171 hardcode_libdir_separator_F77=:
14172 hardcode_shlibpath_var_F77=no
14175 openbsd*)
14176 hardcode_direct_F77=yes
14177 hardcode_shlibpath_var_F77=no
14178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14179 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14182 export_dynamic_flag_spec_F77='${wl}-E'
14183 else
14184 case $host_os in
14185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14187 hardcode_libdir_flag_spec_F77='-R$libdir'
14190 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14191 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14193 esac
14197 os2*)
14198 hardcode_libdir_flag_spec_F77='-L$libdir'
14199 hardcode_minus_L_F77=yes
14200 allow_undefined_flag_F77=unsupported
14201 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'
14202 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14205 osf3*)
14206 if test "$GCC" = yes; then
14207 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14208 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'
14209 else
14210 allow_undefined_flag_F77=' -expect_unresolved \*'
14211 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'
14213 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14214 hardcode_libdir_separator_F77=:
14217 osf4* | osf5*) # as osf3* with the addition of -msym flag
14218 if test "$GCC" = yes; then
14219 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14220 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'
14221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14222 else
14223 allow_undefined_flag_F77=' -expect_unresolved \*'
14224 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'
14225 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~
14226 $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'
14228 # Both c and cxx compiler support -rpath directly
14229 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14231 hardcode_libdir_separator_F77=:
14234 solaris*)
14235 no_undefined_flag_F77=' -z text'
14236 if test "$GCC" = yes; then
14237 wlarc='${wl}'
14238 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14239 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14240 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14241 else
14242 wlarc=''
14243 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14245 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14247 hardcode_libdir_flag_spec_F77='-R$libdir'
14248 hardcode_shlibpath_var_F77=no
14249 case $host_os in
14250 solaris2.[0-5] | solaris2.[0-5].*) ;;
14252 # The compiler driver will combine linker options so we
14253 # cannot just pass the convience library names through
14254 # without $wl, iff we do not link with $LD.
14255 # Luckily, gcc supports the same syntax we need for Sun Studio.
14256 # Supported since Solaris 2.6 (maybe 2.5.1?)
14257 case $wlarc in
14259 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14261 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' ;;
14262 esac ;;
14263 esac
14264 link_all_deplibs_F77=yes
14267 sunos4*)
14268 if test "x$host_vendor" = xsequent; then
14269 # Use $CC to link under sequent, because it throws in some extra .o
14270 # files that make .init and .fini sections work.
14271 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14272 else
14273 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_libdir_flag_spec_F77='-L$libdir'
14276 hardcode_direct_F77=yes
14277 hardcode_minus_L_F77=yes
14278 hardcode_shlibpath_var_F77=no
14281 sysv4)
14282 case $host_vendor in
14283 sni)
14284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 hardcode_direct_F77=yes # is this really true???
14287 siemens)
14288 ## LD is ld it makes a PLAMLIB
14289 ## CC just makes a GrossModule.
14290 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14291 reload_cmds_F77='$CC -r -o $output$reload_objs'
14292 hardcode_direct_F77=no
14294 motorola)
14295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14298 esac
14299 runpath_var='LD_RUN_PATH'
14300 hardcode_shlibpath_var_F77=no
14303 sysv4.3*)
14304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305 hardcode_shlibpath_var_F77=no
14306 export_dynamic_flag_spec_F77='-Bexport'
14309 sysv4*MP*)
14310 if test -d /usr/nec; then
14311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312 hardcode_shlibpath_var_F77=no
14313 runpath_var=LD_RUN_PATH
14314 hardcode_runpath_var=yes
14315 ld_shlibs_F77=yes
14319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14320 no_undefined_flag_F77='${wl}-z,text'
14321 archive_cmds_need_lc_F77=no
14322 hardcode_shlibpath_var_F77=no
14323 runpath_var='LD_RUN_PATH'
14325 if test "$GCC" = yes; then
14326 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328 else
14329 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14330 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 sysv5* | sco3.2v5* | sco5v6*)
14335 # Note: We can NOT use -z defs as we might desire, because we do not
14336 # link with -lc, and that would cause any symbols used from libc to
14337 # always be unresolved, which means just about no library would
14338 # ever link correctly. If we're not using GNU ld we use -z text
14339 # though, which does catch some bad symbols but isn't as heavy-handed
14340 # as -z defs.
14341 no_undefined_flag_F77='${wl}-z,text'
14342 allow_undefined_flag_F77='${wl}-z,nodefs'
14343 archive_cmds_need_lc_F77=no
14344 hardcode_shlibpath_var_F77=no
14345 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14346 hardcode_libdir_separator_F77=':'
14347 link_all_deplibs_F77=yes
14348 export_dynamic_flag_spec_F77='${wl}-Bexport'
14349 runpath_var='LD_RUN_PATH'
14351 if test "$GCC" = yes; then
14352 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14354 else
14355 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14356 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 uts4*)
14361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362 hardcode_libdir_flag_spec_F77='-L$libdir'
14363 hardcode_shlibpath_var_F77=no
14367 ld_shlibs_F77=no
14369 esac
14372 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14373 echo "${ECHO_T}$ld_shlibs_F77" >&6
14374 test "$ld_shlibs_F77" = no && can_build_shared=no
14377 # Do we need to explicitly link libc?
14379 case "x$archive_cmds_need_lc_F77" in
14380 x|xyes)
14381 # Assume -lc should be added
14382 archive_cmds_need_lc_F77=yes
14384 if test "$enable_shared" = yes && test "$GCC" = yes; then
14385 case $archive_cmds_F77 in
14386 *'~'*)
14387 # FIXME: we may have to deal with multi-command sequences.
14389 '$CC '*)
14390 # Test whether the compiler implicitly links with -lc since on some
14391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14392 # to ld, don't add -lc before -lgcc.
14393 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14394 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14395 $rm conftest*
14396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } 2>conftest.err; then
14403 soname=conftest
14404 lib=conftest
14405 libobjs=conftest.$ac_objext
14406 deplibs=
14407 wl=$lt_prog_compiler_wl_F77
14408 pic_flag=$lt_prog_compiler_pic_F77
14409 compiler_flags=-v
14410 linker_flags=-v
14411 verstring=
14412 output_objdir=.
14413 libname=conftest
14414 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14415 allow_undefined_flag_F77=
14416 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14417 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }
14421 then
14422 archive_cmds_need_lc_F77=no
14423 else
14424 archive_cmds_need_lc_F77=yes
14426 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14427 else
14428 cat conftest.err 1>&5
14430 $rm conftest*
14431 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14432 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14434 esac
14437 esac
14439 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14440 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14441 library_names_spec=
14442 libname_spec='lib$name'
14443 soname_spec=
14444 shrext_cmds=".so"
14445 postinstall_cmds=
14446 postuninstall_cmds=
14447 finish_cmds=
14448 finish_eval=
14449 shlibpath_var=
14450 shlibpath_overrides_runpath=unknown
14451 version_type=none
14452 dynamic_linker="$host_os ld.so"
14453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14454 if test "$GCC" = yes; then
14455 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14456 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14457 # if the path contains ";" then we assume it to be the separator
14458 # otherwise default to the standard path separator (i.e. ":") - it is
14459 # assumed that no part of a normal pathname contains ";" but that should
14460 # okay in the real world where ";" in dirpaths is itself problematic.
14461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14462 else
14463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14465 else
14466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14468 need_lib_prefix=unknown
14469 hardcode_into_libs=no
14471 # when you set need_version to no, make sure it does not cause -set_version
14472 # flags to be left without arguments
14473 need_version=unknown
14475 case $host_os in
14476 aix3*)
14477 version_type=linux
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14479 shlibpath_var=LIBPATH
14481 # AIX 3 has no versioning support, so we append a major version to the name.
14482 soname_spec='${libname}${release}${shared_ext}$major'
14485 aix4* | aix5*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 hardcode_into_libs=yes
14490 if test "$host_cpu" = ia64; then
14491 # AIX 5 supports IA64
14492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 else
14495 # With GCC up to 2.95.x, collect2 would create an import file
14496 # for dependence libraries. The import file would start with
14497 # the line `#! .'. This would cause the generated library to
14498 # depend on `.', always an invalid library. This was fixed in
14499 # development snapshots of GCC prior to 3.0.
14500 case $host_os in
14501 aix4 | aix4.[01] | aix4.[01].*)
14502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14503 echo ' yes '
14504 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14506 else
14507 can_build_shared=no
14510 esac
14511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14512 # soname into executable. Probably we can add versioning support to
14513 # collect2, so additional links can be useful in future.
14514 if test "$aix_use_runtimelinking" = yes; then
14515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14516 # instead of lib<name>.a to let people know that these are not
14517 # typical AIX shared libraries.
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 else
14520 # We preserve .a as extension for shared libraries through AIX4.2
14521 # and later when we are not doing run time linking.
14522 library_names_spec='${libname}${release}.a $libname.a'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LIBPATH
14529 amigaos*)
14530 library_names_spec='$libname.ixlibrary $libname.a'
14531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14532 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'
14535 beos*)
14536 library_names_spec='${libname}${shared_ext}'
14537 dynamic_linker="$host_os ld.so"
14538 shlibpath_var=LIBRARY_PATH
14541 bsdi[45]*)
14542 version_type=linux
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14550 # the default ld.so.conf also contains /usr/contrib/lib and
14551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14552 # libtool to hard-code these into programs
14555 cygwin* | mingw* | pw32*)
14556 version_type=windows
14557 shrext_cmds=".dll"
14558 need_version=no
14559 need_lib_prefix=no
14561 case $GCC,$host_os in
14562 yes,cygwin* | yes,mingw* | yes,pw32*)
14563 library_names_spec='$libname.dll.a'
14564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14565 postinstall_cmds='base_file=`basename \${file}`~
14566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14567 dldir=$destdir/`dirname \$dlpath`~
14568 test -d \$dldir || mkdir -p \$dldir~
14569 $install_prog $dir/$dlname \$dldir/$dlname~
14570 chmod a+x \$dldir/$dlname'
14571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14572 dlpath=$dir/\$dldll~
14573 $rm \$dlpath'
14574 shlibpath_overrides_runpath=yes
14576 case $host_os in
14577 cygwin*)
14578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14582 mingw*)
14583 # MinGW DLLs use traditional 'lib' prefix
14584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14586 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14587 # It is most probably a Windows format PATH printed by
14588 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14589 # path with ; separators, and with drive letters. We can handle the
14590 # drive letters (cygwin fileutils understands them), so leave them,
14591 # especially as we might pass files found there to a mingw objdump,
14592 # which wouldn't understand a cygwinified path. Ahh.
14593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14594 else
14595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14598 pw32*)
14599 # pw32 DLLs use 'pw' prefix rather than 'lib'
14600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602 esac
14606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14608 esac
14609 dynamic_linker='Win32 ld.exe'
14610 # FIXME: first we should search . and the directory the executable is in
14611 shlibpath_var=PATH
14614 darwin* | rhapsody*)
14615 dynamic_linker="$host_os dyld"
14616 version_type=darwin
14617 need_lib_prefix=no
14618 need_version=no
14619 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14620 soname_spec='${libname}${release}${major}$shared_ext'
14621 shlibpath_overrides_runpath=yes
14622 shlibpath_var=DYLD_LIBRARY_PATH
14623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14624 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14625 if test "$GCC" = yes; then
14626 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"`
14627 else
14628 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14633 dgux*)
14634 version_type=linux
14635 need_lib_prefix=no
14636 need_version=no
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14638 soname_spec='${libname}${release}${shared_ext}$major'
14639 shlibpath_var=LD_LIBRARY_PATH
14642 freebsd1*)
14643 dynamic_linker=no
14646 kfreebsd*-gnu)
14647 version_type=linux
14648 need_lib_prefix=no
14649 need_version=no
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=no
14654 hardcode_into_libs=yes
14655 dynamic_linker='GNU ld.so'
14658 freebsd* | dragonfly*)
14659 # DragonFly does not have aout. When/if they implement a new
14660 # versioning mechanism, adjust this.
14661 if test -x /usr/bin/objformat; then
14662 objformat=`/usr/bin/objformat`
14663 else
14664 case $host_os in
14665 freebsd[123]*) objformat=aout ;;
14666 *) objformat=elf ;;
14667 esac
14669 version_type=freebsd-$objformat
14670 case $version_type in
14671 freebsd-elf*)
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14673 need_version=no
14674 need_lib_prefix=no
14676 freebsd-*)
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14678 need_version=yes
14680 esac
14681 shlibpath_var=LD_LIBRARY_PATH
14682 case $host_os in
14683 freebsd2*)
14684 shlibpath_overrides_runpath=yes
14686 freebsd3.[01]* | freebsdelf3.[01]*)
14687 shlibpath_overrides_runpath=yes
14688 hardcode_into_libs=yes
14690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14695 freebsd*) # from 4.6 on
14696 shlibpath_overrides_runpath=yes
14697 hardcode_into_libs=yes
14699 esac
14702 gnu*)
14703 version_type=linux
14704 need_lib_prefix=no
14705 need_version=no
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 hardcode_into_libs=yes
14712 hpux9* | hpux10* | hpux11*)
14713 # Give a soname corresponding to the major version so that dld.sl refuses to
14714 # link against other versions.
14715 version_type=sunos
14716 need_lib_prefix=no
14717 need_version=no
14718 case $host_cpu in
14719 ia64*)
14720 shrext_cmds='.so'
14721 hardcode_into_libs=yes
14722 dynamic_linker="$host_os dld.so"
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 if test "X$HPUX_IA64_MODE" = X32; then
14728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14729 else
14730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14734 hppa*64*)
14735 shrext_cmds='.sl'
14736 hardcode_into_libs=yes
14737 dynamic_linker="$host_os dld.sl"
14738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14746 shrext_cmds='.sl'
14747 dynamic_linker="$host_os dld.sl"
14748 shlibpath_var=SHLIB_PATH
14749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14753 esac
14754 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14755 postinstall_cmds='chmod 555 $lib'
14758 interix3*)
14759 version_type=linux
14760 need_lib_prefix=no
14761 need_version=no
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=no
14767 hardcode_into_libs=yes
14770 irix5* | irix6* | nonstopux*)
14771 case $host_os in
14772 nonstopux*) version_type=nonstopux ;;
14774 if test "$lt_cv_prog_gnu_ld" = yes; then
14775 version_type=linux
14776 else
14777 version_type=irix
14778 fi ;;
14779 esac
14780 need_lib_prefix=no
14781 need_version=no
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14784 case $host_os in
14785 irix5* | nonstopux*)
14786 libsuff= shlibsuff=
14789 case $LD in # libtool.m4 will add one of these switches to LD
14790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14791 libsuff= shlibsuff= libmagic=32-bit;;
14792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14793 libsuff=32 shlibsuff=N32 libmagic=N32;;
14794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14796 *) libsuff= shlibsuff= libmagic=never-match;;
14797 esac
14799 esac
14800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14801 shlibpath_overrides_runpath=no
14802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14804 hardcode_into_libs=yes
14807 # No shared lib support for Linux oldld, aout, or coff.
14808 linux*oldld* | linux*aout* | linux*coff*)
14809 dynamic_linker=no
14812 # This must be Linux ELF.
14813 linux*)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=no
14822 # This implies no fast_install, which is unacceptable.
14823 # Some rework will be needed to allow for fast_install
14824 # before this can be enabled.
14825 hardcode_into_libs=yes
14827 # find out which ABI we are using
14828 libsuff=
14829 case "$host_cpu" in
14830 x86_64*|s390x*|powerpc64*)
14831 echo '#line 14831 "configure"' > conftest.$ac_ext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14833 (eval $ac_compile) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; then
14837 case `/usr/bin/file conftest.$ac_objext` in
14838 *64-bit*)
14839 libsuff=64
14840 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14842 esac
14844 rm -rf conftest*
14846 esac
14848 # Append ld.so.conf contents to the search path
14849 if test -f /etc/ld.so.conf; then
14850 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14851 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14854 # We used to test for /lib/ld.so.1 and disable shared libraries on
14855 # powerpc, because MkLinux only supported shared libraries with the
14856 # GNU dynamic linker. Since this was broken with cross compilers,
14857 # most powerpc-linux boxes support dynamic linking these days and
14858 # people can always --disable-shared, the test was removed, and we
14859 # assume the GNU/Linux dynamic linker is in use.
14860 dynamic_linker='GNU/Linux ld.so'
14863 knetbsd*-gnu)
14864 version_type=linux
14865 need_lib_prefix=no
14866 need_version=no
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=no
14871 hardcode_into_libs=yes
14872 dynamic_linker='GNU ld.so'
14875 netbsd*)
14876 version_type=sunos
14877 need_lib_prefix=no
14878 need_version=no
14879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14882 dynamic_linker='NetBSD (a.out) ld.so'
14883 else
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 dynamic_linker='NetBSD ld.elf_so'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14893 newsos6)
14894 version_type=linux
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14900 nto-qnx*)
14901 version_type=linux
14902 need_lib_prefix=no
14903 need_version=no
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=yes
14910 openbsd*)
14911 version_type=sunos
14912 sys_lib_dlsearch_path_spec="/usr/lib"
14913 need_lib_prefix=no
14914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14915 case $host_os in
14916 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14917 *) need_version=no ;;
14918 esac
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14923 case $host_os in
14924 openbsd2.[89] | openbsd2.[89].*)
14925 shlibpath_overrides_runpath=no
14928 shlibpath_overrides_runpath=yes
14930 esac
14931 else
14932 shlibpath_overrides_runpath=yes
14936 os2*)
14937 libname_spec='$name'
14938 shrext_cmds=".dll"
14939 need_lib_prefix=no
14940 library_names_spec='$libname${shared_ext} $libname.a'
14941 dynamic_linker='OS/2 ld.exe'
14942 shlibpath_var=LIBPATH
14945 osf3* | osf4* | osf5*)
14946 version_type=osf
14947 need_lib_prefix=no
14948 need_version=no
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14956 solaris*)
14957 version_type=linux
14958 need_lib_prefix=no
14959 need_version=no
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 shlibpath_overrides_runpath=yes
14964 hardcode_into_libs=yes
14965 # ldd complains unless libraries are executable
14966 postinstall_cmds='chmod +x $lib'
14969 sunos4*)
14970 version_type=sunos
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14973 shlibpath_var=LD_LIBRARY_PATH
14974 shlibpath_overrides_runpath=yes
14975 if test "$with_gnu_ld" = yes; then
14976 need_lib_prefix=no
14978 need_version=yes
14981 sysv4 | sysv4.3*)
14982 version_type=linux
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984 soname_spec='${libname}${release}${shared_ext}$major'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 case $host_vendor in
14987 sni)
14988 shlibpath_overrides_runpath=no
14989 need_lib_prefix=no
14990 export_dynamic_flag_spec='${wl}-Blargedynsym'
14991 runpath_var=LD_RUN_PATH
14993 siemens)
14994 need_lib_prefix=no
14996 motorola)
14997 need_lib_prefix=no
14998 need_version=no
14999 shlibpath_overrides_runpath=no
15000 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15002 esac
15005 sysv4*MP*)
15006 if test -d /usr/nec ;then
15007 version_type=linux
15008 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15009 soname_spec='$libname${shared_ext}.$major'
15010 shlibpath_var=LD_LIBRARY_PATH
15014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15015 version_type=freebsd-elf
15016 need_lib_prefix=no
15017 need_version=no
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 hardcode_into_libs=yes
15022 if test "$with_gnu_ld" = yes; then
15023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15024 shlibpath_overrides_runpath=no
15025 else
15026 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15027 shlibpath_overrides_runpath=yes
15028 case $host_os in
15029 sco3.2v5*)
15030 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15032 esac
15034 sys_lib_dlsearch_path_spec='/usr/lib'
15037 uts4*)
15038 version_type=linux
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 shlibpath_var=LD_LIBRARY_PATH
15045 dynamic_linker=no
15047 esac
15048 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15049 echo "${ECHO_T}$dynamic_linker" >&6
15050 test "$dynamic_linker" = no && can_build_shared=no
15052 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15053 if test "$GCC" = yes; then
15054 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15057 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15058 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15059 hardcode_action_F77=
15060 if test -n "$hardcode_libdir_flag_spec_F77" || \
15061 test -n "$runpath_var_F77" || \
15062 test "X$hardcode_automatic_F77" = "Xyes" ; then
15064 # We can hardcode non-existant directories.
15065 if test "$hardcode_direct_F77" != no &&
15066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15067 # have to relink, otherwise we might link with an installed library
15068 # when we should be linking with a yet-to-be-installed one
15069 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15070 test "$hardcode_minus_L_F77" != no; then
15071 # Linking always hardcodes the temporary library directory.
15072 hardcode_action_F77=relink
15073 else
15074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15075 hardcode_action_F77=immediate
15077 else
15078 # We cannot hardcode anything, or else we can only hardcode existing
15079 # directories.
15080 hardcode_action_F77=unsupported
15082 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15083 echo "${ECHO_T}$hardcode_action_F77" >&6
15085 if test "$hardcode_action_F77" = relink; then
15086 # Fast installation is not supported
15087 enable_fast_install=no
15088 elif test "$shlibpath_overrides_runpath" = yes ||
15089 test "$enable_shared" = no; then
15090 # Fast installation is not necessary
15091 enable_fast_install=needless
15095 # The else clause should only fire when bootstrapping the
15096 # libtool distribution, otherwise you forgot to ship ltmain.sh
15097 # with your package, and you will get complaints that there are
15098 # no rules to generate ltmain.sh.
15099 if test -f "$ltmain"; then
15100 # See if we are running on zsh, and set the options which allow our commands through
15101 # without removal of \ escapes.
15102 if test -n "${ZSH_VERSION+set}" ; then
15103 setopt NO_GLOB_SUBST
15105 # Now quote all the things that may contain metacharacters while being
15106 # careful not to overquote the AC_SUBSTed values. We take copies of the
15107 # variables and quote the copies for generation of the libtool script.
15108 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15109 SED SHELL STRIP \
15110 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15111 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15112 deplibs_check_method reload_flag reload_cmds need_locks \
15113 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15114 lt_cv_sys_global_symbol_to_c_name_address \
15115 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15116 old_postinstall_cmds old_postuninstall_cmds \
15117 compiler_F77 \
15118 CC_F77 \
15119 LD_F77 \
15120 lt_prog_compiler_wl_F77 \
15121 lt_prog_compiler_pic_F77 \
15122 lt_prog_compiler_static_F77 \
15123 lt_prog_compiler_no_builtin_flag_F77 \
15124 export_dynamic_flag_spec_F77 \
15125 thread_safe_flag_spec_F77 \
15126 whole_archive_flag_spec_F77 \
15127 enable_shared_with_static_runtimes_F77 \
15128 old_archive_cmds_F77 \
15129 old_archive_from_new_cmds_F77 \
15130 predep_objects_F77 \
15131 postdep_objects_F77 \
15132 predeps_F77 \
15133 postdeps_F77 \
15134 compiler_lib_search_path_F77 \
15135 archive_cmds_F77 \
15136 archive_expsym_cmds_F77 \
15137 postinstall_cmds_F77 \
15138 postuninstall_cmds_F77 \
15139 old_archive_from_expsyms_cmds_F77 \
15140 allow_undefined_flag_F77 \
15141 no_undefined_flag_F77 \
15142 export_symbols_cmds_F77 \
15143 hardcode_libdir_flag_spec_F77 \
15144 hardcode_libdir_flag_spec_ld_F77 \
15145 hardcode_libdir_separator_F77 \
15146 hardcode_automatic_F77 \
15147 module_cmds_F77 \
15148 module_expsym_cmds_F77 \
15149 lt_cv_prog_compiler_c_o_F77 \
15150 exclude_expsyms_F77 \
15151 include_expsyms_F77; do
15153 case $var in
15154 old_archive_cmds_F77 | \
15155 old_archive_from_new_cmds_F77 | \
15156 archive_cmds_F77 | \
15157 archive_expsym_cmds_F77 | \
15158 module_cmds_F77 | \
15159 module_expsym_cmds_F77 | \
15160 old_archive_from_expsyms_cmds_F77 | \
15161 export_symbols_cmds_F77 | \
15162 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15163 postinstall_cmds | postuninstall_cmds | \
15164 old_postinstall_cmds | old_postuninstall_cmds | \
15165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15166 # Double-quote double-evaled strings.
15167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15172 esac
15173 done
15175 case $lt_echo in
15176 *'\$0 --fallback-echo"')
15177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15179 esac
15181 cfgfile="$ofile"
15183 cat <<__EOF__ >> "$cfgfile"
15184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15188 # Shell to use when invoking shell scripts.
15189 SHELL=$lt_SHELL
15191 # Whether or not to build shared libraries.
15192 build_libtool_libs=$enable_shared
15194 # Whether or not to build static libraries.
15195 build_old_libs=$enable_static
15197 # Whether or not to add -lc for building shared libraries.
15198 build_libtool_need_lc=$archive_cmds_need_lc_F77
15200 # Whether or not to disallow shared libs when runtime libs are static
15201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15203 # Whether or not to optimize for fast installation.
15204 fast_install=$enable_fast_install
15206 # The host system.
15207 host_alias=$host_alias
15208 host=$host
15209 host_os=$host_os
15211 # The build system.
15212 build_alias=$build_alias
15213 build=$build
15214 build_os=$build_os
15216 # An echo program that does not interpret backslashes.
15217 echo=$lt_echo
15219 # The archiver.
15220 AR=$lt_AR
15221 AR_FLAGS=$lt_AR_FLAGS
15223 # A C compiler.
15224 LTCC=$lt_LTCC
15226 # LTCC compiler flags.
15227 LTCFLAGS=$lt_LTCFLAGS
15229 # A language-specific compiler.
15230 CC=$lt_compiler_F77
15232 # Is the compiler the GNU C compiler?
15233 with_gcc=$GCC_F77
15235 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15236 gcc_ver=\`gcc -dumpversion\`
15238 # An ERE matcher.
15239 EGREP=$lt_EGREP
15241 # The linker used to build libraries.
15242 LD=$lt_LD_F77
15244 # Whether we need hard or soft links.
15245 LN_S=$lt_LN_S
15247 # A BSD-compatible nm program.
15248 NM=$lt_NM
15250 # A symbol stripping program
15251 STRIP=$lt_STRIP
15253 # Used to examine libraries when file_magic_cmd begins "file"
15254 MAGIC_CMD=$MAGIC_CMD
15256 # Used on cygwin: DLL creation program.
15257 DLLTOOL="$DLLTOOL"
15259 # Used on cygwin: object dumper.
15260 OBJDUMP="$OBJDUMP"
15262 # Used on cygwin: assembler.
15263 AS="$AS"
15265 # The name of the directory that contains temporary libtool files.
15266 objdir=$objdir
15268 # How to create reloadable object files.
15269 reload_flag=$lt_reload_flag
15270 reload_cmds=$lt_reload_cmds
15272 # How to pass a linker flag through the compiler.
15273 wl=$lt_lt_prog_compiler_wl_F77
15275 # Object file suffix (normally "o").
15276 objext="$ac_objext"
15278 # Old archive suffix (normally "a").
15279 libext="$libext"
15281 # Shared library suffix (normally ".so").
15282 shrext_cmds='$shrext_cmds'
15284 # Executable file suffix (normally "").
15285 exeext="$exeext"
15287 # Additional compiler flags for building library objects.
15288 pic_flag=$lt_lt_prog_compiler_pic_F77
15289 pic_mode=$pic_mode
15291 # What is the maximum length of a command?
15292 max_cmd_len=$lt_cv_sys_max_cmd_len
15294 # Does compiler simultaneously support -c and -o options?
15295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15297 # Must we lock files when doing compilation?
15298 need_locks=$lt_need_locks
15300 # Do we need the lib prefix for modules?
15301 need_lib_prefix=$need_lib_prefix
15303 # Do we need a version for libraries?
15304 need_version=$need_version
15306 # Whether dlopen is supported.
15307 dlopen_support=$enable_dlopen
15309 # Whether dlopen of programs is supported.
15310 dlopen_self=$enable_dlopen_self
15312 # Whether dlopen of statically linked programs is supported.
15313 dlopen_self_static=$enable_dlopen_self_static
15315 # Compiler flag to prevent dynamic linking.
15316 link_static_flag=$lt_lt_prog_compiler_static_F77
15318 # Compiler flag to turn off builtin functions.
15319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15321 # Compiler flag to allow reflexive dlopens.
15322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15324 # Compiler flag to generate shared objects directly from archives.
15325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15327 # Compiler flag to generate thread-safe objects.
15328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15330 # Library versioning type.
15331 version_type=$version_type
15333 # Format of library name prefix.
15334 libname_spec=$lt_libname_spec
15336 # List of archive names. First name is the real one, the rest are links.
15337 # The last name is the one that the linker finds with -lNAME.
15338 library_names_spec=$lt_library_names_spec
15340 # The coded name of the library, if different from the real name.
15341 soname_spec=$lt_soname_spec
15343 # Commands used to build and install an old-style archive.
15344 RANLIB=$lt_RANLIB
15345 old_archive_cmds=$lt_old_archive_cmds_F77
15346 old_postinstall_cmds=$lt_old_postinstall_cmds
15347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15349 # Create an old-style archive from a shared archive.
15350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15352 # Create a temporary old-style archive to link instead of a shared archive.
15353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15355 # Commands used to build and install a shared archive.
15356 archive_cmds=$lt_archive_cmds_F77
15357 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15358 postinstall_cmds=$lt_postinstall_cmds
15359 postuninstall_cmds=$lt_postuninstall_cmds
15361 # Commands used to build a loadable module (assumed same as above if empty)
15362 module_cmds=$lt_module_cmds_F77
15363 module_expsym_cmds=$lt_module_expsym_cmds_F77
15365 # Commands to strip libraries.
15366 old_striplib=$lt_old_striplib
15367 striplib=$lt_striplib
15369 # Dependencies to place before the objects being linked to create a
15370 # shared library.
15371 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15373 # Dependencies to place after the objects being linked to create a
15374 # shared library.
15375 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15377 # Dependencies to place before the objects being linked to create a
15378 # shared library.
15379 predeps=$lt_predeps_F77
15381 # Dependencies to place after the objects being linked to create a
15382 # shared library.
15383 postdeps=$lt_postdeps_F77
15385 # The library search path used internally by the compiler when linking
15386 # a shared library.
15387 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15389 # Method to check whether dependent libraries are shared objects.
15390 deplibs_check_method=$lt_deplibs_check_method
15392 # Command to use when deplibs_check_method == file_magic.
15393 file_magic_cmd=$lt_file_magic_cmd
15395 # Flag that allows shared libraries with undefined symbols to be built.
15396 allow_undefined_flag=$lt_allow_undefined_flag_F77
15398 # Flag that forces no undefined symbols.
15399 no_undefined_flag=$lt_no_undefined_flag_F77
15401 # Commands used to finish a libtool library installation in a directory.
15402 finish_cmds=$lt_finish_cmds
15404 # Same as above, but a single script fragment to be evaled but not shown.
15405 finish_eval=$lt_finish_eval
15407 # Take the output of nm and produce a listing of raw symbols and C names.
15408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15410 # Transform the output of nm in a proper C declaration
15411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15413 # Transform the output of nm in a C name address pair
15414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15416 # This is the shared library runtime path variable.
15417 runpath_var=$runpath_var
15419 # This is the shared library path variable.
15420 shlibpath_var=$shlibpath_var
15422 # Is shlibpath searched before the hard-coded library search path?
15423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15425 # How to hardcode a shared library path into an executable.
15426 hardcode_action=$hardcode_action_F77
15428 # Whether we should hardcode library paths into libraries.
15429 hardcode_into_libs=$hardcode_into_libs
15431 # Flag to hardcode \$libdir into a binary during linking.
15432 # This must work even if \$libdir does not exist.
15433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15435 # If ld is used when linking, flag to hardcode \$libdir into
15436 # a binary during linking. This must work even if \$libdir does
15437 # not exist.
15438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15440 # Whether we need a single -rpath flag with a separated argument.
15441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15444 # resulting binary.
15445 hardcode_direct=$hardcode_direct_F77
15447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15448 # resulting binary.
15449 hardcode_minus_L=$hardcode_minus_L_F77
15451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15452 # the resulting binary.
15453 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15455 # Set to yes if building a shared library automatically hardcodes DIR into the library
15456 # and all subsequent libraries and executables linked against it.
15457 hardcode_automatic=$hardcode_automatic_F77
15459 # Variables whose values should be saved in libtool wrapper scripts and
15460 # restored at relink time.
15461 variables_saved_for_relink="$variables_saved_for_relink"
15463 # Whether libtool must link a program against all its dependency libraries.
15464 link_all_deplibs=$link_all_deplibs_F77
15466 # Compile-time system search path for libraries
15467 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15469 # Run-time system search path for libraries
15470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15472 # Fix the shell variable \$srcfile for the compiler.
15473 fix_srcfile_path="$fix_srcfile_path_F77"
15475 # Set to yes if exported symbols are required.
15476 always_export_symbols=$always_export_symbols_F77
15478 # The commands to list exported symbols.
15479 export_symbols_cmds=$lt_export_symbols_cmds_F77
15481 # The commands to extract the exported symbol list from a shared archive.
15482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15484 # Symbols that should not be listed in the preloaded symbols.
15485 exclude_expsyms=$lt_exclude_expsyms_F77
15487 # Symbols that must always be exported.
15488 include_expsyms=$lt_include_expsyms_F77
15490 # ### END LIBTOOL TAG CONFIG: $tagname
15492 __EOF__
15495 else
15496 # If there is no Makefile yet, we rely on a make rule to execute
15497 # `config.status --recheck' to rerun these tests and create the
15498 # libtool script then.
15499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15500 if test -f "$ltmain_in"; then
15501 test -f Makefile && make "$ltmain"
15506 ac_ext=c
15507 ac_cpp='$CPP $CPPFLAGS'
15508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15512 CC="$lt_save_CC"
15514 else
15515 tagname=""
15519 GCJ)
15520 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15524 # Source file extension for Java test sources.
15525 ac_ext=java
15527 # Object file extension for compiled Java test sources.
15528 objext=o
15529 objext_GCJ=$objext
15531 # Code to be used in simple compile tests
15532 lt_simple_compile_test_code="class foo {}\n"
15534 # Code to be used in simple link tests
15535 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15537 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15539 # If no C compiler was specified, use CC.
15540 LTCC=${LTCC-"$CC"}
15542 # If no C compiler flags were specified, use CFLAGS.
15543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15545 # Allow CC to be a program name with arguments.
15546 compiler=$CC
15549 # save warnings/boilerplate of simple test code
15550 ac_outfile=conftest.$ac_objext
15551 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15553 _lt_compiler_boilerplate=`cat conftest.err`
15554 $rm conftest*
15556 ac_outfile=conftest.$ac_objext
15557 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15559 _lt_linker_boilerplate=`cat conftest.err`
15560 $rm conftest*
15563 # Allow CC to be a program name with arguments.
15564 lt_save_CC="$CC"
15565 CC=${GCJ-"gcj"}
15566 compiler=$CC
15567 compiler_GCJ=$CC
15568 for cc_temp in $compiler""; do
15569 case $cc_temp in
15570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15572 \-*) ;;
15573 *) break;;
15574 esac
15575 done
15576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15579 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15580 archive_cmds_need_lc_GCJ=no
15582 old_archive_cmds_GCJ=$old_archive_cmds
15585 lt_prog_compiler_no_builtin_flag_GCJ=
15587 if test "$GCC" = yes; then
15588 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15591 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15592 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15593 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596 lt_cv_prog_compiler_rtti_exceptions=no
15597 ac_outfile=conftest.$ac_objext
15598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15599 lt_compiler_flag="-fno-rtti -fno-exceptions"
15600 # Insert the option either (1) after the last *FLAGS variable, or
15601 # (2) before a word containing "conftest.", or (3) at the end.
15602 # Note that $ac_compile itself does not contain backslashes and begins
15603 # with a dollar sign (not a hyphen), so the echo should work correctly.
15604 # The option is referenced via a variable to avoid confusing sed.
15605 lt_compile=`echo "$ac_compile" | $SED \
15606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608 -e 's:$: $lt_compiler_flag:'`
15609 (eval echo "\"\$as_me:15609: $lt_compile\"" >&5)
15610 (eval "$lt_compile" 2>conftest.err)
15611 ac_status=$?
15612 cat conftest.err >&5
15613 echo "$as_me:15613: \$? = $ac_status" >&5
15614 if (exit $ac_status) && test -s "$ac_outfile"; then
15615 # The compiler can only warn and ignore the option if not recognized
15616 # So say no if there are warnings other than the usual output.
15617 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15619 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15620 lt_cv_prog_compiler_rtti_exceptions=yes
15623 $rm conftest*
15626 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15627 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15629 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15630 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15631 else
15637 lt_prog_compiler_wl_GCJ=
15638 lt_prog_compiler_pic_GCJ=
15639 lt_prog_compiler_static_GCJ=
15641 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15642 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15644 if test "$GCC" = yes; then
15645 lt_prog_compiler_wl_GCJ='-Wl,'
15646 lt_prog_compiler_static_GCJ='-static'
15648 case $host_os in
15649 aix*)
15650 # All AIX code is PIC.
15651 if test "$host_cpu" = ia64; then
15652 # AIX 5 now supports IA64 processor
15653 lt_prog_compiler_static_GCJ='-Bstatic'
15657 amigaos*)
15658 # FIXME: we need at least 68020 code to build shared libraries, but
15659 # adding the `-m68020' flag to GCC prevents building anything better,
15660 # like `-m68040'.
15661 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15664 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15665 # PIC is the default for these OSes.
15668 mingw* | pw32* | os2*)
15669 # This hack is so that the source file can tell whether it is being
15670 # built for inclusion in a dll (and should export symbols for example).
15671 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15674 darwin* | rhapsody*)
15675 # PIC is the default on this platform
15676 # Common symbols not allowed in MH_DYLIB files
15677 lt_prog_compiler_pic_GCJ='-fno-common'
15680 interix3*)
15681 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15682 # Instead, we relocate shared libraries at runtime.
15685 msdosdjgpp*)
15686 # Just because we use GCC doesn't mean we suddenly get shared libraries
15687 # on systems that don't support them.
15688 lt_prog_compiler_can_build_shared_GCJ=no
15689 enable_shared=no
15692 sysv4*MP*)
15693 if test -d /usr/nec; then
15694 lt_prog_compiler_pic_GCJ=-Kconform_pic
15698 hpux*)
15699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15700 # not for PA HP-UX.
15701 case $host_cpu in
15702 hppa*64*|ia64*)
15703 # +Z the default
15706 lt_prog_compiler_pic_GCJ='-fPIC'
15708 esac
15712 lt_prog_compiler_pic_GCJ='-fPIC'
15714 esac
15715 else
15716 # PORTME Check for flag to pass linker flags through the system compiler.
15717 case $host_os in
15718 aix*)
15719 lt_prog_compiler_wl_GCJ='-Wl,'
15720 if test "$host_cpu" = ia64; then
15721 # AIX 5 now supports IA64 processor
15722 lt_prog_compiler_static_GCJ='-Bstatic'
15723 else
15724 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15727 darwin*)
15728 # PIC is the default on this platform
15729 # Common symbols not allowed in MH_DYLIB files
15730 case $cc_basename in
15731 xlc*)
15732 lt_prog_compiler_pic_GCJ='-qnocommon'
15733 lt_prog_compiler_wl_GCJ='-Wl,'
15735 esac
15738 mingw* | pw32* | os2*)
15739 # This hack is so that the source file can tell whether it is being
15740 # built for inclusion in a dll (and should export symbols for example).
15741 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15744 hpux9* | hpux10* | hpux11*)
15745 lt_prog_compiler_wl_GCJ='-Wl,'
15746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15747 # not for PA HP-UX.
15748 case $host_cpu in
15749 hppa*64*|ia64*)
15750 # +Z the default
15753 lt_prog_compiler_pic_GCJ='+Z'
15755 esac
15756 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15757 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15760 irix5* | irix6* | nonstopux*)
15761 lt_prog_compiler_wl_GCJ='-Wl,'
15762 # PIC (with -KPIC) is the default.
15763 lt_prog_compiler_static_GCJ='-non_shared'
15766 newsos6)
15767 lt_prog_compiler_pic_GCJ='-KPIC'
15768 lt_prog_compiler_static_GCJ='-Bstatic'
15771 linux*)
15772 case $cc_basename in
15773 icc* | ecc*)
15774 lt_prog_compiler_wl_GCJ='-Wl,'
15775 lt_prog_compiler_pic_GCJ='-KPIC'
15776 lt_prog_compiler_static_GCJ='-static'
15778 pgcc* | pgf77* | pgf90* | pgf95*)
15779 # Portland Group compilers (*not* the Pentium gcc compiler,
15780 # which looks to be a dead project)
15781 lt_prog_compiler_wl_GCJ='-Wl,'
15782 lt_prog_compiler_pic_GCJ='-fpic'
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15785 ccc*)
15786 lt_prog_compiler_wl_GCJ='-Wl,'
15787 # All Alpha code is PIC.
15788 lt_prog_compiler_static_GCJ='-non_shared'
15790 esac
15793 osf3* | osf4* | osf5*)
15794 lt_prog_compiler_wl_GCJ='-Wl,'
15795 # All OSF/1 code is PIC.
15796 lt_prog_compiler_static_GCJ='-non_shared'
15799 solaris*)
15800 lt_prog_compiler_pic_GCJ='-KPIC'
15801 lt_prog_compiler_static_GCJ='-Bstatic'
15802 case $cc_basename in
15803 f77* | f90* | f95*)
15804 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15806 lt_prog_compiler_wl_GCJ='-Wl,';;
15807 esac
15810 sunos4*)
15811 lt_prog_compiler_wl_GCJ='-Qoption ld '
15812 lt_prog_compiler_pic_GCJ='-PIC'
15813 lt_prog_compiler_static_GCJ='-Bstatic'
15816 sysv4 | sysv4.2uw2* | sysv4.3*)
15817 lt_prog_compiler_wl_GCJ='-Wl,'
15818 lt_prog_compiler_pic_GCJ='-KPIC'
15819 lt_prog_compiler_static_GCJ='-Bstatic'
15822 sysv4*MP*)
15823 if test -d /usr/nec ;then
15824 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15825 lt_prog_compiler_static_GCJ='-Bstatic'
15829 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15830 lt_prog_compiler_wl_GCJ='-Wl,'
15831 lt_prog_compiler_pic_GCJ='-KPIC'
15832 lt_prog_compiler_static_GCJ='-Bstatic'
15835 unicos*)
15836 lt_prog_compiler_wl_GCJ='-Wl,'
15837 lt_prog_compiler_can_build_shared_GCJ=no
15840 uts4*)
15841 lt_prog_compiler_pic_GCJ='-pic'
15842 lt_prog_compiler_static_GCJ='-Bstatic'
15846 lt_prog_compiler_can_build_shared_GCJ=no
15848 esac
15851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15852 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15855 # Check to make sure the PIC flag actually works.
15857 if test -n "$lt_prog_compiler_pic_GCJ"; then
15859 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15860 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15861 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864 lt_prog_compiler_pic_works_GCJ=no
15865 ac_outfile=conftest.$ac_objext
15866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15867 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15868 # Insert the option either (1) after the last *FLAGS variable, or
15869 # (2) before a word containing "conftest.", or (3) at the end.
15870 # Note that $ac_compile itself does not contain backslashes and begins
15871 # with a dollar sign (not a hyphen), so the echo should work correctly.
15872 # The option is referenced via a variable to avoid confusing sed.
15873 lt_compile=`echo "$ac_compile" | $SED \
15874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15876 -e 's:$: $lt_compiler_flag:'`
15877 (eval echo "\"\$as_me:15877: $lt_compile\"" >&5)
15878 (eval "$lt_compile" 2>conftest.err)
15879 ac_status=$?
15880 cat conftest.err >&5
15881 echo "$as_me:15881: \$? = $ac_status" >&5
15882 if (exit $ac_status) && test -s "$ac_outfile"; then
15883 # The compiler can only warn and ignore the option if not recognized
15884 # So say no if there are warnings other than the usual output.
15885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15888 lt_prog_compiler_pic_works_GCJ=yes
15891 $rm conftest*
15894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15895 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15897 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15898 case $lt_prog_compiler_pic_GCJ in
15899 "" | " "*) ;;
15900 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15901 esac
15902 else
15903 lt_prog_compiler_pic_GCJ=
15904 lt_prog_compiler_can_build_shared_GCJ=no
15908 case $host_os in
15909 # For platforms which do not support PIC, -DPIC is meaningless:
15910 *djgpp*)
15911 lt_prog_compiler_pic_GCJ=
15914 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15916 esac
15919 # Check to make sure the static flag actually works.
15921 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15922 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15923 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15924 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927 lt_prog_compiler_static_works_GCJ=no
15928 save_LDFLAGS="$LDFLAGS"
15929 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15930 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15931 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15932 # The linker can only warn and ignore the option if not recognized
15933 # So say no if there are warnings
15934 if test -s conftest.err; then
15935 # Append any errors to the config.log.
15936 cat conftest.err 1>&5
15937 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15939 if diff conftest.exp conftest.er2 >/dev/null; then
15940 lt_prog_compiler_static_works_GCJ=yes
15942 else
15943 lt_prog_compiler_static_works_GCJ=yes
15946 $rm conftest*
15947 LDFLAGS="$save_LDFLAGS"
15950 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15951 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15953 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15955 else
15956 lt_prog_compiler_static_GCJ=
15960 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15961 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15962 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 lt_cv_prog_compiler_c_o_GCJ=no
15966 $rm -r conftest 2>/dev/null
15967 mkdir conftest
15968 cd conftest
15969 mkdir out
15970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15972 lt_compiler_flag="-o out/conftest2.$ac_objext"
15973 # Insert the option either (1) after the last *FLAGS variable, or
15974 # (2) before a word containing "conftest.", or (3) at the end.
15975 # Note that $ac_compile itself does not contain backslashes and begins
15976 # with a dollar sign (not a hyphen), so the echo should work correctly.
15977 lt_compile=`echo "$ac_compile" | $SED \
15978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15980 -e 's:$: $lt_compiler_flag:'`
15981 (eval echo "\"\$as_me:15981: $lt_compile\"" >&5)
15982 (eval "$lt_compile" 2>out/conftest.err)
15983 ac_status=$?
15984 cat out/conftest.err >&5
15985 echo "$as_me:15985: \$? = $ac_status" >&5
15986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15987 then
15988 # The compiler can only warn and ignore the option if not recognized
15989 # So say no if there are warnings
15990 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15993 lt_cv_prog_compiler_c_o_GCJ=yes
15996 chmod u+w . 2>&5
15997 $rm conftest*
15998 # SGI C++ compiler will create directory out/ii_files/ for
15999 # template instantiation
16000 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16001 $rm out/* && rmdir out
16002 cd ..
16003 rmdir conftest
16004 $rm conftest*
16007 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16008 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16011 hard_links="nottested"
16012 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16013 # do not overwrite the value of need_locks provided by the user
16014 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16015 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16016 hard_links=yes
16017 $rm conftest*
16018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16019 touch conftest.a
16020 ln conftest.a conftest.b 2>&5 || hard_links=no
16021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16022 echo "$as_me:$LINENO: result: $hard_links" >&5
16023 echo "${ECHO_T}$hard_links" >&6
16024 if test "$hard_links" = no; then
16025 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16026 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16027 need_locks=warn
16029 else
16030 need_locks=no
16033 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16034 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16036 runpath_var=
16037 allow_undefined_flag_GCJ=
16038 enable_shared_with_static_runtimes_GCJ=no
16039 archive_cmds_GCJ=
16040 archive_expsym_cmds_GCJ=
16041 old_archive_From_new_cmds_GCJ=
16042 old_archive_from_expsyms_cmds_GCJ=
16043 export_dynamic_flag_spec_GCJ=
16044 whole_archive_flag_spec_GCJ=
16045 thread_safe_flag_spec_GCJ=
16046 hardcode_libdir_flag_spec_GCJ=
16047 hardcode_libdir_flag_spec_ld_GCJ=
16048 hardcode_libdir_separator_GCJ=
16049 hardcode_direct_GCJ=no
16050 hardcode_minus_L_GCJ=no
16051 hardcode_shlibpath_var_GCJ=unsupported
16052 link_all_deplibs_GCJ=unknown
16053 hardcode_automatic_GCJ=no
16054 module_cmds_GCJ=
16055 module_expsym_cmds_GCJ=
16056 always_export_symbols_GCJ=no
16057 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16058 # include_expsyms should be a list of space-separated symbols to be *always*
16059 # included in the symbol list
16060 include_expsyms_GCJ=
16061 # exclude_expsyms can be an extended regexp of symbols to exclude
16062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16064 # as well as any symbol that contains `d'.
16065 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16067 # platforms (ab)use it in PIC code, but their linkers get confused if
16068 # the symbol is explicitly referenced. Since portable code cannot
16069 # rely on this symbol name, it's probably fine to never include it in
16070 # preloaded symbol tables.
16071 extract_expsyms_cmds=
16072 # Just being paranoid about ensuring that cc_basename is set.
16073 for cc_temp in $compiler""; do
16074 case $cc_temp in
16075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16077 \-*) ;;
16078 *) break;;
16079 esac
16080 done
16081 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16083 case $host_os in
16084 cygwin* | mingw* | pw32*)
16085 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16086 # When not using gcc, we currently assume that we are using
16087 # Microsoft Visual C++.
16088 if test "$GCC" != yes; then
16089 with_gnu_ld=no
16092 interix*)
16093 # we just hope/assume this is gcc and not c89 (= MSVC++)
16094 with_gnu_ld=yes
16096 openbsd*)
16097 with_gnu_ld=no
16099 esac
16101 ld_shlibs_GCJ=yes
16102 if test "$with_gnu_ld" = yes; then
16103 # If archive_cmds runs LD, not CC, wlarc should be empty
16104 wlarc='${wl}'
16106 # Set some defaults for GNU ld with shared library support. These
16107 # are reset later if shared libraries are not supported. Putting them
16108 # here allows them to be overridden if necessary.
16109 runpath_var=LD_RUN_PATH
16110 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16111 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16112 # ancient GNU ld didn't support --whole-archive et. al.
16113 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16114 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16115 else
16116 whole_archive_flag_spec_GCJ=
16118 supports_anon_versioning=no
16119 case `$LD -v 2>/dev/null` in
16120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16123 *\ 2.11.*) ;; # other 2.11 versions
16124 *) supports_anon_versioning=yes ;;
16125 esac
16127 # See if GNU ld supports shared libraries.
16128 case $host_os in
16129 aix3* | aix4* | aix5*)
16130 # On AIX/PPC, the GNU linker is very broken
16131 if test "$host_cpu" != ia64; then
16132 ld_shlibs_GCJ=no
16133 cat <<EOF 1>&2
16135 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16136 *** to be unable to reliably create shared libraries on AIX.
16137 *** Therefore, libtool is disabling shared libraries support. If you
16138 *** really care for shared libraries, you may want to modify your PATH
16139 *** so that a non-GNU linker is found, and then restart.
16145 amigaos*)
16146 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)'
16147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16148 hardcode_minus_L_GCJ=yes
16150 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16151 # that the semantics of dynamic libraries on AmigaOS, at least up
16152 # to version 4, is to share data among multiple programs linked
16153 # with the same dynamic library. Since this doesn't match the
16154 # behavior of shared libraries on other platforms, we can't use
16155 # them.
16156 ld_shlibs_GCJ=no
16159 beos*)
16160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16161 allow_undefined_flag_GCJ=unsupported
16162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16163 # support --undefined. This deserves some investigation. FIXME
16164 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165 else
16166 ld_shlibs_GCJ=no
16170 cygwin* | mingw* | pw32*)
16171 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16172 # as there is no search path for DLLs.
16173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174 allow_undefined_flag_GCJ=unsupported
16175 always_export_symbols_GCJ=no
16176 enable_shared_with_static_runtimes_GCJ=yes
16177 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16179 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16181 # If the export-symbols file already is a .def file (1st line
16182 # is EXPORTS), use it as is; otherwise, prepend...
16183 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16184 cp $export_symbols $output_objdir/$soname.def;
16185 else
16186 echo EXPORTS > $output_objdir/$soname.def;
16187 cat $export_symbols >> $output_objdir/$soname.def;
16189 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16190 else
16191 ld_shlibs_GCJ=no
16195 interix3*)
16196 hardcode_direct_GCJ=no
16197 hardcode_shlibpath_var_GCJ=no
16198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16199 export_dynamic_flag_spec_GCJ='${wl}-E'
16200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16201 # Instead, shared libraries are loaded at an image base (0x10000000 by
16202 # default) and relocated if they conflict, which is a slow very memory
16203 # consuming and fragmenting process. To avoid this, we pick a random,
16204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16206 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'
16207 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'
16210 linux*)
16211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16212 tmp_addflag=
16213 case $cc_basename,$host_cpu in
16214 pgcc*) # Portland Group C compiler
16215 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'
16216 tmp_addflag=' $pic_flag'
16218 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16219 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'
16220 tmp_addflag=' $pic_flag -Mnomain' ;;
16221 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16222 tmp_addflag=' -i_dynamic' ;;
16223 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16224 tmp_addflag=' -i_dynamic -nofor_main' ;;
16225 ifc* | ifort*) # Intel Fortran compiler
16226 tmp_addflag=' -nofor_main' ;;
16227 esac
16228 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16230 if test $supports_anon_versioning = yes; then
16231 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16233 $echo "local: *; };" >> $output_objdir/$libname.ver~
16234 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16236 else
16237 ld_shlibs_GCJ=no
16241 netbsd*)
16242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16243 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16244 wlarc=
16245 else
16246 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251 solaris*)
16252 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16253 ld_shlibs_GCJ=no
16254 cat <<EOF 1>&2
16256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16257 *** create shared libraries on Solaris systems. Therefore, libtool
16258 *** is disabling shared libraries support. We urge you to upgrade GNU
16259 *** binutils to release 2.9.1 or newer. Another option is to modify
16260 *** your PATH or compiler configuration so that the native linker is
16261 *** used, and then restart.
16264 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16265 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16267 else
16268 ld_shlibs_GCJ=no
16272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16273 case `$LD -v 2>&1` in
16274 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16275 ld_shlibs_GCJ=no
16276 cat <<_LT_EOF 1>&2
16278 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16279 *** reliably create shared libraries on SCO systems. Therefore, libtool
16280 *** is disabling shared libraries support. We urge you to upgrade GNU
16281 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16282 *** your PATH or compiler configuration so that the native linker is
16283 *** used, and then restart.
16285 _LT_EOF
16288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16289 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16290 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16291 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16292 else
16293 ld_shlibs_GCJ=no
16296 esac
16299 sunos4*)
16300 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16301 wlarc=
16302 hardcode_direct_GCJ=yes
16303 hardcode_shlibpath_var_GCJ=no
16307 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16308 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16310 else
16311 ld_shlibs_GCJ=no
16314 esac
16316 if test "$ld_shlibs_GCJ" = no; then
16317 runpath_var=
16318 hardcode_libdir_flag_spec_GCJ=
16319 export_dynamic_flag_spec_GCJ=
16320 whole_archive_flag_spec_GCJ=
16322 else
16323 # PORTME fill in a description of your system's linker (not GNU ld)
16324 case $host_os in
16325 aix3*)
16326 allow_undefined_flag_GCJ=unsupported
16327 always_export_symbols_GCJ=yes
16328 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'
16329 # Note: this linker hardcodes the directories in LIBPATH if there
16330 # are no directories specified by -L.
16331 hardcode_minus_L_GCJ=yes
16332 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16333 # Neither direct hardcoding nor static linking is supported with a
16334 # broken collect2.
16335 hardcode_direct_GCJ=unsupported
16339 aix4* | aix5*)
16340 if test "$host_cpu" = ia64; then
16341 # On IA64, the linker does run time linking by default, so we don't
16342 # have to do anything special.
16343 aix_use_runtimelinking=no
16344 exp_sym_flag='-Bexport'
16345 no_entry_flag=""
16346 else
16347 # If we're using GNU nm, then we don't want the "-C" option.
16348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16349 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16350 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'
16351 else
16352 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'
16354 aix_use_runtimelinking=no
16356 # Test if we are trying to use run time linking or normal
16357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16358 # need to do runtime linking.
16359 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16360 for ld_flag in $LDFLAGS; do
16361 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16362 aix_use_runtimelinking=yes
16363 break
16365 done
16367 esac
16369 exp_sym_flag='-bexport'
16370 no_entry_flag='-bnoentry'
16373 # When large executables or shared objects are built, AIX ld can
16374 # have problems creating the table of contents. If linking a library
16375 # or program results in "error TOC overflow" add -mminimal-toc to
16376 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16377 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16379 archive_cmds_GCJ=''
16380 hardcode_direct_GCJ=yes
16381 hardcode_libdir_separator_GCJ=':'
16382 link_all_deplibs_GCJ=yes
16384 if test "$GCC" = yes; then
16385 case $host_os in aix4.[012]|aix4.[012].*)
16386 # We only want to do this on AIX 4.2 and lower, the check
16387 # below for broken collect2 doesn't work under 4.3+
16388 collect2name=`${CC} -print-prog-name=collect2`
16389 if test -f "$collect2name" && \
16390 strings "$collect2name" | grep resolve_lib_name >/dev/null
16391 then
16392 # We have reworked collect2
16393 hardcode_direct_GCJ=yes
16394 else
16395 # We have old collect2
16396 hardcode_direct_GCJ=unsupported
16397 # It fails to find uninstalled libraries when the uninstalled
16398 # path is not listed in the libpath. Setting hardcode_minus_L
16399 # to unsupported forces relinking
16400 hardcode_minus_L_GCJ=yes
16401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16402 hardcode_libdir_separator_GCJ=
16405 esac
16406 shared_flag='-shared'
16407 if test "$aix_use_runtimelinking" = yes; then
16408 shared_flag="$shared_flag "'${wl}-G'
16410 else
16411 # not using gcc
16412 if test "$host_cpu" = ia64; then
16413 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16414 # chokes on -Wl,-G. The following line is correct:
16415 shared_flag='-G'
16416 else
16417 if test "$aix_use_runtimelinking" = yes; then
16418 shared_flag='${wl}-G'
16419 else
16420 shared_flag='${wl}-bM:SRE'
16425 # It seems that -bexpall does not export symbols beginning with
16426 # underscore (_), so it is better to generate a list of symbols to export.
16427 always_export_symbols_GCJ=yes
16428 if test "$aix_use_runtimelinking" = yes; then
16429 # Warning - without using the other runtime loading flags (-brtl),
16430 # -berok will link without error, but may produce a broken library.
16431 allow_undefined_flag_GCJ='-berok'
16432 # Determine the default libpath from the value encoded in an empty executable.
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h. */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16441 main ()
16445 return 0;
16447 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16450 (eval $ac_link) 2>conftest.er1
16451 ac_status=$?
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -z "$ac_c_werror_flag"
16458 || test ! -s conftest.err'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16473 # Check for a 64-bit object if we didn't find anything.
16474 if 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; }
16475 }'`; fi
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16481 rm -f conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16485 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486 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"
16487 else
16488 if test "$host_cpu" = ia64; then
16489 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16490 allow_undefined_flag_GCJ="-z nodefs"
16491 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"
16492 else
16493 # Determine the default libpath from the value encoded in an empty executable.
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16502 main ()
16506 return 0;
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511 (eval $ac_link) 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag"
16519 || test ! -s conftest.err'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest$ac_exeext'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16534 # Check for a 64-bit object if we didn't find anything.
16535 if 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; }
16536 }'`; fi
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16542 rm -f conftest.err conftest.$ac_objext \
16543 conftest$ac_exeext conftest.$ac_ext
16544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16546 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16547 # Warning - without using the other run time loading flags,
16548 # -berok will link without error, but may produce a broken library.
16549 no_undefined_flag_GCJ=' ${wl}-bernotok'
16550 allow_undefined_flag_GCJ=' ${wl}-berok'
16551 # Exported symbols can be pulled into shared objects from archives
16552 whole_archive_flag_spec_GCJ='$convenience'
16553 archive_cmds_need_lc_GCJ=yes
16554 # This is similar to how AIX traditionally builds its shared libraries.
16555 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'
16560 amigaos*)
16561 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)'
16562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16563 hardcode_minus_L_GCJ=yes
16564 # see comment about different semantics on the GNU ld section
16565 ld_shlibs_GCJ=no
16568 bsdi[45]*)
16569 export_dynamic_flag_spec_GCJ=-rdynamic
16572 cygwin* | mingw* | pw32*)
16573 # When not using gcc, we currently assume that we are using
16574 # Microsoft Visual C++.
16575 # hardcode_libdir_flag_spec is actually meaningless, as there is
16576 # no search path for DLLs.
16577 hardcode_libdir_flag_spec_GCJ=' '
16578 allow_undefined_flag_GCJ=unsupported
16579 # Tell ltmain to make .lib files, not .a files.
16580 libext=lib
16581 # Tell ltmain to make .dll files, not .so files.
16582 shrext_cmds=".dll"
16583 # FIXME: Setting linknames here is a bad hack.
16584 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16585 # The linker will automatically build a .lib file if we build a DLL.
16586 old_archive_From_new_cmds_GCJ='true'
16587 # FIXME: Should let the user specify the lib program.
16588 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16589 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16590 enable_shared_with_static_runtimes_GCJ=yes
16593 darwin* | rhapsody*)
16594 case $host_os in
16595 rhapsody* | darwin1.[012])
16596 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16598 *) # Darwin 1.3 on
16599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16600 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16601 else
16602 case ${MACOSX_DEPLOYMENT_TARGET} in
16603 10.[012])
16604 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16606 10.*)
16607 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16609 esac
16612 esac
16613 archive_cmds_need_lc_GCJ=no
16614 hardcode_direct_GCJ=no
16615 hardcode_automatic_GCJ=yes
16616 hardcode_shlibpath_var_GCJ=unsupported
16617 whole_archive_flag_spec_GCJ=''
16618 link_all_deplibs_GCJ=yes
16619 if test "$GCC" = yes ; then
16620 output_verbose_link_cmd='echo'
16621 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16622 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16624 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}'
16625 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}'
16626 else
16627 case $cc_basename in
16628 xlc*)
16629 output_verbose_link_cmd='echo'
16630 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16631 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16633 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}'
16634 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}'
16637 ld_shlibs_GCJ=no
16639 esac
16643 dgux*)
16644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16646 hardcode_shlibpath_var_GCJ=no
16649 freebsd1*)
16650 ld_shlibs_GCJ=no
16653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16654 # support. Future versions do this automatically, but an explicit c++rt0.o
16655 # does not break anything, and helps significantly (at the cost of a little
16656 # extra space).
16657 freebsd2.2*)
16658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16659 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16660 hardcode_direct_GCJ=yes
16661 hardcode_shlibpath_var_GCJ=no
16664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16665 freebsd2*)
16666 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_direct_GCJ=yes
16668 hardcode_minus_L_GCJ=yes
16669 hardcode_shlibpath_var_GCJ=no
16672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16673 freebsd* | kfreebsd*-gnu | dragonfly*)
16674 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16676 hardcode_direct_GCJ=yes
16677 hardcode_shlibpath_var_GCJ=no
16680 hpux9*)
16681 if test "$GCC" = yes; then
16682 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'
16683 else
16684 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'
16686 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16687 hardcode_libdir_separator_GCJ=:
16688 hardcode_direct_GCJ=yes
16690 # hardcode_minus_L: Not really in the search PATH,
16691 # but as the default location of the library.
16692 hardcode_minus_L_GCJ=yes
16693 export_dynamic_flag_spec_GCJ='${wl}-E'
16696 hpux10*)
16697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16698 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16699 else
16700 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16702 if test "$with_gnu_ld" = no; then
16703 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16704 hardcode_libdir_separator_GCJ=:
16706 hardcode_direct_GCJ=yes
16707 export_dynamic_flag_spec_GCJ='${wl}-E'
16709 # hardcode_minus_L: Not really in the search PATH,
16710 # but as the default location of the library.
16711 hardcode_minus_L_GCJ=yes
16715 hpux11*)
16716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16717 case $host_cpu in
16718 hppa*64*)
16719 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 ia64*)
16722 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16725 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16727 esac
16728 else
16729 case $host_cpu in
16730 hppa*64*)
16731 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16733 ia64*)
16734 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16739 esac
16741 if test "$with_gnu_ld" = no; then
16742 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16743 hardcode_libdir_separator_GCJ=:
16745 case $host_cpu in
16746 hppa*64*|ia64*)
16747 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16748 hardcode_direct_GCJ=no
16749 hardcode_shlibpath_var_GCJ=no
16752 hardcode_direct_GCJ=yes
16753 export_dynamic_flag_spec_GCJ='${wl}-E'
16755 # hardcode_minus_L: Not really in the search PATH,
16756 # but as the default location of the library.
16757 hardcode_minus_L_GCJ=yes
16759 esac
16763 irix5* | irix6* | nonstopux*)
16764 if test "$GCC" = yes; then
16765 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'
16766 else
16767 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'
16768 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16771 hardcode_libdir_separator_GCJ=:
16772 link_all_deplibs_GCJ=yes
16775 netbsd*)
16776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16778 else
16779 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16782 hardcode_direct_GCJ=yes
16783 hardcode_shlibpath_var_GCJ=no
16786 newsos6)
16787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_direct_GCJ=yes
16789 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16790 hardcode_libdir_separator_GCJ=:
16791 hardcode_shlibpath_var_GCJ=no
16794 openbsd*)
16795 hardcode_direct_GCJ=yes
16796 hardcode_shlibpath_var_GCJ=no
16797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16798 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16799 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16801 export_dynamic_flag_spec_GCJ='${wl}-E'
16802 else
16803 case $host_os in
16804 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16805 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16806 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16809 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16812 esac
16816 os2*)
16817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16818 hardcode_minus_L_GCJ=yes
16819 allow_undefined_flag_GCJ=unsupported
16820 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'
16821 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16824 osf3*)
16825 if test "$GCC" = yes; then
16826 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16827 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'
16828 else
16829 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16830 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'
16832 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16833 hardcode_libdir_separator_GCJ=:
16836 osf4* | osf5*) # as osf3* with the addition of -msym flag
16837 if test "$GCC" = yes; then
16838 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16839 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'
16840 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16841 else
16842 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16843 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'
16844 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~
16845 $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'
16847 # Both c and cxx compiler support -rpath directly
16848 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16850 hardcode_libdir_separator_GCJ=:
16853 solaris*)
16854 no_undefined_flag_GCJ=' -z text'
16855 if test "$GCC" = yes; then
16856 wlarc='${wl}'
16857 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16858 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16859 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16860 else
16861 wlarc=''
16862 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16863 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16867 hardcode_shlibpath_var_GCJ=no
16868 case $host_os in
16869 solaris2.[0-5] | solaris2.[0-5].*) ;;
16871 # The compiler driver will combine linker options so we
16872 # cannot just pass the convience library names through
16873 # without $wl, iff we do not link with $LD.
16874 # Luckily, gcc supports the same syntax we need for Sun Studio.
16875 # Supported since Solaris 2.6 (maybe 2.5.1?)
16876 case $wlarc in
16878 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16880 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' ;;
16881 esac ;;
16882 esac
16883 link_all_deplibs_GCJ=yes
16886 sunos4*)
16887 if test "x$host_vendor" = xsequent; then
16888 # Use $CC to link under sequent, because it throws in some extra .o
16889 # files that make .init and .fini sections work.
16890 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16891 else
16892 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16895 hardcode_direct_GCJ=yes
16896 hardcode_minus_L_GCJ=yes
16897 hardcode_shlibpath_var_GCJ=no
16900 sysv4)
16901 case $host_vendor in
16902 sni)
16903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904 hardcode_direct_GCJ=yes # is this really true???
16906 siemens)
16907 ## LD is ld it makes a PLAMLIB
16908 ## CC just makes a GrossModule.
16909 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16910 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16911 hardcode_direct_GCJ=no
16913 motorola)
16914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16915 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16917 esac
16918 runpath_var='LD_RUN_PATH'
16919 hardcode_shlibpath_var_GCJ=no
16922 sysv4.3*)
16923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_shlibpath_var_GCJ=no
16925 export_dynamic_flag_spec_GCJ='-Bexport'
16928 sysv4*MP*)
16929 if test -d /usr/nec; then
16930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_shlibpath_var_GCJ=no
16932 runpath_var=LD_RUN_PATH
16933 hardcode_runpath_var=yes
16934 ld_shlibs_GCJ=yes
16938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16939 no_undefined_flag_GCJ='${wl}-z,text'
16940 archive_cmds_need_lc_GCJ=no
16941 hardcode_shlibpath_var_GCJ=no
16942 runpath_var='LD_RUN_PATH'
16944 if test "$GCC" = yes; then
16945 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16946 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16947 else
16948 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953 sysv5* | sco3.2v5* | sco5v6*)
16954 # Note: We can NOT use -z defs as we might desire, because we do not
16955 # link with -lc, and that would cause any symbols used from libc to
16956 # always be unresolved, which means just about no library would
16957 # ever link correctly. If we're not using GNU ld we use -z text
16958 # though, which does catch some bad symbols but isn't as heavy-handed
16959 # as -z defs.
16960 no_undefined_flag_GCJ='${wl}-z,text'
16961 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16962 archive_cmds_need_lc_GCJ=no
16963 hardcode_shlibpath_var_GCJ=no
16964 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16965 hardcode_libdir_separator_GCJ=':'
16966 link_all_deplibs_GCJ=yes
16967 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16968 runpath_var='LD_RUN_PATH'
16970 if test "$GCC" = yes; then
16971 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 else
16974 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979 uts4*)
16980 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16982 hardcode_shlibpath_var_GCJ=no
16986 ld_shlibs_GCJ=no
16988 esac
16991 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16992 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16993 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16996 # Do we need to explicitly link libc?
16998 case "x$archive_cmds_need_lc_GCJ" in
16999 x|xyes)
17000 # Assume -lc should be added
17001 archive_cmds_need_lc_GCJ=yes
17003 if test "$enable_shared" = yes && test "$GCC" = yes; then
17004 case $archive_cmds_GCJ in
17005 *'~'*)
17006 # FIXME: we may have to deal with multi-command sequences.
17008 '$CC '*)
17009 # Test whether the compiler implicitly links with -lc since on some
17010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17011 # to ld, don't add -lc before -lgcc.
17012 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17013 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17014 $rm conftest*
17015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17018 (eval $ac_compile) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } 2>conftest.err; then
17022 soname=conftest
17023 lib=conftest
17024 libobjs=conftest.$ac_objext
17025 deplibs=
17026 wl=$lt_prog_compiler_wl_GCJ
17027 pic_flag=$lt_prog_compiler_pic_GCJ
17028 compiler_flags=-v
17029 linker_flags=-v
17030 verstring=
17031 output_objdir=.
17032 libname=conftest
17033 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17034 allow_undefined_flag_GCJ=
17035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17036 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }
17040 then
17041 archive_cmds_need_lc_GCJ=no
17042 else
17043 archive_cmds_need_lc_GCJ=yes
17045 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17046 else
17047 cat conftest.err 1>&5
17049 $rm conftest*
17050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17051 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17053 esac
17056 esac
17058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17060 library_names_spec=
17061 libname_spec='lib$name'
17062 soname_spec=
17063 shrext_cmds=".so"
17064 postinstall_cmds=
17065 postuninstall_cmds=
17066 finish_cmds=
17067 finish_eval=
17068 shlibpath_var=
17069 shlibpath_overrides_runpath=unknown
17070 version_type=none
17071 dynamic_linker="$host_os ld.so"
17072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17073 if test "$GCC" = yes; then
17074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17076 # if the path contains ";" then we assume it to be the separator
17077 # otherwise default to the standard path separator (i.e. ":") - it is
17078 # assumed that no part of a normal pathname contains ";" but that should
17079 # okay in the real world where ";" in dirpaths is itself problematic.
17080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17081 else
17082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17084 else
17085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17087 need_lib_prefix=unknown
17088 hardcode_into_libs=no
17090 # when you set need_version to no, make sure it does not cause -set_version
17091 # flags to be left without arguments
17092 need_version=unknown
17094 case $host_os in
17095 aix3*)
17096 version_type=linux
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17098 shlibpath_var=LIBPATH
17100 # AIX 3 has no versioning support, so we append a major version to the name.
17101 soname_spec='${libname}${release}${shared_ext}$major'
17104 aix4* | aix5*)
17105 version_type=linux
17106 need_lib_prefix=no
17107 need_version=no
17108 hardcode_into_libs=yes
17109 if test "$host_cpu" = ia64; then
17110 # AIX 5 supports IA64
17111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 else
17114 # With GCC up to 2.95.x, collect2 would create an import file
17115 # for dependence libraries. The import file would start with
17116 # the line `#! .'. This would cause the generated library to
17117 # depend on `.', always an invalid library. This was fixed in
17118 # development snapshots of GCC prior to 3.0.
17119 case $host_os in
17120 aix4 | aix4.[01] | aix4.[01].*)
17121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17122 echo ' yes '
17123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17125 else
17126 can_build_shared=no
17129 esac
17130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17131 # soname into executable. Probably we can add versioning support to
17132 # collect2, so additional links can be useful in future.
17133 if test "$aix_use_runtimelinking" = yes; then
17134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17135 # instead of lib<name>.a to let people know that these are not
17136 # typical AIX shared libraries.
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 else
17139 # We preserve .a as extension for shared libraries through AIX4.2
17140 # and later when we are not doing run time linking.
17141 library_names_spec='${libname}${release}.a $libname.a'
17142 soname_spec='${libname}${release}${shared_ext}$major'
17144 shlibpath_var=LIBPATH
17148 amigaos*)
17149 library_names_spec='$libname.ixlibrary $libname.a'
17150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17151 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'
17154 beos*)
17155 library_names_spec='${libname}${shared_ext}'
17156 dynamic_linker="$host_os ld.so"
17157 shlibpath_var=LIBRARY_PATH
17160 bsdi[45]*)
17161 version_type=linux
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17169 # the default ld.so.conf also contains /usr/contrib/lib and
17170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17171 # libtool to hard-code these into programs
17174 cygwin* | mingw* | pw32*)
17175 version_type=windows
17176 shrext_cmds=".dll"
17177 need_version=no
17178 need_lib_prefix=no
17180 case $GCC,$host_os in
17181 yes,cygwin* | yes,mingw* | yes,pw32*)
17182 library_names_spec='$libname.dll.a'
17183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17184 postinstall_cmds='base_file=`basename \${file}`~
17185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17186 dldir=$destdir/`dirname \$dlpath`~
17187 test -d \$dldir || mkdir -p \$dldir~
17188 $install_prog $dir/$dlname \$dldir/$dlname~
17189 chmod a+x \$dldir/$dlname'
17190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17191 dlpath=$dir/\$dldll~
17192 $rm \$dlpath'
17193 shlibpath_overrides_runpath=yes
17195 case $host_os in
17196 cygwin*)
17197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17199 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17201 mingw*)
17202 # MinGW DLLs use traditional 'lib' prefix
17203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17204 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17205 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17206 # It is most probably a Windows format PATH printed by
17207 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17208 # path with ; separators, and with drive letters. We can handle the
17209 # drive letters (cygwin fileutils understands them), so leave them,
17210 # especially as we might pass files found there to a mingw objdump,
17211 # which wouldn't understand a cygwinified path. Ahh.
17212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17213 else
17214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17217 pw32*)
17218 # pw32 DLLs use 'pw' prefix rather than 'lib'
17219 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17221 esac
17225 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17227 esac
17228 dynamic_linker='Win32 ld.exe'
17229 # FIXME: first we should search . and the directory the executable is in
17230 shlibpath_var=PATH
17233 darwin* | rhapsody*)
17234 dynamic_linker="$host_os dyld"
17235 version_type=darwin
17236 need_lib_prefix=no
17237 need_version=no
17238 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17239 soname_spec='${libname}${release}${major}$shared_ext'
17240 shlibpath_overrides_runpath=yes
17241 shlibpath_var=DYLD_LIBRARY_PATH
17242 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17243 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17244 if test "$GCC" = yes; then
17245 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"`
17246 else
17247 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17252 dgux*)
17253 version_type=linux
17254 need_lib_prefix=no
17255 need_version=no
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17261 freebsd1*)
17262 dynamic_linker=no
17265 kfreebsd*-gnu)
17266 version_type=linux
17267 need_lib_prefix=no
17268 need_version=no
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=no
17273 hardcode_into_libs=yes
17274 dynamic_linker='GNU ld.so'
17277 freebsd* | dragonfly*)
17278 # DragonFly does not have aout. When/if they implement a new
17279 # versioning mechanism, adjust this.
17280 if test -x /usr/bin/objformat; then
17281 objformat=`/usr/bin/objformat`
17282 else
17283 case $host_os in
17284 freebsd[123]*) objformat=aout ;;
17285 *) objformat=elf ;;
17286 esac
17288 version_type=freebsd-$objformat
17289 case $version_type in
17290 freebsd-elf*)
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17292 need_version=no
17293 need_lib_prefix=no
17295 freebsd-*)
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17297 need_version=yes
17299 esac
17300 shlibpath_var=LD_LIBRARY_PATH
17301 case $host_os in
17302 freebsd2*)
17303 shlibpath_overrides_runpath=yes
17305 freebsd3.[01]* | freebsdelf3.[01]*)
17306 shlibpath_overrides_runpath=yes
17307 hardcode_into_libs=yes
17309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17311 shlibpath_overrides_runpath=no
17312 hardcode_into_libs=yes
17314 freebsd*) # from 4.6 on
17315 shlibpath_overrides_runpath=yes
17316 hardcode_into_libs=yes
17318 esac
17321 gnu*)
17322 version_type=linux
17323 need_lib_prefix=no
17324 need_version=no
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17326 soname_spec='${libname}${release}${shared_ext}$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 hardcode_into_libs=yes
17331 hpux9* | hpux10* | hpux11*)
17332 # Give a soname corresponding to the major version so that dld.sl refuses to
17333 # link against other versions.
17334 version_type=sunos
17335 need_lib_prefix=no
17336 need_version=no
17337 case $host_cpu in
17338 ia64*)
17339 shrext_cmds='.so'
17340 hardcode_into_libs=yes
17341 dynamic_linker="$host_os dld.so"
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 if test "X$HPUX_IA64_MODE" = X32; then
17347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17348 else
17349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17353 hppa*64*)
17354 shrext_cmds='.sl'
17355 hardcode_into_libs=yes
17356 dynamic_linker="$host_os dld.sl"
17357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17360 soname_spec='${libname}${release}${shared_ext}$major'
17361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17365 shrext_cmds='.sl'
17366 dynamic_linker="$host_os dld.sl"
17367 shlibpath_var=SHLIB_PATH
17368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17372 esac
17373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17374 postinstall_cmds='chmod 555 $lib'
17377 interix3*)
17378 version_type=linux
17379 need_lib_prefix=no
17380 need_version=no
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17382 soname_spec='${libname}${release}${shared_ext}$major'
17383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=no
17386 hardcode_into_libs=yes
17389 irix5* | irix6* | nonstopux*)
17390 case $host_os in
17391 nonstopux*) version_type=nonstopux ;;
17393 if test "$lt_cv_prog_gnu_ld" = yes; then
17394 version_type=linux
17395 else
17396 version_type=irix
17397 fi ;;
17398 esac
17399 need_lib_prefix=no
17400 need_version=no
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17403 case $host_os in
17404 irix5* | nonstopux*)
17405 libsuff= shlibsuff=
17408 case $LD in # libtool.m4 will add one of these switches to LD
17409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17410 libsuff= shlibsuff= libmagic=32-bit;;
17411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17412 libsuff=32 shlibsuff=N32 libmagic=N32;;
17413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17415 *) libsuff= shlibsuff= libmagic=never-match;;
17416 esac
17418 esac
17419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17420 shlibpath_overrides_runpath=no
17421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17423 hardcode_into_libs=yes
17426 # No shared lib support for Linux oldld, aout, or coff.
17427 linux*oldld* | linux*aout* | linux*coff*)
17428 dynamic_linker=no
17431 # This must be Linux ELF.
17432 linux*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=no
17441 # This implies no fast_install, which is unacceptable.
17442 # Some rework will be needed to allow for fast_install
17443 # before this can be enabled.
17444 hardcode_into_libs=yes
17446 # find out which ABI we are using
17447 libsuff=
17448 case "$host_cpu" in
17449 x86_64*|s390x*|powerpc64*)
17450 echo '#line 17450 "configure"' > conftest.$ac_ext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17452 (eval $ac_compile) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; then
17456 case `/usr/bin/file conftest.$ac_objext` in
17457 *64-bit*)
17458 libsuff=64
17459 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17461 esac
17463 rm -rf conftest*
17465 esac
17467 # Append ld.so.conf contents to the search path
17468 if test -f /etc/ld.so.conf; then
17469 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17470 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17473 # We used to test for /lib/ld.so.1 and disable shared libraries on
17474 # powerpc, because MkLinux only supported shared libraries with the
17475 # GNU dynamic linker. Since this was broken with cross compilers,
17476 # most powerpc-linux boxes support dynamic linking these days and
17477 # people can always --disable-shared, the test was removed, and we
17478 # assume the GNU/Linux dynamic linker is in use.
17479 dynamic_linker='GNU/Linux ld.so'
17482 knetbsd*-gnu)
17483 version_type=linux
17484 need_lib_prefix=no
17485 need_version=no
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 shlibpath_overrides_runpath=no
17490 hardcode_into_libs=yes
17491 dynamic_linker='GNU ld.so'
17494 netbsd*)
17495 version_type=sunos
17496 need_lib_prefix=no
17497 need_version=no
17498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17501 dynamic_linker='NetBSD (a.out) ld.so'
17502 else
17503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17504 soname_spec='${libname}${release}${shared_ext}$major'
17505 dynamic_linker='NetBSD ld.elf_so'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 shlibpath_overrides_runpath=yes
17509 hardcode_into_libs=yes
17512 newsos6)
17513 version_type=linux
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=yes
17519 nto-qnx*)
17520 version_type=linux
17521 need_lib_prefix=no
17522 need_version=no
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=yes
17529 openbsd*)
17530 version_type=sunos
17531 sys_lib_dlsearch_path_spec="/usr/lib"
17532 need_lib_prefix=no
17533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17534 case $host_os in
17535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17536 *) need_version=no ;;
17537 esac
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17542 case $host_os in
17543 openbsd2.[89] | openbsd2.[89].*)
17544 shlibpath_overrides_runpath=no
17547 shlibpath_overrides_runpath=yes
17549 esac
17550 else
17551 shlibpath_overrides_runpath=yes
17555 os2*)
17556 libname_spec='$name'
17557 shrext_cmds=".dll"
17558 need_lib_prefix=no
17559 library_names_spec='$libname${shared_ext} $libname.a'
17560 dynamic_linker='OS/2 ld.exe'
17561 shlibpath_var=LIBPATH
17564 osf3* | osf4* | osf5*)
17565 version_type=osf
17566 need_lib_prefix=no
17567 need_version=no
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17575 solaris*)
17576 version_type=linux
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 shlibpath_overrides_runpath=yes
17583 hardcode_into_libs=yes
17584 # ldd complains unless libraries are executable
17585 postinstall_cmds='chmod +x $lib'
17588 sunos4*)
17589 version_type=sunos
17590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17592 shlibpath_var=LD_LIBRARY_PATH
17593 shlibpath_overrides_runpath=yes
17594 if test "$with_gnu_ld" = yes; then
17595 need_lib_prefix=no
17597 need_version=yes
17600 sysv4 | sysv4.3*)
17601 version_type=linux
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 case $host_vendor in
17606 sni)
17607 shlibpath_overrides_runpath=no
17608 need_lib_prefix=no
17609 export_dynamic_flag_spec='${wl}-Blargedynsym'
17610 runpath_var=LD_RUN_PATH
17612 siemens)
17613 need_lib_prefix=no
17615 motorola)
17616 need_lib_prefix=no
17617 need_version=no
17618 shlibpath_overrides_runpath=no
17619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17621 esac
17624 sysv4*MP*)
17625 if test -d /usr/nec ;then
17626 version_type=linux
17627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17628 soname_spec='$libname${shared_ext}.$major'
17629 shlibpath_var=LD_LIBRARY_PATH
17633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17634 version_type=freebsd-elf
17635 need_lib_prefix=no
17636 need_version=no
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 hardcode_into_libs=yes
17641 if test "$with_gnu_ld" = yes; then
17642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17643 shlibpath_overrides_runpath=no
17644 else
17645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17646 shlibpath_overrides_runpath=yes
17647 case $host_os in
17648 sco3.2v5*)
17649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17651 esac
17653 sys_lib_dlsearch_path_spec='/usr/lib'
17656 uts4*)
17657 version_type=linux
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659 soname_spec='${libname}${release}${shared_ext}$major'
17660 shlibpath_var=LD_LIBRARY_PATH
17664 dynamic_linker=no
17666 esac
17667 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17668 echo "${ECHO_T}$dynamic_linker" >&6
17669 test "$dynamic_linker" = no && can_build_shared=no
17671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17672 if test "$GCC" = yes; then
17673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17676 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17677 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17678 hardcode_action_GCJ=
17679 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17680 test -n "$runpath_var_GCJ" || \
17681 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17683 # We can hardcode non-existant directories.
17684 if test "$hardcode_direct_GCJ" != no &&
17685 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17686 # have to relink, otherwise we might link with an installed library
17687 # when we should be linking with a yet-to-be-installed one
17688 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17689 test "$hardcode_minus_L_GCJ" != no; then
17690 # Linking always hardcodes the temporary library directory.
17691 hardcode_action_GCJ=relink
17692 else
17693 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17694 hardcode_action_GCJ=immediate
17696 else
17697 # We cannot hardcode anything, or else we can only hardcode existing
17698 # directories.
17699 hardcode_action_GCJ=unsupported
17701 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17702 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17704 if test "$hardcode_action_GCJ" = relink; then
17705 # Fast installation is not supported
17706 enable_fast_install=no
17707 elif test "$shlibpath_overrides_runpath" = yes ||
17708 test "$enable_shared" = no; then
17709 # Fast installation is not necessary
17710 enable_fast_install=needless
17714 # The else clause should only fire when bootstrapping the
17715 # libtool distribution, otherwise you forgot to ship ltmain.sh
17716 # with your package, and you will get complaints that there are
17717 # no rules to generate ltmain.sh.
17718 if test -f "$ltmain"; then
17719 # See if we are running on zsh, and set the options which allow our commands through
17720 # without removal of \ escapes.
17721 if test -n "${ZSH_VERSION+set}" ; then
17722 setopt NO_GLOB_SUBST
17724 # Now quote all the things that may contain metacharacters while being
17725 # careful not to overquote the AC_SUBSTed values. We take copies of the
17726 # variables and quote the copies for generation of the libtool script.
17727 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17728 SED SHELL STRIP \
17729 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17730 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17731 deplibs_check_method reload_flag reload_cmds need_locks \
17732 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17733 lt_cv_sys_global_symbol_to_c_name_address \
17734 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17735 old_postinstall_cmds old_postuninstall_cmds \
17736 compiler_GCJ \
17737 CC_GCJ \
17738 LD_GCJ \
17739 lt_prog_compiler_wl_GCJ \
17740 lt_prog_compiler_pic_GCJ \
17741 lt_prog_compiler_static_GCJ \
17742 lt_prog_compiler_no_builtin_flag_GCJ \
17743 export_dynamic_flag_spec_GCJ \
17744 thread_safe_flag_spec_GCJ \
17745 whole_archive_flag_spec_GCJ \
17746 enable_shared_with_static_runtimes_GCJ \
17747 old_archive_cmds_GCJ \
17748 old_archive_from_new_cmds_GCJ \
17749 predep_objects_GCJ \
17750 postdep_objects_GCJ \
17751 predeps_GCJ \
17752 postdeps_GCJ \
17753 compiler_lib_search_path_GCJ \
17754 archive_cmds_GCJ \
17755 archive_expsym_cmds_GCJ \
17756 postinstall_cmds_GCJ \
17757 postuninstall_cmds_GCJ \
17758 old_archive_from_expsyms_cmds_GCJ \
17759 allow_undefined_flag_GCJ \
17760 no_undefined_flag_GCJ \
17761 export_symbols_cmds_GCJ \
17762 hardcode_libdir_flag_spec_GCJ \
17763 hardcode_libdir_flag_spec_ld_GCJ \
17764 hardcode_libdir_separator_GCJ \
17765 hardcode_automatic_GCJ \
17766 module_cmds_GCJ \
17767 module_expsym_cmds_GCJ \
17768 lt_cv_prog_compiler_c_o_GCJ \
17769 exclude_expsyms_GCJ \
17770 include_expsyms_GCJ; do
17772 case $var in
17773 old_archive_cmds_GCJ | \
17774 old_archive_from_new_cmds_GCJ | \
17775 archive_cmds_GCJ | \
17776 archive_expsym_cmds_GCJ | \
17777 module_cmds_GCJ | \
17778 module_expsym_cmds_GCJ | \
17779 old_archive_from_expsyms_cmds_GCJ | \
17780 export_symbols_cmds_GCJ | \
17781 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17782 postinstall_cmds | postuninstall_cmds | \
17783 old_postinstall_cmds | old_postuninstall_cmds | \
17784 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17785 # Double-quote double-evaled strings.
17786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17791 esac
17792 done
17794 case $lt_echo in
17795 *'\$0 --fallback-echo"')
17796 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17798 esac
17800 cfgfile="$ofile"
17802 cat <<__EOF__ >> "$cfgfile"
17803 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17805 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17807 # Shell to use when invoking shell scripts.
17808 SHELL=$lt_SHELL
17810 # Whether or not to build shared libraries.
17811 build_libtool_libs=$enable_shared
17813 # Whether or not to build static libraries.
17814 build_old_libs=$enable_static
17816 # Whether or not to add -lc for building shared libraries.
17817 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17819 # Whether or not to disallow shared libs when runtime libs are static
17820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17822 # Whether or not to optimize for fast installation.
17823 fast_install=$enable_fast_install
17825 # The host system.
17826 host_alias=$host_alias
17827 host=$host
17828 host_os=$host_os
17830 # The build system.
17831 build_alias=$build_alias
17832 build=$build
17833 build_os=$build_os
17835 # An echo program that does not interpret backslashes.
17836 echo=$lt_echo
17838 # The archiver.
17839 AR=$lt_AR
17840 AR_FLAGS=$lt_AR_FLAGS
17842 # A C compiler.
17843 LTCC=$lt_LTCC
17845 # LTCC compiler flags.
17846 LTCFLAGS=$lt_LTCFLAGS
17848 # A language-specific compiler.
17849 CC=$lt_compiler_GCJ
17851 # Is the compiler the GNU C compiler?
17852 with_gcc=$GCC_GCJ
17854 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17855 gcc_ver=\`gcc -dumpversion\`
17857 # An ERE matcher.
17858 EGREP=$lt_EGREP
17860 # The linker used to build libraries.
17861 LD=$lt_LD_GCJ
17863 # Whether we need hard or soft links.
17864 LN_S=$lt_LN_S
17866 # A BSD-compatible nm program.
17867 NM=$lt_NM
17869 # A symbol stripping program
17870 STRIP=$lt_STRIP
17872 # Used to examine libraries when file_magic_cmd begins "file"
17873 MAGIC_CMD=$MAGIC_CMD
17875 # Used on cygwin: DLL creation program.
17876 DLLTOOL="$DLLTOOL"
17878 # Used on cygwin: object dumper.
17879 OBJDUMP="$OBJDUMP"
17881 # Used on cygwin: assembler.
17882 AS="$AS"
17884 # The name of the directory that contains temporary libtool files.
17885 objdir=$objdir
17887 # How to create reloadable object files.
17888 reload_flag=$lt_reload_flag
17889 reload_cmds=$lt_reload_cmds
17891 # How to pass a linker flag through the compiler.
17892 wl=$lt_lt_prog_compiler_wl_GCJ
17894 # Object file suffix (normally "o").
17895 objext="$ac_objext"
17897 # Old archive suffix (normally "a").
17898 libext="$libext"
17900 # Shared library suffix (normally ".so").
17901 shrext_cmds='$shrext_cmds'
17903 # Executable file suffix (normally "").
17904 exeext="$exeext"
17906 # Additional compiler flags for building library objects.
17907 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17908 pic_mode=$pic_mode
17910 # What is the maximum length of a command?
17911 max_cmd_len=$lt_cv_sys_max_cmd_len
17913 # Does compiler simultaneously support -c and -o options?
17914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17916 # Must we lock files when doing compilation?
17917 need_locks=$lt_need_locks
17919 # Do we need the lib prefix for modules?
17920 need_lib_prefix=$need_lib_prefix
17922 # Do we need a version for libraries?
17923 need_version=$need_version
17925 # Whether dlopen is supported.
17926 dlopen_support=$enable_dlopen
17928 # Whether dlopen of programs is supported.
17929 dlopen_self=$enable_dlopen_self
17931 # Whether dlopen of statically linked programs is supported.
17932 dlopen_self_static=$enable_dlopen_self_static
17934 # Compiler flag to prevent dynamic linking.
17935 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17937 # Compiler flag to turn off builtin functions.
17938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17940 # Compiler flag to allow reflexive dlopens.
17941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17943 # Compiler flag to generate shared objects directly from archives.
17944 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17946 # Compiler flag to generate thread-safe objects.
17947 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17949 # Library versioning type.
17950 version_type=$version_type
17952 # Format of library name prefix.
17953 libname_spec=$lt_libname_spec
17955 # List of archive names. First name is the real one, the rest are links.
17956 # The last name is the one that the linker finds with -lNAME.
17957 library_names_spec=$lt_library_names_spec
17959 # The coded name of the library, if different from the real name.
17960 soname_spec=$lt_soname_spec
17962 # Commands used to build and install an old-style archive.
17963 RANLIB=$lt_RANLIB
17964 old_archive_cmds=$lt_old_archive_cmds_GCJ
17965 old_postinstall_cmds=$lt_old_postinstall_cmds
17966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17968 # Create an old-style archive from a shared archive.
17969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17971 # Create a temporary old-style archive to link instead of a shared archive.
17972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17974 # Commands used to build and install a shared archive.
17975 archive_cmds=$lt_archive_cmds_GCJ
17976 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17977 postinstall_cmds=$lt_postinstall_cmds
17978 postuninstall_cmds=$lt_postuninstall_cmds
17980 # Commands used to build a loadable module (assumed same as above if empty)
17981 module_cmds=$lt_module_cmds_GCJ
17982 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17984 # Commands to strip libraries.
17985 old_striplib=$lt_old_striplib
17986 striplib=$lt_striplib
17988 # Dependencies to place before the objects being linked to create a
17989 # shared library.
17990 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17992 # Dependencies to place after the objects being linked to create a
17993 # shared library.
17994 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17996 # Dependencies to place before the objects being linked to create a
17997 # shared library.
17998 predeps=$lt_predeps_GCJ
18000 # Dependencies to place after the objects being linked to create a
18001 # shared library.
18002 postdeps=$lt_postdeps_GCJ
18004 # The library search path used internally by the compiler when linking
18005 # a shared library.
18006 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18008 # Method to check whether dependent libraries are shared objects.
18009 deplibs_check_method=$lt_deplibs_check_method
18011 # Command to use when deplibs_check_method == file_magic.
18012 file_magic_cmd=$lt_file_magic_cmd
18014 # Flag that allows shared libraries with undefined symbols to be built.
18015 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18017 # Flag that forces no undefined symbols.
18018 no_undefined_flag=$lt_no_undefined_flag_GCJ
18020 # Commands used to finish a libtool library installation in a directory.
18021 finish_cmds=$lt_finish_cmds
18023 # Same as above, but a single script fragment to be evaled but not shown.
18024 finish_eval=$lt_finish_eval
18026 # Take the output of nm and produce a listing of raw symbols and C names.
18027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18029 # Transform the output of nm in a proper C declaration
18030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18032 # Transform the output of nm in a C name address pair
18033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18035 # This is the shared library runtime path variable.
18036 runpath_var=$runpath_var
18038 # This is the shared library path variable.
18039 shlibpath_var=$shlibpath_var
18041 # Is shlibpath searched before the hard-coded library search path?
18042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18044 # How to hardcode a shared library path into an executable.
18045 hardcode_action=$hardcode_action_GCJ
18047 # Whether we should hardcode library paths into libraries.
18048 hardcode_into_libs=$hardcode_into_libs
18050 # Flag to hardcode \$libdir into a binary during linking.
18051 # This must work even if \$libdir does not exist.
18052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18054 # If ld is used when linking, flag to hardcode \$libdir into
18055 # a binary during linking. This must work even if \$libdir does
18056 # not exist.
18057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18059 # Whether we need a single -rpath flag with a separated argument.
18060 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18062 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18063 # resulting binary.
18064 hardcode_direct=$hardcode_direct_GCJ
18066 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18067 # resulting binary.
18068 hardcode_minus_L=$hardcode_minus_L_GCJ
18070 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18071 # the resulting binary.
18072 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18074 # Set to yes if building a shared library automatically hardcodes DIR into the library
18075 # and all subsequent libraries and executables linked against it.
18076 hardcode_automatic=$hardcode_automatic_GCJ
18078 # Variables whose values should be saved in libtool wrapper scripts and
18079 # restored at relink time.
18080 variables_saved_for_relink="$variables_saved_for_relink"
18082 # Whether libtool must link a program against all its dependency libraries.
18083 link_all_deplibs=$link_all_deplibs_GCJ
18085 # Compile-time system search path for libraries
18086 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18088 # Run-time system search path for libraries
18089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18091 # Fix the shell variable \$srcfile for the compiler.
18092 fix_srcfile_path="$fix_srcfile_path_GCJ"
18094 # Set to yes if exported symbols are required.
18095 always_export_symbols=$always_export_symbols_GCJ
18097 # The commands to list exported symbols.
18098 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18100 # The commands to extract the exported symbol list from a shared archive.
18101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18103 # Symbols that should not be listed in the preloaded symbols.
18104 exclude_expsyms=$lt_exclude_expsyms_GCJ
18106 # Symbols that must always be exported.
18107 include_expsyms=$lt_include_expsyms_GCJ
18109 # ### END LIBTOOL TAG CONFIG: $tagname
18111 __EOF__
18114 else
18115 # If there is no Makefile yet, we rely on a make rule to execute
18116 # `config.status --recheck' to rerun these tests and create the
18117 # libtool script then.
18118 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18119 if test -f "$ltmain_in"; then
18120 test -f Makefile && make "$ltmain"
18125 ac_ext=c
18126 ac_cpp='$CPP $CPPFLAGS'
18127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18131 CC="$lt_save_CC"
18133 else
18134 tagname=""
18142 # Source file extension for RC test sources.
18143 ac_ext=rc
18145 # Object file extension for compiled RC test sources.
18146 objext=o
18147 objext_RC=$objext
18149 # Code to be used in simple compile tests
18150 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18152 # Code to be used in simple link tests
18153 lt_simple_link_test_code="$lt_simple_compile_test_code"
18155 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18157 # If no C compiler was specified, use CC.
18158 LTCC=${LTCC-"$CC"}
18160 # If no C compiler flags were specified, use CFLAGS.
18161 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18163 # Allow CC to be a program name with arguments.
18164 compiler=$CC
18167 # save warnings/boilerplate of simple test code
18168 ac_outfile=conftest.$ac_objext
18169 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18170 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18171 _lt_compiler_boilerplate=`cat conftest.err`
18172 $rm conftest*
18174 ac_outfile=conftest.$ac_objext
18175 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18176 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18177 _lt_linker_boilerplate=`cat conftest.err`
18178 $rm conftest*
18181 # Allow CC to be a program name with arguments.
18182 lt_save_CC="$CC"
18183 CC=${RC-"windres"}
18184 compiler=$CC
18185 compiler_RC=$CC
18186 for cc_temp in $compiler""; do
18187 case $cc_temp in
18188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18190 \-*) ;;
18191 *) break;;
18192 esac
18193 done
18194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18196 lt_cv_prog_compiler_c_o_RC=yes
18198 # The else clause should only fire when bootstrapping the
18199 # libtool distribution, otherwise you forgot to ship ltmain.sh
18200 # with your package, and you will get complaints that there are
18201 # no rules to generate ltmain.sh.
18202 if test -f "$ltmain"; then
18203 # See if we are running on zsh, and set the options which allow our commands through
18204 # without removal of \ escapes.
18205 if test -n "${ZSH_VERSION+set}" ; then
18206 setopt NO_GLOB_SUBST
18208 # Now quote all the things that may contain metacharacters while being
18209 # careful not to overquote the AC_SUBSTed values. We take copies of the
18210 # variables and quote the copies for generation of the libtool script.
18211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18212 SED SHELL STRIP \
18213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18215 deplibs_check_method reload_flag reload_cmds need_locks \
18216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18217 lt_cv_sys_global_symbol_to_c_name_address \
18218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18219 old_postinstall_cmds old_postuninstall_cmds \
18220 compiler_RC \
18221 CC_RC \
18222 LD_RC \
18223 lt_prog_compiler_wl_RC \
18224 lt_prog_compiler_pic_RC \
18225 lt_prog_compiler_static_RC \
18226 lt_prog_compiler_no_builtin_flag_RC \
18227 export_dynamic_flag_spec_RC \
18228 thread_safe_flag_spec_RC \
18229 whole_archive_flag_spec_RC \
18230 enable_shared_with_static_runtimes_RC \
18231 old_archive_cmds_RC \
18232 old_archive_from_new_cmds_RC \
18233 predep_objects_RC \
18234 postdep_objects_RC \
18235 predeps_RC \
18236 postdeps_RC \
18237 compiler_lib_search_path_RC \
18238 archive_cmds_RC \
18239 archive_expsym_cmds_RC \
18240 postinstall_cmds_RC \
18241 postuninstall_cmds_RC \
18242 old_archive_from_expsyms_cmds_RC \
18243 allow_undefined_flag_RC \
18244 no_undefined_flag_RC \
18245 export_symbols_cmds_RC \
18246 hardcode_libdir_flag_spec_RC \
18247 hardcode_libdir_flag_spec_ld_RC \
18248 hardcode_libdir_separator_RC \
18249 hardcode_automatic_RC \
18250 module_cmds_RC \
18251 module_expsym_cmds_RC \
18252 lt_cv_prog_compiler_c_o_RC \
18253 exclude_expsyms_RC \
18254 include_expsyms_RC; do
18256 case $var in
18257 old_archive_cmds_RC | \
18258 old_archive_from_new_cmds_RC | \
18259 archive_cmds_RC | \
18260 archive_expsym_cmds_RC | \
18261 module_cmds_RC | \
18262 module_expsym_cmds_RC | \
18263 old_archive_from_expsyms_cmds_RC | \
18264 export_symbols_cmds_RC | \
18265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18266 postinstall_cmds | postuninstall_cmds | \
18267 old_postinstall_cmds | old_postuninstall_cmds | \
18268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18269 # Double-quote double-evaled strings.
18270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18275 esac
18276 done
18278 case $lt_echo in
18279 *'\$0 --fallback-echo"')
18280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18282 esac
18284 cfgfile="$ofile"
18286 cat <<__EOF__ >> "$cfgfile"
18287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18291 # Shell to use when invoking shell scripts.
18292 SHELL=$lt_SHELL
18294 # Whether or not to build shared libraries.
18295 build_libtool_libs=$enable_shared
18297 # Whether or not to build static libraries.
18298 build_old_libs=$enable_static
18300 # Whether or not to add -lc for building shared libraries.
18301 build_libtool_need_lc=$archive_cmds_need_lc_RC
18303 # Whether or not to disallow shared libs when runtime libs are static
18304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18306 # Whether or not to optimize for fast installation.
18307 fast_install=$enable_fast_install
18309 # The host system.
18310 host_alias=$host_alias
18311 host=$host
18312 host_os=$host_os
18314 # The build system.
18315 build_alias=$build_alias
18316 build=$build
18317 build_os=$build_os
18319 # An echo program that does not interpret backslashes.
18320 echo=$lt_echo
18322 # The archiver.
18323 AR=$lt_AR
18324 AR_FLAGS=$lt_AR_FLAGS
18326 # A C compiler.
18327 LTCC=$lt_LTCC
18329 # LTCC compiler flags.
18330 LTCFLAGS=$lt_LTCFLAGS
18332 # A language-specific compiler.
18333 CC=$lt_compiler_RC
18335 # Is the compiler the GNU C compiler?
18336 with_gcc=$GCC_RC
18338 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18339 gcc_ver=\`gcc -dumpversion\`
18341 # An ERE matcher.
18342 EGREP=$lt_EGREP
18344 # The linker used to build libraries.
18345 LD=$lt_LD_RC
18347 # Whether we need hard or soft links.
18348 LN_S=$lt_LN_S
18350 # A BSD-compatible nm program.
18351 NM=$lt_NM
18353 # A symbol stripping program
18354 STRIP=$lt_STRIP
18356 # Used to examine libraries when file_magic_cmd begins "file"
18357 MAGIC_CMD=$MAGIC_CMD
18359 # Used on cygwin: DLL creation program.
18360 DLLTOOL="$DLLTOOL"
18362 # Used on cygwin: object dumper.
18363 OBJDUMP="$OBJDUMP"
18365 # Used on cygwin: assembler.
18366 AS="$AS"
18368 # The name of the directory that contains temporary libtool files.
18369 objdir=$objdir
18371 # How to create reloadable object files.
18372 reload_flag=$lt_reload_flag
18373 reload_cmds=$lt_reload_cmds
18375 # How to pass a linker flag through the compiler.
18376 wl=$lt_lt_prog_compiler_wl_RC
18378 # Object file suffix (normally "o").
18379 objext="$ac_objext"
18381 # Old archive suffix (normally "a").
18382 libext="$libext"
18384 # Shared library suffix (normally ".so").
18385 shrext_cmds='$shrext_cmds'
18387 # Executable file suffix (normally "").
18388 exeext="$exeext"
18390 # Additional compiler flags for building library objects.
18391 pic_flag=$lt_lt_prog_compiler_pic_RC
18392 pic_mode=$pic_mode
18394 # What is the maximum length of a command?
18395 max_cmd_len=$lt_cv_sys_max_cmd_len
18397 # Does compiler simultaneously support -c and -o options?
18398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18400 # Must we lock files when doing compilation?
18401 need_locks=$lt_need_locks
18403 # Do we need the lib prefix for modules?
18404 need_lib_prefix=$need_lib_prefix
18406 # Do we need a version for libraries?
18407 need_version=$need_version
18409 # Whether dlopen is supported.
18410 dlopen_support=$enable_dlopen
18412 # Whether dlopen of programs is supported.
18413 dlopen_self=$enable_dlopen_self
18415 # Whether dlopen of statically linked programs is supported.
18416 dlopen_self_static=$enable_dlopen_self_static
18418 # Compiler flag to prevent dynamic linking.
18419 link_static_flag=$lt_lt_prog_compiler_static_RC
18421 # Compiler flag to turn off builtin functions.
18422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18424 # Compiler flag to allow reflexive dlopens.
18425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18427 # Compiler flag to generate shared objects directly from archives.
18428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18430 # Compiler flag to generate thread-safe objects.
18431 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18433 # Library versioning type.
18434 version_type=$version_type
18436 # Format of library name prefix.
18437 libname_spec=$lt_libname_spec
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.
18441 library_names_spec=$lt_library_names_spec
18443 # The coded name of the library, if different from the real name.
18444 soname_spec=$lt_soname_spec
18446 # Commands used to build and install an old-style archive.
18447 RANLIB=$lt_RANLIB
18448 old_archive_cmds=$lt_old_archive_cmds_RC
18449 old_postinstall_cmds=$lt_old_postinstall_cmds
18450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18452 # Create an old-style archive from a shared archive.
18453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18455 # Create a temporary old-style archive to link instead of a shared archive.
18456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18458 # Commands used to build and install a shared archive.
18459 archive_cmds=$lt_archive_cmds_RC
18460 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18461 postinstall_cmds=$lt_postinstall_cmds
18462 postuninstall_cmds=$lt_postuninstall_cmds
18464 # Commands used to build a loadable module (assumed same as above if empty)
18465 module_cmds=$lt_module_cmds_RC
18466 module_expsym_cmds=$lt_module_expsym_cmds_RC
18468 # Commands to strip libraries.
18469 old_striplib=$lt_old_striplib
18470 striplib=$lt_striplib
18472 # Dependencies to place before the objects being linked to create a
18473 # shared library.
18474 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18476 # Dependencies to place after the objects being linked to create a
18477 # shared library.
18478 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18480 # Dependencies to place before the objects being linked to create a
18481 # shared library.
18482 predeps=$lt_predeps_RC
18484 # Dependencies to place after the objects being linked to create a
18485 # shared library.
18486 postdeps=$lt_postdeps_RC
18488 # The library search path used internally by the compiler when linking
18489 # a shared library.
18490 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18492 # Method to check whether dependent libraries are shared objects.
18493 deplibs_check_method=$lt_deplibs_check_method
18495 # Command to use when deplibs_check_method == file_magic.
18496 file_magic_cmd=$lt_file_magic_cmd
18498 # Flag that allows shared libraries with undefined symbols to be built.
18499 allow_undefined_flag=$lt_allow_undefined_flag_RC
18501 # Flag that forces no undefined symbols.
18502 no_undefined_flag=$lt_no_undefined_flag_RC
18504 # Commands used to finish a libtool library installation in a directory.
18505 finish_cmds=$lt_finish_cmds
18507 # Same as above, but a single script fragment to be evaled but not shown.
18508 finish_eval=$lt_finish_eval
18510 # Take the output of nm and produce a listing of raw symbols and C names.
18511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18513 # Transform the output of nm in a proper C declaration
18514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18516 # Transform the output of nm in a C name address pair
18517 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18519 # This is the shared library runtime path variable.
18520 runpath_var=$runpath_var
18522 # This is the shared library path variable.
18523 shlibpath_var=$shlibpath_var
18525 # Is shlibpath searched before the hard-coded library search path?
18526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18528 # How to hardcode a shared library path into an executable.
18529 hardcode_action=$hardcode_action_RC
18531 # Whether we should hardcode library paths into libraries.
18532 hardcode_into_libs=$hardcode_into_libs
18534 # Flag to hardcode \$libdir into a binary during linking.
18535 # This must work even if \$libdir does not exist.
18536 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
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.
18541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18543 # Whether we need a single -rpath flag with a separated argument.
18544 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18546 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_direct=$hardcode_direct_RC
18550 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18551 # resulting binary.
18552 hardcode_minus_L=$hardcode_minus_L_RC
18554 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18555 # the resulting binary.
18556 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
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.
18560 hardcode_automatic=$hardcode_automatic_RC
18562 # Variables whose values should be saved in libtool wrapper scripts and
18563 # restored at relink time.
18564 variables_saved_for_relink="$variables_saved_for_relink"
18566 # Whether libtool must link a program against all its dependency libraries.
18567 link_all_deplibs=$link_all_deplibs_RC
18569 # Compile-time system search path for libraries
18570 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18572 # Run-time system search path for libraries
18573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18575 # Fix the shell variable \$srcfile for the compiler.
18576 fix_srcfile_path="$fix_srcfile_path_RC"
18578 # Set to yes if exported symbols are required.
18579 always_export_symbols=$always_export_symbols_RC
18581 # The commands to list exported symbols.
18582 export_symbols_cmds=$lt_export_symbols_cmds_RC
18584 # The commands to extract the exported symbol list from a shared archive.
18585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18587 # Symbols that should not be listed in the preloaded symbols.
18588 exclude_expsyms=$lt_exclude_expsyms_RC
18590 # Symbols that must always be exported.
18591 include_expsyms=$lt_include_expsyms_RC
18593 # ### END LIBTOOL TAG CONFIG: $tagname
18595 __EOF__
18598 else
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"
18609 ac_ext=c
18610 ac_cpp='$CPP $CPPFLAGS'
18611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615 CC="$lt_save_CC"
18620 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18621 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18622 { (exit 1); exit 1; }; }
18624 esac
18626 # Append the new tag name to the list of available tags.
18627 if test -n "$tagname" ; then
18628 available_tags="$available_tags $tagname"
18631 done
18632 IFS="$lt_save_ifs"
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
18641 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18642 { (exit 1); exit 1; }; }
18648 # This can be used to rebuild libtool when needed
18649 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18651 # Always use our own libtool.
18652 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18654 # Prevent multiple expansion
18675 ac_ext=c
18676 ac_cpp='$CPP $CPPFLAGS'
18677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18680 if test -n "$ac_tool_prefix"; then
18681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18682 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18683 echo "$as_me:$LINENO: checking for $ac_word" >&5
18684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18685 if test "${ac_cv_prog_CC+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688 if test -n "$CC"; then
18689 ac_cv_prog_CC="$CC" # Let the user override the test.
18690 else
18691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692 for as_dir in $PATH
18694 IFS=$as_save_IFS
18695 test -z "$as_dir" && as_dir=.
18696 for ac_exec_ext in '' $ac_executable_extensions; do
18697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18698 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18700 break 2
18702 done
18703 done
18707 CC=$ac_cv_prog_CC
18708 if test -n "$CC"; then
18709 echo "$as_me:$LINENO: result: $CC" >&5
18710 echo "${ECHO_T}$CC" >&6
18711 else
18712 echo "$as_me:$LINENO: result: no" >&5
18713 echo "${ECHO_T}no" >&6
18717 if test -z "$ac_cv_prog_CC"; then
18718 ac_ct_CC=$CC
18719 # Extract the first word of "gcc", so it can be a program name with args.
18720 set dummy gcc; ac_word=$2
18721 echo "$as_me:$LINENO: checking for $ac_word" >&5
18722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726 if test -n "$ac_ct_CC"; then
18727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18728 else
18729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18730 for as_dir in $PATH
18732 IFS=$as_save_IFS
18733 test -z "$as_dir" && as_dir=.
18734 for ac_exec_ext in '' $ac_executable_extensions; do
18735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18736 ac_cv_prog_ac_ct_CC="gcc"
18737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18738 break 2
18740 done
18741 done
18745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18746 if test -n "$ac_ct_CC"; then
18747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18748 echo "${ECHO_T}$ac_ct_CC" >&6
18749 else
18750 echo "$as_me:$LINENO: result: no" >&5
18751 echo "${ECHO_T}no" >&6
18754 CC=$ac_ct_CC
18755 else
18756 CC="$ac_cv_prog_CC"
18759 if test -z "$CC"; then
18760 if test -n "$ac_tool_prefix"; then
18761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18762 set dummy ${ac_tool_prefix}cc; ac_word=$2
18763 echo "$as_me:$LINENO: checking for $ac_word" >&5
18764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18765 if test "${ac_cv_prog_CC+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768 if test -n "$CC"; then
18769 ac_cv_prog_CC="$CC" # Let the user override the test.
18770 else
18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772 for as_dir in $PATH
18774 IFS=$as_save_IFS
18775 test -z "$as_dir" && as_dir=.
18776 for ac_exec_ext in '' $ac_executable_extensions; do
18777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778 ac_cv_prog_CC="${ac_tool_prefix}cc"
18779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18780 break 2
18782 done
18783 done
18787 CC=$ac_cv_prog_CC
18788 if test -n "$CC"; then
18789 echo "$as_me:$LINENO: result: $CC" >&5
18790 echo "${ECHO_T}$CC" >&6
18791 else
18792 echo "$as_me:$LINENO: result: no" >&5
18793 echo "${ECHO_T}no" >&6
18797 if test -z "$ac_cv_prog_CC"; then
18798 ac_ct_CC=$CC
18799 # Extract the first word of "cc", so it can be a program name with args.
18800 set dummy cc; ac_word=$2
18801 echo "$as_me:$LINENO: checking for $ac_word" >&5
18802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806 if test -n "$ac_ct_CC"; then
18807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18808 else
18809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18812 IFS=$as_save_IFS
18813 test -z "$as_dir" && as_dir=.
18814 for ac_exec_ext in '' $ac_executable_extensions; do
18815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816 ac_cv_prog_ac_ct_CC="cc"
18817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18818 break 2
18820 done
18821 done
18825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18826 if test -n "$ac_ct_CC"; then
18827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18828 echo "${ECHO_T}$ac_ct_CC" >&6
18829 else
18830 echo "$as_me:$LINENO: result: no" >&5
18831 echo "${ECHO_T}no" >&6
18834 CC=$ac_ct_CC
18835 else
18836 CC="$ac_cv_prog_CC"
18840 if test -z "$CC"; then
18841 # Extract the first word of "cc", so it can be a program name with args.
18842 set dummy cc; ac_word=$2
18843 echo "$as_me:$LINENO: checking for $ac_word" >&5
18844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18845 if test "${ac_cv_prog_CC+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848 if test -n "$CC"; then
18849 ac_cv_prog_CC="$CC" # Let the user override the test.
18850 else
18851 ac_prog_rejected=no
18852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18853 for as_dir in $PATH
18855 IFS=$as_save_IFS
18856 test -z "$as_dir" && as_dir=.
18857 for ac_exec_ext in '' $ac_executable_extensions; do
18858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18860 ac_prog_rejected=yes
18861 continue
18863 ac_cv_prog_CC="cc"
18864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18865 break 2
18867 done
18868 done
18870 if test $ac_prog_rejected = yes; then
18871 # We found a bogon in the path, so make sure we never use it.
18872 set dummy $ac_cv_prog_CC
18873 shift
18874 if test $# != 0; then
18875 # We chose a different compiler from the bogus one.
18876 # However, it has the same basename, so the bogon will be chosen
18877 # first if we set CC to just the basename; use the full file name.
18878 shift
18879 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18884 CC=$ac_cv_prog_CC
18885 if test -n "$CC"; then
18886 echo "$as_me:$LINENO: result: $CC" >&5
18887 echo "${ECHO_T}$CC" >&6
18888 else
18889 echo "$as_me:$LINENO: result: no" >&5
18890 echo "${ECHO_T}no" >&6
18894 if test -z "$CC"; then
18895 if test -n "$ac_tool_prefix"; then
18896 for ac_prog in cl
18898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18900 echo "$as_me:$LINENO: checking for $ac_word" >&5
18901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18902 if test "${ac_cv_prog_CC+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905 if test -n "$CC"; then
18906 ac_cv_prog_CC="$CC" # Let the user override the test.
18907 else
18908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18909 for as_dir in $PATH
18911 IFS=$as_save_IFS
18912 test -z "$as_dir" && as_dir=.
18913 for ac_exec_ext in '' $ac_executable_extensions; do
18914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18917 break 2
18919 done
18920 done
18924 CC=$ac_cv_prog_CC
18925 if test -n "$CC"; then
18926 echo "$as_me:$LINENO: result: $CC" >&5
18927 echo "${ECHO_T}$CC" >&6
18928 else
18929 echo "$as_me:$LINENO: result: no" >&5
18930 echo "${ECHO_T}no" >&6
18933 test -n "$CC" && break
18934 done
18936 if test -z "$CC"; then
18937 ac_ct_CC=$CC
18938 for ac_prog in cl
18940 # Extract the first word of "$ac_prog", so it can be a program name with args.
18941 set dummy $ac_prog; ac_word=$2
18942 echo "$as_me:$LINENO: checking for $ac_word" >&5
18943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 if test -n "$ac_ct_CC"; then
18948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18949 else
18950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18951 for as_dir in $PATH
18953 IFS=$as_save_IFS
18954 test -z "$as_dir" && as_dir=.
18955 for ac_exec_ext in '' $ac_executable_extensions; do
18956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18957 ac_cv_prog_ac_ct_CC="$ac_prog"
18958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18959 break 2
18961 done
18962 done
18966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18967 if test -n "$ac_ct_CC"; then
18968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18969 echo "${ECHO_T}$ac_ct_CC" >&6
18970 else
18971 echo "$as_me:$LINENO: result: no" >&5
18972 echo "${ECHO_T}no" >&6
18975 test -n "$ac_ct_CC" && break
18976 done
18978 CC=$ac_ct_CC
18984 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18985 See \`config.log' for more details." >&5
18986 echo "$as_me: error: no acceptable C compiler found in \$PATH
18987 See \`config.log' for more details." >&2;}
18988 { (exit 1); exit 1; }; }
18990 # Provide some information about the compiler.
18991 echo "$as_me:$LINENO:" \
18992 "checking for C compiler version" >&5
18993 ac_compiler=`set X $ac_compile; echo $2`
18994 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18995 (eval $ac_compiler --version </dev/null >&5) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }
18999 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19000 (eval $ac_compiler -v </dev/null >&5) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }
19004 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19005 (eval $ac_compiler -V </dev/null >&5) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }
19010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015 cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h. */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19023 main ()
19025 #ifndef __GNUC__
19026 choke me
19027 #endif
19030 return 0;
19032 _ACEOF
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_compiler_gnu=yes
19056 else
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 ac_compiler_gnu=no
19062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19068 GCC=`test $ac_compiler_gnu = yes && echo yes`
19069 ac_test_CFLAGS=${CFLAGS+set}
19070 ac_save_CFLAGS=$CFLAGS
19071 CFLAGS="-g"
19072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19074 if test "${ac_cv_prog_cc_g+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h. */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19085 main ()
19089 return 0;
19091 _ACEOF
19092 rm -f conftest.$ac_objext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19094 (eval $ac_compile) 2>conftest.er1
19095 ac_status=$?
19096 grep -v '^ *+' conftest.er1 >conftest.err
19097 rm -f conftest.er1
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest.$ac_objext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_prog_cc_g=yes
19115 else
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_prog_cc_g=no
19121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19123 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19125 if test "$ac_test_CFLAGS" = set; then
19126 CFLAGS=$ac_save_CFLAGS
19127 elif test $ac_cv_prog_cc_g = yes; then
19128 if test "$GCC" = yes; then
19129 CFLAGS="-g -O2"
19130 else
19131 CFLAGS="-g"
19133 else
19134 if test "$GCC" = yes; then
19135 CFLAGS="-O2"
19136 else
19137 CFLAGS=
19140 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19141 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19142 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145 ac_cv_prog_cc_stdc=no
19146 ac_save_CC=$CC
19147 cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h. */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <stdarg.h>
19154 #include <stdio.h>
19155 #include <sys/types.h>
19156 #include <sys/stat.h>
19157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19158 struct buf { int x; };
19159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19160 static char *e (p, i)
19161 char **p;
19162 int i;
19164 return p[i];
19166 static char *f (char * (*g) (char **, int), char **p, ...)
19168 char *s;
19169 va_list v;
19170 va_start (v,p);
19171 s = g (p, va_arg (v,int));
19172 va_end (v);
19173 return s;
19176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19177 function prototypes and stuff, but not '\xHH' hex character constants.
19178 These don't provoke an error unfortunately, instead are silently treated
19179 as 'x'. The following induces an error, until -std1 is added to get
19180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19181 array size at least. It's necessary to write '\x00'==0 to get something
19182 that's true only with -std1. */
19183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19185 int test (int i, double x);
19186 struct s1 {int (*f) (int a);};
19187 struct s2 {int (*f) (double a);};
19188 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19189 int argc;
19190 char **argv;
19192 main ()
19194 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19196 return 0;
19198 _ACEOF
19199 # Don't try gcc -ansi; that turns off useful extensions and
19200 # breaks some systems' header files.
19201 # AIX -qlanglvl=ansi
19202 # Ultrix and OSF/1 -std1
19203 # HP-UX 10.20 and later -Ae
19204 # HP-UX older versions -Aa -D_HPUX_SOURCE
19205 # SVR4 -Xc -D__EXTENSIONS__
19206 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19208 CC="$ac_save_CC $ac_arg"
19209 rm -f conftest.$ac_objext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211 (eval $ac_compile) 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest.$ac_objext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_cv_prog_cc_stdc=$ac_arg
19232 break
19233 else
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19238 rm -f conftest.err conftest.$ac_objext
19239 done
19240 rm -f conftest.$ac_ext conftest.$ac_objext
19241 CC=$ac_save_CC
19245 case "x$ac_cv_prog_cc_stdc" in
19246 x|xno)
19247 echo "$as_me:$LINENO: result: none needed" >&5
19248 echo "${ECHO_T}none needed" >&6 ;;
19250 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19251 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19252 CC="$CC $ac_cv_prog_cc_stdc" ;;
19253 esac
19255 # Some people use a C++ compiler to compile C. Since we use `exit',
19256 # in C++ we need to declare it. In case someone uses the same compiler
19257 # for both compiling C and C++ we need to have the C++ compiler decide
19258 # the declaration of exit, since it's the most demanding environment.
19259 cat >conftest.$ac_ext <<_ACEOF
19260 #ifndef __cplusplus
19261 choke me
19262 #endif
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19266 (eval $ac_compile) 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
19273 { ac_try='test -z "$ac_c_werror_flag"
19274 || test ! -s conftest.err'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest.$ac_objext'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 for ac_declaration in \
19287 '' \
19288 'extern "C" void std::exit (int) throw (); using std::exit;' \
19289 'extern "C" void std::exit (int); using std::exit;' \
19290 'extern "C" void exit (int) throw ();' \
19291 'extern "C" void exit (int);' \
19292 'void exit (int);'
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 $ac_declaration
19301 #include <stdlib.h>
19303 main ()
19305 exit (42);
19307 return 0;
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>conftest.er1
19313 ac_status=$?
19314 grep -v '^ *+' conftest.er1 >conftest.err
19315 rm -f conftest.er1
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 continue
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 $ac_declaration
19348 main ()
19350 exit (42);
19352 return 0;
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357 (eval $ac_compile) 2>conftest.er1
19358 ac_status=$?
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19377 break
19378 else
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19384 done
19385 rm -f conftest*
19386 if test -n "$ac_declaration"; then
19387 echo '#ifdef __cplusplus' >>confdefs.h
19388 echo $ac_declaration >>confdefs.h
19389 echo '#endif' >>confdefs.h
19392 else
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398 ac_ext=c
19399 ac_cpp='$CPP $CPPFLAGS'
19400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404 depcc="$CC" am_compiler_list=
19406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19412 # We make a subdir and do the tests there. Otherwise we can end up
19413 # making bogus files that we don't know about and never remove. For
19414 # instance it was reported that on HP-UX the gcc test will end up
19415 # making a dummy file named `D' -- because `-MD' means `put the output
19416 # in D'.
19417 mkdir conftest.dir
19418 # Copy depcomp to subdir because otherwise we won't find it if we're
19419 # using a relative directory.
19420 cp "$am_depcomp" conftest.dir
19421 cd conftest.dir
19422 # We will build objects and dependencies in a subdirectory because
19423 # it helps to detect inapplicable dependency modes. For instance
19424 # both Tru64's cc and ICC support -MD to output dependencies as a
19425 # side effect of compilation, but ICC will put the dependencies in
19426 # the current directory while Tru64 will put them in the object
19427 # directory.
19428 mkdir sub
19430 am_cv_CC_dependencies_compiler_type=none
19431 if test "$am_compiler_list" = ""; then
19432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19434 for depmode in $am_compiler_list; do
19435 # Setup a source with many dependencies, because some compilers
19436 # like to wrap large dependency lists on column 80 (with \), and
19437 # we should not choose a depcomp mode which is confused by this.
19439 # We need to recreate these files for each test, as the compiler may
19440 # overwrite some of them when testing with obscure command lines.
19441 # This happens at least with the AIX C compiler.
19442 : > sub/conftest.c
19443 for i in 1 2 3 4 5 6; do
19444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19446 # Solaris 8's {/usr,}/bin/sh.
19447 touch sub/conftst$i.h
19448 done
19449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19451 case $depmode in
19452 nosideeffect)
19453 # after this tag, mechanisms are not by side-effect, so they'll
19454 # only be used when explicitly requested
19455 if test "x$enable_dependency_tracking" = xyes; then
19456 continue
19457 else
19458 break
19461 none) break ;;
19462 esac
19463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19464 # mode. It turns out that the SunPro C++ compiler does not properly
19465 # handle `-M -o', and we need to detect this.
19466 if depmode=$depmode \
19467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19470 >/dev/null 2>conftest.err &&
19471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19474 # icc doesn't choke on unknown options, it will just issue warnings
19475 # or remarks (even with -Werror). So we grep stderr for any message
19476 # that says an option was ignored or not supported.
19477 # When given -MP, icc 7.0 and 7.1 complain thusly:
19478 # icc: Command line warning: ignoring option '-M'; no argument required
19479 # The diagnosis changed in icc 8.0:
19480 # icc: Command line remark: option '-MP' not supported
19481 if (grep 'ignoring option' conftest.err ||
19482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19483 am_cv_CC_dependencies_compiler_type=$depmode
19484 break
19487 done
19489 cd ..
19490 rm -rf conftest.dir
19491 else
19492 am_cv_CC_dependencies_compiler_type=none
19496 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19503 test "x$enable_dependency_tracking" != xno \
19504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19505 am__fastdepCC_TRUE=
19506 am__fastdepCC_FALSE='#'
19507 else
19508 am__fastdepCC_TRUE='#'
19509 am__fastdepCC_FALSE=
19514 # Checks for pkg-config packages
19517 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19518 if test -n "$ac_tool_prefix"; then
19519 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19520 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19521 echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526 case $PKG_CONFIG in
19527 [\\/]* | ?:[\\/]*)
19528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19534 IFS=$as_save_IFS
19535 test -z "$as_dir" && as_dir=.
19536 for ac_exec_ext in '' $ac_executable_extensions; do
19537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19540 break 2
19542 done
19543 done
19546 esac
19548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19550 if test -n "$PKG_CONFIG"; then
19551 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19552 echo "${ECHO_T}$PKG_CONFIG" >&6
19553 else
19554 echo "$as_me:$LINENO: result: no" >&5
19555 echo "${ECHO_T}no" >&6
19559 if test -z "$ac_cv_path_PKG_CONFIG"; then
19560 ac_pt_PKG_CONFIG=$PKG_CONFIG
19561 # Extract the first word of "pkg-config", so it can be a program name with args.
19562 set dummy pkg-config; ac_word=$2
19563 echo "$as_me:$LINENO: checking for $ac_word" >&5
19564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19565 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 case $ac_pt_PKG_CONFIG in
19569 [\\/]* | ?:[\\/]*)
19570 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19574 for as_dir in $PATH
19576 IFS=$as_save_IFS
19577 test -z "$as_dir" && as_dir=.
19578 for ac_exec_ext in '' $ac_executable_extensions; do
19579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19580 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19582 break 2
19584 done
19585 done
19588 esac
19590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19592 if test -n "$ac_pt_PKG_CONFIG"; then
19593 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19594 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19595 else
19596 echo "$as_me:$LINENO: result: no" >&5
19597 echo "${ECHO_T}no" >&6
19600 PKG_CONFIG=$ac_pt_PKG_CONFIG
19601 else
19602 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19606 if test -n "$PKG_CONFIG"; then
19607 _pkg_min_version=0.9.0
19608 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19609 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19610 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19611 echo "$as_me:$LINENO: result: yes" >&5
19612 echo "${ECHO_T}yes" >&6
19613 else
19614 echo "$as_me:$LINENO: result: no" >&5
19615 echo "${ECHO_T}no" >&6
19616 PKG_CONFIG=""
19621 pkg_failed=no
19622 echo "$as_me:$LINENO: checking for XEXT" >&5
19623 echo $ECHO_N "checking for XEXT... $ECHO_C" >&6
19625 if test -n "$PKG_CONFIG"; then
19626 if test -n "$XEXT_CFLAGS"; then
19627 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19628 else
19629 if test -n "$PKG_CONFIG" && \
19630 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xau\"") >&5
19631 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xau") 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; then
19635 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xau" 2>/dev/null`
19636 else
19637 pkg_failed=yes
19640 else
19641 pkg_failed=untried
19643 if test -n "$PKG_CONFIG"; then
19644 if test -n "$XEXT_LIBS"; then
19645 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19646 else
19647 if test -n "$PKG_CONFIG" && \
19648 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xau\"") >&5
19649 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xau") 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; then
19653 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xau" 2>/dev/null`
19654 else
19655 pkg_failed=yes
19658 else
19659 pkg_failed=untried
19664 if test $pkg_failed = yes; then
19666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19667 _pkg_short_errors_supported=yes
19668 else
19669 _pkg_short_errors_supported=no
19671 if test $_pkg_short_errors_supported = yes; then
19672 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto x11 xextproto xau"`
19673 else
19674 XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xextproto xau"`
19676 # Put the nasty error message in config.log where it belongs
19677 echo "$XEXT_PKG_ERRORS" >&5
19679 { { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xau) were not met:
19681 $XEXT_PKG_ERRORS
19683 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19684 installed software in a non-standard prefix.
19686 Alternatively, you may set the environment variables XEXT_CFLAGS
19687 and XEXT_LIBS to avoid the need to call pkg-config.
19688 See the pkg-config man page for more details.
19689 " >&5
19690 echo "$as_me: error: Package requirements (xproto x11 xextproto xau) were not met:
19692 $XEXT_PKG_ERRORS
19694 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19695 installed software in a non-standard prefix.
19697 Alternatively, you may set the environment variables XEXT_CFLAGS
19698 and XEXT_LIBS to avoid the need to call pkg-config.
19699 See the pkg-config man page for more details.
19700 " >&2;}
19701 { (exit 1); exit 1; }; }
19702 elif test $pkg_failed = untried; then
19703 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19704 is in your PATH or set the PKG_CONFIG environment variable to the full
19705 path to pkg-config.
19707 Alternatively, you may set the environment variables XEXT_CFLAGS
19708 and XEXT_LIBS to avoid the need to call pkg-config.
19709 See the pkg-config man page for more details.
19711 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19712 See \`config.log' for more details." >&5
19713 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19714 is in your PATH or set the PKG_CONFIG environment variable to the full
19715 path to pkg-config.
19717 Alternatively, you may set the environment variables XEXT_CFLAGS
19718 and XEXT_LIBS to avoid the need to call pkg-config.
19719 See the pkg-config man page for more details.
19721 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19722 See \`config.log' for more details." >&2;}
19723 { (exit 1); exit 1; }; }
19724 else
19725 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19726 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19727 echo "$as_me:$LINENO: result: yes" >&5
19728 echo "${ECHO_T}yes" >&6
19734 # Checks for libraries.
19736 # Checks for header files.
19737 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19739 if test "${ac_cv_header_stdc+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <stdlib.h>
19749 #include <stdarg.h>
19750 #include <string.h>
19751 #include <float.h>
19754 main ()
19758 return 0;
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_c_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_cv_header_stdc=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_cv_header_stdc=no
19790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19792 if test $ac_cv_header_stdc = yes; then
19793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 #include <string.h>
19802 _ACEOF
19803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19804 $EGREP "memchr" >/dev/null 2>&1; then
19806 else
19807 ac_cv_header_stdc=no
19809 rm -f conftest*
19813 if test $ac_cv_header_stdc = yes; then
19814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19815 cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h. */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 #include <stdlib.h>
19823 _ACEOF
19824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19825 $EGREP "free" >/dev/null 2>&1; then
19827 else
19828 ac_cv_header_stdc=no
19830 rm -f conftest*
19834 if test $ac_cv_header_stdc = yes; then
19835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19836 if test "$cross_compiling" = yes; then
19838 else
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <ctype.h>
19846 #if ((' ' & 0x0FF) == 0x020)
19847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19849 #else
19850 # define ISLOWER(c) \
19851 (('a' <= (c) && (c) <= 'i') \
19852 || ('j' <= (c) && (c) <= 'r') \
19853 || ('s' <= (c) && (c) <= 'z'))
19854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19855 #endif
19857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19859 main ()
19861 int i;
19862 for (i = 0; i < 256; i++)
19863 if (XOR (islower (i), ISLOWER (i))
19864 || toupper (i) != TOUPPER (i))
19865 exit(2);
19866 exit (0);
19868 _ACEOF
19869 rm -f conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871 (eval $ac_link) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19881 else
19882 echo "$as_me: program exited with status $ac_status" >&5
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 ( exit $ac_status )
19887 ac_cv_header_stdc=no
19889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19893 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19894 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19895 if test $ac_cv_header_stdc = yes; then
19897 cat >>confdefs.h <<\_ACEOF
19898 #define STDC_HEADERS 1
19899 _ACEOF
19905 # Check whether --enable-malloc0returnsnull or --disable-malloc0returnsnull was given.
19906 if test "${enable_malloc0returnsnull+set}" = set; then
19907 enableval="$enable_malloc0returnsnull"
19908 MALLOC_ZERO_RETURNS_NULL=$enableval
19909 else
19910 MALLOC_ZERO_RETURNS_NULL=auto
19913 echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
19914 echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6
19915 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19916 if test "$cross_compiling" = yes; then
19917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19918 See \`config.log' for more details." >&5
19919 echo "$as_me: error: cannot run test program while cross compiling
19920 See \`config.log' for more details." >&2;}
19921 { (exit 1); exit 1; }; }
19922 else
19923 cat >conftest.$ac_ext <<_ACEOF
19925 char *malloc();
19926 char *realloc();
19927 char *calloc();
19928 main() {
19929 char *m0, *r0, *c0, *p;
19930 m0 = malloc(0);
19931 p = malloc(10);
19932 r0 = realloc(p,0);
19933 c0 = calloc(0);
19934 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
19936 _ACEOF
19937 rm -f conftest$ac_exeext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19939 (eval $ac_link) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 MALLOC_ZERO_RETURNS_NULL=yes
19949 else
19950 echo "$as_me: program exited with status $ac_status" >&5
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 ( exit $ac_status )
19955 MALLOC_ZERO_RETURNS_NULL=no
19957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19960 echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19961 echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6
19963 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19964 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19965 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19966 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19967 else
19968 MALLOC_ZERO_CFLAGS=""
19969 XMALLOC_ZERO_CFLAGS=""
19970 XTMALLOC_ZERO_CFLAGS=""
19979 # Check whether --with-release-version or --without-release-version was given.
19980 if test "${with_release_version+set}" = set; then
19981 withval="$with_release_version"
19982 RELEASE_VERSION="$withval"
19983 else
19984 RELEASE_VERSION=""
19986 if test "x$RELEASE_VERSION" != "x"; then
19987 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19988 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19989 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19990 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19994 # Man page processing requirements
19997 for ac_prog in cpp
19999 # Extract the first word of "$ac_prog", so it can be a program name with args.
20000 set dummy $ac_prog; ac_word=$2
20001 echo "$as_me:$LINENO: checking for $ac_word" >&5
20002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20003 if test "${ac_cv_path_RAWCPP+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006 case $RAWCPP in
20007 [\\/]* | ?:[\\/]*)
20008 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20012 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20013 for as_dir in $as_dummy
20015 IFS=$as_save_IFS
20016 test -z "$as_dir" && as_dir=.
20017 for ac_exec_ext in '' $ac_executable_extensions; do
20018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20019 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
20020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20021 break 2
20023 done
20024 done
20027 esac
20029 RAWCPP=$ac_cv_path_RAWCPP
20031 if test -n "$RAWCPP"; then
20032 echo "$as_me:$LINENO: result: $RAWCPP" >&5
20033 echo "${ECHO_T}$RAWCPP" >&6
20034 else
20035 echo "$as_me:$LINENO: result: no" >&5
20036 echo "${ECHO_T}no" >&6
20039 test -n "$RAWCPP" && break
20040 done
20041 test -n "$RAWCPP" || RAWCPP="${CPP}"
20044 # Check for flag to avoid builtin definitions - assumes unix is predefined,
20045 # which is not the best choice for supporting other OS'es, but covers most
20046 # of the ones we need for now.
20047 echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
20048 echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6
20049 cat >conftest.$ac_ext <<_ACEOF
20050 Does cpp redefine unix ?
20051 _ACEOF
20052 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20053 echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6
20055 else
20056 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20057 RAWCPPFLAGS=-undef
20058 echo "$as_me:$LINENO: result: yes" >&5
20059 echo "${ECHO_T}yes" >&6
20060 else
20061 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5
20062 echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;}
20063 { (exit 1); exit 1; }; }
20066 rm -f conftest.$ac_ext
20068 echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
20069 echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6
20070 cat >conftest.$ac_ext <<_ACEOF
20071 Does cpp preserve "whitespace"?
20072 _ACEOF
20073 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
20074 echo "$as_me:$LINENO: result: no" >&5
20075 echo "${ECHO_T}no" >&6
20076 else
20077 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
20078 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20079 echo "$as_me:$LINENO: result: yes" >&5
20080 echo "${ECHO_T}yes" >&6
20081 else
20082 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5
20083 echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;}
20084 { (exit 1); exit 1; }; }
20087 rm -f conftest.$ac_ext
20093 if test x$APP_MAN_SUFFIX = x ; then
20094 APP_MAN_SUFFIX=1
20096 if test x$APP_MAN_DIR = x ; then
20097 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20100 if test x$LIB_MAN_SUFFIX = x ; then
20101 LIB_MAN_SUFFIX=3
20103 if test x$LIB_MAN_DIR = x ; then
20104 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20107 if test x$FILE_MAN_SUFFIX = x ; then
20108 case $host_os in
20109 solaris*) FILE_MAN_SUFFIX=4 ;;
20110 *) FILE_MAN_SUFFIX=5 ;;
20111 esac
20113 if test x$FILE_MAN_DIR = x ; then
20114 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20117 if test x$MISC_MAN_SUFFIX = x ; then
20118 case $host_os in
20119 solaris*) MISC_MAN_SUFFIX=5 ;;
20120 *) MISC_MAN_SUFFIX=7 ;;
20121 esac
20123 if test x$MISC_MAN_DIR = x ; then
20124 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20127 if test x$DRIVER_MAN_SUFFIX = x ; then
20128 case $host_os in
20129 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20130 *) DRIVER_MAN_SUFFIX=4 ;;
20131 esac
20133 if test x$DRIVER_MAN_DIR = x ; then
20134 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20137 if test x$ADMIN_MAN_SUFFIX = x ; then
20138 case $host_os in
20139 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20140 *) ADMIN_MAN_SUFFIX=8 ;;
20141 esac
20143 if test x$ADMIN_MAN_DIR = x ; then
20144 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20162 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile xext.pc"
20163 cat >confcache <<\_ACEOF
20164 # This file is a shell script that caches the results of configure
20165 # tests run on this system so they can be shared between configure
20166 # scripts and configure runs, see configure's option --config-cache.
20167 # It is not useful on other systems. If it contains results you don't
20168 # want to keep, you may remove or edit it.
20170 # config.status only pays attention to the cache file if you give it
20171 # the --recheck option to rerun configure.
20173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20175 # following values.
20177 _ACEOF
20179 # The following way of writing the cache mishandles newlines in values,
20180 # but we know of no workaround that is simple, portable, and efficient.
20181 # So, don't put newlines in cache variables' values.
20182 # Ultrix sh set writes to stderr and can't be redirected directly,
20183 # and sets the high bit in the cache file unless we assign to the vars.
20185 (set) 2>&1 |
20186 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20187 *ac_space=\ *)
20188 # `set' does not quote correctly, so add quotes (double-quote
20189 # substitution turns \\\\ into \\, and sed turns \\ into \).
20190 sed -n \
20191 "s/'/'\\\\''/g;
20192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20195 # `set' quotes correctly as required by POSIX, so do not add quotes.
20196 sed -n \
20197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20199 esac;
20201 sed '
20202 t clear
20203 : clear
20204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20205 t end
20206 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20207 : end' >>confcache
20208 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20209 if test -w $cache_file; then
20210 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20211 cat confcache >$cache_file
20212 else
20213 echo "not updating unwritable cache $cache_file"
20216 rm -f confcache
20218 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20219 # Let make expand exec_prefix.
20220 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20222 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20223 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20224 # trailing colons and then remove the whole line if VPATH becomes empty
20225 # (actually we leave an empty line to preserve line numbers).
20226 if test "x$srcdir" = x.; then
20227 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20228 s/:*\$(srcdir):*/:/;
20229 s/:*\${srcdir}:*/:/;
20230 s/:*@srcdir@:*/:/;
20231 s/^\([^=]*=[ ]*\):*/\1/;
20232 s/:*$//;
20233 s/^[^=]*=[ ]*$//;
20237 DEFS=-DHAVE_CONFIG_H
20239 ac_libobjs=
20240 ac_ltlibobjs=
20241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20242 # 1. Remove the extension, and $U if already installed.
20243 ac_i=`echo "$ac_i" |
20244 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20245 # 2. Add them.
20246 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20247 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20248 done
20249 LIBOBJS=$ac_libobjs
20251 LTLIBOBJS=$ac_ltlibobjs
20254 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20255 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20256 Usually this means the macro was only invoked conditionally." >&5
20257 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20258 Usually this means the macro was only invoked conditionally." >&2;}
20259 { (exit 1); exit 1; }; }
20261 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20262 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20263 Usually this means the macro was only invoked conditionally." >&5
20264 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20265 Usually this means the macro was only invoked conditionally." >&2;}
20266 { (exit 1); exit 1; }; }
20268 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20269 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20270 Usually this means the macro was only invoked conditionally." >&5
20271 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20272 Usually this means the macro was only invoked conditionally." >&2;}
20273 { (exit 1); exit 1; }; }
20275 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20276 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20277 Usually this means the macro was only invoked conditionally." >&5
20278 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20279 Usually this means the macro was only invoked conditionally." >&2;}
20280 { (exit 1); exit 1; }; }
20282 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20283 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20284 Usually this means the macro was only invoked conditionally." >&5
20285 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20286 Usually this means the macro was only invoked conditionally." >&2;}
20287 { (exit 1); exit 1; }; }
20290 : ${CONFIG_STATUS=./config.status}
20291 ac_clean_files_save=$ac_clean_files
20292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20295 cat >$CONFIG_STATUS <<_ACEOF
20296 #! $SHELL
20297 # Generated by $as_me.
20298 # Run this file to recreate the current configuration.
20299 # Compiler output produced by configure, useful for debugging
20300 # configure, is in config.log if it exists.
20302 debug=false
20303 ac_cs_recheck=false
20304 ac_cs_silent=false
20305 SHELL=\${CONFIG_SHELL-$SHELL}
20306 _ACEOF
20308 cat >>$CONFIG_STATUS <<\_ACEOF
20309 ## --------------------- ##
20310 ## M4sh Initialization. ##
20311 ## --------------------- ##
20313 # Be Bourne compatible
20314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20315 emulate sh
20316 NULLCMD=:
20317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20318 # is contrary to our usage. Disable this feature.
20319 alias -g '${1+"$@"}'='"$@"'
20320 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20321 set -o posix
20323 DUALCASE=1; export DUALCASE # for MKS sh
20325 # Support unset when possible.
20326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20327 as_unset=unset
20328 else
20329 as_unset=false
20333 # Work around bugs in pre-3.0 UWIN ksh.
20334 $as_unset ENV MAIL MAILPATH
20335 PS1='$ '
20336 PS2='> '
20337 PS4='+ '
20339 # NLS nuisances.
20340 for as_var in \
20341 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20342 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20343 LC_TELEPHONE LC_TIME
20345 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20346 eval $as_var=C; export $as_var
20347 else
20348 $as_unset $as_var
20350 done
20352 # Required to use basename.
20353 if expr a : '\(a\)' >/dev/null 2>&1; then
20354 as_expr=expr
20355 else
20356 as_expr=false
20359 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20360 as_basename=basename
20361 else
20362 as_basename=false
20366 # Name of the executable.
20367 as_me=`$as_basename "$0" ||
20368 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20369 X"$0" : 'X\(//\)$' \| \
20370 X"$0" : 'X\(/\)$' \| \
20371 . : '\(.\)' 2>/dev/null ||
20372 echo X/"$0" |
20373 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20374 /^X\/\(\/\/\)$/{ s//\1/; q; }
20375 /^X\/\(\/\).*/{ s//\1/; q; }
20376 s/.*/./; q'`
20379 # PATH needs CR, and LINENO needs CR and PATH.
20380 # Avoid depending upon Character Ranges.
20381 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20382 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20383 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20384 as_cr_digits='0123456789'
20385 as_cr_alnum=$as_cr_Letters$as_cr_digits
20387 # The user is always right.
20388 if test "${PATH_SEPARATOR+set}" != set; then
20389 echo "#! /bin/sh" >conf$$.sh
20390 echo "exit 0" >>conf$$.sh
20391 chmod +x conf$$.sh
20392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20393 PATH_SEPARATOR=';'
20394 else
20395 PATH_SEPARATOR=:
20397 rm -f conf$$.sh
20401 as_lineno_1=$LINENO
20402 as_lineno_2=$LINENO
20403 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20404 test "x$as_lineno_1" != "x$as_lineno_2" &&
20405 test "x$as_lineno_3" = "x$as_lineno_2" || {
20406 # Find who we are. Look in the path if we contain no path at all
20407 # relative or not.
20408 case $0 in
20409 *[\\/]* ) as_myself=$0 ;;
20410 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20411 for as_dir in $PATH
20413 IFS=$as_save_IFS
20414 test -z "$as_dir" && as_dir=.
20415 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20416 done
20419 esac
20420 # We did not find ourselves, most probably we were run as `sh COMMAND'
20421 # in which case we are not to be found in the path.
20422 if test "x$as_myself" = x; then
20423 as_myself=$0
20425 if test ! -f "$as_myself"; then
20426 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20427 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20428 { (exit 1); exit 1; }; }
20430 case $CONFIG_SHELL in
20432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20435 IFS=$as_save_IFS
20436 test -z "$as_dir" && as_dir=.
20437 for as_base in sh bash ksh sh5; do
20438 case $as_dir in
20440 if ("$as_dir/$as_base" -c '
20441 as_lineno_1=$LINENO
20442 as_lineno_2=$LINENO
20443 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20444 test "x$as_lineno_1" != "x$as_lineno_2" &&
20445 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20446 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20447 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20448 CONFIG_SHELL=$as_dir/$as_base
20449 export CONFIG_SHELL
20450 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20451 fi;;
20452 esac
20453 done
20454 done
20456 esac
20458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20459 # uniformly replaced by the line number. The first 'sed' inserts a
20460 # line-number line before each line; the second 'sed' does the real
20461 # work. The second script uses 'N' to pair each line-number line
20462 # with the numbered line, and appends trailing '-' during
20463 # substitution so that $LINENO is not a special case at line end.
20464 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20465 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20466 sed '=' <$as_myself |
20467 sed '
20469 s,$,-,
20470 : loop
20471 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20472 t loop
20473 s,-$,,
20474 s,^['$as_cr_digits']*\n,,
20475 ' >$as_me.lineno &&
20476 chmod +x $as_me.lineno ||
20477 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20478 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20479 { (exit 1); exit 1; }; }
20481 # Don't try to exec as it changes $[0], causing all sort of problems
20482 # (the dirname of $[0] is not the place where we might find the
20483 # original and so on. Autoconf is especially sensible to this).
20484 . ./$as_me.lineno
20485 # Exit status is that of the last command.
20486 exit
20490 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20491 *c*,-n*) ECHO_N= ECHO_C='
20492 ' ECHO_T=' ' ;;
20493 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20494 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20495 esac
20497 if expr a : '\(a\)' >/dev/null 2>&1; then
20498 as_expr=expr
20499 else
20500 as_expr=false
20503 rm -f conf$$ conf$$.exe conf$$.file
20504 echo >conf$$.file
20505 if ln -s conf$$.file conf$$ 2>/dev/null; then
20506 # We could just check for DJGPP; but this test a) works b) is more generic
20507 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20508 if test -f conf$$.exe; then
20509 # Don't use ln at all; we don't have any links
20510 as_ln_s='cp -p'
20511 else
20512 as_ln_s='ln -s'
20514 elif ln conf$$.file conf$$ 2>/dev/null; then
20515 as_ln_s=ln
20516 else
20517 as_ln_s='cp -p'
20519 rm -f conf$$ conf$$.exe conf$$.file
20521 if mkdir -p . 2>/dev/null; then
20522 as_mkdir_p=:
20523 else
20524 test -d ./-p && rmdir ./-p
20525 as_mkdir_p=false
20528 as_executable_p="test -f"
20530 # Sed expression to map a string onto a valid CPP name.
20531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20533 # Sed expression to map a string onto a valid variable name.
20534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20537 # IFS
20538 # We need space, tab and new line, in precisely that order.
20539 as_nl='
20541 IFS=" $as_nl"
20543 # CDPATH.
20544 $as_unset CDPATH
20546 exec 6>&1
20548 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20549 # report actual input values of CONFIG_FILES etc. instead of their
20550 # values after options handling. Logging --version etc. is OK.
20551 exec 5>>config.log
20553 echo
20554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20555 ## Running $as_me. ##
20556 _ASBOX
20557 } >&5
20558 cat >&5 <<_CSEOF
20560 This file was extended by libXext $as_me 1.0.2, which was
20561 generated by GNU Autoconf 2.59. Invocation command line was
20563 CONFIG_FILES = $CONFIG_FILES
20564 CONFIG_HEADERS = $CONFIG_HEADERS
20565 CONFIG_LINKS = $CONFIG_LINKS
20566 CONFIG_COMMANDS = $CONFIG_COMMANDS
20567 $ $0 $@
20569 _CSEOF
20570 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20571 echo >&5
20572 _ACEOF
20574 # Files that config.status was made for.
20575 if test -n "$ac_config_files"; then
20576 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20579 if test -n "$ac_config_headers"; then
20580 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20583 if test -n "$ac_config_links"; then
20584 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20587 if test -n "$ac_config_commands"; then
20588 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20593 ac_cs_usage="\
20594 \`$as_me' instantiates files from templates according to the
20595 current configuration.
20597 Usage: $0 [OPTIONS] [FILE]...
20599 -h, --help print this help, then exit
20600 -V, --version print version number, then exit
20601 -q, --quiet do not print progress messages
20602 -d, --debug don't remove temporary files
20603 --recheck update $as_me by reconfiguring in the same conditions
20604 --file=FILE[:TEMPLATE]
20605 instantiate the configuration file FILE
20606 --header=FILE[:TEMPLATE]
20607 instantiate the configuration header FILE
20609 Configuration files:
20610 $config_files
20612 Configuration headers:
20613 $config_headers
20615 Configuration commands:
20616 $config_commands
20618 Report bugs to <bug-autoconf@gnu.org>."
20619 _ACEOF
20621 cat >>$CONFIG_STATUS <<_ACEOF
20622 ac_cs_version="\\
20623 libXext config.status 1.0.2
20624 configured by $0, generated by GNU Autoconf 2.59,
20625 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20627 Copyright (C) 2003 Free Software Foundation, Inc.
20628 This config.status script is free software; the Free Software Foundation
20629 gives unlimited permission to copy, distribute and modify it."
20630 srcdir=$srcdir
20631 INSTALL="$INSTALL"
20632 _ACEOF
20634 cat >>$CONFIG_STATUS <<\_ACEOF
20635 # If no file are specified by the user, then we need to provide default
20636 # value. By we need to know if files were specified by the user.
20637 ac_need_defaults=:
20638 while test $# != 0
20640 case $1 in
20641 --*=*)
20642 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20643 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20644 ac_shift=:
20647 ac_option=$1
20648 ac_optarg=$2
20649 ac_shift=shift
20651 *) # This is not an option, so the user has probably given explicit
20652 # arguments.
20653 ac_option=$1
20654 ac_need_defaults=false;;
20655 esac
20657 case $ac_option in
20658 # Handling of the options.
20659 _ACEOF
20660 cat >>$CONFIG_STATUS <<\_ACEOF
20661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20662 ac_cs_recheck=: ;;
20663 --version | --vers* | -V )
20664 echo "$ac_cs_version"; exit 0 ;;
20665 --he | --h)
20666 # Conflict between --help and --header
20667 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20668 Try \`$0 --help' for more information." >&5
20669 echo "$as_me: error: ambiguous option: $1
20670 Try \`$0 --help' for more information." >&2;}
20671 { (exit 1); exit 1; }; };;
20672 --help | --hel | -h )
20673 echo "$ac_cs_usage"; exit 0 ;;
20674 --debug | --d* | -d )
20675 debug=: ;;
20676 --file | --fil | --fi | --f )
20677 $ac_shift
20678 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20679 ac_need_defaults=false;;
20680 --header | --heade | --head | --hea )
20681 $ac_shift
20682 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20683 ac_need_defaults=false;;
20684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20686 ac_cs_silent=: ;;
20688 # This is an error.
20689 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20690 Try \`$0 --help' for more information." >&5
20691 echo "$as_me: error: unrecognized option: $1
20692 Try \`$0 --help' for more information." >&2;}
20693 { (exit 1); exit 1; }; } ;;
20695 *) ac_config_targets="$ac_config_targets $1" ;;
20697 esac
20698 shift
20699 done
20701 ac_configure_extra_args=
20703 if $ac_cs_silent; then
20704 exec 6>/dev/null
20705 ac_configure_extra_args="$ac_configure_extra_args --silent"
20708 _ACEOF
20709 cat >>$CONFIG_STATUS <<_ACEOF
20710 if \$ac_cs_recheck; then
20711 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20712 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20715 _ACEOF
20717 cat >>$CONFIG_STATUS <<_ACEOF
20719 # INIT-COMMANDS section.
20722 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20724 _ACEOF
20728 cat >>$CONFIG_STATUS <<\_ACEOF
20729 for ac_config_target in $ac_config_targets
20731 case "$ac_config_target" in
20732 # Handling of arguments.
20733 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20734 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20735 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20736 "xext.pc" ) CONFIG_FILES="$CONFIG_FILES xext.pc" ;;
20737 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20738 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20741 { (exit 1); exit 1; }; };;
20742 esac
20743 done
20745 # If the user did not use the arguments to specify the items to instantiate,
20746 # then the envvar interface is used. Set only those that are not.
20747 # We use the long form for the default assignment because of an extremely
20748 # bizarre bug on SunOS 4.1.3.
20749 if $ac_need_defaults; then
20750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20755 # Have a temporary directory for convenience. Make it in the build tree
20756 # simply because there is no reason to put it here, and in addition,
20757 # creating and moving files from /tmp can sometimes cause problems.
20758 # Create a temporary directory, and hook for its removal unless debugging.
20759 $debug ||
20761 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20762 trap '{ (exit 1); exit 1; }' 1 2 13 15
20765 # Create a (secure) tmp directory for tmp files.
20768 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20769 test -n "$tmp" && test -d "$tmp"
20770 } ||
20772 tmp=./confstat$$-$RANDOM
20773 (umask 077 && mkdir $tmp)
20774 } ||
20776 echo "$me: cannot create a temporary directory in ." >&2
20777 { (exit 1); exit 1; }
20780 _ACEOF
20782 cat >>$CONFIG_STATUS <<_ACEOF
20785 # CONFIG_FILES section.
20788 # No need to generate the scripts if there are no CONFIG_FILES.
20789 # This happens for instance when ./config.status config.h
20790 if test -n "\$CONFIG_FILES"; then
20791 # Protect against being on the right side of a sed subst in config.status.
20792 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20793 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20794 s,@SHELL@,$SHELL,;t t
20795 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20796 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20797 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20798 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20799 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20800 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20801 s,@exec_prefix@,$exec_prefix,;t t
20802 s,@prefix@,$prefix,;t t
20803 s,@program_transform_name@,$program_transform_name,;t t
20804 s,@bindir@,$bindir,;t t
20805 s,@sbindir@,$sbindir,;t t
20806 s,@libexecdir@,$libexecdir,;t t
20807 s,@datadir@,$datadir,;t t
20808 s,@sysconfdir@,$sysconfdir,;t t
20809 s,@sharedstatedir@,$sharedstatedir,;t t
20810 s,@localstatedir@,$localstatedir,;t t
20811 s,@libdir@,$libdir,;t t
20812 s,@includedir@,$includedir,;t t
20813 s,@oldincludedir@,$oldincludedir,;t t
20814 s,@infodir@,$infodir,;t t
20815 s,@mandir@,$mandir,;t t
20816 s,@build_alias@,$build_alias,;t t
20817 s,@host_alias@,$host_alias,;t t
20818 s,@target_alias@,$target_alias,;t t
20819 s,@DEFS@,$DEFS,;t t
20820 s,@ECHO_C@,$ECHO_C,;t t
20821 s,@ECHO_N@,$ECHO_N,;t t
20822 s,@ECHO_T@,$ECHO_T,;t t
20823 s,@LIBS@,$LIBS,;t t
20824 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20825 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20826 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20827 s,@CYGPATH_W@,$CYGPATH_W,;t t
20828 s,@PACKAGE@,$PACKAGE,;t t
20829 s,@VERSION@,$VERSION,;t t
20830 s,@ACLOCAL@,$ACLOCAL,;t t
20831 s,@AUTOCONF@,$AUTOCONF,;t t
20832 s,@AUTOMAKE@,$AUTOMAKE,;t t
20833 s,@AUTOHEADER@,$AUTOHEADER,;t t
20834 s,@MAKEINFO@,$MAKEINFO,;t t
20835 s,@install_sh@,$install_sh,;t t
20836 s,@STRIP@,$STRIP,;t t
20837 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20838 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20839 s,@mkdir_p@,$mkdir_p,;t t
20840 s,@AWK@,$AWK,;t t
20841 s,@SET_MAKE@,$SET_MAKE,;t t
20842 s,@am__leading_dot@,$am__leading_dot,;t t
20843 s,@AMTAR@,$AMTAR,;t t
20844 s,@am__tar@,$am__tar,;t t
20845 s,@am__untar@,$am__untar,;t t
20846 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20847 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20848 s,@MAINT@,$MAINT,;t t
20849 s,@build@,$build,;t t
20850 s,@build_cpu@,$build_cpu,;t t
20851 s,@build_vendor@,$build_vendor,;t t
20852 s,@build_os@,$build_os,;t t
20853 s,@host@,$host,;t t
20854 s,@host_cpu@,$host_cpu,;t t
20855 s,@host_vendor@,$host_vendor,;t t
20856 s,@host_os@,$host_os,;t t
20857 s,@XEXT_SOREV@,$XEXT_SOREV,;t t
20858 s,@CC@,$CC,;t t
20859 s,@CFLAGS@,$CFLAGS,;t t
20860 s,@LDFLAGS@,$LDFLAGS,;t t
20861 s,@CPPFLAGS@,$CPPFLAGS,;t t
20862 s,@ac_ct_CC@,$ac_ct_CC,;t t
20863 s,@EXEEXT@,$EXEEXT,;t t
20864 s,@OBJEXT@,$OBJEXT,;t t
20865 s,@DEPDIR@,$DEPDIR,;t t
20866 s,@am__include@,$am__include,;t t
20867 s,@am__quote@,$am__quote,;t t
20868 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20869 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20870 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20871 s,@CCDEPMODE@,$CCDEPMODE,;t t
20872 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20873 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20874 s,@SED@,$SED,;t t
20875 s,@EGREP@,$EGREP,;t t
20876 s,@LN_S@,$LN_S,;t t
20877 s,@ECHO@,$ECHO,;t t
20878 s,@AR@,$AR,;t t
20879 s,@ac_ct_AR@,$ac_ct_AR,;t t
20880 s,@RANLIB@,$RANLIB,;t t
20881 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20882 s,@CPP@,$CPP,;t t
20883 s,@CXX@,$CXX,;t t
20884 s,@CXXFLAGS@,$CXXFLAGS,;t t
20885 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20886 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20887 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20888 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20889 s,@CXXCPP@,$CXXCPP,;t t
20890 s,@F77@,$F77,;t t
20891 s,@FFLAGS@,$FFLAGS,;t t
20892 s,@ac_ct_F77@,$ac_ct_F77,;t t
20893 s,@LIBTOOL@,$LIBTOOL,;t t
20894 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20895 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20896 s,@XEXT_CFLAGS@,$XEXT_CFLAGS,;t t
20897 s,@XEXT_LIBS@,$XEXT_LIBS,;t t
20898 s,@MALLOC_ZERO_CFLAGS@,$MALLOC_ZERO_CFLAGS,;t t
20899 s,@XMALLOC_ZERO_CFLAGS@,$XMALLOC_ZERO_CFLAGS,;t t
20900 s,@XTMALLOC_ZERO_CFLAGS@,$XTMALLOC_ZERO_CFLAGS,;t t
20901 s,@RAWCPP@,$RAWCPP,;t t
20902 s,@RAWCPPFLAGS@,$RAWCPPFLAGS,;t t
20903 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
20904 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
20905 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
20906 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
20907 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
20908 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
20909 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
20910 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
20911 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
20912 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
20913 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
20914 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
20915 s,@LIBOBJS@,$LIBOBJS,;t t
20916 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20917 CEOF
20919 _ACEOF
20921 cat >>$CONFIG_STATUS <<\_ACEOF
20922 # Split the substitutions into bite-sized pieces for seds with
20923 # small command number limits, like on Digital OSF/1 and HP-UX.
20924 ac_max_sed_lines=48
20925 ac_sed_frag=1 # Number of current file.
20926 ac_beg=1 # First line for current file.
20927 ac_end=$ac_max_sed_lines # Line after last line for current file.
20928 ac_more_lines=:
20929 ac_sed_cmds=
20930 while $ac_more_lines; do
20931 if test $ac_beg -gt 1; then
20932 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20933 else
20934 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20936 if test ! -s $tmp/subs.frag; then
20937 ac_more_lines=false
20938 else
20939 # The purpose of the label and of the branching condition is to
20940 # speed up the sed processing (if there are no `@' at all, there
20941 # is no need to browse any of the substitutions).
20942 # These are the two extra sed commands mentioned above.
20943 (echo ':t
20944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20945 if test -z "$ac_sed_cmds"; then
20946 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20947 else
20948 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20950 ac_sed_frag=`expr $ac_sed_frag + 1`
20951 ac_beg=$ac_end
20952 ac_end=`expr $ac_end + $ac_max_sed_lines`
20954 done
20955 if test -z "$ac_sed_cmds"; then
20956 ac_sed_cmds=cat
20958 fi # test -n "$CONFIG_FILES"
20960 _ACEOF
20961 cat >>$CONFIG_STATUS <<\_ACEOF
20962 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20963 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20964 case $ac_file in
20965 - | *:- | *:-:* ) # input from stdin
20966 cat >$tmp/stdin
20967 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20969 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20971 * ) ac_file_in=$ac_file.in ;;
20972 esac
20974 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20975 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977 X"$ac_file" : 'X\(//\)[^/]' \| \
20978 X"$ac_file" : 'X\(//\)$' \| \
20979 X"$ac_file" : 'X\(/\)' \| \
20980 . : '\(.\)' 2>/dev/null ||
20981 echo X"$ac_file" |
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20984 /^X\(\/\/\)$/{ s//\1/; q; }
20985 /^X\(\/\).*/{ s//\1/; q; }
20986 s/.*/./; q'`
20987 { if $as_mkdir_p; then
20988 mkdir -p "$ac_dir"
20989 else
20990 as_dir="$ac_dir"
20991 as_dirs=
20992 while test ! -d "$as_dir"; do
20993 as_dirs="$as_dir $as_dirs"
20994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$as_dir" : 'X\(//\)[^/]' \| \
20997 X"$as_dir" : 'X\(//\)$' \| \
20998 X"$as_dir" : 'X\(/\)' \| \
20999 . : '\(.\)' 2>/dev/null ||
21000 echo X"$as_dir" |
21001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21003 /^X\(\/\/\)$/{ s//\1/; q; }
21004 /^X\(\/\).*/{ s//\1/; q; }
21005 s/.*/./; q'`
21006 done
21007 test ! -n "$as_dirs" || mkdir $as_dirs
21008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21010 { (exit 1); exit 1; }; }; }
21012 ac_builddir=.
21014 if test "$ac_dir" != .; then
21015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21016 # A "../" for each directory in $ac_dir_suffix.
21017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21018 else
21019 ac_dir_suffix= ac_top_builddir=
21022 case $srcdir in
21023 .) # No --srcdir option. We are building in place.
21024 ac_srcdir=.
21025 if test -z "$ac_top_builddir"; then
21026 ac_top_srcdir=.
21027 else
21028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21029 fi ;;
21030 [\\/]* | ?:[\\/]* ) # Absolute path.
21031 ac_srcdir=$srcdir$ac_dir_suffix;
21032 ac_top_srcdir=$srcdir ;;
21033 *) # Relative path.
21034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21036 esac
21038 # Do not use `cd foo && pwd` to compute absolute paths, because
21039 # the directories may not exist.
21040 case `pwd` in
21041 .) ac_abs_builddir="$ac_dir";;
21043 case "$ac_dir" in
21044 .) ac_abs_builddir=`pwd`;;
21045 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21046 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21047 esac;;
21048 esac
21049 case $ac_abs_builddir in
21050 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21052 case ${ac_top_builddir}. in
21053 .) ac_abs_top_builddir=$ac_abs_builddir;;
21054 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21055 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21056 esac;;
21057 esac
21058 case $ac_abs_builddir in
21059 .) ac_abs_srcdir=$ac_srcdir;;
21061 case $ac_srcdir in
21062 .) ac_abs_srcdir=$ac_abs_builddir;;
21063 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21064 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21065 esac;;
21066 esac
21067 case $ac_abs_builddir in
21068 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21070 case $ac_top_srcdir in
21071 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21072 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21073 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21074 esac;;
21075 esac
21078 case $INSTALL in
21079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21080 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21081 esac
21083 if test x"$ac_file" != x-; then
21084 { echo "$as_me:$LINENO: creating $ac_file" >&5
21085 echo "$as_me: creating $ac_file" >&6;}
21086 rm -f "$ac_file"
21088 # Let's still pretend it is `configure' which instantiates (i.e., don't
21089 # use $as_me), people would be surprised to read:
21090 # /* config.h. Generated by config.status. */
21091 if test x"$ac_file" = x-; then
21092 configure_input=
21093 else
21094 configure_input="$ac_file. "
21096 configure_input=$configure_input"Generated from `echo $ac_file_in |
21097 sed 's,.*/,,'` by configure."
21099 # First look for the input files in the build tree, otherwise in the
21100 # src tree.
21101 ac_file_inputs=`IFS=:
21102 for f in $ac_file_in; do
21103 case $f in
21104 -) echo $tmp/stdin ;;
21105 [\\/$]*)
21106 # Absolute (can't be DOS-style, as IFS=:)
21107 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21108 echo "$as_me: error: cannot find input file: $f" >&2;}
21109 { (exit 1); exit 1; }; }
21110 echo "$f";;
21111 *) # Relative
21112 if test -f "$f"; then
21113 # Build tree
21114 echo "$f"
21115 elif test -f "$srcdir/$f"; then
21116 # Source tree
21117 echo "$srcdir/$f"
21118 else
21119 # /dev/null tree
21120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21121 echo "$as_me: error: cannot find input file: $f" >&2;}
21122 { (exit 1); exit 1; }; }
21123 fi;;
21124 esac
21125 done` || { (exit 1); exit 1; }
21126 _ACEOF
21127 cat >>$CONFIG_STATUS <<_ACEOF
21128 sed "$ac_vpsub
21129 $extrasub
21130 _ACEOF
21131 cat >>$CONFIG_STATUS <<\_ACEOF
21133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21134 s,@configure_input@,$configure_input,;t t
21135 s,@srcdir@,$ac_srcdir,;t t
21136 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21137 s,@top_srcdir@,$ac_top_srcdir,;t t
21138 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21139 s,@builddir@,$ac_builddir,;t t
21140 s,@abs_builddir@,$ac_abs_builddir,;t t
21141 s,@top_builddir@,$ac_top_builddir,;t t
21142 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21143 s,@INSTALL@,$ac_INSTALL,;t t
21144 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21145 rm -f $tmp/stdin
21146 if test x"$ac_file" != x-; then
21147 mv $tmp/out $ac_file
21148 else
21149 cat $tmp/out
21150 rm -f $tmp/out
21153 done
21154 _ACEOF
21155 cat >>$CONFIG_STATUS <<\_ACEOF
21158 # CONFIG_HEADER section.
21161 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21162 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21164 # ac_d sets the value in "#define NAME VALUE" lines.
21165 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21166 ac_dB='[ ].*$,\1#\2'
21167 ac_dC=' '
21168 ac_dD=',;t'
21169 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21170 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21171 ac_uB='$,\1#\2define\3'
21172 ac_uC=' '
21173 ac_uD=',;t'
21175 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21177 case $ac_file in
21178 - | *:- | *:-:* ) # input from stdin
21179 cat >$tmp/stdin
21180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21184 * ) ac_file_in=$ac_file.in ;;
21185 esac
21187 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21188 echo "$as_me: creating $ac_file" >&6;}
21190 # First look for the input files in the build tree, otherwise in the
21191 # src tree.
21192 ac_file_inputs=`IFS=:
21193 for f in $ac_file_in; do
21194 case $f in
21195 -) echo $tmp/stdin ;;
21196 [\\/$]*)
21197 # Absolute (can't be DOS-style, as IFS=:)
21198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21199 echo "$as_me: error: cannot find input file: $f" >&2;}
21200 { (exit 1); exit 1; }; }
21201 # Do quote $f, to prevent DOS paths from being IFS'd.
21202 echo "$f";;
21203 *) # Relative
21204 if test -f "$f"; then
21205 # Build tree
21206 echo "$f"
21207 elif test -f "$srcdir/$f"; then
21208 # Source tree
21209 echo "$srcdir/$f"
21210 else
21211 # /dev/null tree
21212 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21213 echo "$as_me: error: cannot find input file: $f" >&2;}
21214 { (exit 1); exit 1; }; }
21215 fi;;
21216 esac
21217 done` || { (exit 1); exit 1; }
21218 # Remove the trailing spaces.
21219 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21221 _ACEOF
21223 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21224 # `conftest.undefs', that substitutes the proper values into
21225 # config.h.in to produce config.h. The first handles `#define'
21226 # templates, and the second `#undef' templates.
21227 # And first: Protect against being on the right side of a sed subst in
21228 # config.status. Protect against being in an unquoted here document
21229 # in config.status.
21230 rm -f conftest.defines conftest.undefs
21231 # Using a here document instead of a string reduces the quoting nightmare.
21232 # Putting comments in sed scripts is not portable.
21234 # `end' is used to avoid that the second main sed command (meant for
21235 # 0-ary CPP macros) applies to n-ary macro definitions.
21236 # See the Autoconf documentation for `clear'.
21237 cat >confdef2sed.sed <<\_ACEOF
21238 s/[\\&,]/\\&/g
21239 s,[\\$`],\\&,g
21240 t clear
21241 : clear
21242 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21243 t end
21244 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21245 : end
21246 _ACEOF
21247 # If some macros were called several times there might be several times
21248 # the same #defines, which is useless. Nevertheless, we may not want to
21249 # sort them, since we want the *last* AC-DEFINE to be honored.
21250 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21251 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21252 rm -f confdef2sed.sed
21254 # This sed command replaces #undef with comments. This is necessary, for
21255 # example, in the case of _POSIX_SOURCE, which is predefined and required
21256 # on some systems where configure will not decide to define it.
21257 cat >>conftest.undefs <<\_ACEOF
21258 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21259 _ACEOF
21261 # Break up conftest.defines because some shells have a limit on the size
21262 # of here documents, and old seds have small limits too (100 cmds).
21263 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21264 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21265 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21266 echo ' :' >>$CONFIG_STATUS
21267 rm -f conftest.tail
21268 while grep . conftest.defines >/dev/null
21270 # Write a limited-size here document to $tmp/defines.sed.
21271 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21272 # Speed up: don't consider the non `#define' lines.
21273 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21274 # Work around the forget-to-reset-the-flag bug.
21275 echo 't clr' >>$CONFIG_STATUS
21276 echo ': clr' >>$CONFIG_STATUS
21277 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21278 echo 'CEOF
21279 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21280 rm -f $tmp/in
21281 mv $tmp/out $tmp/in
21282 ' >>$CONFIG_STATUS
21283 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21284 rm -f conftest.defines
21285 mv conftest.tail conftest.defines
21286 done
21287 rm -f conftest.defines
21288 echo ' fi # grep' >>$CONFIG_STATUS
21289 echo >>$CONFIG_STATUS
21291 # Break up conftest.undefs because some shells have a limit on the size
21292 # of here documents, and old seds have small limits too (100 cmds).
21293 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21294 rm -f conftest.tail
21295 while grep . conftest.undefs >/dev/null
21297 # Write a limited-size here document to $tmp/undefs.sed.
21298 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21299 # Speed up: don't consider the non `#undef'
21300 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21301 # Work around the forget-to-reset-the-flag bug.
21302 echo 't clr' >>$CONFIG_STATUS
21303 echo ': clr' >>$CONFIG_STATUS
21304 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21305 echo 'CEOF
21306 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21307 rm -f $tmp/in
21308 mv $tmp/out $tmp/in
21309 ' >>$CONFIG_STATUS
21310 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21311 rm -f conftest.undefs
21312 mv conftest.tail conftest.undefs
21313 done
21314 rm -f conftest.undefs
21316 cat >>$CONFIG_STATUS <<\_ACEOF
21317 # Let's still pretend it is `configure' which instantiates (i.e., don't
21318 # use $as_me), people would be surprised to read:
21319 # /* config.h. Generated by config.status. */
21320 if test x"$ac_file" = x-; then
21321 echo "/* Generated by configure. */" >$tmp/config.h
21322 else
21323 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21325 cat $tmp/in >>$tmp/config.h
21326 rm -f $tmp/in
21327 if test x"$ac_file" != x-; then
21328 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21329 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21330 echo "$as_me: $ac_file is unchanged" >&6;}
21331 else
21332 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21334 X"$ac_file" : 'X\(//\)[^/]' \| \
21335 X"$ac_file" : 'X\(//\)$' \| \
21336 X"$ac_file" : 'X\(/\)' \| \
21337 . : '\(.\)' 2>/dev/null ||
21338 echo X"$ac_file" |
21339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21341 /^X\(\/\/\)$/{ s//\1/; q; }
21342 /^X\(\/\).*/{ s//\1/; q; }
21343 s/.*/./; q'`
21344 { if $as_mkdir_p; then
21345 mkdir -p "$ac_dir"
21346 else
21347 as_dir="$ac_dir"
21348 as_dirs=
21349 while test ! -d "$as_dir"; do
21350 as_dirs="$as_dir $as_dirs"
21351 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21353 X"$as_dir" : 'X\(//\)[^/]' \| \
21354 X"$as_dir" : 'X\(//\)$' \| \
21355 X"$as_dir" : 'X\(/\)' \| \
21356 . : '\(.\)' 2>/dev/null ||
21357 echo X"$as_dir" |
21358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21360 /^X\(\/\/\)$/{ s//\1/; q; }
21361 /^X\(\/\).*/{ s//\1/; q; }
21362 s/.*/./; q'`
21363 done
21364 test ! -n "$as_dirs" || mkdir $as_dirs
21365 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21366 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21367 { (exit 1); exit 1; }; }; }
21369 rm -f $ac_file
21370 mv $tmp/config.h $ac_file
21372 else
21373 cat $tmp/config.h
21374 rm -f $tmp/config.h
21376 # Compute $ac_file's index in $config_headers.
21377 _am_stamp_count=1
21378 for _am_header in $config_headers :; do
21379 case $_am_header in
21380 $ac_file | $ac_file:* )
21381 break ;;
21383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21384 esac
21385 done
21386 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21387 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21388 X$ac_file : 'X\(//\)[^/]' \| \
21389 X$ac_file : 'X\(//\)$' \| \
21390 X$ac_file : 'X\(/\)' \| \
21391 . : '\(.\)' 2>/dev/null ||
21392 echo X$ac_file |
21393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21395 /^X\(\/\/\)$/{ s//\1/; q; }
21396 /^X\(\/\).*/{ s//\1/; q; }
21397 s/.*/./; q'`/stamp-h$_am_stamp_count
21398 done
21399 _ACEOF
21400 cat >>$CONFIG_STATUS <<\_ACEOF
21403 # CONFIG_COMMANDS section.
21405 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21406 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21407 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21408 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21409 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21410 X"$ac_dest" : 'X\(//\)[^/]' \| \
21411 X"$ac_dest" : 'X\(//\)$' \| \
21412 X"$ac_dest" : 'X\(/\)' \| \
21413 . : '\(.\)' 2>/dev/null ||
21414 echo X"$ac_dest" |
21415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21417 /^X\(\/\/\)$/{ s//\1/; q; }
21418 /^X\(\/\).*/{ s//\1/; q; }
21419 s/.*/./; q'`
21420 { if $as_mkdir_p; then
21421 mkdir -p "$ac_dir"
21422 else
21423 as_dir="$ac_dir"
21424 as_dirs=
21425 while test ! -d "$as_dir"; do
21426 as_dirs="$as_dir $as_dirs"
21427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21429 X"$as_dir" : 'X\(//\)[^/]' \| \
21430 X"$as_dir" : 'X\(//\)$' \| \
21431 X"$as_dir" : 'X\(/\)' \| \
21432 . : '\(.\)' 2>/dev/null ||
21433 echo X"$as_dir" |
21434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21436 /^X\(\/\/\)$/{ s//\1/; q; }
21437 /^X\(\/\).*/{ s//\1/; q; }
21438 s/.*/./; q'`
21439 done
21440 test ! -n "$as_dirs" || mkdir $as_dirs
21441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21443 { (exit 1); exit 1; }; }; }
21445 ac_builddir=.
21447 if test "$ac_dir" != .; then
21448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21449 # A "../" for each directory in $ac_dir_suffix.
21450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21451 else
21452 ac_dir_suffix= ac_top_builddir=
21455 case $srcdir in
21456 .) # No --srcdir option. We are building in place.
21457 ac_srcdir=.
21458 if test -z "$ac_top_builddir"; then
21459 ac_top_srcdir=.
21460 else
21461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21462 fi ;;
21463 [\\/]* | ?:[\\/]* ) # Absolute path.
21464 ac_srcdir=$srcdir$ac_dir_suffix;
21465 ac_top_srcdir=$srcdir ;;
21466 *) # Relative path.
21467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21469 esac
21471 # Do not use `cd foo && pwd` to compute absolute paths, because
21472 # the directories may not exist.
21473 case `pwd` in
21474 .) ac_abs_builddir="$ac_dir";;
21476 case "$ac_dir" in
21477 .) ac_abs_builddir=`pwd`;;
21478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21480 esac;;
21481 esac
21482 case $ac_abs_builddir in
21483 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21485 case ${ac_top_builddir}. in
21486 .) ac_abs_top_builddir=$ac_abs_builddir;;
21487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21489 esac;;
21490 esac
21491 case $ac_abs_builddir in
21492 .) ac_abs_srcdir=$ac_srcdir;;
21494 case $ac_srcdir in
21495 .) ac_abs_srcdir=$ac_abs_builddir;;
21496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21498 esac;;
21499 esac
21500 case $ac_abs_builddir in
21501 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21503 case $ac_top_srcdir in
21504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21507 esac;;
21508 esac
21511 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21512 echo "$as_me: executing $ac_dest commands" >&6;}
21513 case $ac_dest in
21514 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21515 # Strip MF so we end up with the name of the file.
21516 mf=`echo "$mf" | sed -e 's/:.*$//'`
21517 # Check whether this is an Automake generated Makefile or not.
21518 # We used to match only the files named `Makefile.in', but
21519 # some people rename them; so instead we look at the file content.
21520 # Grep'ing the first line is not enough: some people post-process
21521 # each Makefile.in and add a new line on top of each file to say so.
21522 # So let's grep whole file.
21523 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21524 dirpart=`(dirname "$mf") 2>/dev/null ||
21525 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21526 X"$mf" : 'X\(//\)[^/]' \| \
21527 X"$mf" : 'X\(//\)$' \| \
21528 X"$mf" : 'X\(/\)' \| \
21529 . : '\(.\)' 2>/dev/null ||
21530 echo X"$mf" |
21531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21533 /^X\(\/\/\)$/{ s//\1/; q; }
21534 /^X\(\/\).*/{ s//\1/; q; }
21535 s/.*/./; q'`
21536 else
21537 continue
21539 # Extract the definition of DEPDIR, am__include, and am__quote
21540 # from the Makefile without running `make'.
21541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21542 test -z "$DEPDIR" && continue
21543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21544 test -z "am__include" && continue
21545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21546 # When using ansi2knr, U may be empty or an underscore; expand it
21547 U=`sed -n 's/^U = //p' < "$mf"`
21548 # Find all dependency output files, they are included files with
21549 # $(DEPDIR) in their names. We invoke sed twice because it is the
21550 # simplest approach to changing $(DEPDIR) to its actual value in the
21551 # expansion.
21552 for file in `sed -n "
21553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21555 # Make sure the directory exists.
21556 test -f "$dirpart/$file" && continue
21557 fdir=`(dirname "$file") 2>/dev/null ||
21558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21559 X"$file" : 'X\(//\)[^/]' \| \
21560 X"$file" : 'X\(//\)$' \| \
21561 X"$file" : 'X\(/\)' \| \
21562 . : '\(.\)' 2>/dev/null ||
21563 echo X"$file" |
21564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21566 /^X\(\/\/\)$/{ s//\1/; q; }
21567 /^X\(\/\).*/{ s//\1/; q; }
21568 s/.*/./; q'`
21569 { if $as_mkdir_p; then
21570 mkdir -p $dirpart/$fdir
21571 else
21572 as_dir=$dirpart/$fdir
21573 as_dirs=
21574 while test ! -d "$as_dir"; do
21575 as_dirs="$as_dir $as_dirs"
21576 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21578 X"$as_dir" : 'X\(//\)[^/]' \| \
21579 X"$as_dir" : 'X\(//\)$' \| \
21580 X"$as_dir" : 'X\(/\)' \| \
21581 . : '\(.\)' 2>/dev/null ||
21582 echo X"$as_dir" |
21583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21585 /^X\(\/\/\)$/{ s//\1/; q; }
21586 /^X\(\/\).*/{ s//\1/; q; }
21587 s/.*/./; q'`
21588 done
21589 test ! -n "$as_dirs" || mkdir $as_dirs
21590 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21591 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21592 { (exit 1); exit 1; }; }; }
21594 # echo "creating $dirpart/$file"
21595 echo '# dummy' > "$dirpart/$file"
21596 done
21597 done
21599 esac
21600 done
21601 _ACEOF
21603 cat >>$CONFIG_STATUS <<\_ACEOF
21605 { (exit 0); exit 0; }
21606 _ACEOF
21607 chmod +x $CONFIG_STATUS
21608 ac_clean_files=$ac_clean_files_save
21611 # configure is writing to config.log, and then calls config.status.
21612 # config.status does its own redirection, appending to config.log.
21613 # Unfortunately, on DOS this fails, as config.log is still kept open
21614 # by configure, so config.status won't be able to write to it; its
21615 # output is simply discarded. So we exec the FD to /dev/null,
21616 # effectively closing config.log, so it can be properly (re)opened and
21617 # appended to by config.status. When coming back to configure, we
21618 # need to make the FD available again.
21619 if test "$no_create" != yes; then
21620 ac_cs_success=:
21621 ac_config_status_args=
21622 test "$silent" = yes &&
21623 ac_config_status_args="$ac_config_status_args --quiet"
21624 exec 5>/dev/null
21625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21626 exec 5>>config.log
21627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21628 # would make configure fail if this is the last instruction.
21629 $ac_cs_success || { (exit 1); exit 1; }