fixed a makefile.am file.
[neuro.git] / configure
blob74de4489a34a3bea39b2d1adff6b7ae263ee8187
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="README"
429 ac_unique_file="src/neuro_main.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
467 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 NEURO_MAJOR_VERSION NEURO_MINOR_VERSION NEURO_MICRO_VERSION NEURO_INTERFACE_AGE NEURO_BINARY_AGE NEURO_VERSION LT_CURRENT LT_REVISION LT_AGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE LIBOBJS USE_SDL_TRUE USE_SDL_FALSE USE_X11_TRUE USE_X11_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS NEUROFLAGS NEUROLIBFLAGS LTLIBOBJS'
468 ac_subst_files=''
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
508 ac_prev=
509 for ac_option
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
522 case $ac_option in
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
541 --config-cache | -C)
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 esac
805 done
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
880 else
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976 _ACEOF
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1007 cat <<\_ACEOF
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 X features:
1015 --x-includes=DIR X include files are in DIR
1016 --x-libraries=DIR X library files are in DIR
1018 System types:
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 _ACEOF
1024 if test -n "$ac_init_help"; then
1026 cat <<\_ACEOF
1028 Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --disable-dependency-tracking speeds up one-time build
1032 --enable-dependency-tracking do not reject slow dependency extractors
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --enable-Debug enable the debugging of this program [default=no]
1042 Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
1050 --with-lowlib=<lowlib> the low library Neuro will use;
1051 only a single value is valid here;
1052 Default is "sdl";
1053 Possible low libraries are :
1054 dummy, X11, sdl
1055 --with-x use the X Window System
1057 Some influential environment variables:
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1064 CC C compiler command
1065 CFLAGS C compiler flags
1066 CPP C preprocessor
1067 CXXCPP C++ preprocessor
1068 F77 Fortran 77 compiler command
1069 FFLAGS Fortran 77 compiler flags
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1074 _ACEOF
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089 ac_dir_suffix= ac_top_builddir=
1092 case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1108 # Do not use `cd foo && pwd` to compute absolute paths, because
1109 # the directories may not exist.
1110 case `pwd` in
1111 .) ac_abs_builddir="$ac_dir";;
1113 case "$ac_dir" in
1114 .) ac_abs_builddir=`pwd`;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117 esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 case ${ac_top_builddir}. in
1123 .) ac_abs_top_builddir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126 esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_srcdir=$ac_srcdir;;
1131 case $ac_srcdir in
1132 .) ac_abs_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135 esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 case $ac_top_srcdir in
1141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 esac;;
1145 esac
1147 cd $ac_dir
1148 # Check for guested configure; otherwise get Cygnus style configure.
1149 if test -f $ac_srcdir/configure.gnu; then
1150 echo
1151 $SHELL $ac_srcdir/configure.gnu --help=recursive
1152 elif test -f $ac_srcdir/configure; then
1153 echo
1154 $SHELL $ac_srcdir/configure --help=recursive
1155 elif test -f $ac_srcdir/configure.ac ||
1156 test -f $ac_srcdir/configure.in; then
1157 echo
1158 $ac_configure --help
1159 else
1160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 cd $ac_popdir
1163 done
1166 test -n "$ac_init_help" && exit 0
1167 if $ac_init_version; then
1168 cat <<\_ACEOF
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174 exit 0
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by $as_me, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1184 $ $0 $@
1186 _ACEOF
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210 _ASUNAME
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1215 IFS=$as_save_IFS
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1218 done
1220 } >&5
1222 cat >&5 <<_ACEOF
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1229 _ACEOF
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1244 for ac_arg
1246 case $ac_arg in
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 continue ;;
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 esac
1254 case $ac_pass in
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1260 else
1261 case $ac_arg in
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 esac
1270 -* ) ac_must_keep_next=true ;;
1271 esac
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1275 ac_sep=" "
1277 esac
1278 done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1291 echo
1293 cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298 echo
1299 # The following way of writing the cache mishandles newlines in values,
1301 (set) 2>&1 |
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 *ac_space=\ *)
1304 sed -n \
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 sed -n \
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312 esac;
1314 echo
1316 cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321 echo
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1326 done | sort
1327 echo
1329 if test -n "$ac_subst_files"; then
1330 cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335 echo
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1344 if test -s confdefs.h; then
1345 cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350 echo
1351 sed "/^$/d" confdefs.h | sort
1352 echo
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1357 } >&5
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 exit $exit_status
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 else
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1413 . "$ac_site_file"
1415 done
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423 case $cache_file in
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1426 esac
1428 else
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431 >$cache_file
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1444 set,)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,set)
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1452 ,);;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1462 fi;;
1463 esac
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1466 case $ac_new_val in
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1470 esac
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 esac
1476 done
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 # NEURO_MICRO_VERSION += 1 when bug fixes were done or small changes
1512 # NEURO_MINOR_VERSION += 1 when new functions and or modules were added, anything more than mere bug fixes or small changes
1513 # NEURO_MAJOR_VERSION += 1 when set goals for the whole projects are met, example when neuro will be done, we will raise that by 1. After it is 1, it only raise when most(like more than half) of the code was changes.
1515 NEURO_MAJOR_VERSION=0
1516 NEURO_MINOR_VERSION=49
1517 NEURO_MICRO_VERSION=21
1518 NEURO_INTERFACE_AGE=2
1519 NEURO_REVISION=12
1520 NEURO_BINARY_AGE=2
1521 NEURO_VERSION=$NEURO_MAJOR_VERSION.$NEURO_MINOR_VERSION.$NEURO_MICRO_VERSION
1531 # libtool versioning
1532 LT_CURRENT=$NEURO_INTERFACE_AGE
1533 LT_REVISION=$NEURO_REVISION
1534 LT_AGE=$NEURO_BINARY_AGE
1540 #AC_INIT(Neuro, $NEURO_VERSION)
1543 # init automake
1544 am__api_version="1.9"
1545 ac_aux_dir=
1546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1547 if test -f $ac_dir/install-sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 break
1551 elif test -f $ac_dir/install.sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 break
1555 elif test -f $ac_dir/shtool; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 break
1560 done
1561 if test -z "$ac_aux_dir"; then
1562 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1563 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1564 { (exit 1); exit 1; }; }
1566 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1567 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1568 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570 # Find a good install program. We prefer a C program (faster),
1571 # so one script is as good as another. But avoid the broken or
1572 # incompatible versions:
1573 # SysV /etc/install, /usr/sbin/install
1574 # SunOS /usr/etc/install
1575 # IRIX /sbin/install
1576 # AIX /bin/install
1577 # AmigaOS /C/install, which installs bootblocks on floppy discs
1578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1581 # OS/2's system install, which has a completely different semantic
1582 # ./install, which can be erroneously created by make from ./install.sh.
1583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1585 if test -z "$INSTALL"; then
1586 if test "${ac_cv_path_install+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 # Account for people who put trailing slashes in PATH elements.
1595 case $as_dir/ in
1596 ./ | .// | /cC/* | \
1597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1599 /usr/ucb/* ) ;;
1601 # OSF1 and SCO ODT 3.0 have their own names for install.
1602 # Don't use installbsd from OSF since it installs stuff as root
1603 # by default.
1604 for ac_prog in ginstall scoinst install; do
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1607 if test $ac_prog = install &&
1608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609 # AIX install. It has an incompatible calling convention.
1611 elif test $ac_prog = install &&
1612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613 # program-specific install script used by HP pwplus--don't use.
1615 else
1616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1617 break 3
1620 done
1621 done
1623 esac
1624 done
1628 if test "${ac_cv_path_install+set}" = set; then
1629 INSTALL=$ac_cv_path_install
1630 else
1631 # As a last resort, use the slow shell script. We don't cache a
1632 # path for INSTALL within a source directory, because that will
1633 # break other packages using the cache if that directory is
1634 # removed, or if the path is relative.
1635 INSTALL=$ac_install_sh
1638 echo "$as_me:$LINENO: result: $INSTALL" >&5
1639 echo "${ECHO_T}$INSTALL" >&6
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1649 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1650 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1651 # Just in case
1652 sleep 1
1653 echo timestamp > conftest.file
1654 # Do `set' in a subshell so we don't clobber the current shell's
1655 # arguments. Must try -L first in case configure is actually a
1656 # symlink; some systems play weird games with the mod time of symlinks
1657 # (eg FreeBSD returns the mod time of the symlink's containing
1658 # directory).
1659 if (
1660 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1661 if test "$*" = "X"; then
1662 # -L didn't work.
1663 set X `ls -t $srcdir/configure conftest.file`
1665 rm -f conftest.file
1666 if test "$*" != "X $srcdir/configure conftest.file" \
1667 && test "$*" != "X conftest.file $srcdir/configure"; then
1669 # If neither matched, then we have a broken ls. This can happen
1670 # if, for instance, CONFIG_SHELL is bash and it inherits a
1671 # broken ls alias from the environment. This has actually
1672 # happened. Such a system could not be considered "sane".
1673 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1674 alias in your environment" >&5
1675 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1676 alias in your environment" >&2;}
1677 { (exit 1); exit 1; }; }
1680 test "$2" = conftest.file
1682 then
1683 # Ok.
1685 else
1686 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1687 Check your system clock" >&5
1688 echo "$as_me: error: newly created file is older than distributed files!
1689 Check your system clock" >&2;}
1690 { (exit 1); exit 1; }; }
1692 echo "$as_me:$LINENO: result: yes" >&5
1693 echo "${ECHO_T}yes" >&6
1694 test "$program_prefix" != NONE &&
1695 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1696 # Use a double $ so make ignores it.
1697 test "$program_suffix" != NONE &&
1698 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1699 # Double any \ or $. echo might interpret backslashes.
1700 # By default was `s,x,x', remove it if useless.
1701 cat <<\_ACEOF >conftest.sed
1702 s/[\\$]/&&/g;s/;s,x,x,$//
1703 _ACEOF
1704 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1705 rm conftest.sed
1707 # expand $ac_aux_dir to an absolute path
1708 am_aux_dir=`cd $ac_aux_dir && pwd`
1710 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1711 # Use eval to expand $SHELL
1712 if eval "$MISSING --run true"; then
1713 am_missing_run="$MISSING --run "
1714 else
1715 am_missing_run=
1716 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1717 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1720 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1721 # We used to keeping the `.' as first argument, in order to
1722 # allow $(mkdir_p) to be used without argument. As in
1723 # $(mkdir_p) $(somedir)
1724 # where $(somedir) is conditionally defined. However this is wrong
1725 # for two reasons:
1726 # 1. if the package is installed by a user who cannot write `.'
1727 # make install will fail,
1728 # 2. the above comment should most certainly read
1729 # $(mkdir_p) $(DESTDIR)$(somedir)
1730 # so it does not work when $(somedir) is undefined and
1731 # $(DESTDIR) is not.
1732 # To support the latter case, we have to write
1733 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1734 # so the `.' trick is pointless.
1735 mkdir_p='mkdir -p --'
1736 else
1737 # On NextStep and OpenStep, the `mkdir' command does not
1738 # recognize any option. It will interpret all options as
1739 # directories to create, and then abort because `.' already
1740 # exists.
1741 for d in ./-p ./--version;
1743 test -d $d && rmdir $d
1744 done
1745 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1746 if test -f "$ac_aux_dir/mkinstalldirs"; then
1747 mkdir_p='$(mkinstalldirs)'
1748 else
1749 mkdir_p='$(install_sh) -d'
1753 for ac_prog in gawk mawk nawk awk
1755 # Extract the first word of "$ac_prog", so it can be a program name with args.
1756 set dummy $ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_AWK+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762 if test -n "$AWK"; then
1763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1768 IFS=$as_save_IFS
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_AWK="$ac_prog"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 break 2
1776 done
1777 done
1781 AWK=$ac_cv_prog_AWK
1782 if test -n "$AWK"; then
1783 echo "$as_me:$LINENO: result: $AWK" >&5
1784 echo "${ECHO_T}$AWK" >&6
1785 else
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1790 test -n "$AWK" && break
1791 done
1793 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1794 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1795 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1796 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 cat >conftest.make <<\_ACEOF
1800 all:
1801 @echo 'ac_maketemp="$(MAKE)"'
1802 _ACEOF
1803 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1804 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1805 if test -n "$ac_maketemp"; then
1806 eval ac_cv_prog_make_${ac_make}_set=yes
1807 else
1808 eval ac_cv_prog_make_${ac_make}_set=no
1810 rm -f conftest.make
1812 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1813 echo "$as_me:$LINENO: result: yes" >&5
1814 echo "${ECHO_T}yes" >&6
1815 SET_MAKE=
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 SET_MAKE="MAKE=${MAKE-make}"
1822 rm -rf .tst 2>/dev/null
1823 mkdir .tst 2>/dev/null
1824 if test -d .tst; then
1825 am__leading_dot=.
1826 else
1827 am__leading_dot=_
1829 rmdir .tst 2>/dev/null
1831 # test to see if srcdir already configured
1832 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1833 test -f $srcdir/config.status; then
1834 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1835 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1836 { (exit 1); exit 1; }; }
1839 # test whether we have cygpath
1840 if test -z "$CYGPATH_W"; then
1841 if (cygpath --version) >/dev/null 2>/dev/null; then
1842 CYGPATH_W='cygpath -w'
1843 else
1844 CYGPATH_W=echo
1849 # Define the identity of the package.
1850 PACKAGE=neuro
1851 VERSION=$NEURO_VERSION
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE "$PACKAGE"
1856 _ACEOF
1859 cat >>confdefs.h <<_ACEOF
1860 #define VERSION "$VERSION"
1861 _ACEOF
1863 # Some tools Automake needs.
1865 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1868 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1871 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1874 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1877 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1879 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881 # Installed binaries are usually stripped using `strip' when the user
1882 # run `make install-strip'. However `strip' might not be the right
1883 # tool to use in cross-compilation environments, therefore Automake
1884 # will honor the `STRIP' environment variable to overrule this program.
1885 if test "$cross_compiling" != no; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}strip; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_STRIP+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$STRIP"; then
1895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 STRIP=$ac_cv_prog_STRIP
1914 if test -n "$STRIP"; then
1915 echo "$as_me:$LINENO: result: $STRIP" >&5
1916 echo "${ECHO_T}$STRIP" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_STRIP"; then
1924 ac_ct_STRIP=$STRIP
1925 # Extract the first word of "strip", so it can be a program name with args.
1926 set dummy strip; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_STRIP"; then
1933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_STRIP="strip"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1949 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1953 if test -n "$ac_ct_STRIP"; then
1954 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1955 echo "${ECHO_T}$ac_ct_STRIP" >&6
1956 else
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1961 STRIP=$ac_ct_STRIP
1962 else
1963 STRIP="$ac_cv_prog_STRIP"
1967 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1969 # We need awk for the "check" target. The system "awk" is bad on
1970 # some platforms.
1971 # Always define AMTAR for backward compatibility.
1973 AMTAR=${AMTAR-"${am_missing_run}tar"}
1975 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1982 # call canonical host to get valuable informations about the current system
1983 # Make sure we can run config.sub.
1984 $ac_config_sub sun4 >/dev/null 2>&1 ||
1985 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1986 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1987 { (exit 1); exit 1; }; }
1989 echo "$as_me:$LINENO: checking build system type" >&5
1990 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1991 if test "${ac_cv_build+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 ac_cv_build_alias=$build_alias
1995 test -z "$ac_cv_build_alias" &&
1996 ac_cv_build_alias=`$ac_config_guess`
1997 test -z "$ac_cv_build_alias" &&
1998 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1999 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2000 { (exit 1); exit 1; }; }
2001 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2002 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2003 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2004 { (exit 1); exit 1; }; }
2007 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2008 echo "${ECHO_T}$ac_cv_build" >&6
2009 build=$ac_cv_build
2010 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2011 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2012 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2015 echo "$as_me:$LINENO: checking host system type" >&5
2016 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2017 if test "${ac_cv_host+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 ac_cv_host_alias=$host_alias
2021 test -z "$ac_cv_host_alias" &&
2022 ac_cv_host_alias=$ac_cv_build_alias
2023 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2024 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2025 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2029 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2030 echo "${ECHO_T}$ac_cv_host" >&6
2031 host=$ac_cv_host
2032 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2038 cat >>confdefs.h <<_ACEOF
2039 #define OS "${host}"
2040 _ACEOF
2042 echo "$as_me:$LINENO: result: $host" >&5
2043 echo "${ECHO_T}$host" >&6
2045 #dnl ----- set some variables ------
2047 # check for programs
2048 ac_ext=cc
2049 ac_cpp='$CXXCPP $CPPFLAGS'
2050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2053 if test -n "$ac_tool_prefix"; then
2054 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CXX+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 if test -n "$CXX"; then
2064 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2077 done
2078 done
2082 CXX=$ac_cv_prog_CXX
2083 if test -n "$CXX"; then
2084 echo "$as_me:$LINENO: result: $CXX" >&5
2085 echo "${ECHO_T}$CXX" >&6
2086 else
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 test -n "$CXX" && break
2092 done
2094 if test -z "$CXX"; then
2095 ac_ct_CXX=$CXX
2096 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2098 # Extract the first word of "$ac_prog", so it can be a program name with args.
2099 set dummy $ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 if test -n "$ac_ct_CXX"; then
2106 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_ac_ct_CXX="$ac_prog"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2119 done
2120 done
2124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2125 if test -n "$ac_ct_CXX"; then
2126 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2127 echo "${ECHO_T}$ac_ct_CXX" >&6
2128 else
2129 echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2133 test -n "$ac_ct_CXX" && break
2134 done
2135 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2137 CXX=$ac_ct_CXX
2141 # Provide some information about the compiler.
2142 echo "$as_me:$LINENO:" \
2143 "checking for C++ compiler version" >&5
2144 ac_compiler=`set X $ac_compile; echo $2`
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2146 (eval $ac_compiler --version </dev/null >&5) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2151 (eval $ac_compiler -v </dev/null >&5) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2156 (eval $ac_compiler -V </dev/null >&5) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2161 cat >conftest.$ac_ext <<_ACEOF
2162 /* confdefs.h. */
2163 _ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2169 main ()
2173 return 0;
2175 _ACEOF
2176 ac_clean_files_save=$ac_clean_files
2177 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2178 # Try to create an executable without -o first, disregard a.out.
2179 # It will help us diagnose broken compilers, and finding out an intuition
2180 # of exeext.
2181 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2182 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2183 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2184 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2185 (eval $ac_link_default) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # Find the output, starting from the most likely. This scheme is
2190 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2191 # resort.
2193 # Be careful to initialize this variable, since it used to be cached.
2194 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2195 ac_cv_exeext=
2196 # b.out is created by i960 compilers.
2197 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2199 test -f "$ac_file" || continue
2200 case $ac_file in
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2203 conftest.$ac_ext )
2204 # This is the source file.
2206 [ab].out )
2207 # We found the default executable, but exeext='' is most
2208 # certainly right.
2209 break;;
2210 *.* )
2211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 # FIXME: I believe we export ac_cv_exeext for Libtool,
2213 # but it would be cool to find out if it's true. Does anybody
2214 # maintain Libtool? --akim.
2215 export ac_cv_exeext
2216 break;;
2218 break;;
2219 esac
2220 done
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: C++ compiler cannot create executables
2228 See \`config.log' for more details." >&2;}
2229 { (exit 77); exit 77; }; }
2232 ac_exeext=$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_file" >&5
2234 echo "${ECHO_T}$ac_file" >&6
2236 # Check the compiler produces executables we can run. If not, either
2237 # the compiler is broken, or we cross compile.
2238 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2239 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2240 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2241 # If not cross compiling, check that we can run a simple program.
2242 if test "$cross_compiling" != yes; then
2243 if { ac_try='./$ac_file'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 cross_compiling=no
2250 else
2251 if test "$cross_compiling" = maybe; then
2252 cross_compiling=yes
2253 else
2254 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C++ compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2264 echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2273 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6
2276 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2279 (eval $ac_link) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2284 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2285 # work properly (i.e., refer to `conftest.exe'), while it won't with
2286 # `rm'.
2287 for ac_file in conftest.exe conftest conftest.*; do
2288 test -f "$ac_file" || continue
2289 case $ac_file in
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2291 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 export ac_cv_exeext
2293 break;;
2294 * ) break;;
2295 esac
2296 done
2297 else
2298 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2305 rm -f conftest$ac_cv_exeext
2306 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2307 echo "${ECHO_T}$ac_cv_exeext" >&6
2309 rm -f conftest.$ac_ext
2310 EXEEXT=$ac_cv_exeext
2311 ac_exeext=$EXEEXT
2312 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2313 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2314 if test "${ac_cv_objext+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h. */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2325 main ()
2329 return 0;
2331 _ACEOF
2332 rm -f conftest.o conftest.obj
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2339 case $ac_file in
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 break;;
2343 esac
2344 done
2345 else
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6
2360 OBJEXT=$ac_cv_objext
2361 ac_objext=$OBJEXT
2362 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2364 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2375 main ()
2377 #ifndef __GNUC__
2378 choke me
2379 #endif
2382 return 0;
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_cxx_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 ac_compiler_gnu=yes
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_compiler_gnu=no
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2418 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2419 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2420 GXX=`test $ac_compiler_gnu = yes && echo yes`
2421 ac_test_CXXFLAGS=${CXXFLAGS+set}
2422 ac_save_CXXFLAGS=$CXXFLAGS
2423 CXXFLAGS="-g"
2424 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2425 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cxx_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2437 main ()
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_cxx_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_prog_cxx_g=yes
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 ac_cv_prog_cxx_g=no
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2476 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2477 if test "$ac_test_CXXFLAGS" = set; then
2478 CXXFLAGS=$ac_save_CXXFLAGS
2479 elif test $ac_cv_prog_cxx_g = yes; then
2480 if test "$GXX" = yes; then
2481 CXXFLAGS="-g -O2"
2482 else
2483 CXXFLAGS="-g"
2485 else
2486 if test "$GXX" = yes; then
2487 CXXFLAGS="-O2"
2488 else
2489 CXXFLAGS=
2492 for ac_declaration in \
2493 '' \
2494 'extern "C" void std::exit (int) throw (); using std::exit;' \
2495 'extern "C" void std::exit (int); using std::exit;' \
2496 'extern "C" void exit (int) throw ();' \
2497 'extern "C" void exit (int);' \
2498 'void exit (int);'
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 $ac_declaration
2507 #include <stdlib.h>
2509 main ()
2511 exit (42);
2513 return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_cxx_werror_flag"
2526 || test ! -s conftest.err'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 (eval $ac_try) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 continue
2545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2552 $ac_declaration
2554 main ()
2556 exit (42);
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_cxx_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 break
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 done
2591 rm -f conftest*
2592 if test -n "$ac_declaration"; then
2593 echo '#ifdef __cplusplus' >>confdefs.h
2594 echo $ac_declaration >>confdefs.h
2595 echo '#endif' >>confdefs.h
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 DEPDIR="${am__leading_dot}deps"
2605 ac_config_commands="$ac_config_commands depfiles"
2608 am_make=${MAKE-make}
2609 cat > confinc << 'END'
2610 am__doit:
2611 @echo done
2612 .PHONY: am__doit
2614 # If we don't find an include directive, just comment out the code.
2615 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2616 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2617 am__include="#"
2618 am__quote=
2619 _am_result=none
2620 # First try GNU make style include.
2621 echo "include confinc" > confmf
2622 # We grep out `Entering directory' and `Leaving directory'
2623 # messages which can occur if `w' ends up in MAKEFLAGS.
2624 # In particular we don't look at `^make:' because GNU make might
2625 # be invoked under some other name (usually "gmake"), in which
2626 # case it prints its new name instead of `make'.
2627 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2628 am__include=include
2629 am__quote=
2630 _am_result=GNU
2632 # Now try BSD make style include.
2633 if test "$am__include" = "#"; then
2634 echo '.include "confinc"' > confmf
2635 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2636 am__include=.include
2637 am__quote="\""
2638 _am_result=BSD
2643 echo "$as_me:$LINENO: result: $_am_result" >&5
2644 echo "${ECHO_T}$_am_result" >&6
2645 rm -f confinc confmf
2647 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2648 if test "${enable_dependency_tracking+set}" = set; then
2649 enableval="$enable_dependency_tracking"
2652 if test "x$enable_dependency_tracking" != xno; then
2653 am_depcomp="$ac_aux_dir/depcomp"
2654 AMDEPBACKSLASH='\'
2658 if test "x$enable_dependency_tracking" != xno; then
2659 AMDEP_TRUE=
2660 AMDEP_FALSE='#'
2661 else
2662 AMDEP_TRUE='#'
2663 AMDEP_FALSE=
2669 depcc="$CXX" am_compiler_list=
2671 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2672 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2673 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2677 # We make a subdir and do the tests there. Otherwise we can end up
2678 # making bogus files that we don't know about and never remove. For
2679 # instance it was reported that on HP-UX the gcc test will end up
2680 # making a dummy file named `D' -- because `-MD' means `put the output
2681 # in D'.
2682 mkdir conftest.dir
2683 # Copy depcomp to subdir because otherwise we won't find it if we're
2684 # using a relative directory.
2685 cp "$am_depcomp" conftest.dir
2686 cd conftest.dir
2687 # We will build objects and dependencies in a subdirectory because
2688 # it helps to detect inapplicable dependency modes. For instance
2689 # both Tru64's cc and ICC support -MD to output dependencies as a
2690 # side effect of compilation, but ICC will put the dependencies in
2691 # the current directory while Tru64 will put them in the object
2692 # directory.
2693 mkdir sub
2695 am_cv_CXX_dependencies_compiler_type=none
2696 if test "$am_compiler_list" = ""; then
2697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2699 for depmode in $am_compiler_list; do
2700 # Setup a source with many dependencies, because some compilers
2701 # like to wrap large dependency lists on column 80 (with \), and
2702 # we should not choose a depcomp mode which is confused by this.
2704 # We need to recreate these files for each test, as the compiler may
2705 # overwrite some of them when testing with obscure command lines.
2706 # This happens at least with the AIX C compiler.
2707 : > sub/conftest.c
2708 for i in 1 2 3 4 5 6; do
2709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2710 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2711 # Solaris 8's {/usr,}/bin/sh.
2712 touch sub/conftst$i.h
2713 done
2714 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2716 case $depmode in
2717 nosideeffect)
2718 # after this tag, mechanisms are not by side-effect, so they'll
2719 # only be used when explicitly requested
2720 if test "x$enable_dependency_tracking" = xyes; then
2721 continue
2722 else
2723 break
2726 none) break ;;
2727 esac
2728 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2729 # mode. It turns out that the SunPro C++ compiler does not properly
2730 # handle `-M -o', and we need to detect this.
2731 if depmode=$depmode \
2732 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2733 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2734 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2735 >/dev/null 2>conftest.err &&
2736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2737 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2739 # icc doesn't choke on unknown options, it will just issue warnings
2740 # or remarks (even with -Werror). So we grep stderr for any message
2741 # that says an option was ignored or not supported.
2742 # When given -MP, icc 7.0 and 7.1 complain thusly:
2743 # icc: Command line warning: ignoring option '-M'; no argument required
2744 # The diagnosis changed in icc 8.0:
2745 # icc: Command line remark: option '-MP' not supported
2746 if (grep 'ignoring option' conftest.err ||
2747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2748 am_cv_CXX_dependencies_compiler_type=$depmode
2749 break
2752 done
2754 cd ..
2755 rm -rf conftest.dir
2756 else
2757 am_cv_CXX_dependencies_compiler_type=none
2761 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2762 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2763 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2768 test "x$enable_dependency_tracking" != xno \
2769 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2770 am__fastdepCXX_TRUE=
2771 am__fastdepCXX_FALSE='#'
2772 else
2773 am__fastdepCXX_TRUE='#'
2774 am__fastdepCXX_FALSE=
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2788 if test "${ac_cv_prog_CC+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2805 done
2806 done
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 echo "$as_me:$LINENO: result: $CC" >&5
2813 echo "${ECHO_T}$CC" >&6
2814 else
2815 echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6
2820 if test -z "$ac_cv_prog_CC"; then
2821 ac_ct_CC=$CC
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2851 echo "${ECHO_T}$ac_ct_CC" >&6
2852 else
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 CC=$ac_ct_CC
2858 else
2859 CC="$ac_cv_prog_CC"
2862 if test -z "$CC"; then
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}cc; ac_word=$2
2866 echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868 if test "${ac_cv_prog_CC+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_CC="${ac_tool_prefix}cc"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6
2894 else
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2900 if test -z "$ac_cv_prog_CC"; then
2901 ac_ct_CC=$CC
2902 # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 echo "$as_me:$LINENO: checking for $ac_word" >&5
2905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 if test -n "$ac_ct_CC"; then
2910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_ac_ct_CC="cc"
2920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2931 echo "${ECHO_T}$ac_ct_CC" >&6
2932 else
2933 echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2937 CC=$ac_ct_CC
2938 else
2939 CC="$ac_cv_prog_CC"
2943 if test -z "$CC"; then
2944 # Extract the first word of "cc", so it can be a program name with args.
2945 set dummy cc; ac_word=$2
2946 echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 ac_prog_rejected=no
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2963 ac_prog_rejected=yes
2964 continue
2966 ac_cv_prog_CC="cc"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2973 if test $ac_prog_rejected = yes; then
2974 # We found a bogon in the path, so make sure we never use it.
2975 set dummy $ac_cv_prog_CC
2976 shift
2977 if test $# != 0; then
2978 # We chose a different compiler from the bogus one.
2979 # However, it has the same basename, so the bogon will be chosen
2980 # first if we set CC to just the basename; use the full file name.
2981 shift
2982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 echo "$as_me:$LINENO: result: $CC" >&5
2990 echo "${ECHO_T}$CC" >&6
2991 else
2992 echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2997 if test -z "$CC"; then
2998 if test -n "$ac_tool_prefix"; then
2999 for ac_prog in cl
3001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3022 done
3023 done
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 echo "$as_me:$LINENO: result: $CC" >&5
3030 echo "${ECHO_T}$CC" >&6
3031 else
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 test -n "$CC" && break
3037 done
3039 if test -z "$CC"; then
3040 ac_ct_CC=$CC
3041 for ac_prog in cl
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_ac_ct_CC="$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3078 test -n "$ac_ct_CC" && break
3079 done
3081 CC=$ac_ct_CC
3087 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: no acceptable C compiler found in \$PATH
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3093 # Provide some information about the compiler.
3094 echo "$as_me:$LINENO:" \
3095 "checking for C compiler version" >&5
3096 ac_compiler=`set X $ac_compile; echo $2`
3097 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3098 (eval $ac_compiler --version </dev/null >&5) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }
3102 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3103 (eval $ac_compiler -v </dev/null >&5) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }
3107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3108 (eval $ac_compiler -V </dev/null >&5) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }
3113 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3114 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3115 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3126 main ()
3128 #ifndef __GNUC__
3129 choke me
3130 #endif
3133 return 0;
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag"
3146 || test ! -s conftest.err'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_compiler_gnu=yes
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_compiler_gnu=no
3165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3171 GCC=`test $ac_compiler_gnu = yes && echo yes`
3172 ac_test_CFLAGS=${CFLAGS+set}
3173 ac_save_CFLAGS=$CFLAGS
3174 CFLAGS="-g"
3175 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3176 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3177 if test "${ac_cv_prog_cc_g+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -z "$ac_c_werror_flag"
3205 || test ! -s conftest.err'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 ac_cv_prog_cc_g=yes
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 ac_cv_prog_cc_g=no
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3228 if test "$ac_test_CFLAGS" = set; then
3229 CFLAGS=$ac_save_CFLAGS
3230 elif test $ac_cv_prog_cc_g = yes; then
3231 if test "$GCC" = yes; then
3232 CFLAGS="-g -O2"
3233 else
3234 CFLAGS="-g"
3236 else
3237 if test "$GCC" = yes; then
3238 CFLAGS="-O2"
3239 else
3240 CFLAGS=
3243 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3244 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3245 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 ac_cv_prog_cc_stdc=no
3249 ac_save_CC=$CC
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 #include <stdarg.h>
3257 #include <stdio.h>
3258 #include <sys/types.h>
3259 #include <sys/stat.h>
3260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261 struct buf { int x; };
3262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263 static char *e (p, i)
3264 char **p;
3265 int i;
3267 return p[i];
3269 static char *f (char * (*g) (char **, int), char **p, ...)
3271 char *s;
3272 va_list v;
3273 va_start (v,p);
3274 s = g (p, va_arg (v,int));
3275 va_end (v);
3276 return s;
3279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3280 function prototypes and stuff, but not '\xHH' hex character constants.
3281 These don't provoke an error unfortunately, instead are silently treated
3282 as 'x'. The following induces an error, until -std1 is added to get
3283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3284 array size at least. It's necessary to write '\x00'==0 to get something
3285 that's true only with -std1. */
3286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3288 int test (int i, double x);
3289 struct s1 {int (*f) (int a);};
3290 struct s2 {int (*f) (double a);};
3291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3292 int argc;
3293 char **argv;
3295 main ()
3297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3299 return 0;
3301 _ACEOF
3302 # Don't try gcc -ansi; that turns off useful extensions and
3303 # breaks some systems' header files.
3304 # AIX -qlanglvl=ansi
3305 # Ultrix and OSF/1 -std1
3306 # HP-UX 10.20 and later -Ae
3307 # HP-UX older versions -Aa -D_HPUX_SOURCE
3308 # SVR4 -Xc -D__EXTENSIONS__
3309 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3311 CC="$ac_save_CC $ac_arg"
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_stdc=$ac_arg
3335 break
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3341 rm -f conftest.err conftest.$ac_objext
3342 done
3343 rm -f conftest.$ac_ext conftest.$ac_objext
3344 CC=$ac_save_CC
3348 case "x$ac_cv_prog_cc_stdc" in
3349 x|xno)
3350 echo "$as_me:$LINENO: result: none needed" >&5
3351 echo "${ECHO_T}none needed" >&6 ;;
3353 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3354 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3355 CC="$CC $ac_cv_prog_cc_stdc" ;;
3356 esac
3358 # Some people use a C++ compiler to compile C. Since we use `exit',
3359 # in C++ we need to declare it. In case someone uses the same compiler
3360 # for both compiling C and C++ we need to have the C++ compiler decide
3361 # the declaration of exit, since it's the most demanding environment.
3362 cat >conftest.$ac_ext <<_ACEOF
3363 #ifndef __cplusplus
3364 choke me
3365 #endif
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag"
3377 || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 for ac_declaration in \
3390 '' \
3391 'extern "C" void std::exit (int) throw (); using std::exit;' \
3392 'extern "C" void std::exit (int); using std::exit;' \
3393 'extern "C" void exit (int) throw ();' \
3394 'extern "C" void exit (int);' \
3395 'void exit (int);'
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 $ac_declaration
3404 #include <stdlib.h>
3406 main ()
3408 exit (42);
3410 return 0;
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -z "$ac_c_werror_flag"
3423 || test ! -s conftest.err'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; } &&
3429 { ac_try='test -s conftest.$ac_objext'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 (eval $ac_try) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 continue
3442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443 cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h. */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 $ac_declaration
3451 main ()
3453 exit (42);
3455 return 0;
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 break
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487 done
3488 rm -f conftest*
3489 if test -n "$ac_declaration"; then
3490 echo '#ifdef __cplusplus' >>confdefs.h
3491 echo $ac_declaration >>confdefs.h
3492 echo '#endif' >>confdefs.h
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 depcc="$CC" am_compiler_list=
3509 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3510 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3511 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3515 # We make a subdir and do the tests there. Otherwise we can end up
3516 # making bogus files that we don't know about and never remove. For
3517 # instance it was reported that on HP-UX the gcc test will end up
3518 # making a dummy file named `D' -- because `-MD' means `put the output
3519 # in D'.
3520 mkdir conftest.dir
3521 # Copy depcomp to subdir because otherwise we won't find it if we're
3522 # using a relative directory.
3523 cp "$am_depcomp" conftest.dir
3524 cd conftest.dir
3525 # We will build objects and dependencies in a subdirectory because
3526 # it helps to detect inapplicable dependency modes. For instance
3527 # both Tru64's cc and ICC support -MD to output dependencies as a
3528 # side effect of compilation, but ICC will put the dependencies in
3529 # the current directory while Tru64 will put them in the object
3530 # directory.
3531 mkdir sub
3533 am_cv_CC_dependencies_compiler_type=none
3534 if test "$am_compiler_list" = ""; then
3535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3537 for depmode in $am_compiler_list; do
3538 # Setup a source with many dependencies, because some compilers
3539 # like to wrap large dependency lists on column 80 (with \), and
3540 # we should not choose a depcomp mode which is confused by this.
3542 # We need to recreate these files for each test, as the compiler may
3543 # overwrite some of them when testing with obscure command lines.
3544 # This happens at least with the AIX C compiler.
3545 : > sub/conftest.c
3546 for i in 1 2 3 4 5 6; do
3547 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3548 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3549 # Solaris 8's {/usr,}/bin/sh.
3550 touch sub/conftst$i.h
3551 done
3552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3554 case $depmode in
3555 nosideeffect)
3556 # after this tag, mechanisms are not by side-effect, so they'll
3557 # only be used when explicitly requested
3558 if test "x$enable_dependency_tracking" = xyes; then
3559 continue
3560 else
3561 break
3564 none) break ;;
3565 esac
3566 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3567 # mode. It turns out that the SunPro C++ compiler does not properly
3568 # handle `-M -o', and we need to detect this.
3569 if depmode=$depmode \
3570 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3572 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3573 >/dev/null 2>conftest.err &&
3574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3575 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3577 # icc doesn't choke on unknown options, it will just issue warnings
3578 # or remarks (even with -Werror). So we grep stderr for any message
3579 # that says an option was ignored or not supported.
3580 # When given -MP, icc 7.0 and 7.1 complain thusly:
3581 # icc: Command line warning: ignoring option '-M'; no argument required
3582 # The diagnosis changed in icc 8.0:
3583 # icc: Command line remark: option '-MP' not supported
3584 if (grep 'ignoring option' conftest.err ||
3585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3586 am_cv_CC_dependencies_compiler_type=$depmode
3587 break
3590 done
3592 cd ..
3593 rm -rf conftest.dir
3594 else
3595 am_cv_CC_dependencies_compiler_type=none
3599 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3600 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3601 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3606 test "x$enable_dependency_tracking" != xno \
3607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3608 am__fastdepCC_TRUE=
3609 am__fastdepCC_FALSE='#'
3610 else
3611 am__fastdepCC_TRUE='#'
3612 am__fastdepCC_FALSE=
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3622 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3625 CPP=
3627 if test -z "$CPP"; then
3628 if test "${ac_cv_prog_CPP+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 # Double quotes because CPP needs to be expanded
3632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3634 ac_preproc_ok=false
3635 for ac_c_preproc_warn_flag in '' yes
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #ifdef __STDC__
3650 # include <limits.h>
3651 #else
3652 # include <assert.h>
3653 #endif
3654 Syntax error
3655 _ACEOF
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3667 else
3668 ac_cpp_err=
3670 else
3671 ac_cpp_err=yes
3673 if test -z "$ac_cpp_err"; then
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 # Broken: fails on valid input.
3680 continue
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether non-existent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3693 _ACEOF
3694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev/null; then
3702 if test -s conftest.err; then
3703 ac_cpp_err=$ac_c_preproc_warn_flag
3704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3705 else
3706 ac_cpp_err=
3708 else
3709 ac_cpp_err=yes
3711 if test -z "$ac_cpp_err"; then
3712 # Broken: success on invalid input.
3713 continue
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3722 rm -f conftest.err conftest.$ac_ext
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3728 break
3731 done
3732 ac_cv_prog_CPP=$CPP
3735 CPP=$ac_cv_prog_CPP
3736 else
3737 ac_cv_prog_CPP=$CPP
3739 echo "$as_me:$LINENO: result: $CPP" >&5
3740 echo "${ECHO_T}$CPP" >&6
3741 ac_preproc_ok=false
3742 for ac_c_preproc_warn_flag in '' yes
3744 # Use a header file that comes with gcc, so configuring glibc
3745 # with a fresh cross-compiler works.
3746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3747 # <limits.h> exists even on freestanding compilers.
3748 # On the NeXT, cc -E runs the code through the compiler's parser,
3749 # not just through cpp. "Syntax error" is here to catch this case.
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3756 #ifdef __STDC__
3757 # include <limits.h>
3758 #else
3759 # include <assert.h>
3760 #endif
3761 Syntax error
3762 _ACEOF
3763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } >/dev/null; then
3771 if test -s conftest.err; then
3772 ac_cpp_err=$ac_c_preproc_warn_flag
3773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3774 else
3775 ac_cpp_err=
3777 else
3778 ac_cpp_err=yes
3780 if test -z "$ac_cpp_err"; then
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 # Broken: fails on valid input.
3787 continue
3789 rm -f conftest.err conftest.$ac_ext
3791 # OK, works on sane cases. Now check whether non-existent headers
3792 # can be detected and how.
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799 #include <ac_nonexistent.h>
3800 _ACEOF
3801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } >/dev/null; then
3809 if test -s conftest.err; then
3810 ac_cpp_err=$ac_c_preproc_warn_flag
3811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3812 else
3813 ac_cpp_err=
3815 else
3816 ac_cpp_err=yes
3818 if test -z "$ac_cpp_err"; then
3819 # Broken: success on invalid input.
3820 continue
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 # Passes both tests.
3826 ac_preproc_ok=:
3827 break
3829 rm -f conftest.err conftest.$ac_ext
3831 done
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then
3836 else
3837 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3838 See \`config.log' for more details." >&5
3839 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3840 See \`config.log' for more details." >&2;}
3841 { (exit 1); exit 1; }; }
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850 # Find a good install program. We prefer a C program (faster),
3851 # so one script is as good as another. But avoid the broken or
3852 # incompatible versions:
3853 # SysV /etc/install, /usr/sbin/install
3854 # SunOS /usr/etc/install
3855 # IRIX /sbin/install
3856 # AIX /bin/install
3857 # AmigaOS /C/install, which installs bootblocks on floppy discs
3858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3861 # OS/2's system install, which has a completely different semantic
3862 # ./install, which can be erroneously created by make from ./install.sh.
3863 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3864 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3865 if test -z "$INSTALL"; then
3866 if test "${ac_cv_path_install+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 # Account for people who put trailing slashes in PATH elements.
3875 case $as_dir/ in
3876 ./ | .// | /cC/* | \
3877 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3878 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3879 /usr/ucb/* ) ;;
3881 # OSF1 and SCO ODT 3.0 have their own names for install.
3882 # Don't use installbsd from OSF since it installs stuff as root
3883 # by default.
3884 for ac_prog in ginstall scoinst install; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3887 if test $ac_prog = install &&
3888 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3889 # AIX install. It has an incompatible calling convention.
3891 elif test $ac_prog = install &&
3892 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3893 # program-specific install script used by HP pwplus--don't use.
3895 else
3896 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3897 break 3
3900 done
3901 done
3903 esac
3904 done
3908 if test "${ac_cv_path_install+set}" = set; then
3909 INSTALL=$ac_cv_path_install
3910 else
3911 # As a last resort, use the slow shell script. We don't cache a
3912 # path for INSTALL within a source directory, because that will
3913 # break other packages using the cache if that directory is
3914 # removed, or if the path is relative.
3915 INSTALL=$ac_install_sh
3918 echo "$as_me:$LINENO: result: $INSTALL" >&5
3919 echo "${ECHO_T}$INSTALL" >&6
3921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3922 # It thinks the first close brace ends the variable substitution.
3923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3929 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3930 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3931 LN_S=$as_ln_s
3932 if test "$LN_S" = "ln -s"; then
3933 echo "$as_me:$LINENO: result: yes" >&5
3934 echo "${ECHO_T}yes" >&6
3935 else
3936 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3937 echo "${ECHO_T}no, using $LN_S" >&6
3940 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3941 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3942 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3943 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 cat >conftest.make <<\_ACEOF
3947 all:
3948 @echo 'ac_maketemp="$(MAKE)"'
3949 _ACEOF
3950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3951 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3952 if test -n "$ac_maketemp"; then
3953 eval ac_cv_prog_make_${ac_make}_set=yes
3954 else
3955 eval ac_cv_prog_make_${ac_make}_set=no
3957 rm -f conftest.make
3959 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3960 echo "$as_me:$LINENO: result: yes" >&5
3961 echo "${ECHO_T}yes" >&6
3962 SET_MAKE=
3963 else
3964 echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3966 SET_MAKE="MAKE=${MAKE-make}"
3970 # check for cygwin stuff
3974 # libtool setup
3975 # Check whether --enable-shared or --disable-shared was given.
3976 if test "${enable_shared+set}" = set; then
3977 enableval="$enable_shared"
3978 p=${PACKAGE-default}
3979 case $enableval in
3980 yes) enable_shared=yes ;;
3981 no) enable_shared=no ;;
3983 enable_shared=no
3984 # Look at the argument we got. We use all the common list separators.
3985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3986 for pkg in $enableval; do
3987 IFS="$lt_save_ifs"
3988 if test "X$pkg" = "X$p"; then
3989 enable_shared=yes
3991 done
3992 IFS="$lt_save_ifs"
3994 esac
3995 else
3996 enable_shared=yes
3999 # Check whether --enable-static or --disable-static was given.
4000 if test "${enable_static+set}" = set; then
4001 enableval="$enable_static"
4002 p=${PACKAGE-default}
4003 case $enableval in
4004 yes) enable_static=yes ;;
4005 no) enable_static=no ;;
4007 enable_static=no
4008 # Look at the argument we got. We use all the common list separators.
4009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4010 for pkg in $enableval; do
4011 IFS="$lt_save_ifs"
4012 if test "X$pkg" = "X$p"; then
4013 enable_static=yes
4015 done
4016 IFS="$lt_save_ifs"
4018 esac
4019 else
4020 enable_static=yes
4023 # Check whether --enable-fast-install or --disable-fast-install was given.
4024 if test "${enable_fast_install+set}" = set; then
4025 enableval="$enable_fast_install"
4026 p=${PACKAGE-default}
4027 case $enableval in
4028 yes) enable_fast_install=yes ;;
4029 no) enable_fast_install=no ;;
4031 enable_fast_install=no
4032 # Look at the argument we got. We use all the common list separators.
4033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4034 for pkg in $enableval; do
4035 IFS="$lt_save_ifs"
4036 if test "X$pkg" = "X$p"; then
4037 enable_fast_install=yes
4039 done
4040 IFS="$lt_save_ifs"
4042 esac
4043 else
4044 enable_fast_install=yes
4047 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4048 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4049 if test "${lt_cv_path_SED+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 # Loop through the user's path and test for sed and gsed.
4053 # Then use that list of sed's as ones to test for truncation.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for lt_ac_prog in sed gsed; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4062 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4064 done
4065 done
4066 done
4067 lt_ac_max=0
4068 lt_ac_count=0
4069 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4070 # along with /bin/sed that truncates output.
4071 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4072 test ! -f $lt_ac_sed && break
4073 cat /dev/null > conftest.in
4074 lt_ac_count=0
4075 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4076 # Check for GNU sed and select it if it is found.
4077 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4078 lt_cv_path_SED=$lt_ac_sed
4079 break
4081 while true; do
4082 cat conftest.in conftest.in >conftest.tmp
4083 mv conftest.tmp conftest.in
4084 cp conftest.in conftest.nl
4085 echo >>conftest.nl
4086 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4087 cmp -s conftest.out conftest.nl || break
4088 # 10000 chars as input seems more than enough
4089 test $lt_ac_count -gt 10 && break
4090 lt_ac_count=`expr $lt_ac_count + 1`
4091 if test $lt_ac_count -gt $lt_ac_max; then
4092 lt_ac_max=$lt_ac_count
4093 lt_cv_path_SED=$lt_ac_sed
4095 done
4096 done
4100 SED=$lt_cv_path_SED
4101 echo "$as_me:$LINENO: result: $SED" >&5
4102 echo "${ECHO_T}$SED" >&6
4104 echo "$as_me:$LINENO: checking for egrep" >&5
4105 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4106 if test "${ac_cv_prog_egrep+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4110 then ac_cv_prog_egrep='grep -E'
4111 else ac_cv_prog_egrep='egrep'
4114 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4115 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4116 EGREP=$ac_cv_prog_egrep
4120 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4121 if test "${with_gnu_ld+set}" = set; then
4122 withval="$with_gnu_ld"
4123 test "$withval" = no || with_gnu_ld=yes
4124 else
4125 with_gnu_ld=no
4127 ac_prog=ld
4128 if test "$GCC" = yes; then
4129 # Check if gcc -print-prog-name=ld gives a path.
4130 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4132 case $host in
4133 *-*-mingw*)
4134 # gcc leaves a trailing carriage return which upsets mingw
4135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4138 esac
4139 case $ac_prog in
4140 # Accept absolute paths.
4141 [\\/]* | ?:[\\/]*)
4142 re_direlt='/[^/][^/]*/\.\./'
4143 # Canonicalize the pathname of ld
4144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4147 done
4148 test -z "$LD" && LD="$ac_prog"
4151 # If it fails, then pretend we aren't using GCC.
4152 ac_prog=ld
4155 # If it is relative, then search for the first ld in PATH.
4156 with_gnu_ld=unknown
4158 esac
4159 elif test "$with_gnu_ld" = yes; then
4160 echo "$as_me:$LINENO: checking for GNU ld" >&5
4161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4162 else
4163 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4166 if test "${lt_cv_path_LD+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 if test -z "$LD"; then
4170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4171 for ac_dir in $PATH; do
4172 IFS="$lt_save_ifs"
4173 test -z "$ac_dir" && ac_dir=.
4174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4175 lt_cv_path_LD="$ac_dir/$ac_prog"
4176 # Check to see if the program is GNU ld. I'd rather use --version,
4177 # but apparently some GNU ld's only accept -v.
4178 # Break only if it was the GNU/non-GNU ld that we prefer.
4179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4180 *GNU* | *'with BFD'*)
4181 test "$with_gnu_ld" != no && break
4184 test "$with_gnu_ld" != yes && break
4186 esac
4188 done
4189 IFS="$lt_save_ifs"
4190 else
4191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4195 LD="$lt_cv_path_LD"
4196 if test -n "$LD"; then
4197 echo "$as_me:$LINENO: result: $LD" >&5
4198 echo "${ECHO_T}$LD" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4205 { (exit 1); exit 1; }; }
4206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4212 case `$LD -v 2>&1 </dev/null` in
4213 *GNU* | *'with BFD'*)
4214 lt_cv_prog_gnu_ld=yes
4217 lt_cv_prog_gnu_ld=no
4219 esac
4221 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4223 with_gnu_ld=$lt_cv_prog_gnu_ld
4226 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4227 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4228 if test "${lt_cv_ld_reload_flag+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 lt_cv_ld_reload_flag='-r'
4233 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4234 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4235 reload_flag=$lt_cv_ld_reload_flag
4236 case $reload_flag in
4237 "" | " "*) ;;
4238 *) reload_flag=" $reload_flag" ;;
4239 esac
4240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4241 case $host_os in
4242 darwin*)
4243 if test "$GCC" = yes; then
4244 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4245 else
4246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4249 esac
4251 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4252 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4253 if test "${lt_cv_path_NM+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 if test -n "$NM"; then
4257 # Let the user override the test.
4258 lt_cv_path_NM="$NM"
4259 else
4260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4261 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4262 IFS="$lt_save_ifs"
4263 test -z "$ac_dir" && ac_dir=.
4264 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4265 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4266 # Check to see if the nm accepts a BSD-compat flag.
4267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4268 # nm: unknown option "B" ignored
4269 # Tru64's nm complains that /dev/null is an invalid object file
4270 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4271 */dev/null* | *'Invalid file or object type'*)
4272 lt_cv_path_NM="$tmp_nm -B"
4273 break
4276 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4277 */dev/null*)
4278 lt_cv_path_NM="$tmp_nm -p"
4279 break
4282 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4283 continue # so that we can try to find one that supports BSD flags
4285 esac
4286 esac
4288 done
4289 IFS="$lt_save_ifs"
4290 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4293 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4294 echo "${ECHO_T}$lt_cv_path_NM" >&6
4295 NM="$lt_cv_path_NM"
4297 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4298 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4299 if test "${lt_cv_deplibs_check_method+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302 lt_cv_file_magic_cmd='$MAGIC_CMD'
4303 lt_cv_file_magic_test_file=
4304 lt_cv_deplibs_check_method='unknown'
4305 # Need to set the preceding variable on all platforms that support
4306 # interlibrary dependencies.
4307 # 'none' -- dependencies not supported.
4308 # `unknown' -- same as none, but documents that we really don't know.
4309 # 'pass_all' -- all dependencies passed with no checks.
4310 # 'test_compile' -- check by making test program.
4311 # 'file_magic [[regex]]' -- check by looking for files in library path
4312 # which responds to the $file_magic_cmd with a given extended regex.
4313 # If you have `file' or equivalent on your system and you're not sure
4314 # whether `pass_all' will *always* work, you probably want this one.
4316 case $host_os in
4317 aix4* | aix5*)
4318 lt_cv_deplibs_check_method=pass_all
4321 beos*)
4322 lt_cv_deplibs_check_method=pass_all
4325 bsdi[45]*)
4326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4327 lt_cv_file_magic_cmd='/usr/bin/file -L'
4328 lt_cv_file_magic_test_file=/shlib/libc.so
4331 cygwin*)
4332 # func_win32_libid is a shell function defined in ltmain.sh
4333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4334 lt_cv_file_magic_cmd='func_win32_libid'
4337 mingw* | pw32*)
4338 # Base MSYS/MinGW do not provide the 'file' command needed by
4339 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4341 lt_cv_file_magic_cmd='$OBJDUMP -f'
4344 darwin* | rhapsody*)
4345 lt_cv_deplibs_check_method=pass_all
4348 freebsd* | kfreebsd*-gnu)
4349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350 case $host_cpu in
4351 i*86 )
4352 # Not sure whether the presence of OpenBSD here was a mistake.
4353 # Let's accept both of them until this is cleared up.
4354 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4355 lt_cv_file_magic_cmd=/usr/bin/file
4356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4358 esac
4359 else
4360 lt_cv_deplibs_check_method=pass_all
4364 gnu*)
4365 lt_cv_deplibs_check_method=pass_all
4368 hpux10.20* | hpux11*)
4369 lt_cv_file_magic_cmd=/usr/bin/file
4370 case "$host_cpu" in
4371 ia64*)
4372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4375 hppa*64*)
4376 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]'
4377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4383 esac
4386 irix5* | irix6* | nonstopux*)
4387 case $LD in
4388 *-32|*"-32 ") libmagic=32-bit;;
4389 *-n32|*"-n32 ") libmagic=N32;;
4390 *-64|*"-64 ") libmagic=64-bit;;
4391 *) libmagic=never-match;;
4392 esac
4393 lt_cv_deplibs_check_method=pass_all
4396 # This must be Linux ELF.
4397 linux*)
4398 lt_cv_deplibs_check_method=pass_all
4401 netbsd*)
4402 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4404 else
4405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4409 newos6*)
4410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4411 lt_cv_file_magic_cmd=/usr/bin/file
4412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4415 nto-qnx*)
4416 lt_cv_deplibs_check_method=unknown
4419 openbsd*)
4420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4422 else
4423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4427 osf3* | osf4* | osf5*)
4428 lt_cv_deplibs_check_method=pass_all
4431 sco3.2v5*)
4432 lt_cv_deplibs_check_method=pass_all
4435 solaris*)
4436 lt_cv_deplibs_check_method=pass_all
4439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4440 case $host_vendor in
4441 motorola)
4442 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]'
4443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4445 ncr)
4446 lt_cv_deplibs_check_method=pass_all
4448 sequent)
4449 lt_cv_file_magic_cmd='/bin/file'
4450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4452 sni)
4453 lt_cv_file_magic_cmd='/bin/file'
4454 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4455 lt_cv_file_magic_test_file=/lib/libc.so
4457 siemens)
4458 lt_cv_deplibs_check_method=pass_all
4460 esac
4463 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4464 lt_cv_deplibs_check_method=pass_all
4466 esac
4469 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4470 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4471 file_magic_cmd=$lt_cv_file_magic_cmd
4472 deplibs_check_method=$lt_cv_deplibs_check_method
4473 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4478 # If no C compiler was specified, use CC.
4479 LTCC=${LTCC-"$CC"}
4481 # Allow CC to be a program name with arguments.
4482 compiler=$CC
4485 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4486 if test "${enable_libtool_lock+set}" = set; then
4487 enableval="$enable_libtool_lock"
4490 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4492 # Some flags need to be propagated to the compiler or linker for good
4493 # libtool support.
4494 case $host in
4495 ia64-*-hpux*)
4496 # Find out which ABI we are using.
4497 echo 'int i;' > conftest.$ac_ext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; then
4503 case `/usr/bin/file conftest.$ac_objext` in
4504 *ELF-32*)
4505 HPUX_IA64_MODE="32"
4507 *ELF-64*)
4508 HPUX_IA64_MODE="64"
4510 esac
4512 rm -rf conftest*
4514 *-*-irix6*)
4515 # Find out which ABI we are using.
4516 echo '#line 4516 "configure"' > conftest.$ac_ext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; then
4522 if test "$lt_cv_prog_gnu_ld" = yes; then
4523 case `/usr/bin/file conftest.$ac_objext` in
4524 *32-bit*)
4525 LD="${LD-ld} -melf32bsmip"
4527 *N32*)
4528 LD="${LD-ld} -melf32bmipn32"
4530 *64-bit*)
4531 LD="${LD-ld} -melf64bmip"
4533 esac
4534 else
4535 case `/usr/bin/file conftest.$ac_objext` in
4536 *32-bit*)
4537 LD="${LD-ld} -32"
4539 *N32*)
4540 LD="${LD-ld} -n32"
4542 *64-bit*)
4543 LD="${LD-ld} -64"
4545 esac
4548 rm -rf conftest*
4551 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4552 # Find out which ABI we are using.
4553 echo 'int i;' > conftest.$ac_ext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; then
4559 case "`/usr/bin/file conftest.o`" in
4560 *32-bit*)
4561 case $host in
4562 x86_64-*linux*)
4563 LD="${LD-ld} -m elf_i386"
4565 ppc64-*linux*|powerpc64-*linux*)
4566 LD="${LD-ld} -m elf32ppclinux"
4568 s390x-*linux*)
4569 LD="${LD-ld} -m elf_s390"
4571 sparc64-*linux*)
4572 LD="${LD-ld} -m elf32_sparc"
4574 esac
4576 *64-bit*)
4577 case $host in
4578 x86_64-*linux*)
4579 LD="${LD-ld} -m elf_x86_64"
4581 ppc*-*linux*|powerpc*-*linux*)
4582 LD="${LD-ld} -m elf64ppc"
4584 s390*-*linux*)
4585 LD="${LD-ld} -m elf64_s390"
4587 sparc*-*linux*)
4588 LD="${LD-ld} -m elf64_sparc"
4590 esac
4592 esac
4594 rm -rf conftest*
4597 *-*-sco3.2v5*)
4598 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4599 SAVE_CFLAGS="$CFLAGS"
4600 CFLAGS="$CFLAGS -belf"
4601 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4602 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4603 if test "${lt_cv_cc_needs_belf+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4620 main ()
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest$ac_exeext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 lt_cv_cc_needs_belf=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 lt_cv_cc_needs_belf=no
4656 rm -f conftest.err conftest.$ac_objext \
4657 conftest$ac_exeext conftest.$ac_ext
4658 ac_ext=c
4659 ac_cpp='$CPP $CPPFLAGS'
4660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4666 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4667 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4668 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4669 CFLAGS="$SAVE_CFLAGS"
4672 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 if test -n "$DLLTOOL"; then
4682 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4700 DLLTOOL=$ac_cv_prog_DLLTOOL
4701 if test -n "$DLLTOOL"; then
4702 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4703 echo "${ECHO_T}$DLLTOOL" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4710 if test -z "$ac_cv_prog_DLLTOOL"; then
4711 ac_ct_DLLTOOL=$DLLTOOL
4712 # Extract the first word of "dlltool", so it can be a program name with args.
4713 set dummy dlltool; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 if test -n "$ac_ct_DLLTOOL"; then
4720 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4733 done
4734 done
4736 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4739 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4740 if test -n "$ac_ct_DLLTOOL"; then
4741 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4742 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4743 else
4744 echo "$as_me:$LINENO: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4748 DLLTOOL=$ac_ct_DLLTOOL
4749 else
4750 DLLTOOL="$ac_cv_prog_DLLTOOL"
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}as; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_AS+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$AS"; then
4762 ac_cv_prog_AS="$AS" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_AS="${ac_tool_prefix}as"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4780 AS=$ac_cv_prog_AS
4781 if test -n "$AS"; then
4782 echo "$as_me:$LINENO: result: $AS" >&5
4783 echo "${ECHO_T}$AS" >&6
4784 else
4785 echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4790 if test -z "$ac_cv_prog_AS"; then
4791 ac_ct_AS=$AS
4792 # Extract the first word of "as", so it can be a program name with args.
4793 set dummy as; ac_word=$2
4794 echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4796 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test -n "$ac_ct_AS"; then
4800 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_ac_ct_AS="as"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4816 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4819 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4820 if test -n "$ac_ct_AS"; then
4821 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4822 echo "${ECHO_T}$ac_ct_AS" >&6
4823 else
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4828 AS=$ac_ct_AS
4829 else
4830 AS="$ac_cv_prog_AS"
4833 if test -n "$ac_tool_prefix"; then
4834 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4835 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 if test -n "$OBJDUMP"; then
4842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4855 done
4856 done
4860 OBJDUMP=$ac_cv_prog_OBJDUMP
4861 if test -n "$OBJDUMP"; then
4862 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4863 echo "${ECHO_T}$OBJDUMP" >&6
4864 else
4865 echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6
4870 if test -z "$ac_cv_prog_OBJDUMP"; then
4871 ac_ct_OBJDUMP=$OBJDUMP
4872 # Extract the first word of "objdump", so it can be a program name with args.
4873 set dummy objdump; ac_word=$2
4874 echo "$as_me:$LINENO: checking for $ac_word" >&5
4875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4876 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 if test -n "$ac_ct_OBJDUMP"; then
4880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4893 done
4894 done
4896 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4900 if test -n "$ac_ct_OBJDUMP"; then
4901 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4902 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4903 else
4904 echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6
4908 OBJDUMP=$ac_ct_OBJDUMP
4909 else
4910 OBJDUMP="$ac_cv_prog_OBJDUMP"
4915 esac
4917 need_locks="$enable_libtool_lock"
4921 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4922 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4923 if test "${ac_cv_header_stdc+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <stdlib.h>
4933 #include <stdarg.h>
4934 #include <string.h>
4935 #include <float.h>
4938 main ()
4942 return 0;
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_header_stdc=yes
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 ac_cv_header_stdc=no
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4976 if test $ac_cv_header_stdc = yes; then
4977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <string.h>
4986 _ACEOF
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "memchr" >/dev/null 2>&1; then
4990 else
4991 ac_cv_header_stdc=no
4993 rm -f conftest*
4997 if test $ac_cv_header_stdc = yes; then
4998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <stdlib.h>
5007 _ACEOF
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 $EGREP "free" >/dev/null 2>&1; then
5011 else
5012 ac_cv_header_stdc=no
5014 rm -f conftest*
5018 if test $ac_cv_header_stdc = yes; then
5019 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5020 if test "$cross_compiling" = yes; then
5022 else
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <ctype.h>
5030 #if ((' ' & 0x0FF) == 0x020)
5031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5033 #else
5034 # define ISLOWER(c) \
5035 (('a' <= (c) && (c) <= 'i') \
5036 || ('j' <= (c) && (c) <= 'r') \
5037 || ('s' <= (c) && (c) <= 'z'))
5038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #endif
5041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5043 main ()
5045 int i;
5046 for (i = 0; i < 256; i++)
5047 if (XOR (islower (i), ISLOWER (i))
5048 || toupper (i) != TOUPPER (i))
5049 exit(2);
5050 exit (0);
5052 _ACEOF
5053 rm -f conftest$ac_exeext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5055 (eval $ac_link) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 (eval $ac_try) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5065 else
5066 echo "$as_me: program exited with status $ac_status" >&5
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 ( exit $ac_status )
5071 ac_cv_header_stdc=no
5073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5078 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5079 if test $ac_cv_header_stdc = yes; then
5081 cat >>confdefs.h <<\_ACEOF
5082 #define STDC_HEADERS 1
5083 _ACEOF
5087 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098 inttypes.h stdint.h unistd.h
5100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101 echo "$as_me:$LINENO: checking for $ac_header" >&5
5102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5114 #include <$ac_header>
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest.$ac_objext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 eval "$as_ac_Header=yes"
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 eval "$as_ac_Header=no"
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5150 cat >>confdefs.h <<_ACEOF
5151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5152 _ACEOF
5156 done
5160 for ac_header in dlfcn.h
5162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5164 echo "$as_me:$LINENO: checking for $ac_header" >&5
5165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5171 else
5172 # Is the header compilable?
5173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5182 #include <$ac_header>
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_header_compiler=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_header_compiler=no
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5215 echo "${ECHO_T}$ac_header_compiler" >&6
5217 # Is the header present?
5218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <$ac_header>
5227 _ACEOF
5228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } >/dev/null; then
5236 if test -s conftest.err; then
5237 ac_cpp_err=$ac_c_preproc_warn_flag
5238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5239 else
5240 ac_cpp_err=
5242 else
5243 ac_cpp_err=yes
5245 if test -z "$ac_cpp_err"; then
5246 ac_header_preproc=yes
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 ac_header_preproc=no
5253 rm -f conftest.err conftest.$ac_ext
5254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5255 echo "${ECHO_T}$ac_header_preproc" >&6
5257 # So? What about this header?
5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5259 yes:no: )
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5264 ac_header_preproc=yes
5266 no:yes:* )
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5280 cat <<\_ASBOX
5281 ## ------------------------------------------ ##
5282 ## Report this to the AC_PACKAGE_NAME lists. ##
5283 ## ------------------------------------------ ##
5284 _ASBOX
5286 sed "s/^/$as_me: WARNING: /" >&2
5288 esac
5289 echo "$as_me:$LINENO: checking for $ac_header" >&5
5290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 eval "$as_ac_Header=\$ac_header_preproc"
5296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5301 cat >>confdefs.h <<_ACEOF
5302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5303 _ACEOF
5307 done
5311 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5312 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5313 (test "X$CXX" != "Xg++"))) ; then
5314 ac_ext=cc
5315 ac_cpp='$CXXCPP $CPPFLAGS'
5316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5319 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5320 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5321 if test -z "$CXXCPP"; then
5322 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 # Double quotes because CXXCPP needs to be expanded
5326 for CXXCPP in "$CXX -E" "/lib/cpp"
5328 ac_preproc_ok=false
5329 for ac_cxx_preproc_warn_flag in '' yes
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #ifdef __STDC__
5344 # include <limits.h>
5345 #else
5346 # include <assert.h>
5347 #endif
5348 Syntax error
5349 _ACEOF
5350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null; then
5358 if test -s conftest.err; then
5359 ac_cpp_err=$ac_cxx_preproc_warn_flag
5360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5361 else
5362 ac_cpp_err=
5364 else
5365 ac_cpp_err=yes
5367 if test -z "$ac_cpp_err"; then
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 # Broken: fails on valid input.
5374 continue
5376 rm -f conftest.err conftest.$ac_ext
5378 # OK, works on sane cases. Now check whether non-existent headers
5379 # can be detected and how.
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5387 _ACEOF
5388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null; then
5396 if test -s conftest.err; then
5397 ac_cpp_err=$ac_cxx_preproc_warn_flag
5398 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5399 else
5400 ac_cpp_err=
5402 else
5403 ac_cpp_err=yes
5405 if test -z "$ac_cpp_err"; then
5406 # Broken: success on invalid input.
5407 continue
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Passes both tests.
5413 ac_preproc_ok=:
5414 break
5416 rm -f conftest.err conftest.$ac_ext
5418 done
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.$ac_ext
5421 if $ac_preproc_ok; then
5422 break
5425 done
5426 ac_cv_prog_CXXCPP=$CXXCPP
5429 CXXCPP=$ac_cv_prog_CXXCPP
5430 else
5431 ac_cv_prog_CXXCPP=$CXXCPP
5433 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5434 echo "${ECHO_T}$CXXCPP" >&6
5435 ac_preproc_ok=false
5436 for ac_cxx_preproc_warn_flag in '' yes
5438 # Use a header file that comes with gcc, so configuring glibc
5439 # with a fresh cross-compiler works.
5440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5441 # <limits.h> exists even on freestanding compilers.
5442 # On the NeXT, cc -E runs the code through the compiler's parser,
5443 # not just through cpp. "Syntax error" is here to catch this case.
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455 Syntax error
5456 _ACEOF
5457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } >/dev/null; then
5465 if test -s conftest.err; then
5466 ac_cpp_err=$ac_cxx_preproc_warn_flag
5467 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5468 else
5469 ac_cpp_err=
5471 else
5472 ac_cpp_err=yes
5474 if test -z "$ac_cpp_err"; then
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 # Broken: fails on valid input.
5481 continue
5483 rm -f conftest.err conftest.$ac_ext
5485 # OK, works on sane cases. Now check whether non-existent headers
5486 # can be detected and how.
5487 cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h. */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #include <ac_nonexistent.h>
5494 _ACEOF
5495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } >/dev/null; then
5503 if test -s conftest.err; then
5504 ac_cpp_err=$ac_cxx_preproc_warn_flag
5505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5506 else
5507 ac_cpp_err=
5509 else
5510 ac_cpp_err=yes
5512 if test -z "$ac_cpp_err"; then
5513 # Broken: success on invalid input.
5514 continue
5515 else
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5519 # Passes both tests.
5520 ac_preproc_ok=:
5521 break
5523 rm -f conftest.err conftest.$ac_ext
5525 done
5526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5527 rm -f conftest.err conftest.$ac_ext
5528 if $ac_preproc_ok; then
5530 else
5531 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5532 See \`config.log' for more details." >&5
5533 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5534 See \`config.log' for more details." >&2;}
5535 { (exit 1); exit 1; }; }
5538 ac_ext=cc
5539 ac_cpp='$CXXCPP $CPPFLAGS'
5540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5547 ac_ext=f
5548 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5549 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5551 if test -n "$ac_tool_prefix"; then
5552 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556 echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5558 if test "${ac_cv_prog_F77+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 if test -n "$F77"; then
5562 ac_cv_prog_F77="$F77" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5580 F77=$ac_cv_prog_F77
5581 if test -n "$F77"; then
5582 echo "$as_me:$LINENO: result: $F77" >&5
5583 echo "${ECHO_T}$F77" >&6
5584 else
5585 echo "$as_me:$LINENO: result: no" >&5
5586 echo "${ECHO_T}no" >&6
5589 test -n "$F77" && break
5590 done
5592 if test -z "$F77"; then
5593 ac_ct_F77=$F77
5594 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5596 # Extract the first word of "$ac_prog", so it can be a program name with args.
5597 set dummy $ac_prog; ac_word=$2
5598 echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5600 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 if test -n "$ac_ct_F77"; then
5604 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_ac_ct_F77="$ac_prog"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5622 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5623 if test -n "$ac_ct_F77"; then
5624 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5625 echo "${ECHO_T}$ac_ct_F77" >&6
5626 else
5627 echo "$as_me:$LINENO: result: no" >&5
5628 echo "${ECHO_T}no" >&6
5631 test -n "$ac_ct_F77" && break
5632 done
5634 F77=$ac_ct_F77
5638 # Provide some information about the compiler.
5639 echo "$as_me:5639:" \
5640 "checking for Fortran 77 compiler version" >&5
5641 ac_compiler=`set X $ac_compile; echo $2`
5642 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5643 (eval $ac_compiler --version </dev/null >&5) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }
5647 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5648 (eval $ac_compiler -v </dev/null >&5) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }
5652 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5653 (eval $ac_compiler -V </dev/null >&5) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }
5657 rm -f a.out
5659 # If we don't use `.F' as extension, the preprocessor is not run on the
5660 # input file. (Note that this only needs to work for GNU compilers.)
5661 ac_save_ext=$ac_ext
5662 ac_ext=F
5663 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5664 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5665 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 cat >conftest.$ac_ext <<_ACEOF
5669 program main
5670 #ifndef __GNUC__
5671 choke me
5672 #endif
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_f77_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_compiler_gnu=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 ac_compiler_gnu=no
5705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5709 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5710 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5711 ac_ext=$ac_save_ext
5712 ac_test_FFLAGS=${FFLAGS+set}
5713 ac_save_FFLAGS=$FFLAGS
5714 FFLAGS=
5715 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5716 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5717 if test "${ac_cv_prog_f77_g+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 FFLAGS=-g
5721 cat >conftest.$ac_ext <<_ACEOF
5722 program main
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_f77_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_prog_f77_g=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 ac_cv_prog_f77_g=no
5755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5759 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5760 if test "$ac_test_FFLAGS" = set; then
5761 FFLAGS=$ac_save_FFLAGS
5762 elif test $ac_cv_prog_f77_g = yes; then
5763 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5764 FFLAGS="-g -O2"
5765 else
5766 FFLAGS="-g"
5768 else
5769 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5770 FFLAGS="-O2"
5771 else
5772 FFLAGS=
5776 G77=`test $ac_compiler_gnu = yes && echo yes`
5777 ac_ext=c
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5787 # find the maximum length of command line arguments
5788 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5789 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5790 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5794 teststring="ABCD"
5796 case $build_os in
5797 msdosdjgpp*)
5798 # On DJGPP, this test can blow up pretty badly due to problems in libc
5799 # (any single argument exceeding 2000 bytes causes a buffer overrun
5800 # during glob expansion). Even if it were fixed, the result of this
5801 # check would be larger than it should be.
5802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5805 gnu*)
5806 # Under GNU Hurd, this test is not required because there is
5807 # no limit to the length of command line arguments.
5808 # Libtool will interpret -1 as no limit whatsoever
5809 lt_cv_sys_max_cmd_len=-1;
5812 cygwin* | mingw*)
5813 # On Win9x/ME, this test blows up -- it succeeds, but takes
5814 # about 5 minutes as the teststring grows exponentially.
5815 # Worse, since 9x/ME are not pre-emptively multitasking,
5816 # you end up with a "frozen" computer, even though with patience
5817 # the test eventually succeeds (with a max line length of 256k).
5818 # Instead, let's just punt: use the minimum linelength reported by
5819 # all of the supported platforms: 8192 (on NT/2K/XP).
5820 lt_cv_sys_max_cmd_len=8192;
5823 amigaos*)
5824 # On AmigaOS with pdksh, this test takes hours, literally.
5825 # So we just punt and use a minimum line length of 8192.
5826 lt_cv_sys_max_cmd_len=8192;
5829 netbsd* | freebsd* | openbsd* | darwin* )
5830 # This has been around since 386BSD, at least. Likely further.
5831 if test -x /sbin/sysctl; then
5832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833 elif test -x /usr/sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5835 else
5836 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5838 # And add a safety zone
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843 # If test is not a shell built-in, we'll probably end up computing a
5844 # maximum length that is only half of the actual maximum length, but
5845 # we can't tell.
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5848 = "XX$teststring") >/dev/null 2>&1 &&
5849 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5850 lt_cv_sys_max_cmd_len=$new_result &&
5851 test $i != 17 # 1/2 MB should be enough
5853 i=`expr $i + 1`
5854 teststring=$teststring$teststring
5855 done
5856 teststring=
5857 # Add a significant safety factor because C++ compilers can tack on massive
5858 # amounts of additional arguments before passing them to the linker.
5859 # It appears as though 1/2 is a usable value.
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5862 esac
5866 if test -n $lt_cv_sys_max_cmd_len ; then
5867 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5868 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5869 else
5870 echo "$as_me:$LINENO: result: none" >&5
5871 echo "${ECHO_T}none" >&6
5877 # Check for command to grab the raw symbol name followed by C symbol from nm.
5878 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5879 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5880 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5884 # These are sane defaults that work on at least a few old systems.
5885 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5887 # Character class describing NM global symbol codes.
5888 symcode='[BCDEGRST]'
5890 # Regexp to match symbols that can be accessed directly from C.
5891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5893 # Transform the above into a raw symbol and a C symbol.
5894 symxfrm='\1 \2\3 \3'
5896 # Transform an extracted symbol line into a proper C declaration
5897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5899 # Transform an extracted symbol line into symbol name and symbol address
5900 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'"
5902 # Define system-specific variables.
5903 case $host_os in
5904 aix*)
5905 symcode='[BCDT]'
5907 cygwin* | mingw* | pw32*)
5908 symcode='[ABCDGISTW]'
5910 hpux*) # Its linker distinguishes data from code symbols
5911 if test "$host_cpu" = ia64; then
5912 symcode='[ABCDEGRST]'
5914 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5915 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'"
5917 linux*)
5918 if test "$host_cpu" = ia64; then
5919 symcode='[ABCDGIRSTW]'
5920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5921 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'"
5924 irix* | nonstopux*)
5925 symcode='[BCDEGRST]'
5927 osf*)
5928 symcode='[BCDEGQRST]'
5930 solaris* | sysv5*)
5931 symcode='[BDRT]'
5933 sysv4)
5934 symcode='[DFNSTU]'
5936 esac
5938 # Handle CRLF in mingw tool chain
5939 opt_cr=
5940 case $build_os in
5941 mingw*)
5942 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5944 esac
5946 # If we're using GNU nm, then use its standard symbol codes.
5947 case `$NM -V 2>&1` in
5948 *GNU* | *'with BFD'*)
5949 symcode='[ABCDGIRSTW]' ;;
5950 esac
5952 # Try without a prefix undercore, then with it.
5953 for ac_symprfx in "" "_"; do
5955 # Write the raw and C identifiers.
5956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5958 # Check to see that the pipe works correctly.
5959 pipe_works=no
5961 rm -f conftest*
5962 cat > conftest.$ac_ext <<EOF
5963 #ifdef __cplusplus
5964 extern "C" {
5965 #endif
5966 char nm_test_var;
5967 void nm_test_func(){}
5968 #ifdef __cplusplus
5970 #endif
5971 int main(){nm_test_var='a';nm_test_func();return(0);}
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; then
5979 # Now try to grab the symbols.
5980 nlist=conftest.nm
5981 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5982 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && test -s "$nlist"; then
5986 # Try sorting and uniquifying the output.
5987 if sort "$nlist" | uniq > "$nlist"T; then
5988 mv -f "$nlist"T "$nlist"
5989 else
5990 rm -f "$nlist"T
5993 # Make sure that we snagged all the symbols we need.
5994 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5995 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5996 cat <<EOF > conftest.$ac_ext
5997 #ifdef __cplusplus
5998 extern "C" {
5999 #endif
6002 # Now generate the symbol file.
6003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6005 cat <<EOF >> conftest.$ac_ext
6006 #if defined (__STDC__) && __STDC__
6007 # define lt_ptr_t void *
6008 #else
6009 # define lt_ptr_t char *
6010 # define const
6011 #endif
6013 /* The mapping between symbol names and symbols. */
6014 const struct {
6015 const char *name;
6016 lt_ptr_t address;
6018 lt_preloaded_symbols[] =
6021 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6022 cat <<\EOF >> conftest.$ac_ext
6023 {0, (lt_ptr_t) 0}
6026 #ifdef __cplusplus
6028 #endif
6030 # Now try linking the two files.
6031 mv conftest.$ac_objext conftstm.$ac_objext
6032 lt_save_LIBS="$LIBS"
6033 lt_save_CFLAGS="$CFLAGS"
6034 LIBS="conftstm.$ac_objext"
6035 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6041 pipe_works=yes
6043 LIBS="$lt_save_LIBS"
6044 CFLAGS="$lt_save_CFLAGS"
6045 else
6046 echo "cannot find nm_test_func in $nlist" >&5
6048 else
6049 echo "cannot find nm_test_var in $nlist" >&5
6051 else
6052 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6054 else
6055 echo "$progname: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 rm -f conftest* conftst*
6060 # Do not use the global_symbol_pipe unless it works.
6061 if test "$pipe_works" = yes; then
6062 break
6063 else
6064 lt_cv_sys_global_symbol_pipe=
6066 done
6070 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6071 lt_cv_sys_global_symbol_to_cdecl=
6073 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6074 echo "$as_me:$LINENO: result: failed" >&5
6075 echo "${ECHO_T}failed" >&6
6076 else
6077 echo "$as_me:$LINENO: result: ok" >&5
6078 echo "${ECHO_T}ok" >&6
6081 echo "$as_me:$LINENO: checking for objdir" >&5
6082 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6083 if test "${lt_cv_objdir+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 rm -f .libs 2>/dev/null
6087 mkdir .libs 2>/dev/null
6088 if test -d .libs; then
6089 lt_cv_objdir=.libs
6090 else
6091 # MS-DOS does not allow filenames that begin with a dot.
6092 lt_cv_objdir=_libs
6094 rmdir .libs 2>/dev/null
6096 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6097 echo "${ECHO_T}$lt_cv_objdir" >&6
6098 objdir=$lt_cv_objdir
6104 case $host_os in
6105 aix3*)
6106 # AIX sometimes has problems with the GCC collect2 program. For some
6107 # reason, if we set the COLLECT_NAMES environment variable, the problems
6108 # vanish in a puff of smoke.
6109 if test "X${COLLECT_NAMES+set}" != Xset; then
6110 COLLECT_NAMES=
6111 export COLLECT_NAMES
6114 esac
6116 # Sed substitution that helps us do robust quoting. It backslashifies
6117 # metacharacters that are still active within double-quoted strings.
6118 Xsed='sed -e s/^X//'
6119 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6121 # Same as above, but do not quote variable references.
6122 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6124 # Sed substitution to delay expansion of an escaped shell variable in a
6125 # double_quote_subst'ed string.
6126 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6128 # Sed substitution to avoid accidental globbing in evaled expressions
6129 no_glob_subst='s/\*/\\\*/g'
6131 # Constants:
6132 rm="rm -f"
6134 # Global variables:
6135 default_ofile=libtool
6136 can_build_shared=yes
6138 # All known linkers require a `.a' archive for static linking (except M$VC,
6139 # which needs '.lib').
6140 libext=a
6141 ltmain="$ac_aux_dir/ltmain.sh"
6142 ofile="$default_ofile"
6143 with_gnu_ld="$lt_cv_prog_gnu_ld"
6145 if test -n "$ac_tool_prefix"; then
6146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6147 set dummy ${ac_tool_prefix}ar; ac_word=$2
6148 echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6150 if test "${ac_cv_prog_AR+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 if test -n "$AR"; then
6154 ac_cv_prog_AR="$AR" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163 ac_cv_prog_AR="${ac_tool_prefix}ar"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 break 2
6167 done
6168 done
6172 AR=$ac_cv_prog_AR
6173 if test -n "$AR"; then
6174 echo "$as_me:$LINENO: result: $AR" >&5
6175 echo "${ECHO_T}$AR" >&6
6176 else
6177 echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6
6182 if test -z "$ac_cv_prog_AR"; then
6183 ac_ct_AR=$AR
6184 # Extract the first word of "ar", so it can be a program name with args.
6185 set dummy ar; ac_word=$2
6186 echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6188 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 if test -n "$ac_ct_AR"; then
6192 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_ac_ct_AR="ar"
6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6205 done
6206 done
6208 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6212 if test -n "$ac_ct_AR"; then
6213 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6214 echo "${ECHO_T}$ac_ct_AR" >&6
6215 else
6216 echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6
6220 AR=$ac_ct_AR
6221 else
6222 AR="$ac_cv_prog_AR"
6225 if test -n "$ac_tool_prefix"; then
6226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6227 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6228 echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6230 if test "${ac_cv_prog_RANLIB+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 if test -n "$RANLIB"; then
6234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6247 done
6248 done
6252 RANLIB=$ac_cv_prog_RANLIB
6253 if test -n "$RANLIB"; then
6254 echo "$as_me:$LINENO: result: $RANLIB" >&5
6255 echo "${ECHO_T}$RANLIB" >&6
6256 else
6257 echo "$as_me:$LINENO: result: no" >&5
6258 echo "${ECHO_T}no" >&6
6262 if test -z "$ac_cv_prog_RANLIB"; then
6263 ac_ct_RANLIB=$RANLIB
6264 # Extract the first word of "ranlib", so it can be a program name with args.
6265 set dummy ranlib; ac_word=$2
6266 echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 if test -n "$ac_ct_RANLIB"; then
6272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_ac_ct_RANLIB="ranlib"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6288 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6292 if test -n "$ac_ct_RANLIB"; then
6293 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6294 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6
6300 RANLIB=$ac_ct_RANLIB
6301 else
6302 RANLIB="$ac_cv_prog_RANLIB"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6310 if test "${ac_cv_prog_STRIP+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6332 STRIP=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 echo "$as_me:$LINENO: result: $STRIP" >&5
6335 echo "${ECHO_T}$STRIP" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6
6342 if test -z "$ac_cv_prog_STRIP"; then
6343 ac_ct_STRIP=$STRIP
6344 # Extract the first word of "strip", so it can be a program name with args.
6345 set dummy strip; ac_word=$2
6346 echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 if test -n "$ac_ct_STRIP"; then
6352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_STRIP="strip"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6368 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372 if test -n "$ac_ct_STRIP"; then
6373 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6374 echo "${ECHO_T}$ac_ct_STRIP" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6
6380 STRIP=$ac_ct_STRIP
6381 else
6382 STRIP="$ac_cv_prog_STRIP"
6386 old_CC="$CC"
6387 old_CFLAGS="$CFLAGS"
6389 # Set sane defaults for various variables
6390 test -z "$AR" && AR=ar
6391 test -z "$AR_FLAGS" && AR_FLAGS=cru
6392 test -z "$AS" && AS=as
6393 test -z "$CC" && CC=cc
6394 test -z "$LTCC" && LTCC=$CC
6395 test -z "$DLLTOOL" && DLLTOOL=dlltool
6396 test -z "$LD" && LD=ld
6397 test -z "$LN_S" && LN_S="ln -s"
6398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6399 test -z "$NM" && NM=nm
6400 test -z "$SED" && SED=sed
6401 test -z "$OBJDUMP" && OBJDUMP=objdump
6402 test -z "$RANLIB" && RANLIB=:
6403 test -z "$STRIP" && STRIP=:
6404 test -z "$ac_objext" && ac_objext=o
6406 # Determine commands to create old-style static archives.
6407 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6408 old_postinstall_cmds='chmod 644 $oldlib'
6409 old_postuninstall_cmds=
6411 if test -n "$RANLIB"; then
6412 case $host_os in
6413 openbsd*)
6414 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6417 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6419 esac
6420 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6423 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6425 # Only perform the check for file, if the check method requires it
6426 case $deplibs_check_method in
6427 file_magic*)
6428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6429 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6430 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 case $MAGIC_CMD in
6435 [\\/*] | ?:[\\/]*)
6436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6439 lt_save_MAGIC_CMD="$MAGIC_CMD"
6440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6442 for ac_dir in $ac_dummy; do
6443 IFS="$lt_save_ifs"
6444 test -z "$ac_dir" && ac_dir=.
6445 if test -f $ac_dir/${ac_tool_prefix}file; then
6446 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6447 if test -n "$file_magic_test_file"; then
6448 case $deplibs_check_method in
6449 "file_magic "*)
6450 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6453 $EGREP "$file_magic_regex" > /dev/null; then
6455 else
6456 cat <<EOF 1>&2
6458 *** Warning: the command libtool uses to detect shared libraries,
6459 *** $file_magic_cmd, produces output that libtool cannot recognize.
6460 *** The result is that libtool may fail to recognize shared libraries
6461 *** as such. This will affect the creation of libtool libraries that
6462 *** depend on shared libraries, but programs linked with such libtool
6463 *** libraries will work regardless of this problem. Nevertheless, you
6464 *** may want to report the problem to your system manager and/or to
6465 *** bug-libtool@gnu.org
6468 fi ;;
6469 esac
6471 break
6473 done
6474 IFS="$lt_save_ifs"
6475 MAGIC_CMD="$lt_save_MAGIC_CMD"
6477 esac
6480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481 if test -n "$MAGIC_CMD"; then
6482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6483 echo "${ECHO_T}$MAGIC_CMD" >&6
6484 else
6485 echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6489 if test -z "$lt_cv_path_MAGIC_CMD"; then
6490 if test -n "$ac_tool_prefix"; then
6491 echo "$as_me:$LINENO: checking for file" >&5
6492 echo $ECHO_N "checking for file... $ECHO_C" >&6
6493 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 case $MAGIC_CMD in
6497 [\\/*] | ?:[\\/]*)
6498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6501 lt_save_MAGIC_CMD="$MAGIC_CMD"
6502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6504 for ac_dir in $ac_dummy; do
6505 IFS="$lt_save_ifs"
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f $ac_dir/file; then
6508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6509 if test -n "$file_magic_test_file"; then
6510 case $deplibs_check_method in
6511 "file_magic "*)
6512 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6515 $EGREP "$file_magic_regex" > /dev/null; then
6517 else
6518 cat <<EOF 1>&2
6520 *** Warning: the command libtool uses to detect shared libraries,
6521 *** $file_magic_cmd, produces output that libtool cannot recognize.
6522 *** The result is that libtool may fail to recognize shared libraries
6523 *** as such. This will affect the creation of libtool libraries that
6524 *** depend on shared libraries, but programs linked with such libtool
6525 *** libraries will work regardless of this problem. Nevertheless, you
6526 *** may want to report the problem to your system manager and/or to
6527 *** bug-libtool@gnu.org
6530 fi ;;
6531 esac
6533 break
6535 done
6536 IFS="$lt_save_ifs"
6537 MAGIC_CMD="$lt_save_MAGIC_CMD"
6539 esac
6542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543 if test -n "$MAGIC_CMD"; then
6544 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6545 echo "${ECHO_T}$MAGIC_CMD" >&6
6546 else
6547 echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6
6551 else
6552 MAGIC_CMD=:
6558 esac
6560 enable_dlopen=no
6561 enable_win32_dll=yes
6563 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6564 if test "${enable_libtool_lock+set}" = set; then
6565 enableval="$enable_libtool_lock"
6568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6571 # Check whether --with-pic or --without-pic was given.
6572 if test "${with_pic+set}" = set; then
6573 withval="$with_pic"
6574 pic_mode="$withval"
6575 else
6576 pic_mode=default
6578 test -z "$pic_mode" && pic_mode=default
6580 # Use C for the default configuration in the libtool script
6581 tagname=
6582 lt_save_CC="$CC"
6583 ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590 # Source file extension for C test sources.
6591 ac_ext=c
6593 # Object file extension for compiled C test sources.
6594 objext=o
6595 objext=$objext
6597 # Code to be used in simple compile tests
6598 lt_simple_compile_test_code="int some_variable = 0;\n"
6600 # Code to be used in simple link tests
6601 lt_simple_link_test_code='int main(){return(0);}\n'
6604 # If no C compiler was specified, use CC.
6605 LTCC=${LTCC-"$CC"}
6607 # Allow CC to be a program name with arguments.
6608 compiler=$CC
6612 # Check for any special shared library compilation flags.
6614 lt_prog_cc_shlib=
6615 if test "$GCC" = no; then
6616 case $host_os in
6617 sco3.2v5*)
6618 lt_prog_cc_shlib='-belf'
6620 esac
6622 if test -n "$lt_prog_cc_shlib"; then
6623 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6624 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6625 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6626 else
6627 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6628 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6629 lt_cv_prog_cc_can_build_shared=no
6635 # Check to make sure the static flag actually works.
6637 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6638 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6639 if test "${lt_prog_compiler_static_works+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 lt_prog_compiler_static_works=no
6643 save_LDFLAGS="$LDFLAGS"
6644 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6645 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6647 # The compiler can only warn and ignore the option if not recognized
6648 # So say no if there are warnings
6649 if test -s conftest.err; then
6650 # Append any errors to the config.log.
6651 cat conftest.err 1>&5
6652 else
6653 lt_prog_compiler_static_works=yes
6656 $rm conftest*
6657 LDFLAGS="$save_LDFLAGS"
6660 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6661 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6663 if test x"$lt_prog_compiler_static_works" = xyes; then
6665 else
6666 lt_prog_compiler_static=
6672 lt_prog_compiler_no_builtin_flag=
6674 if test "$GCC" = yes; then
6675 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 lt_cv_prog_compiler_rtti_exceptions=no
6684 ac_outfile=conftest.$ac_objext
6685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6686 lt_compiler_flag="-fno-rtti -fno-exceptions"
6687 # Insert the option either (1) after the last *FLAGS variable, or
6688 # (2) before a word containing "conftest.", or (3) at the end.
6689 # Note that $ac_compile itself does not contain backslashes and begins
6690 # with a dollar sign (not a hyphen), so the echo should work correctly.
6691 # The option is referenced via a variable to avoid confusing sed.
6692 lt_compile=`echo "$ac_compile" | $SED \
6693 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6695 -e 's:$: $lt_compiler_flag:'`
6696 (eval echo "\"\$as_me:6696: $lt_compile\"" >&5)
6697 (eval "$lt_compile" 2>conftest.err)
6698 ac_status=$?
6699 cat conftest.err >&5
6700 echo "$as_me:6700: \$? = $ac_status" >&5
6701 if (exit $ac_status) && test -s "$ac_outfile"; then
6702 # The compiler can only warn and ignore the option if not recognized
6703 # So say no if there are warnings
6704 if test ! -s conftest.err; then
6705 lt_cv_prog_compiler_rtti_exceptions=yes
6708 $rm conftest*
6711 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6712 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6714 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6715 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6716 else
6722 lt_prog_compiler_wl=
6723 lt_prog_compiler_pic=
6724 lt_prog_compiler_static=
6726 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6727 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6729 if test "$GCC" = yes; then
6730 lt_prog_compiler_wl='-Wl,'
6731 lt_prog_compiler_static='-static'
6733 case $host_os in
6734 aix*)
6735 # All AIX code is PIC.
6736 if test "$host_cpu" = ia64; then
6737 # AIX 5 now supports IA64 processor
6738 lt_prog_compiler_static='-Bstatic'
6742 amigaos*)
6743 # FIXME: we need at least 68020 code to build shared libraries, but
6744 # adding the `-m68020' flag to GCC prevents building anything better,
6745 # like `-m68040'.
6746 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6749 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6750 # PIC is the default for these OSes.
6753 mingw* | pw32* | os2*)
6754 # This hack is so that the source file can tell whether it is being
6755 # built for inclusion in a dll (and should export symbols for example).
6756 lt_prog_compiler_pic='-DDLL_EXPORT'
6759 darwin* | rhapsody*)
6760 # PIC is the default on this platform
6761 # Common symbols not allowed in MH_DYLIB files
6762 lt_prog_compiler_pic='-fno-common'
6765 msdosdjgpp*)
6766 # Just because we use GCC doesn't mean we suddenly get shared libraries
6767 # on systems that don't support them.
6768 lt_prog_compiler_can_build_shared=no
6769 enable_shared=no
6772 sysv4*MP*)
6773 if test -d /usr/nec; then
6774 lt_prog_compiler_pic=-Kconform_pic
6778 hpux*)
6779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6780 # not for PA HP-UX.
6781 case "$host_cpu" in
6782 hppa*64*|ia64*)
6783 # +Z the default
6786 lt_prog_compiler_pic='-fPIC'
6788 esac
6792 lt_prog_compiler_pic='-fPIC'
6794 esac
6795 else
6796 # PORTME Check for flag to pass linker flags through the system compiler.
6797 case $host_os in
6798 aix*)
6799 lt_prog_compiler_wl='-Wl,'
6800 if test "$host_cpu" = ia64; then
6801 # AIX 5 now supports IA64 processor
6802 lt_prog_compiler_static='-Bstatic'
6803 else
6804 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6807 darwin*)
6808 # PIC is the default on this platform
6809 # Common symbols not allowed in MH_DYLIB files
6810 case "$cc_basename" in
6811 xlc*)
6812 lt_prog_compiler_pic='-qnocommon'
6813 lt_prog_compiler_wl='-Wl,'
6815 esac
6818 mingw* | pw32* | os2*)
6819 # This hack is so that the source file can tell whether it is being
6820 # built for inclusion in a dll (and should export symbols for example).
6821 lt_prog_compiler_pic='-DDLL_EXPORT'
6824 hpux9* | hpux10* | hpux11*)
6825 lt_prog_compiler_wl='-Wl,'
6826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6827 # not for PA HP-UX.
6828 case "$host_cpu" in
6829 hppa*64*|ia64*)
6830 # +Z the default
6833 lt_prog_compiler_pic='+Z'
6835 esac
6836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6837 lt_prog_compiler_static='${wl}-a ${wl}archive'
6840 irix5* | irix6* | nonstopux*)
6841 lt_prog_compiler_wl='-Wl,'
6842 # PIC (with -KPIC) is the default.
6843 lt_prog_compiler_static='-non_shared'
6846 newsos6)
6847 lt_prog_compiler_pic='-KPIC'
6848 lt_prog_compiler_static='-Bstatic'
6851 linux*)
6852 case $CC in
6853 icc* | ecc*)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_pic='-KPIC'
6856 lt_prog_compiler_static='-static'
6858 ccc*)
6859 lt_prog_compiler_wl='-Wl,'
6860 # All Alpha code is PIC.
6861 lt_prog_compiler_static='-non_shared'
6863 esac
6866 osf3* | osf4* | osf5*)
6867 lt_prog_compiler_wl='-Wl,'
6868 # All OSF/1 code is PIC.
6869 lt_prog_compiler_static='-non_shared'
6872 sco3.2v5*)
6873 lt_prog_compiler_pic='-Kpic'
6874 lt_prog_compiler_static='-dn'
6877 solaris*)
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_pic='-KPIC'
6880 lt_prog_compiler_static='-Bstatic'
6883 sunos4*)
6884 lt_prog_compiler_wl='-Qoption ld '
6885 lt_prog_compiler_pic='-PIC'
6886 lt_prog_compiler_static='-Bstatic'
6889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6890 lt_prog_compiler_wl='-Wl,'
6891 lt_prog_compiler_pic='-KPIC'
6892 lt_prog_compiler_static='-Bstatic'
6895 sysv4*MP*)
6896 if test -d /usr/nec ;then
6897 lt_prog_compiler_pic='-Kconform_pic'
6898 lt_prog_compiler_static='-Bstatic'
6902 uts4*)
6903 lt_prog_compiler_pic='-pic'
6904 lt_prog_compiler_static='-Bstatic'
6908 lt_prog_compiler_can_build_shared=no
6910 esac
6913 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6914 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6917 # Check to make sure the PIC flag actually works.
6919 if test -n "$lt_prog_compiler_pic"; then
6921 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6922 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6923 if test "${lt_prog_compiler_pic_works+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 lt_prog_compiler_pic_works=no
6927 ac_outfile=conftest.$ac_objext
6928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6929 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6930 # Insert the option either (1) after the last *FLAGS variable, or
6931 # (2) before a word containing "conftest.", or (3) at the end.
6932 # Note that $ac_compile itself does not contain backslashes and begins
6933 # with a dollar sign (not a hyphen), so the echo should work correctly.
6934 # The option is referenced via a variable to avoid confusing sed.
6935 lt_compile=`echo "$ac_compile" | $SED \
6936 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6938 -e 's:$: $lt_compiler_flag:'`
6939 (eval echo "\"\$as_me:6939: $lt_compile\"" >&5)
6940 (eval "$lt_compile" 2>conftest.err)
6941 ac_status=$?
6942 cat conftest.err >&5
6943 echo "$as_me:6943: \$? = $ac_status" >&5
6944 if (exit $ac_status) && test -s "$ac_outfile"; then
6945 # The compiler can only warn and ignore the option if not recognized
6946 # So say no if there are warnings
6947 if test ! -s conftest.err; then
6948 lt_prog_compiler_pic_works=yes
6951 $rm conftest*
6954 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6955 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6957 if test x"$lt_prog_compiler_pic_works" = xyes; then
6958 case $lt_prog_compiler_pic in
6959 "" | " "*) ;;
6960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6961 esac
6962 else
6963 lt_prog_compiler_pic=
6964 lt_prog_compiler_can_build_shared=no
6968 case "$host_os" in
6969 # For platforms which do not support PIC, -DPIC is meaningless:
6970 *djgpp*)
6971 lt_prog_compiler_pic=
6974 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6976 esac
6978 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6979 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6980 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 lt_cv_prog_compiler_c_o=no
6984 $rm -r conftest 2>/dev/null
6985 mkdir conftest
6986 cd conftest
6987 mkdir out
6988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6990 lt_compiler_flag="-o out/conftest2.$ac_objext"
6991 # Insert the option either (1) after the last *FLAGS variable, or
6992 # (2) before a word containing "conftest.", or (3) at the end.
6993 # Note that $ac_compile itself does not contain backslashes and begins
6994 # with a dollar sign (not a hyphen), so the echo should work correctly.
6995 lt_compile=`echo "$ac_compile" | $SED \
6996 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6998 -e 's:$: $lt_compiler_flag:'`
6999 (eval echo "\"\$as_me:6999: $lt_compile\"" >&5)
7000 (eval "$lt_compile" 2>out/conftest.err)
7001 ac_status=$?
7002 cat out/conftest.err >&5
7003 echo "$as_me:7003: \$? = $ac_status" >&5
7004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7005 then
7006 # The compiler can only warn and ignore the option if not recognized
7007 # So say no if there are warnings
7008 if test ! -s out/conftest.err; then
7009 lt_cv_prog_compiler_c_o=yes
7012 chmod u+w .
7013 $rm conftest*
7014 # SGI C++ compiler will create directory out/ii_files/ for
7015 # template instantiation
7016 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7017 $rm out/* && rmdir out
7018 cd ..
7019 rmdir conftest
7020 $rm conftest*
7023 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7024 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7027 hard_links="nottested"
7028 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7029 # do not overwrite the value of need_locks provided by the user
7030 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7031 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7032 hard_links=yes
7033 $rm conftest*
7034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7035 touch conftest.a
7036 ln conftest.a conftest.b 2>&5 || hard_links=no
7037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7038 echo "$as_me:$LINENO: result: $hard_links" >&5
7039 echo "${ECHO_T}$hard_links" >&6
7040 if test "$hard_links" = no; then
7041 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7042 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7043 need_locks=warn
7045 else
7046 need_locks=no
7049 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7052 runpath_var=
7053 allow_undefined_flag=
7054 enable_shared_with_static_runtimes=no
7055 archive_cmds=
7056 archive_expsym_cmds=
7057 old_archive_From_new_cmds=
7058 old_archive_from_expsyms_cmds=
7059 export_dynamic_flag_spec=
7060 whole_archive_flag_spec=
7061 thread_safe_flag_spec=
7062 hardcode_libdir_flag_spec=
7063 hardcode_libdir_flag_spec_ld=
7064 hardcode_libdir_separator=
7065 hardcode_direct=no
7066 hardcode_minus_L=no
7067 hardcode_shlibpath_var=unsupported
7068 link_all_deplibs=unknown
7069 hardcode_automatic=no
7070 module_cmds=
7071 module_expsym_cmds=
7072 always_export_symbols=no
7073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7074 # include_expsyms should be a list of space-separated symbols to be *always*
7075 # included in the symbol list
7076 include_expsyms=
7077 # exclude_expsyms can be an extended regexp of symbols to exclude
7078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7080 # as well as any symbol that contains `d'.
7081 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7083 # platforms (ab)use it in PIC code, but their linkers get confused if
7084 # the symbol is explicitly referenced. Since portable code cannot
7085 # rely on this symbol name, it's probably fine to never include it in
7086 # preloaded symbol tables.
7087 extract_expsyms_cmds=
7089 case $host_os in
7090 cygwin* | mingw* | pw32*)
7091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7092 # When not using gcc, we currently assume that we are using
7093 # Microsoft Visual C++.
7094 if test "$GCC" != yes; then
7095 with_gnu_ld=no
7098 openbsd*)
7099 with_gnu_ld=no
7101 esac
7103 ld_shlibs=yes
7104 if test "$with_gnu_ld" = yes; then
7105 # If archive_cmds runs LD, not CC, wlarc should be empty
7106 wlarc='${wl}'
7108 # See if GNU ld supports shared libraries.
7109 case $host_os in
7110 aix3* | aix4* | aix5*)
7111 # On AIX/PPC, the GNU linker is very broken
7112 if test "$host_cpu" != ia64; then
7113 ld_shlibs=no
7114 cat <<EOF 1>&2
7116 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7117 *** to be unable to reliably create shared libraries on AIX.
7118 *** Therefore, libtool is disabling shared libraries support. If you
7119 *** really care for shared libraries, you may want to modify your PATH
7120 *** so that a non-GNU linker is found, and then restart.
7126 amigaos*)
7127 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)'
7128 hardcode_libdir_flag_spec='-L$libdir'
7129 hardcode_minus_L=yes
7131 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7132 # that the semantics of dynamic libraries on AmigaOS, at least up
7133 # to version 4, is to share data among multiple programs linked
7134 # with the same dynamic library. Since this doesn't match the
7135 # behavior of shared libraries on other platforms, we can't use
7136 # them.
7137 ld_shlibs=no
7140 beos*)
7141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7142 allow_undefined_flag=unsupported
7143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7144 # support --undefined. This deserves some investigation. FIXME
7145 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7146 else
7147 ld_shlibs=no
7151 cygwin* | mingw* | pw32*)
7152 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7153 # as there is no search path for DLLs.
7154 hardcode_libdir_flag_spec='-L$libdir'
7155 allow_undefined_flag=unsupported
7156 always_export_symbols=no
7157 enable_shared_with_static_runtimes=yes
7158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7160 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7162 # If the export-symbols file already is a .def file (1st line
7163 # is EXPORTS), use it as is; otherwise, prepend...
7164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7165 cp $export_symbols $output_objdir/$soname.def;
7166 else
7167 echo EXPORTS > $output_objdir/$soname.def;
7168 cat $export_symbols >> $output_objdir/$soname.def;
7170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7171 else
7172 ld_shlibs=no
7176 netbsd*)
7177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7179 wlarc=
7180 else
7181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7186 solaris* | sysv5*)
7187 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7188 ld_shlibs=no
7189 cat <<EOF 1>&2
7191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7192 *** create shared libraries on Solaris systems. Therefore, libtool
7193 *** is disabling shared libraries support. We urge you to upgrade GNU
7194 *** binutils to release 2.9.1 or newer. Another option is to modify
7195 *** your PATH or compiler configuration so that the native linker is
7196 *** used, and then restart.
7199 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7202 else
7203 ld_shlibs=no
7207 sunos4*)
7208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7209 wlarc=
7210 hardcode_direct=yes
7211 hardcode_shlibpath_var=no
7214 linux*)
7215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7216 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7217 archive_cmds="$tmp_archive_cmds"
7218 supports_anon_versioning=no
7219 case `$LD -v 2>/dev/null` in
7220 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7221 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7222 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7223 *\ 2.11.*) ;; # other 2.11 versions
7224 *) supports_anon_versioning=yes ;;
7225 esac
7226 if test $supports_anon_versioning = yes; then
7227 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7229 $echo "local: *; };" >> $output_objdir/$libname.ver~
7230 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7231 else
7232 archive_expsym_cmds="$tmp_archive_cmds"
7234 else
7235 ld_shlibs=no
7240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7243 else
7244 ld_shlibs=no
7247 esac
7249 if test "$ld_shlibs" = yes; then
7250 runpath_var=LD_RUN_PATH
7251 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7252 export_dynamic_flag_spec='${wl}--export-dynamic'
7253 # ancient GNU ld didn't support --whole-archive et. al.
7254 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7255 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7256 else
7257 whole_archive_flag_spec=
7260 else
7261 # PORTME fill in a description of your system's linker (not GNU ld)
7262 case $host_os in
7263 aix3*)
7264 allow_undefined_flag=unsupported
7265 always_export_symbols=yes
7266 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'
7267 # Note: this linker hardcodes the directories in LIBPATH if there
7268 # are no directories specified by -L.
7269 hardcode_minus_L=yes
7270 if test "$GCC" = yes && test -z "$link_static_flag"; then
7271 # Neither direct hardcoding nor static linking is supported with a
7272 # broken collect2.
7273 hardcode_direct=unsupported
7277 aix4* | aix5*)
7278 if test "$host_cpu" = ia64; then
7279 # On IA64, the linker does run time linking by default, so we don't
7280 # have to do anything special.
7281 aix_use_runtimelinking=no
7282 exp_sym_flag='-Bexport'
7283 no_entry_flag=""
7284 else
7285 # If we're using GNU nm, then we don't want the "-C" option.
7286 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7287 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7288 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'
7289 else
7290 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'
7292 aix_use_runtimelinking=no
7294 # Test if we are trying to use run time linking or normal
7295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7296 # need to do runtime linking.
7297 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7298 for ld_flag in $LDFLAGS; do
7299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7300 aix_use_runtimelinking=yes
7301 break
7303 done
7304 esac
7306 exp_sym_flag='-bexport'
7307 no_entry_flag='-bnoentry'
7310 # When large executables or shared objects are built, AIX ld can
7311 # have problems creating the table of contents. If linking a library
7312 # or program results in "error TOC overflow" add -mminimal-toc to
7313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7316 archive_cmds=''
7317 hardcode_direct=yes
7318 hardcode_libdir_separator=':'
7319 link_all_deplibs=yes
7321 if test "$GCC" = yes; then
7322 case $host_os in aix4.012|aix4.012.*)
7323 # We only want to do this on AIX 4.2 and lower, the check
7324 # below for broken collect2 doesn't work under 4.3+
7325 collect2name=`${CC} -print-prog-name=collect2`
7326 if test -f "$collect2name" && \
7327 strings "$collect2name" | grep resolve_lib_name >/dev/null
7328 then
7329 # We have reworked collect2
7330 hardcode_direct=yes
7331 else
7332 # We have old collect2
7333 hardcode_direct=unsupported
7334 # It fails to find uninstalled libraries when the uninstalled
7335 # path is not listed in the libpath. Setting hardcode_minus_L
7336 # to unsupported forces relinking
7337 hardcode_minus_L=yes
7338 hardcode_libdir_flag_spec='-L$libdir'
7339 hardcode_libdir_separator=
7341 esac
7342 shared_flag='-shared'
7343 else
7344 # not using gcc
7345 if test "$host_cpu" = ia64; then
7346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7347 # chokes on -Wl,-G. The following line is correct:
7348 shared_flag='-G'
7349 else
7350 if test "$aix_use_runtimelinking" = yes; then
7351 shared_flag='${wl}-G'
7352 else
7353 shared_flag='${wl}-bM:SRE'
7358 # It seems that -bexpall does not export symbols beginning with
7359 # underscore (_), so it is better to generate a list of symbols to export.
7360 always_export_symbols=yes
7361 if test "$aix_use_runtimelinking" = yes; then
7362 # Warning - without using the other runtime loading flags (-brtl),
7363 # -berok will link without error, but may produce a broken library.
7364 allow_undefined_flag='-berok'
7365 # Determine the default libpath from the value encoded in an empty executable.
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7374 main ()
7378 return 0;
7380 _ACEOF
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7406 # Check for a 64-bit object if we didn't find anything.
7407 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; }
7408 }'`; fi
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7414 rm -f conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
7416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7418 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7419 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7420 else
7421 if test "$host_cpu" = ia64; then
7422 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7423 allow_undefined_flag="-z nodefs"
7424 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7425 else
7426 # Determine the default libpath from the value encoded in an empty executable.
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7435 main ()
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest$ac_exeext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7467 # Check for a 64-bit object if we didn't find anything.
7468 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; }
7469 }'`; fi
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7475 rm -f conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7480 # Warning - without using the other run time loading flags,
7481 # -berok will link without error, but may produce a broken library.
7482 no_undefined_flag=' ${wl}-bernotok'
7483 allow_undefined_flag=' ${wl}-berok'
7484 # -bexpall does not export symbols beginning with underscore (_)
7485 always_export_symbols=yes
7486 # Exported symbols can be pulled into shared objects from archives
7487 whole_archive_flag_spec=' '
7488 archive_cmds_need_lc=yes
7489 # This is similar to how AIX traditionally builds it's shared libraries.
7490 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7495 amigaos*)
7496 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)'
7497 hardcode_libdir_flag_spec='-L$libdir'
7498 hardcode_minus_L=yes
7499 # see comment about different semantics on the GNU ld section
7500 ld_shlibs=no
7503 bsdi[45]*)
7504 export_dynamic_flag_spec=-rdynamic
7507 cygwin* | mingw* | pw32*)
7508 # When not using gcc, we currently assume that we are using
7509 # Microsoft Visual C++.
7510 # hardcode_libdir_flag_spec is actually meaningless, as there is
7511 # no search path for DLLs.
7512 hardcode_libdir_flag_spec=' '
7513 allow_undefined_flag=unsupported
7514 # Tell ltmain to make .lib files, not .a files.
7515 libext=lib
7516 # Tell ltmain to make .dll files, not .so files.
7517 shrext_cmds=".dll"
7518 # FIXME: Setting linknames here is a bad hack.
7519 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7520 # The linker will automatically build a .lib file if we build a DLL.
7521 old_archive_From_new_cmds='true'
7522 # FIXME: Should let the user specify the lib program.
7523 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7524 fix_srcfile_path='`cygpath -w "$srcfile"`'
7525 enable_shared_with_static_runtimes=yes
7528 darwin* | rhapsody*)
7529 case "$host_os" in
7530 rhapsody* | darwin1.[012])
7531 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7533 *) # Darwin 1.3 on
7534 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7535 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7536 else
7537 case ${MACOSX_DEPLOYMENT_TARGET} in
7538 10.[012])
7539 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7541 10.*)
7542 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7544 esac
7547 esac
7548 archive_cmds_need_lc=no
7549 hardcode_direct=no
7550 hardcode_automatic=yes
7551 hardcode_shlibpath_var=unsupported
7552 whole_archive_flag_spec=''
7553 link_all_deplibs=yes
7554 if test "$GCC" = yes ; then
7555 output_verbose_link_cmd='echo'
7556 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7557 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7558 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7559 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}'
7560 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}'
7561 else
7562 case "$cc_basename" in
7563 xlc*)
7564 output_verbose_link_cmd='echo'
7565 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7566 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7568 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}'
7569 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}'
7572 ld_shlibs=no
7574 esac
7578 dgux*)
7579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_libdir_flag_spec='-L$libdir'
7581 hardcode_shlibpath_var=no
7584 freebsd1*)
7585 ld_shlibs=no
7588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7589 # support. Future versions do this automatically, but an explicit c++rt0.o
7590 # does not break anything, and helps significantly (at the cost of a little
7591 # extra space).
7592 freebsd2.2*)
7593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7594 hardcode_libdir_flag_spec='-R$libdir'
7595 hardcode_direct=yes
7596 hardcode_shlibpath_var=no
7599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7600 freebsd2*)
7601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7602 hardcode_direct=yes
7603 hardcode_minus_L=yes
7604 hardcode_shlibpath_var=no
7607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7608 freebsd* | kfreebsd*-gnu)
7609 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7610 hardcode_libdir_flag_spec='-R$libdir'
7611 hardcode_direct=yes
7612 hardcode_shlibpath_var=no
7615 hpux9*)
7616 if test "$GCC" = yes; then
7617 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'
7618 else
7619 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'
7621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7622 hardcode_libdir_separator=:
7623 hardcode_direct=yes
7625 # hardcode_minus_L: Not really in the search PATH,
7626 # but as the default location of the library.
7627 hardcode_minus_L=yes
7628 export_dynamic_flag_spec='${wl}-E'
7631 hpux10* | hpux11*)
7632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7633 case "$host_cpu" in
7634 hppa*64*|ia64*)
7635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7640 esac
7641 else
7642 case "$host_cpu" in
7643 hppa*64*|ia64*)
7644 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7649 esac
7651 if test "$with_gnu_ld" = no; then
7652 case "$host_cpu" in
7653 hppa*64*)
7654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7655 hardcode_libdir_flag_spec_ld='+b $libdir'
7656 hardcode_libdir_separator=:
7657 hardcode_direct=no
7658 hardcode_shlibpath_var=no
7660 ia64*)
7661 hardcode_libdir_flag_spec='-L$libdir'
7662 hardcode_direct=no
7663 hardcode_shlibpath_var=no
7665 # hardcode_minus_L: Not really in the search PATH,
7666 # but as the default location of the library.
7667 hardcode_minus_L=yes
7670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7671 hardcode_libdir_separator=:
7672 hardcode_direct=yes
7673 export_dynamic_flag_spec='${wl}-E'
7675 # hardcode_minus_L: Not really in the search PATH,
7676 # but as the default location of the library.
7677 hardcode_minus_L=yes
7679 esac
7683 irix5* | irix6* | nonstopux*)
7684 if test "$GCC" = yes; then
7685 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'
7686 else
7687 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'
7688 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 hardcode_libdir_separator=:
7692 link_all_deplibs=yes
7695 netbsd*)
7696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7698 else
7699 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7701 hardcode_libdir_flag_spec='-R$libdir'
7702 hardcode_direct=yes
7703 hardcode_shlibpath_var=no
7706 newsos6)
7707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7708 hardcode_direct=yes
7709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7710 hardcode_libdir_separator=:
7711 hardcode_shlibpath_var=no
7714 openbsd*)
7715 hardcode_direct=yes
7716 hardcode_shlibpath_var=no
7717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7719 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7721 export_dynamic_flag_spec='${wl}-E'
7722 else
7723 case $host_os in
7724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7726 hardcode_libdir_flag_spec='-R$libdir'
7729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7732 esac
7736 os2*)
7737 hardcode_libdir_flag_spec='-L$libdir'
7738 hardcode_minus_L=yes
7739 allow_undefined_flag=unsupported
7740 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'
7741 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7744 osf3*)
7745 if test "$GCC" = yes; then
7746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7747 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'
7748 else
7749 allow_undefined_flag=' -expect_unresolved \*'
7750 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'
7752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7753 hardcode_libdir_separator=:
7756 osf4* | osf5*) # as osf3* with the addition of -msym flag
7757 if test "$GCC" = yes; then
7758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7759 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'
7760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7761 else
7762 allow_undefined_flag=' -expect_unresolved \*'
7763 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'
7764 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7765 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7767 # Both c and cxx compiler support -rpath directly
7768 hardcode_libdir_flag_spec='-rpath $libdir'
7770 hardcode_libdir_separator=:
7773 sco3.2v5*)
7774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_shlibpath_var=no
7776 export_dynamic_flag_spec='${wl}-Bexport'
7777 runpath_var=LD_RUN_PATH
7778 hardcode_runpath_var=yes
7781 solaris*)
7782 no_undefined_flag=' -z text'
7783 if test "$GCC" = yes; then
7784 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7786 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7787 else
7788 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7792 hardcode_libdir_flag_spec='-R$libdir'
7793 hardcode_shlibpath_var=no
7794 case $host_os in
7795 solaris2.[0-5] | solaris2.[0-5].*) ;;
7796 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7798 esac
7799 link_all_deplibs=yes
7802 sunos4*)
7803 if test "x$host_vendor" = xsequent; then
7804 # Use $CC to link under sequent, because it throws in some extra .o
7805 # files that make .init and .fini sections work.
7806 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7807 else
7808 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7810 hardcode_libdir_flag_spec='-L$libdir'
7811 hardcode_direct=yes
7812 hardcode_minus_L=yes
7813 hardcode_shlibpath_var=no
7816 sysv4)
7817 case $host_vendor in
7818 sni)
7819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820 hardcode_direct=yes # is this really true???
7822 siemens)
7823 ## LD is ld it makes a PLAMLIB
7824 ## CC just makes a GrossModule.
7825 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7826 reload_cmds='$CC -r -o $output$reload_objs'
7827 hardcode_direct=no
7829 motorola)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7833 esac
7834 runpath_var='LD_RUN_PATH'
7835 hardcode_shlibpath_var=no
7838 sysv4.3*)
7839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7840 hardcode_shlibpath_var=no
7841 export_dynamic_flag_spec='-Bexport'
7844 sysv4*MP*)
7845 if test -d /usr/nec; then
7846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_shlibpath_var=no
7848 runpath_var=LD_RUN_PATH
7849 hardcode_runpath_var=yes
7850 ld_shlibs=yes
7854 sysv4.2uw2*)
7855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7856 hardcode_direct=yes
7857 hardcode_minus_L=no
7858 hardcode_shlibpath_var=no
7859 hardcode_runpath_var=yes
7860 runpath_var=LD_RUN_PATH
7863 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7864 no_undefined_flag='${wl}-z ${wl}text'
7865 if test "$GCC" = yes; then
7866 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7867 else
7868 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7870 runpath_var='LD_RUN_PATH'
7871 hardcode_shlibpath_var=no
7874 sysv5*)
7875 no_undefined_flag=' -z text'
7876 # $CC -shared without GNU ld will not create a library from C++
7877 # object files and a static libstdc++, better avoid it by now
7878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7879 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7881 hardcode_libdir_flag_spec=
7882 hardcode_shlibpath_var=no
7883 runpath_var='LD_RUN_PATH'
7886 uts4*)
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 hardcode_shlibpath_var=no
7893 ld_shlibs=no
7895 esac
7898 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7899 echo "${ECHO_T}$ld_shlibs" >&6
7900 test "$ld_shlibs" = no && can_build_shared=no
7902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7903 if test "$GCC" = yes; then
7904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7908 # Do we need to explicitly link libc?
7910 case "x$archive_cmds_need_lc" in
7911 x|xyes)
7912 # Assume -lc should be added
7913 archive_cmds_need_lc=yes
7915 if test "$enable_shared" = yes && test "$GCC" = yes; then
7916 case $archive_cmds in
7917 *'~'*)
7918 # FIXME: we may have to deal with multi-command sequences.
7920 '$CC '*)
7921 # Test whether the compiler implicitly links with -lc since on some
7922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7923 # to ld, don't add -lc before -lgcc.
7924 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7925 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7926 $rm conftest*
7927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } 2>conftest.err; then
7934 soname=conftest
7935 lib=conftest
7936 libobjs=conftest.$ac_objext
7937 deplibs=
7938 wl=$lt_prog_compiler_wl
7939 compiler_flags=-v
7940 linker_flags=-v
7941 verstring=
7942 output_objdir=.
7943 libname=conftest
7944 lt_save_allow_undefined_flag=$allow_undefined_flag
7945 allow_undefined_flag=
7946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7947 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }
7951 then
7952 archive_cmds_need_lc=no
7953 else
7954 archive_cmds_need_lc=yes
7956 allow_undefined_flag=$lt_save_allow_undefined_flag
7957 else
7958 cat conftest.err 1>&5
7960 $rm conftest*
7961 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7962 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7964 esac
7967 esac
7969 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7971 library_names_spec=
7972 libname_spec='lib$name'
7973 soname_spec=
7974 shrext_cmds=".so"
7975 postinstall_cmds=
7976 postuninstall_cmds=
7977 finish_cmds=
7978 finish_eval=
7979 shlibpath_var=
7980 shlibpath_overrides_runpath=unknown
7981 version_type=none
7982 dynamic_linker="$host_os ld.so"
7983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7984 if test "$GCC" = yes; then
7985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7987 # if the path contains ";" then we assume it to be the separator
7988 # otherwise default to the standard path separator (i.e. ":") - it is
7989 # assumed that no part of a normal pathname contains ";" but that should
7990 # okay in the real world where ";" in dirpaths is itself problematic.
7991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7992 else
7993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7995 else
7996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7998 need_lib_prefix=unknown
7999 hardcode_into_libs=no
8001 # when you set need_version to no, make sure it does not cause -set_version
8002 # flags to be left without arguments
8003 need_version=unknown
8005 case $host_os in
8006 aix3*)
8007 version_type=linux
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8009 shlibpath_var=LIBPATH
8011 # AIX 3 has no versioning support, so we append a major version to the name.
8012 soname_spec='${libname}${release}${shared_ext}$major'
8015 aix4* | aix5*)
8016 version_type=linux
8017 need_lib_prefix=no
8018 need_version=no
8019 hardcode_into_libs=yes
8020 if test "$host_cpu" = ia64; then
8021 # AIX 5 supports IA64
8022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8023 shlibpath_var=LD_LIBRARY_PATH
8024 else
8025 # With GCC up to 2.95.x, collect2 would create an import file
8026 # for dependence libraries. The import file would start with
8027 # the line `#! .'. This would cause the generated library to
8028 # depend on `.', always an invalid library. This was fixed in
8029 # development snapshots of GCC prior to 3.0.
8030 case $host_os in
8031 aix4 | aix4.[01] | aix4.[01].*)
8032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8033 echo ' yes '
8034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8036 else
8037 can_build_shared=no
8040 esac
8041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8042 # soname into executable. Probably we can add versioning support to
8043 # collect2, so additional links can be useful in future.
8044 if test "$aix_use_runtimelinking" = yes; then
8045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8046 # instead of lib<name>.a to let people know that these are not
8047 # typical AIX shared libraries.
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049 else
8050 # We preserve .a as extension for shared libraries through AIX4.2
8051 # and later when we are not doing run time linking.
8052 library_names_spec='${libname}${release}.a $libname.a'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8055 shlibpath_var=LIBPATH
8059 amigaos*)
8060 library_names_spec='$libname.ixlibrary $libname.a'
8061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8062 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'
8065 beos*)
8066 library_names_spec='${libname}${shared_ext}'
8067 dynamic_linker="$host_os ld.so"
8068 shlibpath_var=LIBRARY_PATH
8071 bsdi[45]*)
8072 version_type=linux
8073 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8080 # the default ld.so.conf also contains /usr/contrib/lib and
8081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8082 # libtool to hard-code these into programs
8085 cygwin* | mingw* | pw32*)
8086 version_type=windows
8087 shrext_cmds=".dll"
8088 need_version=no
8089 need_lib_prefix=no
8091 case $GCC,$host_os in
8092 yes,cygwin* | yes,mingw* | yes,pw32*)
8093 library_names_spec='$libname.dll.a'
8094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8095 postinstall_cmds='base_file=`basename \${file}`~
8096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8097 dldir=$destdir/`dirname \$dlpath`~
8098 test -d \$dldir || mkdir -p \$dldir~
8099 $install_prog $dir/$dlname \$dldir/$dlname'
8100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8101 dlpath=$dir/\$dldll~
8102 $rm \$dlpath'
8103 shlibpath_overrides_runpath=yes
8105 case $host_os in
8106 cygwin*)
8107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8109 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8111 mingw*)
8112 # MinGW DLLs use traditional 'lib' prefix
8113 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8114 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8115 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8116 # It is most probably a Windows format PATH printed by
8117 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8118 # path with ; separators, and with drive letters. We can handle the
8119 # drive letters (cygwin fileutils understands them), so leave them,
8120 # especially as we might pass files found there to a mingw objdump,
8121 # which wouldn't understand a cygwinified path. Ahh.
8122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8123 else
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8127 pw32*)
8128 # pw32 DLLs use 'pw' prefix rather than 'lib'
8129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8131 esac
8135 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8137 esac
8138 dynamic_linker='Win32 ld.exe'
8139 # FIXME: first we should search . and the directory the executable is in
8140 shlibpath_var=PATH
8143 darwin* | rhapsody*)
8144 dynamic_linker="$host_os dyld"
8145 version_type=darwin
8146 need_lib_prefix=no
8147 need_version=no
8148 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8149 soname_spec='${libname}${release}${major}$shared_ext'
8150 shlibpath_overrides_runpath=yes
8151 shlibpath_var=DYLD_LIBRARY_PATH
8152 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8153 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8154 if test "$GCC" = yes; then
8155 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"`
8156 else
8157 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8162 dgux*)
8163 version_type=linux
8164 need_lib_prefix=no
8165 need_version=no
8166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8167 soname_spec='${libname}${release}${shared_ext}$major'
8168 shlibpath_var=LD_LIBRARY_PATH
8171 freebsd1*)
8172 dynamic_linker=no
8175 kfreebsd*-gnu)
8176 version_type=linux
8177 need_lib_prefix=no
8178 need_version=no
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8180 soname_spec='${libname}${release}${shared_ext}$major'
8181 shlibpath_var=LD_LIBRARY_PATH
8182 shlibpath_overrides_runpath=no
8183 hardcode_into_libs=yes
8184 dynamic_linker='GNU ld.so'
8187 freebsd*)
8188 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8189 version_type=freebsd-$objformat
8190 case $version_type in
8191 freebsd-elf*)
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8193 need_version=no
8194 need_lib_prefix=no
8196 freebsd-*)
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8198 need_version=yes
8200 esac
8201 shlibpath_var=LD_LIBRARY_PATH
8202 case $host_os in
8203 freebsd2*)
8204 shlibpath_overrides_runpath=yes
8206 freebsd3.01* | freebsdelf3.01*)
8207 shlibpath_overrides_runpath=yes
8208 hardcode_into_libs=yes
8210 *) # from 3.2 on
8211 shlibpath_overrides_runpath=no
8212 hardcode_into_libs=yes
8214 esac
8217 gnu*)
8218 version_type=linux
8219 need_lib_prefix=no
8220 need_version=no
8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8222 soname_spec='${libname}${release}${shared_ext}$major'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 hardcode_into_libs=yes
8227 hpux9* | hpux10* | hpux11*)
8228 # Give a soname corresponding to the major version so that dld.sl refuses to
8229 # link against other versions.
8230 version_type=sunos
8231 need_lib_prefix=no
8232 need_version=no
8233 case "$host_cpu" in
8234 ia64*)
8235 shrext_cmds='.so'
8236 hardcode_into_libs=yes
8237 dynamic_linker="$host_os dld.so"
8238 shlibpath_var=LD_LIBRARY_PATH
8239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241 soname_spec='${libname}${release}${shared_ext}$major'
8242 if test "X$HPUX_IA64_MODE" = X32; then
8243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8244 else
8245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8249 hppa*64*)
8250 shrext_cmds='.sl'
8251 hardcode_into_libs=yes
8252 dynamic_linker="$host_os dld.sl"
8253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256 soname_spec='${libname}${release}${shared_ext}$major'
8257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8261 shrext_cmds='.sl'
8262 dynamic_linker="$host_os dld.sl"
8263 shlibpath_var=SHLIB_PATH
8264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266 soname_spec='${libname}${release}${shared_ext}$major'
8268 esac
8269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8270 postinstall_cmds='chmod 555 $lib'
8273 irix5* | irix6* | nonstopux*)
8274 case $host_os in
8275 nonstopux*) version_type=nonstopux ;;
8277 if test "$lt_cv_prog_gnu_ld" = yes; then
8278 version_type=linux
8279 else
8280 version_type=irix
8281 fi ;;
8282 esac
8283 need_lib_prefix=no
8284 need_version=no
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8287 case $host_os in
8288 irix5* | nonstopux*)
8289 libsuff= shlibsuff=
8292 case $LD in # libtool.m4 will add one of these switches to LD
8293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8294 libsuff= shlibsuff= libmagic=32-bit;;
8295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8296 libsuff=32 shlibsuff=N32 libmagic=N32;;
8297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8299 *) libsuff= shlibsuff= libmagic=never-match;;
8300 esac
8302 esac
8303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8304 shlibpath_overrides_runpath=no
8305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8307 hardcode_into_libs=yes
8310 # No shared lib support for Linux oldld, aout, or coff.
8311 linux*oldld* | linux*aout* | linux*coff*)
8312 dynamic_linker=no
8315 # This must be Linux ELF.
8316 linux*)
8317 version_type=linux
8318 need_lib_prefix=no
8319 need_version=no
8320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321 soname_spec='${libname}${release}${shared_ext}$major'
8322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8323 shlibpath_var=LD_LIBRARY_PATH
8324 shlibpath_overrides_runpath=no
8325 # This implies no fast_install, which is unacceptable.
8326 # Some rework will be needed to allow for fast_install
8327 # before this can be enabled.
8328 hardcode_into_libs=yes
8330 # Append ld.so.conf contents to the search path
8331 if test -f /etc/ld.so.conf; then
8332 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8336 # We used to test for /lib/ld.so.1 and disable shared libraries on
8337 # powerpc, because MkLinux only supported shared libraries with the
8338 # GNU dynamic linker. Since this was broken with cross compilers,
8339 # most powerpc-linux boxes support dynamic linking these days and
8340 # people can always --disable-shared, the test was removed, and we
8341 # assume the GNU/Linux dynamic linker is in use.
8342 dynamic_linker='GNU/Linux ld.so'
8345 knetbsd*-gnu)
8346 version_type=linux
8347 need_lib_prefix=no
8348 need_version=no
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 shlibpath_var=LD_LIBRARY_PATH
8352 shlibpath_overrides_runpath=no
8353 hardcode_into_libs=yes
8354 dynamic_linker='GNU ld.so'
8357 netbsd*)
8358 version_type=sunos
8359 need_lib_prefix=no
8360 need_version=no
8361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8364 dynamic_linker='NetBSD (a.out) ld.so'
8365 else
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 dynamic_linker='NetBSD ld.elf_so'
8370 shlibpath_var=LD_LIBRARY_PATH
8371 shlibpath_overrides_runpath=yes
8372 hardcode_into_libs=yes
8375 newsos6)
8376 version_type=linux
8377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8378 shlibpath_var=LD_LIBRARY_PATH
8379 shlibpath_overrides_runpath=yes
8382 nto-qnx*)
8383 version_type=linux
8384 need_lib_prefix=no
8385 need_version=no
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 shlibpath_overrides_runpath=yes
8392 openbsd*)
8393 version_type=sunos
8394 need_lib_prefix=no
8395 need_version=no
8396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8398 shlibpath_var=LD_LIBRARY_PATH
8399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8400 case $host_os in
8401 openbsd2.[89] | openbsd2.[89].*)
8402 shlibpath_overrides_runpath=no
8405 shlibpath_overrides_runpath=yes
8407 esac
8408 else
8409 shlibpath_overrides_runpath=yes
8413 os2*)
8414 libname_spec='$name'
8415 shrext_cmds=".dll"
8416 need_lib_prefix=no
8417 library_names_spec='$libname${shared_ext} $libname.a'
8418 dynamic_linker='OS/2 ld.exe'
8419 shlibpath_var=LIBPATH
8422 osf3* | osf4* | osf5*)
8423 version_type=osf
8424 need_lib_prefix=no
8425 need_version=no
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 shlibpath_var=LD_LIBRARY_PATH
8429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8433 sco3.2v5*)
8434 version_type=osf
8435 soname_spec='${libname}${release}${shared_ext}$major'
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437 shlibpath_var=LD_LIBRARY_PATH
8440 solaris*)
8441 version_type=linux
8442 need_lib_prefix=no
8443 need_version=no
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 shlibpath_var=LD_LIBRARY_PATH
8447 shlibpath_overrides_runpath=yes
8448 hardcode_into_libs=yes
8449 # ldd complains unless libraries are executable
8450 postinstall_cmds='chmod +x $lib'
8453 sunos4*)
8454 version_type=sunos
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8456 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 shlibpath_overrides_runpath=yes
8459 if test "$with_gnu_ld" = yes; then
8460 need_lib_prefix=no
8462 need_version=yes
8465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8466 version_type=linux
8467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8468 soname_spec='${libname}${release}${shared_ext}$major'
8469 shlibpath_var=LD_LIBRARY_PATH
8470 case $host_vendor in
8471 sni)
8472 shlibpath_overrides_runpath=no
8473 need_lib_prefix=no
8474 export_dynamic_flag_spec='${wl}-Blargedynsym'
8475 runpath_var=LD_RUN_PATH
8477 siemens)
8478 need_lib_prefix=no
8480 motorola)
8481 need_lib_prefix=no
8482 need_version=no
8483 shlibpath_overrides_runpath=no
8484 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8486 esac
8489 sysv4*MP*)
8490 if test -d /usr/nec ;then
8491 version_type=linux
8492 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8493 soname_spec='$libname${shared_ext}.$major'
8494 shlibpath_var=LD_LIBRARY_PATH
8498 uts4*)
8499 version_type=linux
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501 soname_spec='${libname}${release}${shared_ext}$major'
8502 shlibpath_var=LD_LIBRARY_PATH
8506 dynamic_linker=no
8508 esac
8509 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8510 echo "${ECHO_T}$dynamic_linker" >&6
8511 test "$dynamic_linker" = no && can_build_shared=no
8513 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8515 hardcode_action=
8516 if test -n "$hardcode_libdir_flag_spec" || \
8517 test -n "$runpath_var" || \
8518 test "X$hardcode_automatic" = "Xyes" ; then
8520 # We can hardcode non-existant directories.
8521 if test "$hardcode_direct" != no &&
8522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8523 # have to relink, otherwise we might link with an installed library
8524 # when we should be linking with a yet-to-be-installed one
8525 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8526 test "$hardcode_minus_L" != no; then
8527 # Linking always hardcodes the temporary library directory.
8528 hardcode_action=relink
8529 else
8530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8531 hardcode_action=immediate
8533 else
8534 # We cannot hardcode anything, or else we can only hardcode existing
8535 # directories.
8536 hardcode_action=unsupported
8538 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8539 echo "${ECHO_T}$hardcode_action" >&6
8541 if test "$hardcode_action" = relink; then
8542 # Fast installation is not supported
8543 enable_fast_install=no
8544 elif test "$shlibpath_overrides_runpath" = yes ||
8545 test "$enable_shared" = no; then
8546 # Fast installation is not necessary
8547 enable_fast_install=needless
8550 striplib=
8551 old_striplib=
8552 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8553 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8554 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8555 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8556 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8557 echo "$as_me:$LINENO: result: yes" >&5
8558 echo "${ECHO_T}yes" >&6
8559 else
8560 # FIXME - insert some real tests, host_os isn't really good enough
8561 case $host_os in
8562 darwin*)
8563 if test -n "$STRIP" ; then
8564 striplib="$STRIP -x"
8565 echo "$as_me:$LINENO: result: yes" >&5
8566 echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6
8573 echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8576 esac
8579 if test "x$enable_dlopen" != xyes; then
8580 enable_dlopen=unknown
8581 enable_dlopen_self=unknown
8582 enable_dlopen_self_static=unknown
8583 else
8584 lt_cv_dlopen=no
8585 lt_cv_dlopen_libs=
8587 case $host_os in
8588 beos*)
8589 lt_cv_dlopen="load_add_on"
8590 lt_cv_dlopen_libs=
8591 lt_cv_dlopen_self=yes
8594 mingw* | pw32*)
8595 lt_cv_dlopen="LoadLibrary"
8596 lt_cv_dlopen_libs=
8599 cygwin*)
8600 lt_cv_dlopen="dlopen"
8601 lt_cv_dlopen_libs=
8604 darwin*)
8605 # if libdl is installed we need to link against it
8606 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611 ac_check_lib_save_LIBS=$LIBS
8612 LIBS="-ldl $LIBS"
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8620 /* Override any gcc2 internal prototype to avoid an error. */
8621 #ifdef __cplusplus
8622 extern "C"
8623 #endif
8624 /* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8626 char dlopen ();
8628 main ()
8630 dlopen ();
8632 return 0;
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag"
8645 || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_cv_lib_dl_dlopen=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_cv_lib_dl_dlopen=no
8664 rm -f conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8668 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8669 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8670 if test $ac_cv_lib_dl_dlopen = yes; then
8671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8672 else
8674 lt_cv_dlopen="dyld"
8675 lt_cv_dlopen_libs=
8676 lt_cv_dlopen_self=yes
8683 echo "$as_me:$LINENO: checking for shl_load" >&5
8684 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8685 if test "${ac_cv_func_shl_load+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8696 #define shl_load innocuous_shl_load
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char shl_load (); below.
8700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 <limits.h> exists even on freestanding compilers. */
8703 #ifdef __STDC__
8704 # include <limits.h>
8705 #else
8706 # include <assert.h>
8707 #endif
8709 #undef shl_load
8711 /* Override any gcc2 internal prototype to avoid an error. */
8712 #ifdef __cplusplus
8713 extern "C"
8715 #endif
8716 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8718 char shl_load ();
8719 /* The GNU C library defines this for functions which it implements
8720 to always fail with ENOSYS. Some functions are actually named
8721 something starting with __ and the normal name is an alias. */
8722 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8723 choke me
8724 #else
8725 char (*f) () = shl_load;
8726 #endif
8727 #ifdef __cplusplus
8729 #endif
8732 main ()
8734 return f != shl_load;
8736 return 0;
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag"
8749 || test ! -s conftest.err'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; } &&
8755 { ac_try='test -s conftest$ac_exeext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 ac_cv_func_shl_load=yes
8762 else
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 ac_cv_func_shl_load=no
8768 rm -f conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8772 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8773 if test $ac_cv_func_shl_load = yes; then
8774 lt_cv_dlopen="shl_load"
8775 else
8776 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8777 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8778 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 ac_check_lib_save_LIBS=$LIBS
8782 LIBS="-ldld $LIBS"
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8790 /* Override any gcc2 internal prototype to avoid an error. */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8796 char shl_load ();
8798 main ()
8800 shl_load ();
8802 return 0;
8804 _ACEOF
8805 rm -f conftest.$ac_objext conftest$ac_exeext
8806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8807 (eval $ac_link) 2>conftest.er1
8808 ac_status=$?
8809 grep -v '^ *+' conftest.er1 >conftest.err
8810 rm -f conftest.er1
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -z "$ac_c_werror_flag"
8815 || test ! -s conftest.err'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; } &&
8821 { ac_try='test -s conftest$ac_exeext'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8827 ac_cv_lib_dld_shl_load=yes
8828 else
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8832 ac_cv_lib_dld_shl_load=no
8834 rm -f conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LIBS=$ac_check_lib_save_LIBS
8838 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8839 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8840 if test $ac_cv_lib_dld_shl_load = yes; then
8841 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8842 else
8843 echo "$as_me:$LINENO: checking for dlopen" >&5
8844 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8845 if test "${ac_cv_func_dlopen+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8856 #define dlopen innocuous_dlopen
8858 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char dlopen (); below.
8860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8861 <limits.h> exists even on freestanding compilers. */
8863 #ifdef __STDC__
8864 # include <limits.h>
8865 #else
8866 # include <assert.h>
8867 #endif
8869 #undef dlopen
8871 /* Override any gcc2 internal prototype to avoid an error. */
8872 #ifdef __cplusplus
8873 extern "C"
8875 #endif
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878 char dlopen ();
8879 /* The GNU C library defines this for functions which it implements
8880 to always fail with ENOSYS. Some functions are actually named
8881 something starting with __ and the normal name is an alias. */
8882 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8883 choke me
8884 #else
8885 char (*f) () = dlopen;
8886 #endif
8887 #ifdef __cplusplus
8889 #endif
8892 main ()
8894 return f != dlopen;
8896 return 0;
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag"
8909 || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_func_dlopen=yes
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_cv_func_dlopen=no
8928 rm -f conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8932 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8933 if test $ac_cv_func_dlopen = yes; then
8934 lt_cv_dlopen="dlopen"
8935 else
8936 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-ldl $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8956 char dlopen ();
8958 main ()
8960 dlopen ();
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_dl_dlopen=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_lib_dl_dlopen=no
8994 rm -f conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9000 if test $ac_cv_lib_dl_dlopen = yes; then
9001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9002 else
9003 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9004 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9005 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008 ac_check_lib_save_LIBS=$LIBS
9009 LIBS="-lsvld $LIBS"
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 #ifdef __cplusplus
9019 extern "C"
9020 #endif
9021 /* We use char because int might match the return type of a gcc2
9022 builtin and then its argument prototype would still apply. */
9023 char dlopen ();
9025 main ()
9027 dlopen ();
9029 return 0;
9031 _ACEOF
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_svld_dlopen=yes
9055 else
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_lib_svld_dlopen=no
9061 rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9065 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9066 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9067 if test $ac_cv_lib_svld_dlopen = yes; then
9068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9069 else
9070 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9071 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075 ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-ldld $LIBS"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h. */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9084 /* Override any gcc2 internal prototype to avoid an error. */
9085 #ifdef __cplusplus
9086 extern "C"
9087 #endif
9088 /* We use char because int might match the return type of a gcc2
9089 builtin and then its argument prototype would still apply. */
9090 char dld_link ();
9092 main ()
9094 dld_link ();
9096 return 0;
9098 _ACEOF
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101 (eval $ac_link) 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag"
9109 || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_cv_lib_dld_dld_link=yes
9122 else
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_cv_lib_dld_dld_link=no
9128 rm -f conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9133 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9134 if test $ac_cv_lib_dld_dld_link = yes; then
9135 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9154 esac
9156 if test "x$lt_cv_dlopen" != xno; then
9157 enable_dlopen=yes
9158 else
9159 enable_dlopen=no
9162 case $lt_cv_dlopen in
9163 dlopen)
9164 save_CPPFLAGS="$CPPFLAGS"
9165 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9167 save_LDFLAGS="$LDFLAGS"
9168 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9170 save_LIBS="$LIBS"
9171 LIBS="$lt_cv_dlopen_libs $LIBS"
9173 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9174 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9175 if test "${lt_cv_dlopen_self+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 if test "$cross_compiling" = yes; then :
9179 lt_cv_dlopen_self=cross
9180 else
9181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9182 lt_status=$lt_dlunknown
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9184 "configure"
9185 #include "confdefs.h"
9187 #if HAVE_DLFCN_H
9188 #include <dlfcn.h>
9189 #endif
9191 #include <stdio.h>
9193 #ifdef RTLD_GLOBAL
9194 # define LT_DLGLOBAL RTLD_GLOBAL
9195 #else
9196 # ifdef DL_GLOBAL
9197 # define LT_DLGLOBAL DL_GLOBAL
9198 # else
9199 # define LT_DLGLOBAL 0
9200 # endif
9201 #endif
9203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9204 find out it does not work in some platform. */
9205 #ifndef LT_DLLAZY_OR_NOW
9206 # ifdef RTLD_LAZY
9207 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9208 # else
9209 # ifdef DL_LAZY
9210 # define LT_DLLAZY_OR_NOW DL_LAZY
9211 # else
9212 # ifdef RTLD_NOW
9213 # define LT_DLLAZY_OR_NOW RTLD_NOW
9214 # else
9215 # ifdef DL_NOW
9216 # define LT_DLLAZY_OR_NOW DL_NOW
9217 # else
9218 # define LT_DLLAZY_OR_NOW 0
9219 # endif
9220 # endif
9221 # endif
9222 # endif
9223 #endif
9225 #ifdef __cplusplus
9226 extern "C" void exit (int);
9227 #endif
9229 void fnord() { int i=42;}
9230 int main ()
9232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9233 int status = $lt_dlunknown;
9235 if (self)
9237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9238 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9239 /* dlclose (self); */
9242 exit (status);
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246 (eval $ac_link) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9250 (./conftest; exit; ) 2>/dev/null
9251 lt_status=$?
9252 case x$lt_status in
9253 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9254 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9255 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9256 esac
9257 else :
9258 # compilation failed
9259 lt_cv_dlopen_self=no
9262 rm -fr conftest*
9266 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9267 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9269 if test "x$lt_cv_dlopen_self" = xyes; then
9270 LDFLAGS="$LDFLAGS $link_static_flag"
9271 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9272 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9273 if test "${lt_cv_dlopen_self_static+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 if test "$cross_compiling" = yes; then :
9277 lt_cv_dlopen_self_static=cross
9278 else
9279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9280 lt_status=$lt_dlunknown
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9282 "configure"
9283 #include "confdefs.h"
9285 #if HAVE_DLFCN_H
9286 #include <dlfcn.h>
9287 #endif
9289 #include <stdio.h>
9291 #ifdef RTLD_GLOBAL
9292 # define LT_DLGLOBAL RTLD_GLOBAL
9293 #else
9294 # ifdef DL_GLOBAL
9295 # define LT_DLGLOBAL DL_GLOBAL
9296 # else
9297 # define LT_DLGLOBAL 0
9298 # endif
9299 #endif
9301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9302 find out it does not work in some platform. */
9303 #ifndef LT_DLLAZY_OR_NOW
9304 # ifdef RTLD_LAZY
9305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9306 # else
9307 # ifdef DL_LAZY
9308 # define LT_DLLAZY_OR_NOW DL_LAZY
9309 # else
9310 # ifdef RTLD_NOW
9311 # define LT_DLLAZY_OR_NOW RTLD_NOW
9312 # else
9313 # ifdef DL_NOW
9314 # define LT_DLLAZY_OR_NOW DL_NOW
9315 # else
9316 # define LT_DLLAZY_OR_NOW 0
9317 # endif
9318 # endif
9319 # endif
9320 # endif
9321 #endif
9323 #ifdef __cplusplus
9324 extern "C" void exit (int);
9325 #endif
9327 void fnord() { int i=42;}
9328 int main ()
9330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9331 int status = $lt_dlunknown;
9333 if (self)
9335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9337 /* dlclose (self); */
9340 exit (status);
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9348 (./conftest; exit; ) 2>/dev/null
9349 lt_status=$?
9350 case x$lt_status in
9351 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9352 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9353 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9354 esac
9355 else :
9356 # compilation failed
9357 lt_cv_dlopen_self_static=no
9360 rm -fr conftest*
9364 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9365 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9368 CPPFLAGS="$save_CPPFLAGS"
9369 LDFLAGS="$save_LDFLAGS"
9370 LIBS="$save_LIBS"
9372 esac
9374 case $lt_cv_dlopen_self in
9375 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9376 *) enable_dlopen_self=unknown ;;
9377 esac
9379 case $lt_cv_dlopen_self_static in
9380 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9381 *) enable_dlopen_self_static=unknown ;;
9382 esac
9386 # Report which librarie types wil actually be built
9387 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9388 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9389 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9390 echo "${ECHO_T}$can_build_shared" >&6
9392 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9393 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9394 test "$can_build_shared" = "no" && enable_shared=no
9396 # On AIX, shared libraries and static libraries use the same namespace, and
9397 # are all built from PIC.
9398 case "$host_os" in
9399 aix3*)
9400 test "$enable_shared" = yes && enable_static=no
9401 if test -n "$RANLIB"; then
9402 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9403 postinstall_cmds='$RANLIB $lib'
9407 aix4* | aix5*)
9408 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9409 test "$enable_shared" = yes && enable_static=no
9412 esac
9413 echo "$as_me:$LINENO: result: $enable_shared" >&5
9414 echo "${ECHO_T}$enable_shared" >&6
9416 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9417 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9418 # Make sure either enable_shared or enable_static is yes.
9419 test "$enable_shared" = yes || enable_static=yes
9420 echo "$as_me:$LINENO: result: $enable_static" >&5
9421 echo "${ECHO_T}$enable_static" >&6
9423 # The else clause should only fire when bootstrapping the
9424 # libtool distribution, otherwise you forgot to ship ltmain.sh
9425 # with your package, and you will get complaints that there are
9426 # no rules to generate ltmain.sh.
9427 if test -f "$ltmain"; then
9428 # See if we are running on zsh, and set the options which allow our commands through
9429 # without removal of \ escapes.
9430 if test -n "${ZSH_VERSION+set}" ; then
9431 setopt NO_GLOB_SUBST
9433 # Now quote all the things that may contain metacharacters while being
9434 # careful not to overquote the AC_SUBSTed values. We take copies of the
9435 # variables and quote the copies for generation of the libtool script.
9436 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9437 SED SHELL STRIP \
9438 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9439 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9440 deplibs_check_method reload_flag reload_cmds need_locks \
9441 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9442 lt_cv_sys_global_symbol_to_c_name_address \
9443 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9444 old_postinstall_cmds old_postuninstall_cmds \
9445 compiler \
9446 CC \
9447 LD \
9448 lt_prog_compiler_wl \
9449 lt_prog_compiler_pic \
9450 lt_prog_compiler_static \
9451 lt_prog_compiler_no_builtin_flag \
9452 export_dynamic_flag_spec \
9453 thread_safe_flag_spec \
9454 whole_archive_flag_spec \
9455 enable_shared_with_static_runtimes \
9456 old_archive_cmds \
9457 old_archive_from_new_cmds \
9458 predep_objects \
9459 postdep_objects \
9460 predeps \
9461 postdeps \
9462 compiler_lib_search_path \
9463 archive_cmds \
9464 archive_expsym_cmds \
9465 postinstall_cmds \
9466 postuninstall_cmds \
9467 old_archive_from_expsyms_cmds \
9468 allow_undefined_flag \
9469 no_undefined_flag \
9470 export_symbols_cmds \
9471 hardcode_libdir_flag_spec \
9472 hardcode_libdir_flag_spec_ld \
9473 hardcode_libdir_separator \
9474 hardcode_automatic \
9475 module_cmds \
9476 module_expsym_cmds \
9477 lt_cv_prog_compiler_c_o \
9478 exclude_expsyms \
9479 include_expsyms; do
9481 case $var in
9482 old_archive_cmds | \
9483 old_archive_from_new_cmds | \
9484 archive_cmds | \
9485 archive_expsym_cmds | \
9486 module_cmds | \
9487 module_expsym_cmds | \
9488 old_archive_from_expsyms_cmds | \
9489 export_symbols_cmds | \
9490 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9491 postinstall_cmds | postuninstall_cmds | \
9492 old_postinstall_cmds | old_postuninstall_cmds | \
9493 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9494 # Double-quote double-evaled strings.
9495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9500 esac
9501 done
9503 case $lt_echo in
9504 *'\$0 --fallback-echo"')
9505 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9507 esac
9509 cfgfile="${ofile}T"
9510 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9511 $rm -f "$cfgfile"
9512 { echo "$as_me:$LINENO: creating $ofile" >&5
9513 echo "$as_me: creating $ofile" >&6;}
9515 cat <<__EOF__ >> "$cfgfile"
9516 #! $SHELL
9518 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9519 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9520 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9522 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9523 # Free Software Foundation, Inc.
9525 # This file is part of GNU Libtool:
9526 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9528 # This program is free software; you can redistribute it and/or modify
9529 # it under the terms of the GNU General Public License as published by
9530 # the Free Software Foundation; either version 2 of the License, or
9531 # (at your option) any later version.
9533 # This program is distributed in the hope that it will be useful, but
9534 # WITHOUT ANY WARRANTY; without even the implied warranty of
9535 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9536 # General Public License for more details.
9538 # You should have received a copy of the GNU General Public License
9539 # along with this program; if not, write to the Free Software
9540 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9542 # As a special exception to the GNU General Public License, if you
9543 # distribute this file as part of a program that contains a
9544 # configuration script generated by Autoconf, you may include it under
9545 # the same distribution terms that you use for the rest of that program.
9547 # A sed program that does not truncate output.
9548 SED=$lt_SED
9550 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9551 Xsed="$SED -e s/^X//"
9553 # The HP-UX ksh and POSIX shell print the target directory to stdout
9554 # if CDPATH is set.
9555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9557 # The names of the tagged configurations supported by this script.
9558 available_tags=
9560 # ### BEGIN LIBTOOL CONFIG
9562 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9564 # Shell to use when invoking shell scripts.
9565 SHELL=$lt_SHELL
9567 # Whether or not to build shared libraries.
9568 build_libtool_libs=$enable_shared
9570 # Whether or not to build static libraries.
9571 build_old_libs=$enable_static
9573 # Whether or not to add -lc for building shared libraries.
9574 build_libtool_need_lc=$archive_cmds_need_lc
9576 # Whether or not to disallow shared libs when runtime libs are static
9577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9579 # Whether or not to optimize for fast installation.
9580 fast_install=$enable_fast_install
9582 # The host system.
9583 host_alias=$host_alias
9584 host=$host
9586 # An echo program that does not interpret backslashes.
9587 echo=$lt_echo
9589 # The archiver.
9590 AR=$lt_AR
9591 AR_FLAGS=$lt_AR_FLAGS
9593 # A C compiler.
9594 LTCC=$lt_LTCC
9596 # A language-specific compiler.
9597 CC=$lt_compiler
9599 # Is the compiler the GNU C compiler?
9600 with_gcc=$GCC
9602 # An ERE matcher.
9603 EGREP=$lt_EGREP
9605 # The linker used to build libraries.
9606 LD=$lt_LD
9608 # Whether we need hard or soft links.
9609 LN_S=$lt_LN_S
9611 # A BSD-compatible nm program.
9612 NM=$lt_NM
9614 # A symbol stripping program
9615 STRIP=$lt_STRIP
9617 # Used to examine libraries when file_magic_cmd begins "file"
9618 MAGIC_CMD=$MAGIC_CMD
9620 # Used on cygwin: DLL creation program.
9621 DLLTOOL="$DLLTOOL"
9623 # Used on cygwin: object dumper.
9624 OBJDUMP="$OBJDUMP"
9626 # Used on cygwin: assembler.
9627 AS="$AS"
9629 # The name of the directory that contains temporary libtool files.
9630 objdir=$objdir
9632 # How to create reloadable object files.
9633 reload_flag=$lt_reload_flag
9634 reload_cmds=$lt_reload_cmds
9636 # How to pass a linker flag through the compiler.
9637 wl=$lt_lt_prog_compiler_wl
9639 # Object file suffix (normally "o").
9640 objext="$ac_objext"
9642 # Old archive suffix (normally "a").
9643 libext="$libext"
9645 # Shared library suffix (normally ".so").
9646 shrext_cmds='$shrext_cmds'
9648 # Executable file suffix (normally "").
9649 exeext="$exeext"
9651 # Additional compiler flags for building library objects.
9652 pic_flag=$lt_lt_prog_compiler_pic
9653 pic_mode=$pic_mode
9655 # What is the maximum length of a command?
9656 max_cmd_len=$lt_cv_sys_max_cmd_len
9658 # Does compiler simultaneously support -c and -o options?
9659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9661 # Must we lock files when doing compilation ?
9662 need_locks=$lt_need_locks
9664 # Do we need the lib prefix for modules?
9665 need_lib_prefix=$need_lib_prefix
9667 # Do we need a version for libraries?
9668 need_version=$need_version
9670 # Whether dlopen is supported.
9671 dlopen_support=$enable_dlopen
9673 # Whether dlopen of programs is supported.
9674 dlopen_self=$enable_dlopen_self
9676 # Whether dlopen of statically linked programs is supported.
9677 dlopen_self_static=$enable_dlopen_self_static
9679 # Compiler flag to prevent dynamic linking.
9680 link_static_flag=$lt_lt_prog_compiler_static
9682 # Compiler flag to turn off builtin functions.
9683 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9685 # Compiler flag to allow reflexive dlopens.
9686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9688 # Compiler flag to generate shared objects directly from archives.
9689 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9691 # Compiler flag to generate thread-safe objects.
9692 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9694 # Library versioning type.
9695 version_type=$version_type
9697 # Format of library name prefix.
9698 libname_spec=$lt_libname_spec
9700 # List of archive names. First name is the real one, the rest are links.
9701 # The last name is the one that the linker finds with -lNAME.
9702 library_names_spec=$lt_library_names_spec
9704 # The coded name of the library, if different from the real name.
9705 soname_spec=$lt_soname_spec
9707 # Commands used to build and install an old-style archive.
9708 RANLIB=$lt_RANLIB
9709 old_archive_cmds=$lt_old_archive_cmds
9710 old_postinstall_cmds=$lt_old_postinstall_cmds
9711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9713 # Create an old-style archive from a shared archive.
9714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9716 # Create a temporary old-style archive to link instead of a shared archive.
9717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9719 # Commands used to build and install a shared archive.
9720 archive_cmds=$lt_archive_cmds
9721 archive_expsym_cmds=$lt_archive_expsym_cmds
9722 postinstall_cmds=$lt_postinstall_cmds
9723 postuninstall_cmds=$lt_postuninstall_cmds
9725 # Commands used to build a loadable module (assumed same as above if empty)
9726 module_cmds=$lt_module_cmds
9727 module_expsym_cmds=$lt_module_expsym_cmds
9729 # Commands to strip libraries.
9730 old_striplib=$lt_old_striplib
9731 striplib=$lt_striplib
9733 # Dependencies to place before the objects being linked to create a
9734 # shared library.
9735 predep_objects=$lt_predep_objects
9737 # Dependencies to place after the objects being linked to create a
9738 # shared library.
9739 postdep_objects=$lt_postdep_objects
9741 # Dependencies to place before the objects being linked to create a
9742 # shared library.
9743 predeps=$lt_predeps
9745 # Dependencies to place after the objects being linked to create a
9746 # shared library.
9747 postdeps=$lt_postdeps
9749 # The library search path used internally by the compiler when linking
9750 # a shared library.
9751 compiler_lib_search_path=$lt_compiler_lib_search_path
9753 # Method to check whether dependent libraries are shared objects.
9754 deplibs_check_method=$lt_deplibs_check_method
9756 # Command to use when deplibs_check_method == file_magic.
9757 file_magic_cmd=$lt_file_magic_cmd
9759 # Flag that allows shared libraries with undefined symbols to be built.
9760 allow_undefined_flag=$lt_allow_undefined_flag
9762 # Flag that forces no undefined symbols.
9763 no_undefined_flag=$lt_no_undefined_flag
9765 # Commands used to finish a libtool library installation in a directory.
9766 finish_cmds=$lt_finish_cmds
9768 # Same as above, but a single script fragment to be evaled but not shown.
9769 finish_eval=$lt_finish_eval
9771 # Take the output of nm and produce a listing of raw symbols and C names.
9772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9774 # Transform the output of nm in a proper C declaration
9775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9777 # Transform the output of nm in a C name address pair
9778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9780 # This is the shared library runtime path variable.
9781 runpath_var=$runpath_var
9783 # This is the shared library path variable.
9784 shlibpath_var=$shlibpath_var
9786 # Is shlibpath searched before the hard-coded library search path?
9787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9789 # How to hardcode a shared library path into an executable.
9790 hardcode_action=$hardcode_action
9792 # Whether we should hardcode library paths into libraries.
9793 hardcode_into_libs=$hardcode_into_libs
9795 # Flag to hardcode \$libdir into a binary during linking.
9796 # This must work even if \$libdir does not exist.
9797 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9799 # If ld is used when linking, flag to hardcode \$libdir into
9800 # a binary during linking. This must work even if \$libdir does
9801 # not exist.
9802 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9804 # Whether we need a single -rpath flag with a separated argument.
9805 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9807 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9808 # resulting binary.
9809 hardcode_direct=$hardcode_direct
9811 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9812 # resulting binary.
9813 hardcode_minus_L=$hardcode_minus_L
9815 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9816 # the resulting binary.
9817 hardcode_shlibpath_var=$hardcode_shlibpath_var
9819 # Set to yes if building a shared library automatically hardcodes DIR into the library
9820 # and all subsequent libraries and executables linked against it.
9821 hardcode_automatic=$hardcode_automatic
9823 # Variables whose values should be saved in libtool wrapper scripts and
9824 # restored at relink time.
9825 variables_saved_for_relink="$variables_saved_for_relink"
9827 # Whether libtool must link a program against all its dependency libraries.
9828 link_all_deplibs=$link_all_deplibs
9830 # Compile-time system search path for libraries
9831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9833 # Run-time system search path for libraries
9834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9836 # Fix the shell variable \$srcfile for the compiler.
9837 fix_srcfile_path="$fix_srcfile_path"
9839 # Set to yes if exported symbols are required.
9840 always_export_symbols=$always_export_symbols
9842 # The commands to list exported symbols.
9843 export_symbols_cmds=$lt_export_symbols_cmds
9845 # The commands to extract the exported symbol list from a shared archive.
9846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9848 # Symbols that should not be listed in the preloaded symbols.
9849 exclude_expsyms=$lt_exclude_expsyms
9851 # Symbols that must always be exported.
9852 include_expsyms=$lt_include_expsyms
9854 # ### END LIBTOOL CONFIG
9856 __EOF__
9859 case $host_os in
9860 aix3*)
9861 cat <<\EOF >> "$cfgfile"
9863 # AIX sometimes has problems with the GCC collect2 program. For some
9864 # reason, if we set the COLLECT_NAMES environment variable, the problems
9865 # vanish in a puff of smoke.
9866 if test "X${COLLECT_NAMES+set}" != Xset; then
9867 COLLECT_NAMES=
9868 export COLLECT_NAMES
9872 esac
9874 # We use sed instead of cat because bash on DJGPP gets confused if
9875 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9876 # text mode, it properly converts lines to CR/LF. This bash problem
9877 # is reportedly fixed, but why not run on old versions too?
9878 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9880 mv -f "$cfgfile" "$ofile" || \
9881 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9882 chmod +x "$ofile"
9884 else
9885 # If there is no Makefile yet, we rely on a make rule to execute
9886 # `config.status --recheck' to rerun these tests and create the
9887 # libtool script then.
9888 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9889 if test -f "$ltmain_in"; then
9890 test -f Makefile && make "$ltmain"
9895 ac_ext=c
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9901 CC="$lt_save_CC"
9904 # Check whether --with-tags or --without-tags was given.
9905 if test "${with_tags+set}" = set; then
9906 withval="$with_tags"
9907 tagnames="$withval"
9910 if test -f "$ltmain" && test -n "$tagnames"; then
9911 if test ! -f "${ofile}"; then
9912 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9913 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9916 if test -z "$LTCC"; then
9917 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9918 if test -z "$LTCC"; then
9919 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9920 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9921 else
9922 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9923 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9927 # Extract list of available tagged configurations in $ofile.
9928 # Note that this assumes the entire list is on one line.
9929 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932 for tagname in $tagnames; do
9933 IFS="$lt_save_ifs"
9934 # Check whether tagname contains only valid characters
9935 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9936 "") ;;
9937 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9938 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9939 { (exit 1); exit 1; }; }
9941 esac
9943 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9944 then
9945 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9946 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9947 { (exit 1); exit 1; }; }
9950 # Update the list of available tags.
9951 if test -n "$tagname"; then
9952 echo appending configuration tag \"$tagname\" to $ofile
9954 case $tagname in
9955 CXX)
9956 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9957 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9958 (test "X$CXX" != "Xg++"))) ; then
9959 ac_ext=cc
9960 ac_cpp='$CXXCPP $CPPFLAGS'
9961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9968 archive_cmds_need_lc_CXX=no
9969 allow_undefined_flag_CXX=
9970 always_export_symbols_CXX=no
9971 archive_expsym_cmds_CXX=
9972 export_dynamic_flag_spec_CXX=
9973 hardcode_direct_CXX=no
9974 hardcode_libdir_flag_spec_CXX=
9975 hardcode_libdir_flag_spec_ld_CXX=
9976 hardcode_libdir_separator_CXX=
9977 hardcode_minus_L_CXX=no
9978 hardcode_automatic_CXX=no
9979 module_cmds_CXX=
9980 module_expsym_cmds_CXX=
9981 link_all_deplibs_CXX=unknown
9982 old_archive_cmds_CXX=$old_archive_cmds
9983 no_undefined_flag_CXX=
9984 whole_archive_flag_spec_CXX=
9985 enable_shared_with_static_runtimes_CXX=no
9987 # Dependencies to place before and after the object being linked:
9988 predep_objects_CXX=
9989 postdep_objects_CXX=
9990 predeps_CXX=
9991 postdeps_CXX=
9992 compiler_lib_search_path_CXX=
9994 # Source file extension for C++ test sources.
9995 ac_ext=cc
9997 # Object file extension for compiled C++ test sources.
9998 objext=o
9999 objext_CXX=$objext
10001 # Code to be used in simple compile tests
10002 lt_simple_compile_test_code="int some_variable = 0;\n"
10004 # Code to be used in simple link tests
10005 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10009 # If no C compiler was specified, use CC.
10010 LTCC=${LTCC-"$CC"}
10012 # Allow CC to be a program name with arguments.
10013 compiler=$CC
10016 # Allow CC to be a program name with arguments.
10017 lt_save_CC=$CC
10018 lt_save_LD=$LD
10019 lt_save_GCC=$GCC
10020 GCC=$GXX
10021 lt_save_with_gnu_ld=$with_gnu_ld
10022 lt_save_path_LD=$lt_cv_path_LD
10023 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10024 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10025 else
10026 unset lt_cv_prog_gnu_ld
10028 if test -n "${lt_cv_path_LDCXX+set}"; then
10029 lt_cv_path_LD=$lt_cv_path_LDCXX
10030 else
10031 unset lt_cv_path_LD
10033 test -z "${LDCXX+set}" || LD=$LDCXX
10034 CC=${CXX-"c++"}
10035 compiler=$CC
10036 compiler_CXX=$CC
10037 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10039 # We don't want -fno-exception wen compiling C++ code, so set the
10040 # no_builtin_flag separately
10041 if test "$GXX" = yes; then
10042 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10043 else
10044 lt_prog_compiler_no_builtin_flag_CXX=
10047 if test "$GXX" = yes; then
10048 # Set up default GNU C++ configuration
10051 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10052 if test "${with_gnu_ld+set}" = set; then
10053 withval="$with_gnu_ld"
10054 test "$withval" = no || with_gnu_ld=yes
10055 else
10056 with_gnu_ld=no
10058 ac_prog=ld
10059 if test "$GCC" = yes; then
10060 # Check if gcc -print-prog-name=ld gives a path.
10061 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10062 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10063 case $host in
10064 *-*-mingw*)
10065 # gcc leaves a trailing carriage return which upsets mingw
10066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10069 esac
10070 case $ac_prog in
10071 # Accept absolute paths.
10072 [\\/]* | ?:[\\/]*)
10073 re_direlt='/[^/][^/]*/\.\./'
10074 # Canonicalize the pathname of ld
10075 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10076 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10077 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10078 done
10079 test -z "$LD" && LD="$ac_prog"
10082 # If it fails, then pretend we aren't using GCC.
10083 ac_prog=ld
10086 # If it is relative, then search for the first ld in PATH.
10087 with_gnu_ld=unknown
10089 esac
10090 elif test "$with_gnu_ld" = yes; then
10091 echo "$as_me:$LINENO: checking for GNU ld" >&5
10092 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10093 else
10094 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10095 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10097 if test "${lt_cv_path_LD+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100 if test -z "$LD"; then
10101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10102 for ac_dir in $PATH; do
10103 IFS="$lt_save_ifs"
10104 test -z "$ac_dir" && ac_dir=.
10105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10106 lt_cv_path_LD="$ac_dir/$ac_prog"
10107 # Check to see if the program is GNU ld. I'd rather use --version,
10108 # but apparently some GNU ld's only accept -v.
10109 # Break only if it was the GNU/non-GNU ld that we prefer.
10110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10111 *GNU* | *'with BFD'*)
10112 test "$with_gnu_ld" != no && break
10115 test "$with_gnu_ld" != yes && break
10117 esac
10119 done
10120 IFS="$lt_save_ifs"
10121 else
10122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10126 LD="$lt_cv_path_LD"
10127 if test -n "$LD"; then
10128 echo "$as_me:$LINENO: result: $LD" >&5
10129 echo "${ECHO_T}$LD" >&6
10130 else
10131 echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6
10134 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10135 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10136 { (exit 1); exit 1; }; }
10137 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10138 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10139 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10143 case `$LD -v 2>&1 </dev/null` in
10144 *GNU* | *'with BFD'*)
10145 lt_cv_prog_gnu_ld=yes
10148 lt_cv_prog_gnu_ld=no
10150 esac
10152 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10153 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10154 with_gnu_ld=$lt_cv_prog_gnu_ld
10158 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10159 # archiving commands below assume that GNU ld is being used.
10160 if test "$with_gnu_ld" = yes; then
10161 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10162 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'
10164 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10167 # If archive_cmds runs LD, not CC, wlarc should be empty
10168 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10169 # investigate it a little bit more. (MM)
10170 wlarc='${wl}'
10172 # ancient GNU ld didn't support --whole-archive et. al.
10173 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10174 grep 'no-whole-archive' > /dev/null; then
10175 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10176 else
10177 whole_archive_flag_spec_CXX=
10179 else
10180 with_gnu_ld=no
10181 wlarc=
10183 # A generic and very simple default shared library creation
10184 # command for GNU C++ for the case where it uses the native
10185 # linker, instead of GNU ld. If possible, this setting should
10186 # overridden to take advantage of the native linker features on
10187 # the platform it is being used on.
10188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10191 # Commands to make compiler produce verbose output that lists
10192 # what "hidden" libraries, object files and flags are used when
10193 # linking a shared library.
10194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10196 else
10197 GXX=no
10198 with_gnu_ld=no
10199 wlarc=
10202 # PORTME: fill in a description of your system's C++ link characteristics
10203 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10204 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10205 ld_shlibs_CXX=yes
10206 case $host_os in
10207 aix3*)
10208 # FIXME: insert proper C++ library support
10209 ld_shlibs_CXX=no
10211 aix4* | aix5*)
10212 if test "$host_cpu" = ia64; then
10213 # On IA64, the linker does run time linking by default, so we don't
10214 # have to do anything special.
10215 aix_use_runtimelinking=no
10216 exp_sym_flag='-Bexport'
10217 no_entry_flag=""
10218 else
10219 aix_use_runtimelinking=no
10221 # Test if we are trying to use run time linking or normal
10222 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10223 # need to do runtime linking.
10224 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10225 for ld_flag in $LDFLAGS; do
10226 case $ld_flag in
10227 *-brtl*)
10228 aix_use_runtimelinking=yes
10229 break
10231 esac
10232 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=
10270 esac
10271 shared_flag='-shared'
10272 else
10273 # not using gcc
10274 if test "$host_cpu" = ia64; then
10275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10276 # chokes on -Wl,-G. The following line is correct:
10277 shared_flag='-G'
10278 else
10279 if test "$aix_use_runtimelinking" = yes; then
10280 shared_flag='${wl}-G'
10281 else
10282 shared_flag='${wl}-bM:SRE'
10287 # It seems that -bexpall does not export symbols beginning with
10288 # underscore (_), so it is better to generate a list of symbols to export.
10289 always_export_symbols_CXX=yes
10290 if test "$aix_use_runtimelinking" = yes; then
10291 # Warning - without using the other runtime loading flags (-brtl),
10292 # -berok will link without error, but may produce a broken library.
10293 allow_undefined_flag_CXX='-berok'
10294 # Determine the default libpath from the value encoded in an empty executable.
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10303 main ()
10307 return 0;
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_cxx_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10335 # Check for a 64-bit object if we didn't find anything.
10336 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; }
10337 }'`; fi
10338 else
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10343 rm -f conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10347 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10349 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10350 else
10351 if test "$host_cpu" = ia64; then
10352 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10353 allow_undefined_flag_CXX="-z nodefs"
10354 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10355 else
10356 # Determine the default libpath from the value encoded in an empty executable.
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10365 main ()
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_cxx_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10397 # Check for a 64-bit object if we didn't find anything.
10398 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; }
10399 }'`; fi
10400 else
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10405 rm -f conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10409 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10410 # Warning - without using the other run time loading flags,
10411 # -berok will link without error, but may produce a broken library.
10412 no_undefined_flag_CXX=' ${wl}-bernotok'
10413 allow_undefined_flag_CXX=' ${wl}-berok'
10414 # -bexpall does not export symbols beginning with underscore (_)
10415 always_export_symbols_CXX=yes
10416 # Exported symbols can be pulled into shared objects from archives
10417 whole_archive_flag_spec_CXX=' '
10418 archive_cmds_need_lc_CXX=yes
10419 # This is similar to how AIX traditionally builds it's shared libraries.
10420 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10424 chorus*)
10425 case $cc_basename in
10427 # FIXME: insert proper C++ library support
10428 ld_shlibs_CXX=no
10430 esac
10434 cygwin* | mingw* | pw32*)
10435 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10436 # as there is no search path for DLLs.
10437 hardcode_libdir_flag_spec_CXX='-L$libdir'
10438 allow_undefined_flag_CXX=unsupported
10439 always_export_symbols_CXX=no
10440 enable_shared_with_static_runtimes_CXX=yes
10442 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10443 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10444 # If the export-symbols file already is a .def file (1st line
10445 # is EXPORTS), use it as is; otherwise, prepend...
10446 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10447 cp $export_symbols $output_objdir/$soname.def;
10448 else
10449 echo EXPORTS > $output_objdir/$soname.def;
10450 cat $export_symbols >> $output_objdir/$soname.def;
10452 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10453 else
10454 ld_shlibs_CXX=no
10457 darwin* | rhapsody*)
10458 case "$host_os" in
10459 rhapsody* | darwin1.[012])
10460 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10462 *) # Darwin 1.3 on
10463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10464 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10465 else
10466 case ${MACOSX_DEPLOYMENT_TARGET} in
10467 10.[012])
10468 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10470 10.*)
10471 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10473 esac
10476 esac
10477 archive_cmds_need_lc_CXX=no
10478 hardcode_direct_CXX=no
10479 hardcode_automatic_CXX=yes
10480 hardcode_shlibpath_var_CXX=unsupported
10481 whole_archive_flag_spec_CXX=''
10482 link_all_deplibs_CXX=yes
10484 if test "$GXX" = yes ; then
10485 lt_int_apple_cc_single_mod=no
10486 output_verbose_link_cmd='echo'
10487 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10488 lt_int_apple_cc_single_mod=yes
10490 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10491 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10492 else
10493 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'
10495 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10497 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10498 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}'
10499 else
10500 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}'
10502 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}'
10503 else
10504 case "$cc_basename" in
10505 xlc*)
10506 output_verbose_link_cmd='echo'
10507 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'
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 ld's
10510 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}'
10511 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}'
10514 ld_shlibs_CXX=no
10516 esac
10520 dgux*)
10521 case $cc_basename in
10522 ec++)
10523 # FIXME: insert proper C++ library support
10524 ld_shlibs_CXX=no
10526 ghcx)
10527 # Green Hills C++ Compiler
10528 # FIXME: insert proper C++ library support
10529 ld_shlibs_CXX=no
10532 # FIXME: insert proper C++ library support
10533 ld_shlibs_CXX=no
10535 esac
10537 freebsd12*)
10538 # C++ shared libraries reported to be fairly broken before switch to ELF
10539 ld_shlibs_CXX=no
10541 freebsd-elf*)
10542 archive_cmds_need_lc_CXX=no
10544 freebsd* | kfreebsd*-gnu)
10545 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10546 # conventions
10547 ld_shlibs_CXX=yes
10549 gnu*)
10551 hpux9*)
10552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10553 hardcode_libdir_separator_CXX=:
10554 export_dynamic_flag_spec_CXX='${wl}-E'
10555 hardcode_direct_CXX=yes
10556 hardcode_minus_L_CXX=yes # Not in the search PATH,
10557 # but as the default
10558 # location of the library.
10560 case $cc_basename in
10562 # FIXME: insert proper C++ library support
10563 ld_shlibs_CXX=no
10565 aCC)
10566 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'
10567 # Commands to make compiler produce verbose output that lists
10568 # what "hidden" libraries, object files and flags are used when
10569 # linking a shared library.
10571 # There doesn't appear to be a way to prevent this compiler from
10572 # explicitly linking system object files so we need to strip them
10573 # from the output so that they don't get included in the library
10574 # dependencies.
10575 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'
10578 if test "$GXX" = yes; then
10579 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'
10580 else
10581 # FIXME: insert proper C++ library support
10582 ld_shlibs_CXX=no
10585 esac
10587 hpux10*|hpux11*)
10588 if test $with_gnu_ld = no; then
10589 case "$host_cpu" in
10590 hppa*64*)
10591 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10592 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10593 hardcode_libdir_separator_CXX=:
10595 ia64*)
10596 hardcode_libdir_flag_spec_CXX='-L$libdir'
10599 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10600 hardcode_libdir_separator_CXX=:
10601 export_dynamic_flag_spec_CXX='${wl}-E'
10603 esac
10605 case "$host_cpu" in
10606 hppa*64*)
10607 hardcode_direct_CXX=no
10608 hardcode_shlibpath_var_CXX=no
10610 ia64*)
10611 hardcode_direct_CXX=no
10612 hardcode_shlibpath_var_CXX=no
10613 hardcode_minus_L_CXX=yes # Not in the search PATH,
10614 # but as the default
10615 # location of the library.
10618 hardcode_direct_CXX=yes
10619 hardcode_minus_L_CXX=yes # Not in the search PATH,
10620 # but as the default
10621 # location of the library.
10623 esac
10625 case $cc_basename in
10627 # FIXME: insert proper C++ library support
10628 ld_shlibs_CXX=no
10630 aCC)
10631 case "$host_cpu" in
10632 hppa*64*|ia64*)
10633 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10638 esac
10639 # Commands to make compiler produce verbose output that lists
10640 # what "hidden" libraries, object files and flags are used when
10641 # linking a shared library.
10643 # There doesn't appear to be a way to prevent this compiler from
10644 # explicitly linking system object files so we need to strip them
10645 # from the output so that they don't get included in the library
10646 # dependencies.
10647 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'
10650 if test "$GXX" = yes; then
10651 if test $with_gnu_ld = no; then
10652 case "$host_cpu" in
10653 ia64*|hppa*64*)
10654 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10657 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'
10659 esac
10661 else
10662 # FIXME: insert proper C++ library support
10663 ld_shlibs_CXX=no
10666 esac
10668 irix5* | irix6*)
10669 case $cc_basename in
10671 # SGI C++
10672 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 ${objdir}/so_locations -o $lib'
10674 # Archives containing C++ object files must be created using
10675 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10676 # necessary to make sure instantiated templates are included
10677 # in the archive.
10678 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10681 if test "$GXX" = yes; then
10682 if test "$with_gnu_ld" = no; then
10683 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}${objdir}/so_locations -o $lib'
10684 else
10685 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'
10688 link_all_deplibs_CXX=yes
10690 esac
10691 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10692 hardcode_libdir_separator_CXX=:
10694 linux*)
10695 case $cc_basename in
10696 KCC)
10697 # Kuck and Associates, Inc. (KAI) C++ Compiler
10699 # KCC will only create a shared library if the output file
10700 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10701 # to its proper name (with version) after linking.
10702 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'
10703 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'
10704 # Commands to make compiler produce verbose output that lists
10705 # what "hidden" libraries, object files and flags are used when
10706 # linking a shared library.
10708 # There doesn't appear to be a way to prevent this compiler from
10709 # explicitly linking system object files so we need to strip them
10710 # from the output so that they don't get included in the library
10711 # dependencies.
10712 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'
10714 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10717 # Archives containing C++ object files must be created using
10718 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10719 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10721 icpc)
10722 # Intel C++
10723 with_gnu_ld=yes
10724 # version 8.0 and above of icpc choke on multiply defined symbols
10725 # if we add $predep_objects and $postdep_objects, however 7.1 and
10726 # earlier do not add the objects themselves.
10727 case `$CC -V 2>&1` in
10728 *"Version 7."*)
10729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10730 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'
10732 *) # Version 8.0 or newer
10733 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10734 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10736 esac
10737 archive_cmds_need_lc_CXX=no
10738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10740 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10742 cxx)
10743 # Compaq C++
10744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10745 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'
10747 runpath_var=LD_RUN_PATH
10748 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10749 hardcode_libdir_separator_CXX=:
10751 # Commands to make compiler produce verbose output that lists
10752 # what "hidden" libraries, object files and flags are used when
10753 # linking a shared library.
10755 # There doesn't appear to be a way to prevent this compiler from
10756 # explicitly linking system object files so we need to strip them
10757 # from the output so that they don't get included in the library
10758 # dependencies.
10759 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'
10761 esac
10763 lynxos*)
10764 # FIXME: insert proper C++ library support
10765 ld_shlibs_CXX=no
10767 m88k*)
10768 # FIXME: insert proper C++ library support
10769 ld_shlibs_CXX=no
10771 mvs*)
10772 case $cc_basename in
10773 cxx)
10774 # FIXME: insert proper C++ library support
10775 ld_shlibs_CXX=no
10778 # FIXME: insert proper C++ library support
10779 ld_shlibs_CXX=no
10781 esac
10783 netbsd*)
10784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10785 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10786 wlarc=
10787 hardcode_libdir_flag_spec_CXX='-R$libdir'
10788 hardcode_direct_CXX=yes
10789 hardcode_shlibpath_var_CXX=no
10791 # Workaround some broken pre-1.5 toolchains
10792 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10794 openbsd2*)
10795 # C++ shared libraries are fairly broken
10796 ld_shlibs_CXX=no
10798 openbsd*)
10799 hardcode_direct_CXX=yes
10800 hardcode_shlibpath_var_CXX=no
10801 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10804 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10805 export_dynamic_flag_spec_CXX='${wl}-E'
10806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10808 output_verbose_link_cmd='echo'
10810 osf3*)
10811 case $cc_basename in
10812 KCC)
10813 # Kuck and Associates, Inc. (KAI) C++ Compiler
10815 # KCC will only create a shared library if the output file
10816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10817 # to its proper name (with version) after linking.
10818 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'
10820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10821 hardcode_libdir_separator_CXX=:
10823 # Archives containing C++ object files must be created using
10824 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10825 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10828 RCC)
10829 # Rational C++ 2.4.1
10830 # FIXME: insert proper C++ library support
10831 ld_shlibs_CXX=no
10833 cxx)
10834 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10835 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 ${objdir}/so_locations -o $lib'
10837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10838 hardcode_libdir_separator_CXX=:
10840 # Commands to make compiler produce verbose output that lists
10841 # what "hidden" libraries, object files and flags are used when
10842 # linking a shared library.
10844 # There doesn't appear to be a way to prevent this compiler from
10845 # explicitly linking system object files so we need to strip them
10846 # from the output so that they don't get included in the library
10847 # dependencies.
10848 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'
10851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10852 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10853 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}${objdir}/so_locations -o $lib'
10855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10856 hardcode_libdir_separator_CXX=:
10858 # Commands to make compiler produce verbose output that lists
10859 # what "hidden" libraries, object files and flags are used when
10860 # linking a shared library.
10861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10863 else
10864 # FIXME: insert proper C++ library support
10865 ld_shlibs_CXX=no
10868 esac
10870 osf4* | osf5*)
10871 case $cc_basename in
10872 KCC)
10873 # Kuck and Associates, Inc. (KAI) C++ Compiler
10875 # KCC will only create a shared library if the output file
10876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10877 # to its proper name (with version) after linking.
10878 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'
10880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10881 hardcode_libdir_separator_CXX=:
10883 # Archives containing C++ object files must be created using
10884 # the KAI C++ compiler.
10885 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10887 RCC)
10888 # Rational C++ 2.4.1
10889 # FIXME: insert proper C++ library support
10890 ld_shlibs_CXX=no
10892 cxx)
10893 allow_undefined_flag_CXX=' -expect_unresolved \*'
10894 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 ${objdir}/so_locations -o $lib'
10895 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10896 echo "-hidden">> $lib.exp~
10897 $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 $objdir/so_locations -o $lib~
10898 $rm $lib.exp'
10900 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10901 hardcode_libdir_separator_CXX=:
10903 # Commands to make compiler produce verbose output that lists
10904 # what "hidden" libraries, object files and flags are used when
10905 # linking a shared library.
10907 # There doesn't appear to be a way to prevent this compiler from
10908 # explicitly linking system object files so we need to strip them
10909 # from the output so that they don't get included in the library
10910 # dependencies.
10911 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'
10914 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10916 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}${objdir}/so_locations -o $lib'
10918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10919 hardcode_libdir_separator_CXX=:
10921 # Commands to make compiler produce verbose output that lists
10922 # what "hidden" libraries, object files and flags are used when
10923 # linking a shared library.
10924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10926 else
10927 # FIXME: insert proper C++ library support
10928 ld_shlibs_CXX=no
10931 esac
10933 psos*)
10934 # FIXME: insert proper C++ library support
10935 ld_shlibs_CXX=no
10937 sco*)
10938 archive_cmds_need_lc_CXX=no
10939 case $cc_basename in
10941 # FIXME: insert proper C++ library support
10942 ld_shlibs_CXX=no
10945 # FIXME: insert proper C++ library support
10946 ld_shlibs_CXX=no
10948 esac
10950 sunos4*)
10951 case $cc_basename in
10953 # Sun C++ 4.x
10954 # FIXME: insert proper C++ library support
10955 ld_shlibs_CXX=no
10957 lcc)
10958 # Lucid
10959 # FIXME: insert proper C++ library support
10960 ld_shlibs_CXX=no
10963 # FIXME: insert proper C++ library support
10964 ld_shlibs_CXX=no
10966 esac
10968 solaris*)
10969 case $cc_basename in
10971 # Sun C++ 4.2, 5.x and Centerline C++
10972 no_undefined_flag_CXX=' -zdefs'
10973 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10974 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10975 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10977 hardcode_libdir_flag_spec_CXX='-R$libdir'
10978 hardcode_shlibpath_var_CXX=no
10979 case $host_os in
10980 solaris2.0-5 | solaris2.0-5.*) ;;
10982 # The C++ compiler is used as linker so we must use $wl
10983 # flag to pass the commands to the underlying system
10984 # linker.
10985 # Supported since Solaris 2.6 (maybe 2.5.1?)
10986 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10988 esac
10989 link_all_deplibs_CXX=yes
10991 # Commands to make compiler produce verbose output that lists
10992 # what "hidden" libraries, object files and flags are used when
10993 # linking a shared library.
10995 # There doesn't appear to be a way to prevent this compiler from
10996 # explicitly linking system object files so we need to strip them
10997 # from the output so that they don't get included in the library
10998 # dependencies.
10999 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11001 # Archives containing C++ object files must be created using
11002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11003 # necessary to make sure instantiated templates are included
11004 # in the archive.
11005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11007 gcx)
11008 # Green Hills C++ Compiler
11009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11011 # The C++ compiler must be used to create the archive.
11012 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11015 # GNU C++ compiler with Solaris linker
11016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11017 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11018 if $CC --version | grep -v '^2\.7' > /dev/null; then
11019 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11020 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11023 # Commands to make compiler produce verbose output that lists
11024 # what "hidden" libraries, object files and flags are used when
11025 # linking a shared library.
11026 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11027 else
11028 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11029 # platform.
11030 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11034 # Commands to make compiler produce verbose output that lists
11035 # what "hidden" libraries, object files and flags are used when
11036 # linking a shared library.
11037 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11040 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11043 esac
11045 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11046 archive_cmds_need_lc_CXX=no
11048 tandem*)
11049 case $cc_basename in
11050 NCC)
11051 # NonStop-UX NCC 3.20
11052 # FIXME: insert proper C++ library support
11053 ld_shlibs_CXX=no
11056 # FIXME: insert proper C++ library support
11057 ld_shlibs_CXX=no
11059 esac
11061 vxworks*)
11062 # FIXME: insert proper C++ library support
11063 ld_shlibs_CXX=no
11066 # FIXME: insert proper C++ library support
11067 ld_shlibs_CXX=no
11069 esac
11070 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11071 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11072 test "$ld_shlibs_CXX" = no && can_build_shared=no
11074 GCC_CXX="$GXX"
11075 LD_CXX="$LD"
11078 cat > conftest.$ac_ext <<EOF
11079 class Foo
11081 public:
11082 Foo (void) { a = 0; }
11083 private:
11084 int a;
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; then
11093 # Parse the compiler output and extract the necessary
11094 # objects, libraries and library flags.
11096 # Sentinel used to keep track of whether or not we are before
11097 # the conftest object file.
11098 pre_test_object_deps_done=no
11100 # The `*' in the case matches for architectures that use `case' in
11101 # $output_verbose_cmd can trigger glob expansion during the loop
11102 # eval without this substitution.
11103 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11105 for p in `eval $output_verbose_link_cmd`; do
11106 case $p in
11108 -L* | -R* | -l*)
11109 # Some compilers place space between "-{L,R}" and the path.
11110 # Remove the space.
11111 if test $p = "-L" \
11112 || test $p = "-R"; then
11113 prev=$p
11114 continue
11115 else
11116 prev=
11119 if test "$pre_test_object_deps_done" = no; then
11120 case $p in
11121 -L* | -R*)
11122 # Internal compiler library paths should come after those
11123 # provided the user. The postdeps already come after the
11124 # user supplied libs so there is no need to process them.
11125 if test -z "$compiler_lib_search_path_CXX"; then
11126 compiler_lib_search_path_CXX="${prev}${p}"
11127 else
11128 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11131 # The "-l" case would never come before the object being
11132 # linked, so don't bother handling this case.
11133 esac
11134 else
11135 if test -z "$postdeps_CXX"; then
11136 postdeps_CXX="${prev}${p}"
11137 else
11138 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11143 *.$objext)
11144 # This assumes that the test object file only shows up
11145 # once in the compiler output.
11146 if test "$p" = "conftest.$objext"; then
11147 pre_test_object_deps_done=yes
11148 continue
11151 if test "$pre_test_object_deps_done" = no; then
11152 if test -z "$predep_objects_CXX"; then
11153 predep_objects_CXX="$p"
11154 else
11155 predep_objects_CXX="$predep_objects_CXX $p"
11157 else
11158 if test -z "$postdep_objects_CXX"; then
11159 postdep_objects_CXX="$p"
11160 else
11161 postdep_objects_CXX="$postdep_objects_CXX $p"
11166 *) ;; # Ignore the rest.
11168 esac
11169 done
11171 # Clean up.
11172 rm -f a.out a.exe
11173 else
11174 echo "libtool.m4: error: problem compiling CXX test program"
11177 $rm -f confest.$objext
11179 case " $postdeps_CXX " in
11180 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11181 esac
11183 lt_prog_compiler_wl_CXX=
11184 lt_prog_compiler_pic_CXX=
11185 lt_prog_compiler_static_CXX=
11187 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11188 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11190 # C++ specific cases for pic, static, wl, etc.
11191 if test "$GXX" = yes; then
11192 lt_prog_compiler_wl_CXX='-Wl,'
11193 lt_prog_compiler_static_CXX='-static'
11195 case $host_os in
11196 aix*)
11197 # All AIX code is PIC.
11198 if test "$host_cpu" = ia64; then
11199 # AIX 5 now supports IA64 processor
11200 lt_prog_compiler_static_CXX='-Bstatic'
11203 amigaos*)
11204 # FIXME: we need at least 68020 code to build shared libraries, but
11205 # adding the `-m68020' flag to GCC prevents building anything better,
11206 # like `-m68040'.
11207 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11209 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11210 # PIC is the default for these OSes.
11212 mingw* | os2* | pw32*)
11213 # This hack is so that the source file can tell whether it is being
11214 # built for inclusion in a dll (and should export symbols for example).
11215 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11217 darwin* | rhapsody*)
11218 # PIC is the default on this platform
11219 # Common symbols not allowed in MH_DYLIB files
11220 lt_prog_compiler_pic_CXX='-fno-common'
11222 *djgpp*)
11223 # DJGPP does not support shared libraries at all
11224 lt_prog_compiler_pic_CXX=
11226 sysv4*MP*)
11227 if test -d /usr/nec; then
11228 lt_prog_compiler_pic_CXX=-Kconform_pic
11231 hpux*)
11232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11233 # not for PA HP-UX.
11234 case "$host_cpu" in
11235 hppa*64*|ia64*)
11238 lt_prog_compiler_pic_CXX='-fPIC'
11240 esac
11243 lt_prog_compiler_pic_CXX='-fPIC'
11245 esac
11246 else
11247 case $host_os in
11248 aix4* | aix5*)
11249 # All AIX code is PIC.
11250 if test "$host_cpu" = ia64; then
11251 # AIX 5 now supports IA64 processor
11252 lt_prog_compiler_static_CXX='-Bstatic'
11253 else
11254 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11257 chorus*)
11258 case $cc_basename in
11259 cxch68)
11260 # Green Hills C++ Compiler
11261 # _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"
11263 esac
11265 darwin*)
11266 # PIC is the default on this platform
11267 # Common symbols not allowed in MH_DYLIB files
11268 case "$cc_basename" in
11269 xlc*)
11270 lt_prog_compiler_pic_CXX='-qnocommon'
11271 lt_prog_compiler_wl_CXX='-Wl,'
11273 esac
11275 dgux*)
11276 case $cc_basename in
11277 ec++)
11278 lt_prog_compiler_pic_CXX='-KPIC'
11280 ghcx)
11281 # Green Hills C++ Compiler
11282 lt_prog_compiler_pic_CXX='-pic'
11286 esac
11288 freebsd* | kfreebsd*-gnu)
11289 # FreeBSD uses GNU C++
11291 hpux9* | hpux10* | hpux11*)
11292 case $cc_basename in
11294 lt_prog_compiler_wl_CXX='-Wl,'
11295 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11296 if test "$host_cpu" != ia64; then
11297 lt_prog_compiler_pic_CXX='+Z'
11300 aCC)
11301 lt_prog_compiler_wl_CXX='-Wl,'
11302 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11303 case "$host_cpu" in
11304 hppa*64*|ia64*)
11305 # +Z the default
11308 lt_prog_compiler_pic_CXX='+Z'
11310 esac
11314 esac
11316 irix5* | irix6* | nonstopux*)
11317 case $cc_basename in
11319 lt_prog_compiler_wl_CXX='-Wl,'
11320 lt_prog_compiler_static_CXX='-non_shared'
11321 # CC pic flag -KPIC is the default.
11325 esac
11327 linux*)
11328 case $cc_basename in
11329 KCC)
11330 # KAI C++ Compiler
11331 lt_prog_compiler_wl_CXX='--backend -Wl,'
11332 lt_prog_compiler_pic_CXX='-fPIC'
11334 icpc)
11335 # Intel C++
11336 lt_prog_compiler_wl_CXX='-Wl,'
11337 lt_prog_compiler_pic_CXX='-KPIC'
11338 lt_prog_compiler_static_CXX='-static'
11340 cxx)
11341 # Compaq C++
11342 # Make sure the PIC flag is empty. It appears that all Alpha
11343 # Linux and Compaq Tru64 Unix objects are PIC.
11344 lt_prog_compiler_pic_CXX=
11345 lt_prog_compiler_static_CXX='-non_shared'
11349 esac
11351 lynxos*)
11353 m88k*)
11355 mvs*)
11356 case $cc_basename in
11357 cxx)
11358 lt_prog_compiler_pic_CXX='-W c,exportall'
11362 esac
11364 netbsd*)
11366 osf3* | osf4* | osf5*)
11367 case $cc_basename in
11368 KCC)
11369 lt_prog_compiler_wl_CXX='--backend -Wl,'
11371 RCC)
11372 # Rational C++ 2.4.1
11373 lt_prog_compiler_pic_CXX='-pic'
11375 cxx)
11376 # Digital/Compaq C++
11377 lt_prog_compiler_wl_CXX='-Wl,'
11378 # Make sure the PIC flag is empty. It appears that all Alpha
11379 # Linux and Compaq Tru64 Unix objects are PIC.
11380 lt_prog_compiler_pic_CXX=
11381 lt_prog_compiler_static_CXX='-non_shared'
11385 esac
11387 psos*)
11389 sco*)
11390 case $cc_basename in
11392 lt_prog_compiler_pic_CXX='-fPIC'
11396 esac
11398 solaris*)
11399 case $cc_basename in
11401 # Sun C++ 4.2, 5.x and Centerline C++
11402 lt_prog_compiler_pic_CXX='-KPIC'
11403 lt_prog_compiler_static_CXX='-Bstatic'
11404 lt_prog_compiler_wl_CXX='-Qoption ld '
11406 gcx)
11407 # Green Hills C++ Compiler
11408 lt_prog_compiler_pic_CXX='-PIC'
11412 esac
11414 sunos4*)
11415 case $cc_basename in
11417 # Sun C++ 4.x
11418 lt_prog_compiler_pic_CXX='-pic'
11419 lt_prog_compiler_static_CXX='-Bstatic'
11421 lcc)
11422 # Lucid
11423 lt_prog_compiler_pic_CXX='-pic'
11427 esac
11429 tandem*)
11430 case $cc_basename in
11431 NCC)
11432 # NonStop-UX NCC 3.20
11433 lt_prog_compiler_pic_CXX='-KPIC'
11437 esac
11439 unixware*)
11441 vxworks*)
11444 lt_prog_compiler_can_build_shared_CXX=no
11446 esac
11449 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11450 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11453 # Check to make sure the PIC flag actually works.
11455 if test -n "$lt_prog_compiler_pic_CXX"; then
11457 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11458 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11459 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 lt_prog_compiler_pic_works_CXX=no
11463 ac_outfile=conftest.$ac_objext
11464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11465 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11466 # Insert the option either (1) after the last *FLAGS variable, or
11467 # (2) before a word containing "conftest.", or (3) at the end.
11468 # Note that $ac_compile itself does not contain backslashes and begins
11469 # with a dollar sign (not a hyphen), so the echo should work correctly.
11470 # The option is referenced via a variable to avoid confusing sed.
11471 lt_compile=`echo "$ac_compile" | $SED \
11472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11474 -e 's:$: $lt_compiler_flag:'`
11475 (eval echo "\"\$as_me:11475: $lt_compile\"" >&5)
11476 (eval "$lt_compile" 2>conftest.err)
11477 ac_status=$?
11478 cat conftest.err >&5
11479 echo "$as_me:11479: \$? = $ac_status" >&5
11480 if (exit $ac_status) && test -s "$ac_outfile"; then
11481 # The compiler can only warn and ignore the option if not recognized
11482 # So say no if there are warnings
11483 if test ! -s conftest.err; then
11484 lt_prog_compiler_pic_works_CXX=yes
11487 $rm conftest*
11490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11491 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11493 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11494 case $lt_prog_compiler_pic_CXX in
11495 "" | " "*) ;;
11496 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11497 esac
11498 else
11499 lt_prog_compiler_pic_CXX=
11500 lt_prog_compiler_can_build_shared_CXX=no
11504 case "$host_os" in
11505 # For platforms which do not support PIC, -DPIC is meaningless:
11506 *djgpp*)
11507 lt_prog_compiler_pic_CXX=
11510 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11512 esac
11514 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11516 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519 lt_cv_prog_compiler_c_o_CXX=no
11520 $rm -r conftest 2>/dev/null
11521 mkdir conftest
11522 cd conftest
11523 mkdir out
11524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11526 lt_compiler_flag="-o out/conftest2.$ac_objext"
11527 # Insert the option either (1) after the last *FLAGS variable, or
11528 # (2) before a word containing "conftest.", or (3) at the end.
11529 # Note that $ac_compile itself does not contain backslashes and begins
11530 # with a dollar sign (not a hyphen), so the echo should work correctly.
11531 lt_compile=`echo "$ac_compile" | $SED \
11532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11534 -e 's:$: $lt_compiler_flag:'`
11535 (eval echo "\"\$as_me:11535: $lt_compile\"" >&5)
11536 (eval "$lt_compile" 2>out/conftest.err)
11537 ac_status=$?
11538 cat out/conftest.err >&5
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11541 then
11542 # The compiler can only warn and ignore the option if not recognized
11543 # So say no if there are warnings
11544 if test ! -s out/conftest.err; then
11545 lt_cv_prog_compiler_c_o_CXX=yes
11548 chmod u+w .
11549 $rm conftest*
11550 # SGI C++ compiler will create directory out/ii_files/ for
11551 # template instantiation
11552 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11553 $rm out/* && rmdir out
11554 cd ..
11555 rmdir conftest
11556 $rm conftest*
11559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11560 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11563 hard_links="nottested"
11564 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11565 # do not overwrite the value of need_locks provided by the user
11566 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11567 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11568 hard_links=yes
11569 $rm conftest*
11570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11571 touch conftest.a
11572 ln conftest.a conftest.b 2>&5 || hard_links=no
11573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11574 echo "$as_me:$LINENO: result: $hard_links" >&5
11575 echo "${ECHO_T}$hard_links" >&6
11576 if test "$hard_links" = no; then
11577 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11578 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11579 need_locks=warn
11581 else
11582 need_locks=no
11585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11588 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11589 case $host_os in
11590 aix4* | aix5*)
11591 # If we're using GNU nm, then we don't want the "-C" option.
11592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11594 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'
11595 else
11596 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'
11599 pw32*)
11600 export_symbols_cmds_CXX="$ltdll_cmds"
11602 cygwin* | mingw*)
11603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11606 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11608 esac
11610 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11611 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11612 test "$ld_shlibs_CXX" = no && can_build_shared=no
11614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11615 if test "$GCC" = yes; then
11616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11620 # Do we need to explicitly link libc?
11622 case "x$archive_cmds_need_lc_CXX" in
11623 x|xyes)
11624 # Assume -lc should be added
11625 archive_cmds_need_lc_CXX=yes
11627 if test "$enable_shared" = yes && test "$GCC" = yes; then
11628 case $archive_cmds_CXX in
11629 *'~'*)
11630 # FIXME: we may have to deal with multi-command sequences.
11632 '$CC '*)
11633 # Test whether the compiler implicitly links with -lc since on some
11634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11635 # to ld, don't add -lc before -lgcc.
11636 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11637 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11638 $rm conftest*
11639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642 (eval $ac_compile) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } 2>conftest.err; then
11646 soname=conftest
11647 lib=conftest
11648 libobjs=conftest.$ac_objext
11649 deplibs=
11650 wl=$lt_prog_compiler_wl_CXX
11651 compiler_flags=-v
11652 linker_flags=-v
11653 verstring=
11654 output_objdir=.
11655 libname=conftest
11656 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11657 allow_undefined_flag_CXX=
11658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11659 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }
11663 then
11664 archive_cmds_need_lc_CXX=no
11665 else
11666 archive_cmds_need_lc_CXX=yes
11668 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11669 else
11670 cat conftest.err 1>&5
11672 $rm conftest*
11673 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11674 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11676 esac
11679 esac
11681 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11683 library_names_spec=
11684 libname_spec='lib$name'
11685 soname_spec=
11686 shrext_cmds=".so"
11687 postinstall_cmds=
11688 postuninstall_cmds=
11689 finish_cmds=
11690 finish_eval=
11691 shlibpath_var=
11692 shlibpath_overrides_runpath=unknown
11693 version_type=none
11694 dynamic_linker="$host_os ld.so"
11695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11696 if test "$GCC" = yes; then
11697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11699 # if the path contains ";" then we assume it to be the separator
11700 # otherwise default to the standard path separator (i.e. ":") - it is
11701 # assumed that no part of a normal pathname contains ";" but that should
11702 # okay in the real world where ";" in dirpaths is itself problematic.
11703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11704 else
11705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11707 else
11708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11710 need_lib_prefix=unknown
11711 hardcode_into_libs=no
11713 # when you set need_version to no, make sure it does not cause -set_version
11714 # flags to be left without arguments
11715 need_version=unknown
11717 case $host_os in
11718 aix3*)
11719 version_type=linux
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11721 shlibpath_var=LIBPATH
11723 # AIX 3 has no versioning support, so we append a major version to the name.
11724 soname_spec='${libname}${release}${shared_ext}$major'
11727 aix4* | aix5*)
11728 version_type=linux
11729 need_lib_prefix=no
11730 need_version=no
11731 hardcode_into_libs=yes
11732 if test "$host_cpu" = ia64; then
11733 # AIX 5 supports IA64
11734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 else
11737 # With GCC up to 2.95.x, collect2 would create an import file
11738 # for dependence libraries. The import file would start with
11739 # the line `#! .'. This would cause the generated library to
11740 # depend on `.', always an invalid library. This was fixed in
11741 # development snapshots of GCC prior to 3.0.
11742 case $host_os in
11743 aix4 | aix4.[01] | aix4.[01].*)
11744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11745 echo ' yes '
11746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11748 else
11749 can_build_shared=no
11752 esac
11753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11754 # soname into executable. Probably we can add versioning support to
11755 # collect2, so additional links can be useful in future.
11756 if test "$aix_use_runtimelinking" = yes; then
11757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11758 # instead of lib<name>.a to let people know that these are not
11759 # typical AIX shared libraries.
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 else
11762 # We preserve .a as extension for shared libraries through AIX4.2
11763 # and later when we are not doing run time linking.
11764 library_names_spec='${libname}${release}.a $libname.a'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11767 shlibpath_var=LIBPATH
11771 amigaos*)
11772 library_names_spec='$libname.ixlibrary $libname.a'
11773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11774 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'
11777 beos*)
11778 library_names_spec='${libname}${shared_ext}'
11779 dynamic_linker="$host_os ld.so"
11780 shlibpath_var=LIBRARY_PATH
11783 bsdi[45]*)
11784 version_type=linux
11785 need_version=no
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 soname_spec='${libname}${release}${shared_ext}$major'
11788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11792 # the default ld.so.conf also contains /usr/contrib/lib and
11793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11794 # libtool to hard-code these into programs
11797 cygwin* | mingw* | pw32*)
11798 version_type=windows
11799 shrext_cmds=".dll"
11800 need_version=no
11801 need_lib_prefix=no
11803 case $GCC,$host_os in
11804 yes,cygwin* | yes,mingw* | yes,pw32*)
11805 library_names_spec='$libname.dll.a'
11806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11807 postinstall_cmds='base_file=`basename \${file}`~
11808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11809 dldir=$destdir/`dirname \$dlpath`~
11810 test -d \$dldir || mkdir -p \$dldir~
11811 $install_prog $dir/$dlname \$dldir/$dlname'
11812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11813 dlpath=$dir/\$dldll~
11814 $rm \$dlpath'
11815 shlibpath_overrides_runpath=yes
11817 case $host_os in
11818 cygwin*)
11819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11823 mingw*)
11824 # MinGW DLLs use traditional 'lib' prefix
11825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11828 # It is most probably a Windows format PATH printed by
11829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11830 # path with ; separators, and with drive letters. We can handle the
11831 # drive letters (cygwin fileutils understands them), so leave them,
11832 # especially as we might pass files found there to a mingw objdump,
11833 # which wouldn't understand a cygwinified path. Ahh.
11834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11835 else
11836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11839 pw32*)
11840 # pw32 DLLs use 'pw' prefix rather than 'lib'
11841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11843 esac
11847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11849 esac
11850 dynamic_linker='Win32 ld.exe'
11851 # FIXME: first we should search . and the directory the executable is in
11852 shlibpath_var=PATH
11855 darwin* | rhapsody*)
11856 dynamic_linker="$host_os dyld"
11857 version_type=darwin
11858 need_lib_prefix=no
11859 need_version=no
11860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11861 soname_spec='${libname}${release}${major}$shared_ext'
11862 shlibpath_overrides_runpath=yes
11863 shlibpath_var=DYLD_LIBRARY_PATH
11864 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11866 if test "$GCC" = yes; then
11867 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"`
11868 else
11869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11874 dgux*)
11875 version_type=linux
11876 need_lib_prefix=no
11877 need_version=no
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 shlibpath_var=LD_LIBRARY_PATH
11883 freebsd1*)
11884 dynamic_linker=no
11887 kfreebsd*-gnu)
11888 version_type=linux
11889 need_lib_prefix=no
11890 need_version=no
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=no
11895 hardcode_into_libs=yes
11896 dynamic_linker='GNU ld.so'
11899 freebsd*)
11900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11901 version_type=freebsd-$objformat
11902 case $version_type in
11903 freebsd-elf*)
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11905 need_version=no
11906 need_lib_prefix=no
11908 freebsd-*)
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11910 need_version=yes
11912 esac
11913 shlibpath_var=LD_LIBRARY_PATH
11914 case $host_os in
11915 freebsd2*)
11916 shlibpath_overrides_runpath=yes
11918 freebsd3.01* | freebsdelf3.01*)
11919 shlibpath_overrides_runpath=yes
11920 hardcode_into_libs=yes
11922 *) # from 3.2 on
11923 shlibpath_overrides_runpath=no
11924 hardcode_into_libs=yes
11926 esac
11929 gnu*)
11930 version_type=linux
11931 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
11936 hardcode_into_libs=yes
11939 hpux9* | hpux10* | hpux11*)
11940 # Give a soname corresponding to the major version so that dld.sl refuses to
11941 # link against other versions.
11942 version_type=sunos
11943 need_lib_prefix=no
11944 need_version=no
11945 case "$host_cpu" in
11946 ia64*)
11947 shrext_cmds='.so'
11948 hardcode_into_libs=yes
11949 dynamic_linker="$host_os dld.so"
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 soname_spec='${libname}${release}${shared_ext}$major'
11954 if test "X$HPUX_IA64_MODE" = X32; then
11955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11956 else
11957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11961 hppa*64*)
11962 shrext_cmds='.sl'
11963 hardcode_into_libs=yes
11964 dynamic_linker="$host_os dld.sl"
11965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11973 shrext_cmds='.sl'
11974 dynamic_linker="$host_os dld.sl"
11975 shlibpath_var=SHLIB_PATH
11976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978 soname_spec='${libname}${release}${shared_ext}$major'
11980 esac
11981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11982 postinstall_cmds='chmod 555 $lib'
11985 irix5* | irix6* | nonstopux*)
11986 case $host_os in
11987 nonstopux*) version_type=nonstopux ;;
11989 if test "$lt_cv_prog_gnu_ld" = yes; then
11990 version_type=linux
11991 else
11992 version_type=irix
11993 fi ;;
11994 esac
11995 need_lib_prefix=no
11996 need_version=no
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11999 case $host_os in
12000 irix5* | nonstopux*)
12001 libsuff= shlibsuff=
12004 case $LD in # libtool.m4 will add one of these switches to LD
12005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12006 libsuff= shlibsuff= libmagic=32-bit;;
12007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12008 libsuff=32 shlibsuff=N32 libmagic=N32;;
12009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12011 *) libsuff= shlibsuff= libmagic=never-match;;
12012 esac
12014 esac
12015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12016 shlibpath_overrides_runpath=no
12017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12019 hardcode_into_libs=yes
12022 # No shared lib support for Linux oldld, aout, or coff.
12023 linux*oldld* | linux*aout* | linux*coff*)
12024 dynamic_linker=no
12027 # This must be Linux ELF.
12028 linux*)
12029 version_type=linux
12030 need_lib_prefix=no
12031 need_version=no
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 shlibpath_overrides_runpath=no
12037 # This implies no fast_install, which is unacceptable.
12038 # Some rework will be needed to allow for fast_install
12039 # before this can be enabled.
12040 hardcode_into_libs=yes
12042 # Append ld.so.conf contents to the search path
12043 if test -f /etc/ld.so.conf; then
12044 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12048 # We used to test for /lib/ld.so.1 and disable shared libraries on
12049 # powerpc, because MkLinux only supported shared libraries with the
12050 # GNU dynamic linker. Since this was broken with cross compilers,
12051 # most powerpc-linux boxes support dynamic linking these days and
12052 # people can always --disable-shared, the test was removed, and we
12053 # assume the GNU/Linux dynamic linker is in use.
12054 dynamic_linker='GNU/Linux ld.so'
12057 knetbsd*-gnu)
12058 version_type=linux
12059 need_lib_prefix=no
12060 need_version=no
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=no
12065 hardcode_into_libs=yes
12066 dynamic_linker='GNU ld.so'
12069 netbsd*)
12070 version_type=sunos
12071 need_lib_prefix=no
12072 need_version=no
12073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12076 dynamic_linker='NetBSD (a.out) ld.so'
12077 else
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12080 dynamic_linker='NetBSD ld.elf_so'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 shlibpath_overrides_runpath=yes
12084 hardcode_into_libs=yes
12087 newsos6)
12088 version_type=linux
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=yes
12094 nto-qnx*)
12095 version_type=linux
12096 need_lib_prefix=no
12097 need_version=no
12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099 soname_spec='${libname}${release}${shared_ext}$major'
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes
12104 openbsd*)
12105 version_type=sunos
12106 need_lib_prefix=no
12107 need_version=no
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12110 shlibpath_var=LD_LIBRARY_PATH
12111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12112 case $host_os in
12113 openbsd2.[89] | openbsd2.[89].*)
12114 shlibpath_overrides_runpath=no
12117 shlibpath_overrides_runpath=yes
12119 esac
12120 else
12121 shlibpath_overrides_runpath=yes
12125 os2*)
12126 libname_spec='$name'
12127 shrext_cmds=".dll"
12128 need_lib_prefix=no
12129 library_names_spec='$libname${shared_ext} $libname.a'
12130 dynamic_linker='OS/2 ld.exe'
12131 shlibpath_var=LIBPATH
12134 osf3* | osf4* | osf5*)
12135 version_type=osf
12136 need_lib_prefix=no
12137 need_version=no
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12145 sco3.2v5*)
12146 version_type=osf
12147 soname_spec='${libname}${release}${shared_ext}$major'
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 shlibpath_var=LD_LIBRARY_PATH
12152 solaris*)
12153 version_type=linux
12154 need_lib_prefix=no
12155 need_version=no
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 soname_spec='${libname}${release}${shared_ext}$major'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 shlibpath_overrides_runpath=yes
12160 hardcode_into_libs=yes
12161 # ldd complains unless libraries are executable
12162 postinstall_cmds='chmod +x $lib'
12165 sunos4*)
12166 version_type=sunos
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=yes
12171 if test "$with_gnu_ld" = yes; then
12172 need_lib_prefix=no
12174 need_version=yes
12177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12178 version_type=linux
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180 soname_spec='${libname}${release}${shared_ext}$major'
12181 shlibpath_var=LD_LIBRARY_PATH
12182 case $host_vendor in
12183 sni)
12184 shlibpath_overrides_runpath=no
12185 need_lib_prefix=no
12186 export_dynamic_flag_spec='${wl}-Blargedynsym'
12187 runpath_var=LD_RUN_PATH
12189 siemens)
12190 need_lib_prefix=no
12192 motorola)
12193 need_lib_prefix=no
12194 need_version=no
12195 shlibpath_overrides_runpath=no
12196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12198 esac
12201 sysv4*MP*)
12202 if test -d /usr/nec ;then
12203 version_type=linux
12204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12205 soname_spec='$libname${shared_ext}.$major'
12206 shlibpath_var=LD_LIBRARY_PATH
12210 uts4*)
12211 version_type=linux
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12214 shlibpath_var=LD_LIBRARY_PATH
12218 dynamic_linker=no
12220 esac
12221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12222 echo "${ECHO_T}$dynamic_linker" >&6
12223 test "$dynamic_linker" = no && can_build_shared=no
12225 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12227 hardcode_action_CXX=
12228 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12229 test -n "$runpath_var_CXX" || \
12230 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12232 # We can hardcode non-existant directories.
12233 if test "$hardcode_direct_CXX" != no &&
12234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12235 # have to relink, otherwise we might link with an installed library
12236 # when we should be linking with a yet-to-be-installed one
12237 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12238 test "$hardcode_minus_L_CXX" != no; then
12239 # Linking always hardcodes the temporary library directory.
12240 hardcode_action_CXX=relink
12241 else
12242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12243 hardcode_action_CXX=immediate
12245 else
12246 # We cannot hardcode anything, or else we can only hardcode existing
12247 # directories.
12248 hardcode_action_CXX=unsupported
12250 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12251 echo "${ECHO_T}$hardcode_action_CXX" >&6
12253 if test "$hardcode_action_CXX" = relink; then
12254 # Fast installation is not supported
12255 enable_fast_install=no
12256 elif test "$shlibpath_overrides_runpath" = yes ||
12257 test "$enable_shared" = no; then
12258 # Fast installation is not necessary
12259 enable_fast_install=needless
12262 striplib=
12263 old_striplib=
12264 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12265 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12266 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12268 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12269 echo "$as_me:$LINENO: result: yes" >&5
12270 echo "${ECHO_T}yes" >&6
12271 else
12272 # FIXME - insert some real tests, host_os isn't really good enough
12273 case $host_os in
12274 darwin*)
12275 if test -n "$STRIP" ; then
12276 striplib="$STRIP -x"
12277 echo "$as_me:$LINENO: result: yes" >&5
12278 echo "${ECHO_T}yes" >&6
12279 else
12280 echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6
12285 echo "$as_me:$LINENO: result: no" >&5
12286 echo "${ECHO_T}no" >&6
12288 esac
12291 if test "x$enable_dlopen" != xyes; then
12292 enable_dlopen=unknown
12293 enable_dlopen_self=unknown
12294 enable_dlopen_self_static=unknown
12295 else
12296 lt_cv_dlopen=no
12297 lt_cv_dlopen_libs=
12299 case $host_os in
12300 beos*)
12301 lt_cv_dlopen="load_add_on"
12302 lt_cv_dlopen_libs=
12303 lt_cv_dlopen_self=yes
12306 mingw* | pw32*)
12307 lt_cv_dlopen="LoadLibrary"
12308 lt_cv_dlopen_libs=
12311 cygwin*)
12312 lt_cv_dlopen="dlopen"
12313 lt_cv_dlopen_libs=
12316 darwin*)
12317 # if libdl is installed we need to link against it
12318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-ldl $LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 /* Override any gcc2 internal prototype to avoid an error. */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 /* We use char because int might match the return type of a gcc2
12337 builtin and then its argument prototype would still apply. */
12338 char dlopen ();
12340 main ()
12342 dlopen ();
12344 return 0;
12346 _ACEOF
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12349 (eval $ac_link) 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_cxx_werror_flag"
12357 || test ! -s conftest.err'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 ac_cv_lib_dl_dlopen=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_cv_lib_dl_dlopen=no
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12380 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12381 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12382 if test $ac_cv_lib_dl_dlopen = yes; then
12383 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12384 else
12386 lt_cv_dlopen="dyld"
12387 lt_cv_dlopen_libs=
12388 lt_cv_dlopen_self=yes
12395 echo "$as_me:$LINENO: checking for shl_load" >&5
12396 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12397 if test "${ac_cv_func_shl_load+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12408 #define shl_load innocuous_shl_load
12410 /* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char shl_load (); below.
12412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12413 <limits.h> exists even on freestanding compilers. */
12415 #ifdef __STDC__
12416 # include <limits.h>
12417 #else
12418 # include <assert.h>
12419 #endif
12421 #undef shl_load
12423 /* Override any gcc2 internal prototype to avoid an error. */
12424 #ifdef __cplusplus
12425 extern "C"
12427 #endif
12428 /* We use char because int might match the return type of a gcc2
12429 builtin and then its argument prototype would still apply. */
12430 char shl_load ();
12431 /* The GNU C library defines this for functions which it implements
12432 to always fail with ENOSYS. Some functions are actually named
12433 something starting with __ and the normal name is an alias. */
12434 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12435 choke me
12436 #else
12437 char (*f) () = shl_load;
12438 #endif
12439 #ifdef __cplusplus
12441 #endif
12444 main ()
12446 return f != shl_load;
12448 return 0;
12450 _ACEOF
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_cxx_werror_flag"
12461 || test ! -s conftest.err'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_func_shl_load=yes
12474 else
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_cv_func_shl_load=no
12480 rm -f conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12483 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12484 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12485 if test $ac_cv_func_shl_load = yes; then
12486 lt_cv_dlopen="shl_load"
12487 else
12488 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12489 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12490 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 ac_check_lib_save_LIBS=$LIBS
12494 LIBS="-ldld $LIBS"
12495 cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h. */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12502 /* Override any gcc2 internal prototype to avoid an error. */
12503 #ifdef __cplusplus
12504 extern "C"
12505 #endif
12506 /* We use char because int might match the return type of a gcc2
12507 builtin and then its argument prototype would still apply. */
12508 char shl_load ();
12510 main ()
12512 shl_load ();
12514 return 0;
12516 _ACEOF
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519 (eval $ac_link) 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_cxx_werror_flag"
12527 || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_lib_dld_shl_load=yes
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_cv_lib_dld_shl_load=no
12546 rm -f conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12551 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12552 if test $ac_cv_lib_dld_shl_load = yes; then
12553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12554 else
12555 echo "$as_me:$LINENO: checking for dlopen" >&5
12556 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12557 if test "${ac_cv_func_dlopen+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568 #define dlopen innocuous_dlopen
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char dlopen (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12575 #ifdef __STDC__
12576 # include <limits.h>
12577 #else
12578 # include <assert.h>
12579 #endif
12581 #undef dlopen
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 #ifdef __cplusplus
12585 extern "C"
12587 #endif
12588 /* We use char because int might match the return type of a gcc2
12589 builtin and then its argument prototype would still apply. */
12590 char dlopen ();
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12595 choke me
12596 #else
12597 char (*f) () = dlopen;
12598 #endif
12599 #ifdef __cplusplus
12601 #endif
12604 main ()
12606 return f != dlopen;
12608 return 0;
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_cxx_werror_flag"
12621 || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_func_dlopen=yes
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ac_cv_func_dlopen=no
12640 rm -f conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12643 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12644 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12645 if test $ac_cv_func_dlopen = yes; then
12646 lt_cv_dlopen="dlopen"
12647 else
12648 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12649 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653 ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-ldl $LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h. */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 /* Override any gcc2 internal prototype to avoid an error. */
12663 #ifdef __cplusplus
12664 extern "C"
12665 #endif
12666 /* We use char because int might match the return type of a gcc2
12667 builtin and then its argument prototype would still apply. */
12668 char dlopen ();
12670 main ()
12672 dlopen ();
12674 return 0;
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -z "$ac_cxx_werror_flag"
12687 || test ! -s conftest.err'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; } &&
12693 { ac_try='test -s conftest$ac_exeext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_cv_lib_dl_dlopen=yes
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_cv_lib_dl_dlopen=no
12706 rm -f conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext conftest.$ac_ext
12708 LIBS=$ac_check_lib_save_LIBS
12710 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12711 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12712 if test $ac_cv_lib_dl_dlopen = yes; then
12713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12714 else
12715 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12716 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12717 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720 ac_check_lib_save_LIBS=$LIBS
12721 LIBS="-lsvld $LIBS"
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h. */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12729 /* Override any gcc2 internal prototype to avoid an error. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 /* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */
12735 char dlopen ();
12737 main ()
12739 dlopen ();
12741 return 0;
12743 _ACEOF
12744 rm -f conftest.$ac_objext conftest$ac_exeext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12746 (eval $ac_link) 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_cxx_werror_flag"
12754 || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_cv_lib_svld_dlopen=yes
12767 else
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ac_cv_lib_svld_dlopen=no
12773 rm -f conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12777 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12778 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12779 if test $ac_cv_lib_svld_dlopen = yes; then
12780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12781 else
12782 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12783 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12784 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787 ac_check_lib_save_LIBS=$LIBS
12788 LIBS="-ldld $LIBS"
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 /* Override any gcc2 internal prototype to avoid an error. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 /* We use char because int might match the return type of a gcc2
12801 builtin and then its argument prototype would still apply. */
12802 char dld_link ();
12804 main ()
12806 dld_link ();
12808 return 0;
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12813 (eval $ac_link) 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -z "$ac_cxx_werror_flag"
12821 || test ! -s conftest.err'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_cv_lib_dld_dld_link=yes
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_cv_lib_dld_dld_link=no
12840 rm -f conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12844 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12845 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12846 if test $ac_cv_lib_dld_dld_link = yes; then
12847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12866 esac
12868 if test "x$lt_cv_dlopen" != xno; then
12869 enable_dlopen=yes
12870 else
12871 enable_dlopen=no
12874 case $lt_cv_dlopen in
12875 dlopen)
12876 save_CPPFLAGS="$CPPFLAGS"
12877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12879 save_LDFLAGS="$LDFLAGS"
12880 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12882 save_LIBS="$LIBS"
12883 LIBS="$lt_cv_dlopen_libs $LIBS"
12885 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12886 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12887 if test "${lt_cv_dlopen_self+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890 if test "$cross_compiling" = yes; then :
12891 lt_cv_dlopen_self=cross
12892 else
12893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12894 lt_status=$lt_dlunknown
12895 cat > conftest.$ac_ext <<EOF
12896 #line 12896 "configure"
12897 #include "confdefs.h"
12899 #if HAVE_DLFCN_H
12900 #include <dlfcn.h>
12901 #endif
12903 #include <stdio.h>
12905 #ifdef RTLD_GLOBAL
12906 # define LT_DLGLOBAL RTLD_GLOBAL
12907 #else
12908 # ifdef DL_GLOBAL
12909 # define LT_DLGLOBAL DL_GLOBAL
12910 # else
12911 # define LT_DLGLOBAL 0
12912 # endif
12913 #endif
12915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12916 find out it does not work in some platform. */
12917 #ifndef LT_DLLAZY_OR_NOW
12918 # ifdef RTLD_LAZY
12919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12920 # else
12921 # ifdef DL_LAZY
12922 # define LT_DLLAZY_OR_NOW DL_LAZY
12923 # else
12924 # ifdef RTLD_NOW
12925 # define LT_DLLAZY_OR_NOW RTLD_NOW
12926 # else
12927 # ifdef DL_NOW
12928 # define LT_DLLAZY_OR_NOW DL_NOW
12929 # else
12930 # define LT_DLLAZY_OR_NOW 0
12931 # endif
12932 # endif
12933 # endif
12934 # endif
12935 #endif
12937 #ifdef __cplusplus
12938 extern "C" void exit (int);
12939 #endif
12941 void fnord() { int i=42;}
12942 int main ()
12944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12945 int status = $lt_dlunknown;
12947 if (self)
12949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12951 /* dlclose (self); */
12954 exit (status);
12957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12958 (eval $ac_link) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12962 (./conftest; exit; ) 2>/dev/null
12963 lt_status=$?
12964 case x$lt_status in
12965 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12966 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12967 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12968 esac
12969 else :
12970 # compilation failed
12971 lt_cv_dlopen_self=no
12974 rm -fr conftest*
12978 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12979 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12981 if test "x$lt_cv_dlopen_self" = xyes; then
12982 LDFLAGS="$LDFLAGS $link_static_flag"
12983 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12984 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12985 if test "${lt_cv_dlopen_self_static+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988 if test "$cross_compiling" = yes; then :
12989 lt_cv_dlopen_self_static=cross
12990 else
12991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12992 lt_status=$lt_dlunknown
12993 cat > conftest.$ac_ext <<EOF
12994 #line 12994 "configure"
12995 #include "confdefs.h"
12997 #if HAVE_DLFCN_H
12998 #include <dlfcn.h>
12999 #endif
13001 #include <stdio.h>
13003 #ifdef RTLD_GLOBAL
13004 # define LT_DLGLOBAL RTLD_GLOBAL
13005 #else
13006 # ifdef DL_GLOBAL
13007 # define LT_DLGLOBAL DL_GLOBAL
13008 # else
13009 # define LT_DLGLOBAL 0
13010 # endif
13011 #endif
13013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13014 find out it does not work in some platform. */
13015 #ifndef LT_DLLAZY_OR_NOW
13016 # ifdef RTLD_LAZY
13017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13018 # else
13019 # ifdef DL_LAZY
13020 # define LT_DLLAZY_OR_NOW DL_LAZY
13021 # else
13022 # ifdef RTLD_NOW
13023 # define LT_DLLAZY_OR_NOW RTLD_NOW
13024 # else
13025 # ifdef DL_NOW
13026 # define LT_DLLAZY_OR_NOW DL_NOW
13027 # else
13028 # define LT_DLLAZY_OR_NOW 0
13029 # endif
13030 # endif
13031 # endif
13032 # endif
13033 #endif
13035 #ifdef __cplusplus
13036 extern "C" void exit (int);
13037 #endif
13039 void fnord() { int i=42;}
13040 int main ()
13042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13043 int status = $lt_dlunknown;
13045 if (self)
13047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13049 /* dlclose (self); */
13052 exit (status);
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13060 (./conftest; exit; ) 2>/dev/null
13061 lt_status=$?
13062 case x$lt_status in
13063 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13064 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13065 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13066 esac
13067 else :
13068 # compilation failed
13069 lt_cv_dlopen_self_static=no
13072 rm -fr conftest*
13076 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13077 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13080 CPPFLAGS="$save_CPPFLAGS"
13081 LDFLAGS="$save_LDFLAGS"
13082 LIBS="$save_LIBS"
13084 esac
13086 case $lt_cv_dlopen_self in
13087 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13088 *) enable_dlopen_self=unknown ;;
13089 esac
13091 case $lt_cv_dlopen_self_static in
13092 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13093 *) enable_dlopen_self_static=unknown ;;
13094 esac
13098 # The else clause should only fire when bootstrapping the
13099 # libtool distribution, otherwise you forgot to ship ltmain.sh
13100 # with your package, and you will get complaints that there are
13101 # no rules to generate ltmain.sh.
13102 if test -f "$ltmain"; then
13103 # See if we are running on zsh, and set the options which allow our commands through
13104 # without removal of \ escapes.
13105 if test -n "${ZSH_VERSION+set}" ; then
13106 setopt NO_GLOB_SUBST
13108 # Now quote all the things that may contain metacharacters while being
13109 # careful not to overquote the AC_SUBSTed values. We take copies of the
13110 # variables and quote the copies for generation of the libtool script.
13111 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13112 SED SHELL STRIP \
13113 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13114 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13115 deplibs_check_method reload_flag reload_cmds need_locks \
13116 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13117 lt_cv_sys_global_symbol_to_c_name_address \
13118 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13119 old_postinstall_cmds old_postuninstall_cmds \
13120 compiler_CXX \
13121 CC_CXX \
13122 LD_CXX \
13123 lt_prog_compiler_wl_CXX \
13124 lt_prog_compiler_pic_CXX \
13125 lt_prog_compiler_static_CXX \
13126 lt_prog_compiler_no_builtin_flag_CXX \
13127 export_dynamic_flag_spec_CXX \
13128 thread_safe_flag_spec_CXX \
13129 whole_archive_flag_spec_CXX \
13130 enable_shared_with_static_runtimes_CXX \
13131 old_archive_cmds_CXX \
13132 old_archive_from_new_cmds_CXX \
13133 predep_objects_CXX \
13134 postdep_objects_CXX \
13135 predeps_CXX \
13136 postdeps_CXX \
13137 compiler_lib_search_path_CXX \
13138 archive_cmds_CXX \
13139 archive_expsym_cmds_CXX \
13140 postinstall_cmds_CXX \
13141 postuninstall_cmds_CXX \
13142 old_archive_from_expsyms_cmds_CXX \
13143 allow_undefined_flag_CXX \
13144 no_undefined_flag_CXX \
13145 export_symbols_cmds_CXX \
13146 hardcode_libdir_flag_spec_CXX \
13147 hardcode_libdir_flag_spec_ld_CXX \
13148 hardcode_libdir_separator_CXX \
13149 hardcode_automatic_CXX \
13150 module_cmds_CXX \
13151 module_expsym_cmds_CXX \
13152 lt_cv_prog_compiler_c_o_CXX \
13153 exclude_expsyms_CXX \
13154 include_expsyms_CXX; do
13156 case $var in
13157 old_archive_cmds_CXX | \
13158 old_archive_from_new_cmds_CXX | \
13159 archive_cmds_CXX | \
13160 archive_expsym_cmds_CXX | \
13161 module_cmds_CXX | \
13162 module_expsym_cmds_CXX | \
13163 old_archive_from_expsyms_cmds_CXX | \
13164 export_symbols_cmds_CXX | \
13165 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13166 postinstall_cmds | postuninstall_cmds | \
13167 old_postinstall_cmds | old_postuninstall_cmds | \
13168 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13169 # Double-quote double-evaled strings.
13170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13175 esac
13176 done
13178 case $lt_echo in
13179 *'\$0 --fallback-echo"')
13180 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13182 esac
13184 cfgfile="$ofile"
13186 cat <<__EOF__ >> "$cfgfile"
13187 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13191 # Shell to use when invoking shell scripts.
13192 SHELL=$lt_SHELL
13194 # Whether or not to build shared libraries.
13195 build_libtool_libs=$enable_shared
13197 # Whether or not to build static libraries.
13198 build_old_libs=$enable_static
13200 # Whether or not to add -lc for building shared libraries.
13201 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13203 # Whether or not to disallow shared libs when runtime libs are static
13204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13206 # Whether or not to optimize for fast installation.
13207 fast_install=$enable_fast_install
13209 # The host system.
13210 host_alias=$host_alias
13211 host=$host
13213 # An echo program that does not interpret backslashes.
13214 echo=$lt_echo
13216 # The archiver.
13217 AR=$lt_AR
13218 AR_FLAGS=$lt_AR_FLAGS
13220 # A C compiler.
13221 LTCC=$lt_LTCC
13223 # A language-specific compiler.
13224 CC=$lt_compiler_CXX
13226 # Is the compiler the GNU C compiler?
13227 with_gcc=$GCC_CXX
13229 # An ERE matcher.
13230 EGREP=$lt_EGREP
13232 # The linker used to build libraries.
13233 LD=$lt_LD_CXX
13235 # Whether we need hard or soft links.
13236 LN_S=$lt_LN_S
13238 # A BSD-compatible nm program.
13239 NM=$lt_NM
13241 # A symbol stripping program
13242 STRIP=$lt_STRIP
13244 # Used to examine libraries when file_magic_cmd begins "file"
13245 MAGIC_CMD=$MAGIC_CMD
13247 # Used on cygwin: DLL creation program.
13248 DLLTOOL="$DLLTOOL"
13250 # Used on cygwin: object dumper.
13251 OBJDUMP="$OBJDUMP"
13253 # Used on cygwin: assembler.
13254 AS="$AS"
13256 # The name of the directory that contains temporary libtool files.
13257 objdir=$objdir
13259 # How to create reloadable object files.
13260 reload_flag=$lt_reload_flag
13261 reload_cmds=$lt_reload_cmds
13263 # How to pass a linker flag through the compiler.
13264 wl=$lt_lt_prog_compiler_wl_CXX
13266 # Object file suffix (normally "o").
13267 objext="$ac_objext"
13269 # Old archive suffix (normally "a").
13270 libext="$libext"
13272 # Shared library suffix (normally ".so").
13273 shrext_cmds='$shrext_cmds'
13275 # Executable file suffix (normally "").
13276 exeext="$exeext"
13278 # Additional compiler flags for building library objects.
13279 pic_flag=$lt_lt_prog_compiler_pic_CXX
13280 pic_mode=$pic_mode
13282 # What is the maximum length of a command?
13283 max_cmd_len=$lt_cv_sys_max_cmd_len
13285 # Does compiler simultaneously support -c and -o options?
13286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13288 # Must we lock files when doing compilation ?
13289 need_locks=$lt_need_locks
13291 # Do we need the lib prefix for modules?
13292 need_lib_prefix=$need_lib_prefix
13294 # Do we need a version for libraries?
13295 need_version=$need_version
13297 # Whether dlopen is supported.
13298 dlopen_support=$enable_dlopen
13300 # Whether dlopen of programs is supported.
13301 dlopen_self=$enable_dlopen_self
13303 # Whether dlopen of statically linked programs is supported.
13304 dlopen_self_static=$enable_dlopen_self_static
13306 # Compiler flag to prevent dynamic linking.
13307 link_static_flag=$lt_lt_prog_compiler_static_CXX
13309 # Compiler flag to turn off builtin functions.
13310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13312 # Compiler flag to allow reflexive dlopens.
13313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13315 # Compiler flag to generate shared objects directly from archives.
13316 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13318 # Compiler flag to generate thread-safe objects.
13319 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13321 # Library versioning type.
13322 version_type=$version_type
13324 # Format of library name prefix.
13325 libname_spec=$lt_libname_spec
13327 # List of archive names. First name is the real one, the rest are links.
13328 # The last name is the one that the linker finds with -lNAME.
13329 library_names_spec=$lt_library_names_spec
13331 # The coded name of the library, if different from the real name.
13332 soname_spec=$lt_soname_spec
13334 # Commands used to build and install an old-style archive.
13335 RANLIB=$lt_RANLIB
13336 old_archive_cmds=$lt_old_archive_cmds_CXX
13337 old_postinstall_cmds=$lt_old_postinstall_cmds
13338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13340 # Create an old-style archive from a shared archive.
13341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13343 # Create a temporary old-style archive to link instead of a shared archive.
13344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13346 # Commands used to build and install a shared archive.
13347 archive_cmds=$lt_archive_cmds_CXX
13348 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13349 postinstall_cmds=$lt_postinstall_cmds
13350 postuninstall_cmds=$lt_postuninstall_cmds
13352 # Commands used to build a loadable module (assumed same as above if empty)
13353 module_cmds=$lt_module_cmds_CXX
13354 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13356 # Commands to strip libraries.
13357 old_striplib=$lt_old_striplib
13358 striplib=$lt_striplib
13360 # Dependencies to place before the objects being linked to create a
13361 # shared library.
13362 predep_objects=$lt_predep_objects_CXX
13364 # Dependencies to place after the objects being linked to create a
13365 # shared library.
13366 postdep_objects=$lt_postdep_objects_CXX
13368 # Dependencies to place before the objects being linked to create a
13369 # shared library.
13370 predeps=$lt_predeps_CXX
13372 # Dependencies to place after the objects being linked to create a
13373 # shared library.
13374 postdeps=$lt_postdeps_CXX
13376 # The library search path used internally by the compiler when linking
13377 # a shared library.
13378 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13380 # Method to check whether dependent libraries are shared objects.
13381 deplibs_check_method=$lt_deplibs_check_method
13383 # Command to use when deplibs_check_method == file_magic.
13384 file_magic_cmd=$lt_file_magic_cmd
13386 # Flag that allows shared libraries with undefined symbols to be built.
13387 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13389 # Flag that forces no undefined symbols.
13390 no_undefined_flag=$lt_no_undefined_flag_CXX
13392 # Commands used to finish a libtool library installation in a directory.
13393 finish_cmds=$lt_finish_cmds
13395 # Same as above, but a single script fragment to be evaled but not shown.
13396 finish_eval=$lt_finish_eval
13398 # Take the output of nm and produce a listing of raw symbols and C names.
13399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13401 # Transform the output of nm in a proper C declaration
13402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13404 # Transform the output of nm in a C name address pair
13405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13407 # This is the shared library runtime path variable.
13408 runpath_var=$runpath_var
13410 # This is the shared library path variable.
13411 shlibpath_var=$shlibpath_var
13413 # Is shlibpath searched before the hard-coded library search path?
13414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13416 # How to hardcode a shared library path into an executable.
13417 hardcode_action=$hardcode_action_CXX
13419 # Whether we should hardcode library paths into libraries.
13420 hardcode_into_libs=$hardcode_into_libs
13422 # Flag to hardcode \$libdir into a binary during linking.
13423 # This must work even if \$libdir does not exist.
13424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13426 # If ld is used when linking, flag to hardcode \$libdir into
13427 # a binary during linking. This must work even if \$libdir does
13428 # not exist.
13429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13431 # Whether we need a single -rpath flag with a separated argument.
13432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13434 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13435 # resulting binary.
13436 hardcode_direct=$hardcode_direct_CXX
13438 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13439 # resulting binary.
13440 hardcode_minus_L=$hardcode_minus_L_CXX
13442 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13443 # the resulting binary.
13444 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13446 # Set to yes if building a shared library automatically hardcodes DIR into the library
13447 # and all subsequent libraries and executables linked against it.
13448 hardcode_automatic=$hardcode_automatic_CXX
13450 # Variables whose values should be saved in libtool wrapper scripts and
13451 # restored at relink time.
13452 variables_saved_for_relink="$variables_saved_for_relink"
13454 # Whether libtool must link a program against all its dependency libraries.
13455 link_all_deplibs=$link_all_deplibs_CXX
13457 # Compile-time system search path for libraries
13458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13460 # Run-time system search path for libraries
13461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13463 # Fix the shell variable \$srcfile for the compiler.
13464 fix_srcfile_path="$fix_srcfile_path_CXX"
13466 # Set to yes if exported symbols are required.
13467 always_export_symbols=$always_export_symbols_CXX
13469 # The commands to list exported symbols.
13470 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13472 # The commands to extract the exported symbol list from a shared archive.
13473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13475 # Symbols that should not be listed in the preloaded symbols.
13476 exclude_expsyms=$lt_exclude_expsyms_CXX
13478 # Symbols that must always be exported.
13479 include_expsyms=$lt_include_expsyms_CXX
13481 # ### END LIBTOOL TAG CONFIG: $tagname
13483 __EOF__
13486 else
13487 # If there is no Makefile yet, we rely on a make rule to execute
13488 # `config.status --recheck' to rerun these tests and create the
13489 # libtool script then.
13490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13491 if test -f "$ltmain_in"; then
13492 test -f Makefile && make "$ltmain"
13497 ac_ext=c
13498 ac_cpp='$CPP $CPPFLAGS'
13499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13503 CC=$lt_save_CC
13504 LDCXX=$LD
13505 LD=$lt_save_LD
13506 GCC=$lt_save_GCC
13507 with_gnu_ldcxx=$with_gnu_ld
13508 with_gnu_ld=$lt_save_with_gnu_ld
13509 lt_cv_path_LDCXX=$lt_cv_path_LD
13510 lt_cv_path_LD=$lt_save_path_LD
13511 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13512 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13514 else
13515 tagname=""
13519 F77)
13520 if test -n "$F77" && test "X$F77" != "Xno"; then
13522 ac_ext=f
13523 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13524 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13528 archive_cmds_need_lc_F77=no
13529 allow_undefined_flag_F77=
13530 always_export_symbols_F77=no
13531 archive_expsym_cmds_F77=
13532 export_dynamic_flag_spec_F77=
13533 hardcode_direct_F77=no
13534 hardcode_libdir_flag_spec_F77=
13535 hardcode_libdir_flag_spec_ld_F77=
13536 hardcode_libdir_separator_F77=
13537 hardcode_minus_L_F77=no
13538 hardcode_automatic_F77=no
13539 module_cmds_F77=
13540 module_expsym_cmds_F77=
13541 link_all_deplibs_F77=unknown
13542 old_archive_cmds_F77=$old_archive_cmds
13543 no_undefined_flag_F77=
13544 whole_archive_flag_spec_F77=
13545 enable_shared_with_static_runtimes_F77=no
13547 # Source file extension for f77 test sources.
13548 ac_ext=f
13550 # Object file extension for compiled f77 test sources.
13551 objext=o
13552 objext_F77=$objext
13554 # Code to be used in simple compile tests
13555 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13557 # Code to be used in simple link tests
13558 lt_simple_link_test_code=" program t\n end\n"
13560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13562 # If no C compiler was specified, use CC.
13563 LTCC=${LTCC-"$CC"}
13565 # Allow CC to be a program name with arguments.
13566 compiler=$CC
13569 # Allow CC to be a program name with arguments.
13570 lt_save_CC="$CC"
13571 CC=${F77-"f77"}
13572 compiler=$CC
13573 compiler_F77=$CC
13574 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13576 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13577 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13578 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13579 echo "${ECHO_T}$can_build_shared" >&6
13581 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13582 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13583 test "$can_build_shared" = "no" && enable_shared=no
13585 # On AIX, shared libraries and static libraries use the same namespace, and
13586 # are all built from PIC.
13587 case "$host_os" in
13588 aix3*)
13589 test "$enable_shared" = yes && enable_static=no
13590 if test -n "$RANLIB"; then
13591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13592 postinstall_cmds='$RANLIB $lib'
13595 aix4* | aix5*)
13596 test "$enable_shared" = yes && enable_static=no
13598 esac
13599 echo "$as_me:$LINENO: result: $enable_shared" >&5
13600 echo "${ECHO_T}$enable_shared" >&6
13602 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13603 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13604 # Make sure either enable_shared or enable_static is yes.
13605 test "$enable_shared" = yes || enable_static=yes
13606 echo "$as_me:$LINENO: result: $enable_static" >&5
13607 echo "${ECHO_T}$enable_static" >&6
13609 test "$ld_shlibs_F77" = no && can_build_shared=no
13611 GCC_F77="$G77"
13612 LD_F77="$LD"
13614 lt_prog_compiler_wl_F77=
13615 lt_prog_compiler_pic_F77=
13616 lt_prog_compiler_static_F77=
13618 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13619 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13621 if test "$GCC" = yes; then
13622 lt_prog_compiler_wl_F77='-Wl,'
13623 lt_prog_compiler_static_F77='-static'
13625 case $host_os in
13626 aix*)
13627 # All AIX code is PIC.
13628 if test "$host_cpu" = ia64; then
13629 # AIX 5 now supports IA64 processor
13630 lt_prog_compiler_static_F77='-Bstatic'
13634 amigaos*)
13635 # FIXME: we need at least 68020 code to build shared libraries, but
13636 # adding the `-m68020' flag to GCC prevents building anything better,
13637 # like `-m68040'.
13638 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13641 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13642 # PIC is the default for these OSes.
13645 mingw* | pw32* | os2*)
13646 # This hack is so that the source file can tell whether it is being
13647 # built for inclusion in a dll (and should export symbols for example).
13648 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13651 darwin* | rhapsody*)
13652 # PIC is the default on this platform
13653 # Common symbols not allowed in MH_DYLIB files
13654 lt_prog_compiler_pic_F77='-fno-common'
13657 msdosdjgpp*)
13658 # Just because we use GCC doesn't mean we suddenly get shared libraries
13659 # on systems that don't support them.
13660 lt_prog_compiler_can_build_shared_F77=no
13661 enable_shared=no
13664 sysv4*MP*)
13665 if test -d /usr/nec; then
13666 lt_prog_compiler_pic_F77=-Kconform_pic
13670 hpux*)
13671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13672 # not for PA HP-UX.
13673 case "$host_cpu" in
13674 hppa*64*|ia64*)
13675 # +Z the default
13678 lt_prog_compiler_pic_F77='-fPIC'
13680 esac
13684 lt_prog_compiler_pic_F77='-fPIC'
13686 esac
13687 else
13688 # PORTME Check for flag to pass linker flags through the system compiler.
13689 case $host_os in
13690 aix*)
13691 lt_prog_compiler_wl_F77='-Wl,'
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 now supports IA64 processor
13694 lt_prog_compiler_static_F77='-Bstatic'
13695 else
13696 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13699 darwin*)
13700 # PIC is the default on this platform
13701 # Common symbols not allowed in MH_DYLIB files
13702 case "$cc_basename" in
13703 xlc*)
13704 lt_prog_compiler_pic_F77='-qnocommon'
13705 lt_prog_compiler_wl_F77='-Wl,'
13707 esac
13710 mingw* | pw32* | os2*)
13711 # This hack is so that the source file can tell whether it is being
13712 # built for inclusion in a dll (and should export symbols for example).
13713 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13716 hpux9* | hpux10* | hpux11*)
13717 lt_prog_compiler_wl_F77='-Wl,'
13718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13719 # not for PA HP-UX.
13720 case "$host_cpu" in
13721 hppa*64*|ia64*)
13722 # +Z the default
13725 lt_prog_compiler_pic_F77='+Z'
13727 esac
13728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13729 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13732 irix5* | irix6* | nonstopux*)
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 # PIC (with -KPIC) is the default.
13735 lt_prog_compiler_static_F77='-non_shared'
13738 newsos6)
13739 lt_prog_compiler_pic_F77='-KPIC'
13740 lt_prog_compiler_static_F77='-Bstatic'
13743 linux*)
13744 case $CC in
13745 icc* | ecc*)
13746 lt_prog_compiler_wl_F77='-Wl,'
13747 lt_prog_compiler_pic_F77='-KPIC'
13748 lt_prog_compiler_static_F77='-static'
13750 ccc*)
13751 lt_prog_compiler_wl_F77='-Wl,'
13752 # All Alpha code is PIC.
13753 lt_prog_compiler_static_F77='-non_shared'
13755 esac
13758 osf3* | osf4* | osf5*)
13759 lt_prog_compiler_wl_F77='-Wl,'
13760 # All OSF/1 code is PIC.
13761 lt_prog_compiler_static_F77='-non_shared'
13764 sco3.2v5*)
13765 lt_prog_compiler_pic_F77='-Kpic'
13766 lt_prog_compiler_static_F77='-dn'
13769 solaris*)
13770 lt_prog_compiler_wl_F77='-Wl,'
13771 lt_prog_compiler_pic_F77='-KPIC'
13772 lt_prog_compiler_static_F77='-Bstatic'
13775 sunos4*)
13776 lt_prog_compiler_wl_F77='-Qoption ld '
13777 lt_prog_compiler_pic_F77='-PIC'
13778 lt_prog_compiler_static_F77='-Bstatic'
13781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13782 lt_prog_compiler_wl_F77='-Wl,'
13783 lt_prog_compiler_pic_F77='-KPIC'
13784 lt_prog_compiler_static_F77='-Bstatic'
13787 sysv4*MP*)
13788 if test -d /usr/nec ;then
13789 lt_prog_compiler_pic_F77='-Kconform_pic'
13790 lt_prog_compiler_static_F77='-Bstatic'
13794 uts4*)
13795 lt_prog_compiler_pic_F77='-pic'
13796 lt_prog_compiler_static_F77='-Bstatic'
13800 lt_prog_compiler_can_build_shared_F77=no
13802 esac
13805 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13806 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13809 # Check to make sure the PIC flag actually works.
13811 if test -n "$lt_prog_compiler_pic_F77"; then
13813 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13814 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13815 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818 lt_prog_compiler_pic_works_F77=no
13819 ac_outfile=conftest.$ac_objext
13820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13821 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13822 # Insert the option either (1) after the last *FLAGS variable, or
13823 # (2) before a word containing "conftest.", or (3) at the end.
13824 # Note that $ac_compile itself does not contain backslashes and begins
13825 # with a dollar sign (not a hyphen), so the echo should work correctly.
13826 # The option is referenced via a variable to avoid confusing sed.
13827 lt_compile=`echo "$ac_compile" | $SED \
13828 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830 -e 's:$: $lt_compiler_flag:'`
13831 (eval echo "\"\$as_me:13831: $lt_compile\"" >&5)
13832 (eval "$lt_compile" 2>conftest.err)
13833 ac_status=$?
13834 cat conftest.err >&5
13835 echo "$as_me:13835: \$? = $ac_status" >&5
13836 if (exit $ac_status) && test -s "$ac_outfile"; then
13837 # The compiler can only warn and ignore the option if not recognized
13838 # So say no if there are warnings
13839 if test ! -s conftest.err; then
13840 lt_prog_compiler_pic_works_F77=yes
13843 $rm conftest*
13846 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13847 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13849 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13850 case $lt_prog_compiler_pic_F77 in
13851 "" | " "*) ;;
13852 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13853 esac
13854 else
13855 lt_prog_compiler_pic_F77=
13856 lt_prog_compiler_can_build_shared_F77=no
13860 case "$host_os" in
13861 # For platforms which do not support PIC, -DPIC is meaningless:
13862 *djgpp*)
13863 lt_prog_compiler_pic_F77=
13866 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13868 esac
13870 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13872 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 lt_cv_prog_compiler_c_o_F77=no
13876 $rm -r conftest 2>/dev/null
13877 mkdir conftest
13878 cd conftest
13879 mkdir out
13880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13882 lt_compiler_flag="-o out/conftest2.$ac_objext"
13883 # Insert the option either (1) after the last *FLAGS variable, or
13884 # (2) before a word containing "conftest.", or (3) at the end.
13885 # Note that $ac_compile itself does not contain backslashes and begins
13886 # with a dollar sign (not a hyphen), so the echo should work correctly.
13887 lt_compile=`echo "$ac_compile" | $SED \
13888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13890 -e 's:$: $lt_compiler_flag:'`
13891 (eval echo "\"\$as_me:13891: $lt_compile\"" >&5)
13892 (eval "$lt_compile" 2>out/conftest.err)
13893 ac_status=$?
13894 cat out/conftest.err >&5
13895 echo "$as_me:13895: \$? = $ac_status" >&5
13896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13897 then
13898 # The compiler can only warn and ignore the option if not recognized
13899 # So say no if there are warnings
13900 if test ! -s out/conftest.err; then
13901 lt_cv_prog_compiler_c_o_F77=yes
13904 chmod u+w .
13905 $rm conftest*
13906 # SGI C++ compiler will create directory out/ii_files/ for
13907 # template instantiation
13908 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13909 $rm out/* && rmdir out
13910 cd ..
13911 rmdir conftest
13912 $rm conftest*
13915 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13919 hard_links="nottested"
13920 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13921 # do not overwrite the value of need_locks provided by the user
13922 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13924 hard_links=yes
13925 $rm conftest*
13926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13927 touch conftest.a
13928 ln conftest.a conftest.b 2>&5 || hard_links=no
13929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13930 echo "$as_me:$LINENO: result: $hard_links" >&5
13931 echo "${ECHO_T}$hard_links" >&6
13932 if test "$hard_links" = no; then
13933 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13935 need_locks=warn
13937 else
13938 need_locks=no
13941 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13944 runpath_var=
13945 allow_undefined_flag_F77=
13946 enable_shared_with_static_runtimes_F77=no
13947 archive_cmds_F77=
13948 archive_expsym_cmds_F77=
13949 old_archive_From_new_cmds_F77=
13950 old_archive_from_expsyms_cmds_F77=
13951 export_dynamic_flag_spec_F77=
13952 whole_archive_flag_spec_F77=
13953 thread_safe_flag_spec_F77=
13954 hardcode_libdir_flag_spec_F77=
13955 hardcode_libdir_flag_spec_ld_F77=
13956 hardcode_libdir_separator_F77=
13957 hardcode_direct_F77=no
13958 hardcode_minus_L_F77=no
13959 hardcode_shlibpath_var_F77=unsupported
13960 link_all_deplibs_F77=unknown
13961 hardcode_automatic_F77=no
13962 module_cmds_F77=
13963 module_expsym_cmds_F77=
13964 always_export_symbols_F77=no
13965 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13966 # include_expsyms should be a list of space-separated symbols to be *always*
13967 # included in the symbol list
13968 include_expsyms_F77=
13969 # exclude_expsyms can be an extended regexp of symbols to exclude
13970 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13971 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13972 # as well as any symbol that contains `d'.
13973 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13974 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13975 # platforms (ab)use it in PIC code, but their linkers get confused if
13976 # the symbol is explicitly referenced. Since portable code cannot
13977 # rely on this symbol name, it's probably fine to never include it in
13978 # preloaded symbol tables.
13979 extract_expsyms_cmds=
13981 case $host_os in
13982 cygwin* | mingw* | pw32*)
13983 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13984 # When not using gcc, we currently assume that we are using
13985 # Microsoft Visual C++.
13986 if test "$GCC" != yes; then
13987 with_gnu_ld=no
13990 openbsd*)
13991 with_gnu_ld=no
13993 esac
13995 ld_shlibs_F77=yes
13996 if test "$with_gnu_ld" = yes; then
13997 # If archive_cmds runs LD, not CC, wlarc should be empty
13998 wlarc='${wl}'
14000 # See if GNU ld supports shared libraries.
14001 case $host_os in
14002 aix3* | aix4* | aix5*)
14003 # On AIX/PPC, the GNU linker is very broken
14004 if test "$host_cpu" != ia64; then
14005 ld_shlibs_F77=no
14006 cat <<EOF 1>&2
14008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14009 *** to be unable to reliably create shared libraries on AIX.
14010 *** Therefore, libtool is disabling shared libraries support. If you
14011 *** really care for shared libraries, you may want to modify your PATH
14012 *** so that a non-GNU linker is found, and then restart.
14018 amigaos*)
14019 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)'
14020 hardcode_libdir_flag_spec_F77='-L$libdir'
14021 hardcode_minus_L_F77=yes
14023 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14024 # that the semantics of dynamic libraries on AmigaOS, at least up
14025 # to version 4, is to share data among multiple programs linked
14026 # with the same dynamic library. Since this doesn't match the
14027 # behavior of shared libraries on other platforms, we can't use
14028 # them.
14029 ld_shlibs_F77=no
14032 beos*)
14033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14034 allow_undefined_flag_F77=unsupported
14035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14036 # support --undefined. This deserves some investigation. FIXME
14037 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14038 else
14039 ld_shlibs_F77=no
14043 cygwin* | mingw* | pw32*)
14044 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14045 # as there is no search path for DLLs.
14046 hardcode_libdir_flag_spec_F77='-L$libdir'
14047 allow_undefined_flag_F77=unsupported
14048 always_export_symbols_F77=no
14049 enable_shared_with_static_runtimes_F77=yes
14050 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14052 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14053 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14054 # If the export-symbols file already is a .def file (1st line
14055 # is EXPORTS), use it as is; otherwise, prepend...
14056 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14057 cp $export_symbols $output_objdir/$soname.def;
14058 else
14059 echo EXPORTS > $output_objdir/$soname.def;
14060 cat $export_symbols >> $output_objdir/$soname.def;
14062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14063 else
14064 ld_shlibs=no
14068 netbsd*)
14069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14070 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14071 wlarc=
14072 else
14073 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14078 solaris* | sysv5*)
14079 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14080 ld_shlibs_F77=no
14081 cat <<EOF 1>&2
14083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14084 *** create shared libraries on Solaris systems. Therefore, libtool
14085 *** is disabling shared libraries support. We urge you to upgrade GNU
14086 *** binutils to release 2.9.1 or newer. Another option is to modify
14087 *** your PATH or compiler configuration so that the native linker is
14088 *** used, and then restart.
14091 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14092 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14094 else
14095 ld_shlibs_F77=no
14099 sunos4*)
14100 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14101 wlarc=
14102 hardcode_direct_F77=yes
14103 hardcode_shlibpath_var_F77=no
14106 linux*)
14107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14108 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14109 archive_cmds_F77="$tmp_archive_cmds"
14110 supports_anon_versioning=no
14111 case `$LD -v 2>/dev/null` in
14112 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14115 *\ 2.11.*) ;; # other 2.11 versions
14116 *) supports_anon_versioning=yes ;;
14117 esac
14118 if test $supports_anon_versioning = yes; then
14119 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14121 $echo "local: *; };" >> $output_objdir/$libname.ver~
14122 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14123 else
14124 archive_expsym_cmds_F77="$tmp_archive_cmds"
14126 else
14127 ld_shlibs_F77=no
14132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14135 else
14136 ld_shlibs_F77=no
14139 esac
14141 if test "$ld_shlibs_F77" = yes; then
14142 runpath_var=LD_RUN_PATH
14143 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14144 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14145 # ancient GNU ld didn't support --whole-archive et. al.
14146 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14147 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14148 else
14149 whole_archive_flag_spec_F77=
14152 else
14153 # PORTME fill in a description of your system's linker (not GNU ld)
14154 case $host_os in
14155 aix3*)
14156 allow_undefined_flag_F77=unsupported
14157 always_export_symbols_F77=yes
14158 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'
14159 # Note: this linker hardcodes the directories in LIBPATH if there
14160 # are no directories specified by -L.
14161 hardcode_minus_L_F77=yes
14162 if test "$GCC" = yes && test -z "$link_static_flag"; then
14163 # Neither direct hardcoding nor static linking is supported with a
14164 # broken collect2.
14165 hardcode_direct_F77=unsupported
14169 aix4* | aix5*)
14170 if test "$host_cpu" = ia64; then
14171 # On IA64, the linker does run time linking by default, so we don't
14172 # have to do anything special.
14173 aix_use_runtimelinking=no
14174 exp_sym_flag='-Bexport'
14175 no_entry_flag=""
14176 else
14177 # If we're using GNU nm, then we don't want the "-C" option.
14178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14180 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'
14181 else
14182 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'
14184 aix_use_runtimelinking=no
14186 # Test if we are trying to use run time linking or normal
14187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14188 # need to do runtime linking.
14189 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14190 for ld_flag in $LDFLAGS; do
14191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14192 aix_use_runtimelinking=yes
14193 break
14195 done
14196 esac
14198 exp_sym_flag='-bexport'
14199 no_entry_flag='-bnoentry'
14202 # When large executables or shared objects are built, AIX ld can
14203 # have problems creating the table of contents. If linking a library
14204 # or program results in "error TOC overflow" add -mminimal-toc to
14205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14208 archive_cmds_F77=''
14209 hardcode_direct_F77=yes
14210 hardcode_libdir_separator_F77=':'
14211 link_all_deplibs_F77=yes
14213 if test "$GCC" = yes; then
14214 case $host_os in aix4.012|aix4.012.*)
14215 # We only want to do this on AIX 4.2 and lower, the check
14216 # below for broken collect2 doesn't work under 4.3+
14217 collect2name=`${CC} -print-prog-name=collect2`
14218 if test -f "$collect2name" && \
14219 strings "$collect2name" | grep resolve_lib_name >/dev/null
14220 then
14221 # We have reworked collect2
14222 hardcode_direct_F77=yes
14223 else
14224 # We have old collect2
14225 hardcode_direct_F77=unsupported
14226 # It fails to find uninstalled libraries when the uninstalled
14227 # path is not listed in the libpath. Setting hardcode_minus_L
14228 # to unsupported forces relinking
14229 hardcode_minus_L_F77=yes
14230 hardcode_libdir_flag_spec_F77='-L$libdir'
14231 hardcode_libdir_separator_F77=
14233 esac
14234 shared_flag='-shared'
14235 else
14236 # not using gcc
14237 if test "$host_cpu" = ia64; then
14238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14239 # chokes on -Wl,-G. The following line is correct:
14240 shared_flag='-G'
14241 else
14242 if test "$aix_use_runtimelinking" = yes; then
14243 shared_flag='${wl}-G'
14244 else
14245 shared_flag='${wl}-bM:SRE'
14250 # It seems that -bexpall does not export symbols beginning with
14251 # underscore (_), so it is better to generate a list of symbols to export.
14252 always_export_symbols_F77=yes
14253 if test "$aix_use_runtimelinking" = yes; then
14254 # Warning - without using the other runtime loading flags (-brtl),
14255 # -berok will link without error, but may produce a broken library.
14256 allow_undefined_flag_F77='-berok'
14257 # Determine the default libpath from the value encoded in an empty executable.
14258 cat >conftest.$ac_ext <<_ACEOF
14259 program main
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_f77_werror_flag"
14273 || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest$ac_exeext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14288 # Check for a 64-bit object if we didn't find anything.
14289 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; }
14290 }'`; fi
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14296 rm -f conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14300 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14301 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14302 else
14303 if test "$host_cpu" = ia64; then
14304 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14305 allow_undefined_flag_F77="-z nodefs"
14306 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14307 else
14308 # Determine the default libpath from the value encoded in an empty executable.
14309 cat >conftest.$ac_ext <<_ACEOF
14310 program main
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_f77_werror_flag"
14324 || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14339 # Check for a 64-bit object if we didn't find anything.
14340 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; }
14341 }'`; fi
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14347 rm -f conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14352 # Warning - without using the other run time loading flags,
14353 # -berok will link without error, but may produce a broken library.
14354 no_undefined_flag_F77=' ${wl}-bernotok'
14355 allow_undefined_flag_F77=' ${wl}-berok'
14356 # -bexpall does not export symbols beginning with underscore (_)
14357 always_export_symbols_F77=yes
14358 # Exported symbols can be pulled into shared objects from archives
14359 whole_archive_flag_spec_F77=' '
14360 archive_cmds_need_lc_F77=yes
14361 # This is similar to how AIX traditionally builds it's shared libraries.
14362 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14367 amigaos*)
14368 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)'
14369 hardcode_libdir_flag_spec_F77='-L$libdir'
14370 hardcode_minus_L_F77=yes
14371 # see comment about different semantics on the GNU ld section
14372 ld_shlibs_F77=no
14375 bsdi[45]*)
14376 export_dynamic_flag_spec_F77=-rdynamic
14379 cygwin* | mingw* | pw32*)
14380 # When not using gcc, we currently assume that we are using
14381 # Microsoft Visual C++.
14382 # hardcode_libdir_flag_spec is actually meaningless, as there is
14383 # no search path for DLLs.
14384 hardcode_libdir_flag_spec_F77=' '
14385 allow_undefined_flag_F77=unsupported
14386 # Tell ltmain to make .lib files, not .a files.
14387 libext=lib
14388 # Tell ltmain to make .dll files, not .so files.
14389 shrext_cmds=".dll"
14390 # FIXME: Setting linknames here is a bad hack.
14391 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14392 # The linker will automatically build a .lib file if we build a DLL.
14393 old_archive_From_new_cmds_F77='true'
14394 # FIXME: Should let the user specify the lib program.
14395 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14396 fix_srcfile_path='`cygpath -w "$srcfile"`'
14397 enable_shared_with_static_runtimes_F77=yes
14400 darwin* | rhapsody*)
14401 case "$host_os" in
14402 rhapsody* | darwin1.[012])
14403 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14405 *) # Darwin 1.3 on
14406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14407 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14408 else
14409 case ${MACOSX_DEPLOYMENT_TARGET} in
14410 10.[012])
14411 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14413 10.*)
14414 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14416 esac
14419 esac
14420 archive_cmds_need_lc_F77=no
14421 hardcode_direct_F77=no
14422 hardcode_automatic_F77=yes
14423 hardcode_shlibpath_var_F77=unsupported
14424 whole_archive_flag_spec_F77=''
14425 link_all_deplibs_F77=yes
14426 if test "$GCC" = yes ; then
14427 output_verbose_link_cmd='echo'
14428 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14429 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14431 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}'
14432 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}'
14433 else
14434 case "$cc_basename" in
14435 xlc*)
14436 output_verbose_link_cmd='echo'
14437 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14438 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14440 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}'
14441 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}'
14444 ld_shlibs_F77=no
14446 esac
14450 dgux*)
14451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_shlibpath_var_F77=no
14456 freebsd1*)
14457 ld_shlibs_F77=no
14460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14461 # support. Future versions do this automatically, but an explicit c++rt0.o
14462 # does not break anything, and helps significantly (at the cost of a little
14463 # extra space).
14464 freebsd2.2*)
14465 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14466 hardcode_libdir_flag_spec_F77='-R$libdir'
14467 hardcode_direct_F77=yes
14468 hardcode_shlibpath_var_F77=no
14471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14472 freebsd2*)
14473 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14474 hardcode_direct_F77=yes
14475 hardcode_minus_L_F77=yes
14476 hardcode_shlibpath_var_F77=no
14479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14480 freebsd* | kfreebsd*-gnu)
14481 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14482 hardcode_libdir_flag_spec_F77='-R$libdir'
14483 hardcode_direct_F77=yes
14484 hardcode_shlibpath_var_F77=no
14487 hpux9*)
14488 if test "$GCC" = yes; then
14489 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'
14490 else
14491 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'
14493 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14494 hardcode_libdir_separator_F77=:
14495 hardcode_direct_F77=yes
14497 # hardcode_minus_L: Not really in the search PATH,
14498 # but as the default location of the library.
14499 hardcode_minus_L_F77=yes
14500 export_dynamic_flag_spec_F77='${wl}-E'
14503 hpux10* | hpux11*)
14504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14505 case "$host_cpu" in
14506 hppa*64*|ia64*)
14507 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14512 esac
14513 else
14514 case "$host_cpu" in
14515 hppa*64*|ia64*)
14516 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14519 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14521 esac
14523 if test "$with_gnu_ld" = no; then
14524 case "$host_cpu" in
14525 hppa*64*)
14526 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14527 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14528 hardcode_libdir_separator_F77=:
14529 hardcode_direct_F77=no
14530 hardcode_shlibpath_var_F77=no
14532 ia64*)
14533 hardcode_libdir_flag_spec_F77='-L$libdir'
14534 hardcode_direct_F77=no
14535 hardcode_shlibpath_var_F77=no
14537 # hardcode_minus_L: Not really in the search PATH,
14538 # but as the default location of the library.
14539 hardcode_minus_L_F77=yes
14542 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14543 hardcode_libdir_separator_F77=:
14544 hardcode_direct_F77=yes
14545 export_dynamic_flag_spec_F77='${wl}-E'
14547 # hardcode_minus_L: Not really in the search PATH,
14548 # but as the default location of the library.
14549 hardcode_minus_L_F77=yes
14551 esac
14555 irix5* | irix6* | nonstopux*)
14556 if test "$GCC" = yes; then
14557 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'
14558 else
14559 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'
14560 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14562 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator_F77=:
14564 link_all_deplibs_F77=yes
14567 netbsd*)
14568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14569 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14570 else
14571 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14573 hardcode_libdir_flag_spec_F77='-R$libdir'
14574 hardcode_direct_F77=yes
14575 hardcode_shlibpath_var_F77=no
14578 newsos6)
14579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14580 hardcode_direct_F77=yes
14581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14582 hardcode_libdir_separator_F77=:
14583 hardcode_shlibpath_var_F77=no
14586 openbsd*)
14587 hardcode_direct_F77=yes
14588 hardcode_shlibpath_var_F77=no
14589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14590 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14592 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14593 export_dynamic_flag_spec_F77='${wl}-E'
14594 else
14595 case $host_os in
14596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14597 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14598 hardcode_libdir_flag_spec_F77='-R$libdir'
14601 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14604 esac
14608 os2*)
14609 hardcode_libdir_flag_spec_F77='-L$libdir'
14610 hardcode_minus_L_F77=yes
14611 allow_undefined_flag_F77=unsupported
14612 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'
14613 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14616 osf3*)
14617 if test "$GCC" = yes; then
14618 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14619 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'
14620 else
14621 allow_undefined_flag_F77=' -expect_unresolved \*'
14622 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'
14624 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14625 hardcode_libdir_separator_F77=:
14628 osf4* | osf5*) # as osf3* with the addition of -msym flag
14629 if test "$GCC" = yes; then
14630 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14631 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'
14632 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14633 else
14634 allow_undefined_flag_F77=' -expect_unresolved \*'
14635 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'
14636 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~
14637 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14639 # Both c and cxx compiler support -rpath directly
14640 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14642 hardcode_libdir_separator_F77=:
14645 sco3.2v5*)
14646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647 hardcode_shlibpath_var_F77=no
14648 export_dynamic_flag_spec_F77='${wl}-Bexport'
14649 runpath_var=LD_RUN_PATH
14650 hardcode_runpath_var=yes
14653 solaris*)
14654 no_undefined_flag_F77=' -z text'
14655 if test "$GCC" = yes; then
14656 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14658 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14659 else
14660 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14661 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14664 hardcode_libdir_flag_spec_F77='-R$libdir'
14665 hardcode_shlibpath_var_F77=no
14666 case $host_os in
14667 solaris2.[0-5] | solaris2.[0-5].*) ;;
14668 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14669 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14670 esac
14671 link_all_deplibs_F77=yes
14674 sunos4*)
14675 if test "x$host_vendor" = xsequent; then
14676 # Use $CC to link under sequent, because it throws in some extra .o
14677 # files that make .init and .fini sections work.
14678 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14679 else
14680 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14682 hardcode_libdir_flag_spec_F77='-L$libdir'
14683 hardcode_direct_F77=yes
14684 hardcode_minus_L_F77=yes
14685 hardcode_shlibpath_var_F77=no
14688 sysv4)
14689 case $host_vendor in
14690 sni)
14691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692 hardcode_direct_F77=yes # is this really true???
14694 siemens)
14695 ## LD is ld it makes a PLAMLIB
14696 ## CC just makes a GrossModule.
14697 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14698 reload_cmds_F77='$CC -r -o $output$reload_objs'
14699 hardcode_direct_F77=no
14701 motorola)
14702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14705 esac
14706 runpath_var='LD_RUN_PATH'
14707 hardcode_shlibpath_var_F77=no
14710 sysv4.3*)
14711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14712 hardcode_shlibpath_var_F77=no
14713 export_dynamic_flag_spec_F77='-Bexport'
14716 sysv4*MP*)
14717 if test -d /usr/nec; then
14718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_shlibpath_var_F77=no
14720 runpath_var=LD_RUN_PATH
14721 hardcode_runpath_var=yes
14722 ld_shlibs_F77=yes
14726 sysv4.2uw2*)
14727 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_direct_F77=yes
14729 hardcode_minus_L_F77=no
14730 hardcode_shlibpath_var_F77=no
14731 hardcode_runpath_var=yes
14732 runpath_var=LD_RUN_PATH
14735 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14736 no_undefined_flag_F77='${wl}-z ${wl}text'
14737 if test "$GCC" = yes; then
14738 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14739 else
14740 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14742 runpath_var='LD_RUN_PATH'
14743 hardcode_shlibpath_var_F77=no
14746 sysv5*)
14747 no_undefined_flag_F77=' -z text'
14748 # $CC -shared without GNU ld will not create a library from C++
14749 # object files and a static libstdc++, better avoid it by now
14750 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14751 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14753 hardcode_libdir_flag_spec_F77=
14754 hardcode_shlibpath_var_F77=no
14755 runpath_var='LD_RUN_PATH'
14758 uts4*)
14759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_libdir_flag_spec_F77='-L$libdir'
14761 hardcode_shlibpath_var_F77=no
14765 ld_shlibs_F77=no
14767 esac
14770 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14771 echo "${ECHO_T}$ld_shlibs_F77" >&6
14772 test "$ld_shlibs_F77" = no && can_build_shared=no
14774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14775 if test "$GCC" = yes; then
14776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14780 # Do we need to explicitly link libc?
14782 case "x$archive_cmds_need_lc_F77" in
14783 x|xyes)
14784 # Assume -lc should be added
14785 archive_cmds_need_lc_F77=yes
14787 if test "$enable_shared" = yes && test "$GCC" = yes; then
14788 case $archive_cmds_F77 in
14789 *'~'*)
14790 # FIXME: we may have to deal with multi-command sequences.
14792 '$CC '*)
14793 # Test whether the compiler implicitly links with -lc since on some
14794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14795 # to ld, don't add -lc before -lgcc.
14796 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14797 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14798 $rm conftest*
14799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } 2>conftest.err; then
14806 soname=conftest
14807 lib=conftest
14808 libobjs=conftest.$ac_objext
14809 deplibs=
14810 wl=$lt_prog_compiler_wl_F77
14811 compiler_flags=-v
14812 linker_flags=-v
14813 verstring=
14814 output_objdir=.
14815 libname=conftest
14816 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14817 allow_undefined_flag_F77=
14818 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14819 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }
14823 then
14824 archive_cmds_need_lc_F77=no
14825 else
14826 archive_cmds_need_lc_F77=yes
14828 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14829 else
14830 cat conftest.err 1>&5
14832 $rm conftest*
14833 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14834 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14836 esac
14839 esac
14841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14843 library_names_spec=
14844 libname_spec='lib$name'
14845 soname_spec=
14846 shrext_cmds=".so"
14847 postinstall_cmds=
14848 postuninstall_cmds=
14849 finish_cmds=
14850 finish_eval=
14851 shlibpath_var=
14852 shlibpath_overrides_runpath=unknown
14853 version_type=none
14854 dynamic_linker="$host_os ld.so"
14855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14856 if test "$GCC" = yes; then
14857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14859 # if the path contains ";" then we assume it to be the separator
14860 # otherwise default to the standard path separator (i.e. ":") - it is
14861 # assumed that no part of a normal pathname contains ";" but that should
14862 # okay in the real world where ";" in dirpaths is itself problematic.
14863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14864 else
14865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14867 else
14868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14870 need_lib_prefix=unknown
14871 hardcode_into_libs=no
14873 # when you set need_version to no, make sure it does not cause -set_version
14874 # flags to be left without arguments
14875 need_version=unknown
14877 case $host_os in
14878 aix3*)
14879 version_type=linux
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14881 shlibpath_var=LIBPATH
14883 # AIX 3 has no versioning support, so we append a major version to the name.
14884 soname_spec='${libname}${release}${shared_ext}$major'
14887 aix4* | aix5*)
14888 version_type=linux
14889 need_lib_prefix=no
14890 need_version=no
14891 hardcode_into_libs=yes
14892 if test "$host_cpu" = ia64; then
14893 # AIX 5 supports IA64
14894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 else
14897 # With GCC up to 2.95.x, collect2 would create an import file
14898 # for dependence libraries. The import file would start with
14899 # the line `#! .'. This would cause the generated library to
14900 # depend on `.', always an invalid library. This was fixed in
14901 # development snapshots of GCC prior to 3.0.
14902 case $host_os in
14903 aix4 | aix4.[01] | aix4.[01].*)
14904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14905 echo ' yes '
14906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14908 else
14909 can_build_shared=no
14912 esac
14913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14914 # soname into executable. Probably we can add versioning support to
14915 # collect2, so additional links can be useful in future.
14916 if test "$aix_use_runtimelinking" = yes; then
14917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14918 # instead of lib<name>.a to let people know that these are not
14919 # typical AIX shared libraries.
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 else
14922 # We preserve .a as extension for shared libraries through AIX4.2
14923 # and later when we are not doing run time linking.
14924 library_names_spec='${libname}${release}.a $libname.a'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14927 shlibpath_var=LIBPATH
14931 amigaos*)
14932 library_names_spec='$libname.ixlibrary $libname.a'
14933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14934 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'
14937 beos*)
14938 library_names_spec='${libname}${shared_ext}'
14939 dynamic_linker="$host_os ld.so"
14940 shlibpath_var=LIBRARY_PATH
14943 bsdi[45]*)
14944 version_type=linux
14945 need_version=no
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14952 # the default ld.so.conf also contains /usr/contrib/lib and
14953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14954 # libtool to hard-code these into programs
14957 cygwin* | mingw* | pw32*)
14958 version_type=windows
14959 shrext_cmds=".dll"
14960 need_version=no
14961 need_lib_prefix=no
14963 case $GCC,$host_os in
14964 yes,cygwin* | yes,mingw* | yes,pw32*)
14965 library_names_spec='$libname.dll.a'
14966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14967 postinstall_cmds='base_file=`basename \${file}`~
14968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14969 dldir=$destdir/`dirname \$dlpath`~
14970 test -d \$dldir || mkdir -p \$dldir~
14971 $install_prog $dir/$dlname \$dldir/$dlname'
14972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14973 dlpath=$dir/\$dldll~
14974 $rm \$dlpath'
14975 shlibpath_overrides_runpath=yes
14977 case $host_os in
14978 cygwin*)
14979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14980 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14981 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14983 mingw*)
14984 # MinGW DLLs use traditional 'lib' prefix
14985 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14987 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14988 # It is most probably a Windows format PATH printed by
14989 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14990 # path with ; separators, and with drive letters. We can handle the
14991 # drive letters (cygwin fileutils understands them), so leave them,
14992 # especially as we might pass files found there to a mingw objdump,
14993 # which wouldn't understand a cygwinified path. Ahh.
14994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14995 else
14996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14999 pw32*)
15000 # pw32 DLLs use 'pw' prefix rather than 'lib'
15001 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15003 esac
15007 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15009 esac
15010 dynamic_linker='Win32 ld.exe'
15011 # FIXME: first we should search . and the directory the executable is in
15012 shlibpath_var=PATH
15015 darwin* | rhapsody*)
15016 dynamic_linker="$host_os dyld"
15017 version_type=darwin
15018 need_lib_prefix=no
15019 need_version=no
15020 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15021 soname_spec='${libname}${release}${major}$shared_ext'
15022 shlibpath_overrides_runpath=yes
15023 shlibpath_var=DYLD_LIBRARY_PATH
15024 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15025 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15026 if test "$GCC" = yes; then
15027 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"`
15028 else
15029 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15034 dgux*)
15035 version_type=linux
15036 need_lib_prefix=no
15037 need_version=no
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 shlibpath_var=LD_LIBRARY_PATH
15043 freebsd1*)
15044 dynamic_linker=no
15047 kfreebsd*-gnu)
15048 version_type=linux
15049 need_lib_prefix=no
15050 need_version=no
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=no
15055 hardcode_into_libs=yes
15056 dynamic_linker='GNU ld.so'
15059 freebsd*)
15060 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15061 version_type=freebsd-$objformat
15062 case $version_type in
15063 freebsd-elf*)
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15065 need_version=no
15066 need_lib_prefix=no
15068 freebsd-*)
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15070 need_version=yes
15072 esac
15073 shlibpath_var=LD_LIBRARY_PATH
15074 case $host_os in
15075 freebsd2*)
15076 shlibpath_overrides_runpath=yes
15078 freebsd3.01* | freebsdelf3.01*)
15079 shlibpath_overrides_runpath=yes
15080 hardcode_into_libs=yes
15082 *) # from 3.2 on
15083 shlibpath_overrides_runpath=no
15084 hardcode_into_libs=yes
15086 esac
15089 gnu*)
15090 version_type=linux
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 hardcode_into_libs=yes
15099 hpux9* | hpux10* | hpux11*)
15100 # Give a soname corresponding to the major version so that dld.sl refuses to
15101 # link against other versions.
15102 version_type=sunos
15103 need_lib_prefix=no
15104 need_version=no
15105 case "$host_cpu" in
15106 ia64*)
15107 shrext_cmds='.so'
15108 hardcode_into_libs=yes
15109 dynamic_linker="$host_os dld.so"
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 if test "X$HPUX_IA64_MODE" = X32; then
15115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15116 else
15117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15121 hppa*64*)
15122 shrext_cmds='.sl'
15123 hardcode_into_libs=yes
15124 dynamic_linker="$host_os dld.sl"
15125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15133 shrext_cmds='.sl'
15134 dynamic_linker="$host_os dld.sl"
15135 shlibpath_var=SHLIB_PATH
15136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15140 esac
15141 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15142 postinstall_cmds='chmod 555 $lib'
15145 irix5* | irix6* | nonstopux*)
15146 case $host_os in
15147 nonstopux*) version_type=nonstopux ;;
15149 if test "$lt_cv_prog_gnu_ld" = yes; then
15150 version_type=linux
15151 else
15152 version_type=irix
15153 fi ;;
15154 esac
15155 need_lib_prefix=no
15156 need_version=no
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15159 case $host_os in
15160 irix5* | nonstopux*)
15161 libsuff= shlibsuff=
15164 case $LD in # libtool.m4 will add one of these switches to LD
15165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15166 libsuff= shlibsuff= libmagic=32-bit;;
15167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15168 libsuff=32 shlibsuff=N32 libmagic=N32;;
15169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15171 *) libsuff= shlibsuff= libmagic=never-match;;
15172 esac
15174 esac
15175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15176 shlibpath_overrides_runpath=no
15177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15179 hardcode_into_libs=yes
15182 # No shared lib support for Linux oldld, aout, or coff.
15183 linux*oldld* | linux*aout* | linux*coff*)
15184 dynamic_linker=no
15187 # This must be Linux ELF.
15188 linux*)
15189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=no
15197 # This implies no fast_install, which is unacceptable.
15198 # Some rework will be needed to allow for fast_install
15199 # before this can be enabled.
15200 hardcode_into_libs=yes
15202 # Append ld.so.conf contents to the search path
15203 if test -f /etc/ld.so.conf; then
15204 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15208 # We used to test for /lib/ld.so.1 and disable shared libraries on
15209 # powerpc, because MkLinux only supported shared libraries with the
15210 # GNU dynamic linker. Since this was broken with cross compilers,
15211 # most powerpc-linux boxes support dynamic linking these days and
15212 # people can always --disable-shared, the test was removed, and we
15213 # assume the GNU/Linux dynamic linker is in use.
15214 dynamic_linker='GNU/Linux ld.so'
15217 knetbsd*-gnu)
15218 version_type=linux
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=no
15225 hardcode_into_libs=yes
15226 dynamic_linker='GNU ld.so'
15229 netbsd*)
15230 version_type=sunos
15231 need_lib_prefix=no
15232 need_version=no
15233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236 dynamic_linker='NetBSD (a.out) ld.so'
15237 else
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 dynamic_linker='NetBSD ld.elf_so'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15247 newsos6)
15248 version_type=linux
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes
15254 nto-qnx*)
15255 version_type=linux
15256 need_lib_prefix=no
15257 need_version=no
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=yes
15264 openbsd*)
15265 version_type=sunos
15266 need_lib_prefix=no
15267 need_version=no
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15272 case $host_os in
15273 openbsd2.[89] | openbsd2.[89].*)
15274 shlibpath_overrides_runpath=no
15277 shlibpath_overrides_runpath=yes
15279 esac
15280 else
15281 shlibpath_overrides_runpath=yes
15285 os2*)
15286 libname_spec='$name'
15287 shrext_cmds=".dll"
15288 need_lib_prefix=no
15289 library_names_spec='$libname${shared_ext} $libname.a'
15290 dynamic_linker='OS/2 ld.exe'
15291 shlibpath_var=LIBPATH
15294 osf3* | osf4* | osf5*)
15295 version_type=osf
15296 need_lib_prefix=no
15297 need_version=no
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15305 sco3.2v5*)
15306 version_type=osf
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 shlibpath_var=LD_LIBRARY_PATH
15312 solaris*)
15313 version_type=linux
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 # ldd complains unless libraries are executable
15322 postinstall_cmds='chmod +x $lib'
15325 sunos4*)
15326 version_type=sunos
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 shlibpath_overrides_runpath=yes
15331 if test "$with_gnu_ld" = yes; then
15332 need_lib_prefix=no
15334 need_version=yes
15337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15338 version_type=linux
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 case $host_vendor in
15343 sni)
15344 shlibpath_overrides_runpath=no
15345 need_lib_prefix=no
15346 export_dynamic_flag_spec='${wl}-Blargedynsym'
15347 runpath_var=LD_RUN_PATH
15349 siemens)
15350 need_lib_prefix=no
15352 motorola)
15353 need_lib_prefix=no
15354 need_version=no
15355 shlibpath_overrides_runpath=no
15356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15358 esac
15361 sysv4*MP*)
15362 if test -d /usr/nec ;then
15363 version_type=linux
15364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15365 soname_spec='$libname${shared_ext}.$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15370 uts4*)
15371 version_type=linux
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15378 dynamic_linker=no
15380 esac
15381 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15382 echo "${ECHO_T}$dynamic_linker" >&6
15383 test "$dynamic_linker" = no && can_build_shared=no
15385 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15386 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15387 hardcode_action_F77=
15388 if test -n "$hardcode_libdir_flag_spec_F77" || \
15389 test -n "$runpath_var_F77" || \
15390 test "X$hardcode_automatic_F77" = "Xyes" ; then
15392 # We can hardcode non-existant directories.
15393 if test "$hardcode_direct_F77" != no &&
15394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15395 # have to relink, otherwise we might link with an installed library
15396 # when we should be linking with a yet-to-be-installed one
15397 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15398 test "$hardcode_minus_L_F77" != no; then
15399 # Linking always hardcodes the temporary library directory.
15400 hardcode_action_F77=relink
15401 else
15402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15403 hardcode_action_F77=immediate
15405 else
15406 # We cannot hardcode anything, or else we can only hardcode existing
15407 # directories.
15408 hardcode_action_F77=unsupported
15410 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15411 echo "${ECHO_T}$hardcode_action_F77" >&6
15413 if test "$hardcode_action_F77" = relink; then
15414 # Fast installation is not supported
15415 enable_fast_install=no
15416 elif test "$shlibpath_overrides_runpath" = yes ||
15417 test "$enable_shared" = no; then
15418 # Fast installation is not necessary
15419 enable_fast_install=needless
15422 striplib=
15423 old_striplib=
15424 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15425 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15426 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15429 echo "$as_me:$LINENO: result: yes" >&5
15430 echo "${ECHO_T}yes" >&6
15431 else
15432 # FIXME - insert some real tests, host_os isn't really good enough
15433 case $host_os in
15434 darwin*)
15435 if test -n "$STRIP" ; then
15436 striplib="$STRIP -x"
15437 echo "$as_me:$LINENO: result: yes" >&5
15438 echo "${ECHO_T}yes" >&6
15439 else
15440 echo "$as_me:$LINENO: result: no" >&5
15441 echo "${ECHO_T}no" >&6
15445 echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6
15448 esac
15453 # The else clause should only fire when bootstrapping the
15454 # libtool distribution, otherwise you forgot to ship ltmain.sh
15455 # with your package, and you will get complaints that there are
15456 # no rules to generate ltmain.sh.
15457 if test -f "$ltmain"; then
15458 # See if we are running on zsh, and set the options which allow our commands through
15459 # without removal of \ escapes.
15460 if test -n "${ZSH_VERSION+set}" ; then
15461 setopt NO_GLOB_SUBST
15463 # Now quote all the things that may contain metacharacters while being
15464 # careful not to overquote the AC_SUBSTed values. We take copies of the
15465 # variables and quote the copies for generation of the libtool script.
15466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15467 SED SHELL STRIP \
15468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15470 deplibs_check_method reload_flag reload_cmds need_locks \
15471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15472 lt_cv_sys_global_symbol_to_c_name_address \
15473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15474 old_postinstall_cmds old_postuninstall_cmds \
15475 compiler_F77 \
15476 CC_F77 \
15477 LD_F77 \
15478 lt_prog_compiler_wl_F77 \
15479 lt_prog_compiler_pic_F77 \
15480 lt_prog_compiler_static_F77 \
15481 lt_prog_compiler_no_builtin_flag_F77 \
15482 export_dynamic_flag_spec_F77 \
15483 thread_safe_flag_spec_F77 \
15484 whole_archive_flag_spec_F77 \
15485 enable_shared_with_static_runtimes_F77 \
15486 old_archive_cmds_F77 \
15487 old_archive_from_new_cmds_F77 \
15488 predep_objects_F77 \
15489 postdep_objects_F77 \
15490 predeps_F77 \
15491 postdeps_F77 \
15492 compiler_lib_search_path_F77 \
15493 archive_cmds_F77 \
15494 archive_expsym_cmds_F77 \
15495 postinstall_cmds_F77 \
15496 postuninstall_cmds_F77 \
15497 old_archive_from_expsyms_cmds_F77 \
15498 allow_undefined_flag_F77 \
15499 no_undefined_flag_F77 \
15500 export_symbols_cmds_F77 \
15501 hardcode_libdir_flag_spec_F77 \
15502 hardcode_libdir_flag_spec_ld_F77 \
15503 hardcode_libdir_separator_F77 \
15504 hardcode_automatic_F77 \
15505 module_cmds_F77 \
15506 module_expsym_cmds_F77 \
15507 lt_cv_prog_compiler_c_o_F77 \
15508 exclude_expsyms_F77 \
15509 include_expsyms_F77; do
15511 case $var in
15512 old_archive_cmds_F77 | \
15513 old_archive_from_new_cmds_F77 | \
15514 archive_cmds_F77 | \
15515 archive_expsym_cmds_F77 | \
15516 module_cmds_F77 | \
15517 module_expsym_cmds_F77 | \
15518 old_archive_from_expsyms_cmds_F77 | \
15519 export_symbols_cmds_F77 | \
15520 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15521 postinstall_cmds | postuninstall_cmds | \
15522 old_postinstall_cmds | old_postuninstall_cmds | \
15523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15524 # Double-quote double-evaled strings.
15525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15530 esac
15531 done
15533 case $lt_echo in
15534 *'\$0 --fallback-echo"')
15535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15537 esac
15539 cfgfile="$ofile"
15541 cat <<__EOF__ >> "$cfgfile"
15542 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15546 # Shell to use when invoking shell scripts.
15547 SHELL=$lt_SHELL
15549 # Whether or not to build shared libraries.
15550 build_libtool_libs=$enable_shared
15552 # Whether or not to build static libraries.
15553 build_old_libs=$enable_static
15555 # Whether or not to add -lc for building shared libraries.
15556 build_libtool_need_lc=$archive_cmds_need_lc_F77
15558 # Whether or not to disallow shared libs when runtime libs are static
15559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15561 # Whether or not to optimize for fast installation.
15562 fast_install=$enable_fast_install
15564 # The host system.
15565 host_alias=$host_alias
15566 host=$host
15568 # An echo program that does not interpret backslashes.
15569 echo=$lt_echo
15571 # The archiver.
15572 AR=$lt_AR
15573 AR_FLAGS=$lt_AR_FLAGS
15575 # A C compiler.
15576 LTCC=$lt_LTCC
15578 # A language-specific compiler.
15579 CC=$lt_compiler_F77
15581 # Is the compiler the GNU C compiler?
15582 with_gcc=$GCC_F77
15584 # An ERE matcher.
15585 EGREP=$lt_EGREP
15587 # The linker used to build libraries.
15588 LD=$lt_LD_F77
15590 # Whether we need hard or soft links.
15591 LN_S=$lt_LN_S
15593 # A BSD-compatible nm program.
15594 NM=$lt_NM
15596 # A symbol stripping program
15597 STRIP=$lt_STRIP
15599 # Used to examine libraries when file_magic_cmd begins "file"
15600 MAGIC_CMD=$MAGIC_CMD
15602 # Used on cygwin: DLL creation program.
15603 DLLTOOL="$DLLTOOL"
15605 # Used on cygwin: object dumper.
15606 OBJDUMP="$OBJDUMP"
15608 # Used on cygwin: assembler.
15609 AS="$AS"
15611 # The name of the directory that contains temporary libtool files.
15612 objdir=$objdir
15614 # How to create reloadable object files.
15615 reload_flag=$lt_reload_flag
15616 reload_cmds=$lt_reload_cmds
15618 # How to pass a linker flag through the compiler.
15619 wl=$lt_lt_prog_compiler_wl_F77
15621 # Object file suffix (normally "o").
15622 objext="$ac_objext"
15624 # Old archive suffix (normally "a").
15625 libext="$libext"
15627 # Shared library suffix (normally ".so").
15628 shrext_cmds='$shrext_cmds'
15630 # Executable file suffix (normally "").
15631 exeext="$exeext"
15633 # Additional compiler flags for building library objects.
15634 pic_flag=$lt_lt_prog_compiler_pic_F77
15635 pic_mode=$pic_mode
15637 # What is the maximum length of a command?
15638 max_cmd_len=$lt_cv_sys_max_cmd_len
15640 # Does compiler simultaneously support -c and -o options?
15641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15643 # Must we lock files when doing compilation ?
15644 need_locks=$lt_need_locks
15646 # Do we need the lib prefix for modules?
15647 need_lib_prefix=$need_lib_prefix
15649 # Do we need a version for libraries?
15650 need_version=$need_version
15652 # Whether dlopen is supported.
15653 dlopen_support=$enable_dlopen
15655 # Whether dlopen of programs is supported.
15656 dlopen_self=$enable_dlopen_self
15658 # Whether dlopen of statically linked programs is supported.
15659 dlopen_self_static=$enable_dlopen_self_static
15661 # Compiler flag to prevent dynamic linking.
15662 link_static_flag=$lt_lt_prog_compiler_static_F77
15664 # Compiler flag to turn off builtin functions.
15665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15667 # Compiler flag to allow reflexive dlopens.
15668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15670 # Compiler flag to generate shared objects directly from archives.
15671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15673 # Compiler flag to generate thread-safe objects.
15674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15676 # Library versioning type.
15677 version_type=$version_type
15679 # Format of library name prefix.
15680 libname_spec=$lt_libname_spec
15682 # List of archive names. First name is the real one, the rest are links.
15683 # The last name is the one that the linker finds with -lNAME.
15684 library_names_spec=$lt_library_names_spec
15686 # The coded name of the library, if different from the real name.
15687 soname_spec=$lt_soname_spec
15689 # Commands used to build and install an old-style archive.
15690 RANLIB=$lt_RANLIB
15691 old_archive_cmds=$lt_old_archive_cmds_F77
15692 old_postinstall_cmds=$lt_old_postinstall_cmds
15693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15695 # Create an old-style archive from a shared archive.
15696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15698 # Create a temporary old-style archive to link instead of a shared archive.
15699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15701 # Commands used to build and install a shared archive.
15702 archive_cmds=$lt_archive_cmds_F77
15703 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15704 postinstall_cmds=$lt_postinstall_cmds
15705 postuninstall_cmds=$lt_postuninstall_cmds
15707 # Commands used to build a loadable module (assumed same as above if empty)
15708 module_cmds=$lt_module_cmds_F77
15709 module_expsym_cmds=$lt_module_expsym_cmds_F77
15711 # Commands to strip libraries.
15712 old_striplib=$lt_old_striplib
15713 striplib=$lt_striplib
15715 # Dependencies to place before the objects being linked to create a
15716 # shared library.
15717 predep_objects=$lt_predep_objects_F77
15719 # Dependencies to place after the objects being linked to create a
15720 # shared library.
15721 postdep_objects=$lt_postdep_objects_F77
15723 # Dependencies to place before the objects being linked to create a
15724 # shared library.
15725 predeps=$lt_predeps_F77
15727 # Dependencies to place after the objects being linked to create a
15728 # shared library.
15729 postdeps=$lt_postdeps_F77
15731 # The library search path used internally by the compiler when linking
15732 # a shared library.
15733 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15735 # Method to check whether dependent libraries are shared objects.
15736 deplibs_check_method=$lt_deplibs_check_method
15738 # Command to use when deplibs_check_method == file_magic.
15739 file_magic_cmd=$lt_file_magic_cmd
15741 # Flag that allows shared libraries with undefined symbols to be built.
15742 allow_undefined_flag=$lt_allow_undefined_flag_F77
15744 # Flag that forces no undefined symbols.
15745 no_undefined_flag=$lt_no_undefined_flag_F77
15747 # Commands used to finish a libtool library installation in a directory.
15748 finish_cmds=$lt_finish_cmds
15750 # Same as above, but a single script fragment to be evaled but not shown.
15751 finish_eval=$lt_finish_eval
15753 # Take the output of nm and produce a listing of raw symbols and C names.
15754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15756 # Transform the output of nm in a proper C declaration
15757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15759 # Transform the output of nm in a C name address pair
15760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15762 # This is the shared library runtime path variable.
15763 runpath_var=$runpath_var
15765 # This is the shared library path variable.
15766 shlibpath_var=$shlibpath_var
15768 # Is shlibpath searched before the hard-coded library search path?
15769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15771 # How to hardcode a shared library path into an executable.
15772 hardcode_action=$hardcode_action_F77
15774 # Whether we should hardcode library paths into libraries.
15775 hardcode_into_libs=$hardcode_into_libs
15777 # Flag to hardcode \$libdir into a binary during linking.
15778 # This must work even if \$libdir does not exist.
15779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15781 # If ld is used when linking, flag to hardcode \$libdir into
15782 # a binary during linking. This must work even if \$libdir does
15783 # not exist.
15784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15786 # Whether we need a single -rpath flag with a separated argument.
15787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15790 # resulting binary.
15791 hardcode_direct=$hardcode_direct_F77
15793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15794 # resulting binary.
15795 hardcode_minus_L=$hardcode_minus_L_F77
15797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15798 # the resulting binary.
15799 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15801 # Set to yes if building a shared library automatically hardcodes DIR into the library
15802 # and all subsequent libraries and executables linked against it.
15803 hardcode_automatic=$hardcode_automatic_F77
15805 # Variables whose values should be saved in libtool wrapper scripts and
15806 # restored at relink time.
15807 variables_saved_for_relink="$variables_saved_for_relink"
15809 # Whether libtool must link a program against all its dependency libraries.
15810 link_all_deplibs=$link_all_deplibs_F77
15812 # Compile-time system search path for libraries
15813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15815 # Run-time system search path for libraries
15816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15818 # Fix the shell variable \$srcfile for the compiler.
15819 fix_srcfile_path="$fix_srcfile_path_F77"
15821 # Set to yes if exported symbols are required.
15822 always_export_symbols=$always_export_symbols_F77
15824 # The commands to list exported symbols.
15825 export_symbols_cmds=$lt_export_symbols_cmds_F77
15827 # The commands to extract the exported symbol list from a shared archive.
15828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15830 # Symbols that should not be listed in the preloaded symbols.
15831 exclude_expsyms=$lt_exclude_expsyms_F77
15833 # Symbols that must always be exported.
15834 include_expsyms=$lt_include_expsyms_F77
15836 # ### END LIBTOOL TAG CONFIG: $tagname
15838 __EOF__
15841 else
15842 # If there is no Makefile yet, we rely on a make rule to execute
15843 # `config.status --recheck' to rerun these tests and create the
15844 # libtool script then.
15845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15846 if test -f "$ltmain_in"; then
15847 test -f Makefile && make "$ltmain"
15852 ac_ext=c
15853 ac_cpp='$CPP $CPPFLAGS'
15854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15858 CC="$lt_save_CC"
15860 else
15861 tagname=""
15865 GCJ)
15866 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15870 # Source file extension for Java test sources.
15871 ac_ext=java
15873 # Object file extension for compiled Java test sources.
15874 objext=o
15875 objext_GCJ=$objext
15877 # Code to be used in simple compile tests
15878 lt_simple_compile_test_code="class foo {}\n"
15880 # Code to be used in simple link tests
15881 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15885 # If no C compiler was specified, use CC.
15886 LTCC=${LTCC-"$CC"}
15888 # Allow CC to be a program name with arguments.
15889 compiler=$CC
15892 # Allow CC to be a program name with arguments.
15893 lt_save_CC="$CC"
15894 CC=${GCJ-"gcj"}
15895 compiler=$CC
15896 compiler_GCJ=$CC
15898 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15899 archive_cmds_need_lc_GCJ=no
15902 lt_prog_compiler_no_builtin_flag_GCJ=
15904 if test "$GCC" = yes; then
15905 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15908 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15909 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15910 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913 lt_cv_prog_compiler_rtti_exceptions=no
15914 ac_outfile=conftest.$ac_objext
15915 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15916 lt_compiler_flag="-fno-rtti -fno-exceptions"
15917 # Insert the option either (1) after the last *FLAGS variable, or
15918 # (2) before a word containing "conftest.", or (3) at the end.
15919 # Note that $ac_compile itself does not contain backslashes and begins
15920 # with a dollar sign (not a hyphen), so the echo should work correctly.
15921 # The option is referenced via a variable to avoid confusing sed.
15922 lt_compile=`echo "$ac_compile" | $SED \
15923 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15925 -e 's:$: $lt_compiler_flag:'`
15926 (eval echo "\"\$as_me:15926: $lt_compile\"" >&5)
15927 (eval "$lt_compile" 2>conftest.err)
15928 ac_status=$?
15929 cat conftest.err >&5
15930 echo "$as_me:15930: \$? = $ac_status" >&5
15931 if (exit $ac_status) && test -s "$ac_outfile"; then
15932 # The compiler 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 lt_cv_prog_compiler_rtti_exceptions=yes
15938 $rm conftest*
15941 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15942 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15944 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15945 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15946 else
15952 lt_prog_compiler_wl_GCJ=
15953 lt_prog_compiler_pic_GCJ=
15954 lt_prog_compiler_static_GCJ=
15956 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15957 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15959 if test "$GCC" = yes; then
15960 lt_prog_compiler_wl_GCJ='-Wl,'
15961 lt_prog_compiler_static_GCJ='-static'
15963 case $host_os in
15964 aix*)
15965 # All AIX code is PIC.
15966 if test "$host_cpu" = ia64; then
15967 # AIX 5 now supports IA64 processor
15968 lt_prog_compiler_static_GCJ='-Bstatic'
15972 amigaos*)
15973 # FIXME: we need at least 68020 code to build shared libraries, but
15974 # adding the `-m68020' flag to GCC prevents building anything better,
15975 # like `-m68040'.
15976 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15979 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15980 # PIC is the default for these OSes.
15983 mingw* | pw32* | os2*)
15984 # This hack is so that the source file can tell whether it is being
15985 # built for inclusion in a dll (and should export symbols for example).
15986 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15989 darwin* | rhapsody*)
15990 # PIC is the default on this platform
15991 # Common symbols not allowed in MH_DYLIB files
15992 lt_prog_compiler_pic_GCJ='-fno-common'
15995 msdosdjgpp*)
15996 # Just because we use GCC doesn't mean we suddenly get shared libraries
15997 # on systems that don't support them.
15998 lt_prog_compiler_can_build_shared_GCJ=no
15999 enable_shared=no
16002 sysv4*MP*)
16003 if test -d /usr/nec; then
16004 lt_prog_compiler_pic_GCJ=-Kconform_pic
16008 hpux*)
16009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16010 # not for PA HP-UX.
16011 case "$host_cpu" in
16012 hppa*64*|ia64*)
16013 # +Z the default
16016 lt_prog_compiler_pic_GCJ='-fPIC'
16018 esac
16022 lt_prog_compiler_pic_GCJ='-fPIC'
16024 esac
16025 else
16026 # PORTME Check for flag to pass linker flags through the system compiler.
16027 case $host_os in
16028 aix*)
16029 lt_prog_compiler_wl_GCJ='-Wl,'
16030 if test "$host_cpu" = ia64; then
16031 # AIX 5 now supports IA64 processor
16032 lt_prog_compiler_static_GCJ='-Bstatic'
16033 else
16034 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16037 darwin*)
16038 # PIC is the default on this platform
16039 # Common symbols not allowed in MH_DYLIB files
16040 case "$cc_basename" in
16041 xlc*)
16042 lt_prog_compiler_pic_GCJ='-qnocommon'
16043 lt_prog_compiler_wl_GCJ='-Wl,'
16045 esac
16048 mingw* | pw32* | os2*)
16049 # This hack is so that the source file can tell whether it is being
16050 # built for inclusion in a dll (and should export symbols for example).
16051 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16054 hpux9* | hpux10* | hpux11*)
16055 lt_prog_compiler_wl_GCJ='-Wl,'
16056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16057 # not for PA HP-UX.
16058 case "$host_cpu" in
16059 hppa*64*|ia64*)
16060 # +Z the default
16063 lt_prog_compiler_pic_GCJ='+Z'
16065 esac
16066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16067 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16070 irix5* | irix6* | nonstopux*)
16071 lt_prog_compiler_wl_GCJ='-Wl,'
16072 # PIC (with -KPIC) is the default.
16073 lt_prog_compiler_static_GCJ='-non_shared'
16076 newsos6)
16077 lt_prog_compiler_pic_GCJ='-KPIC'
16078 lt_prog_compiler_static_GCJ='-Bstatic'
16081 linux*)
16082 case $CC in
16083 icc* | ecc*)
16084 lt_prog_compiler_wl_GCJ='-Wl,'
16085 lt_prog_compiler_pic_GCJ='-KPIC'
16086 lt_prog_compiler_static_GCJ='-static'
16088 ccc*)
16089 lt_prog_compiler_wl_GCJ='-Wl,'
16090 # All Alpha code is PIC.
16091 lt_prog_compiler_static_GCJ='-non_shared'
16093 esac
16096 osf3* | osf4* | osf5*)
16097 lt_prog_compiler_wl_GCJ='-Wl,'
16098 # All OSF/1 code is PIC.
16099 lt_prog_compiler_static_GCJ='-non_shared'
16102 sco3.2v5*)
16103 lt_prog_compiler_pic_GCJ='-Kpic'
16104 lt_prog_compiler_static_GCJ='-dn'
16107 solaris*)
16108 lt_prog_compiler_wl_GCJ='-Wl,'
16109 lt_prog_compiler_pic_GCJ='-KPIC'
16110 lt_prog_compiler_static_GCJ='-Bstatic'
16113 sunos4*)
16114 lt_prog_compiler_wl_GCJ='-Qoption ld '
16115 lt_prog_compiler_pic_GCJ='-PIC'
16116 lt_prog_compiler_static_GCJ='-Bstatic'
16119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16120 lt_prog_compiler_wl_GCJ='-Wl,'
16121 lt_prog_compiler_pic_GCJ='-KPIC'
16122 lt_prog_compiler_static_GCJ='-Bstatic'
16125 sysv4*MP*)
16126 if test -d /usr/nec ;then
16127 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16128 lt_prog_compiler_static_GCJ='-Bstatic'
16132 uts4*)
16133 lt_prog_compiler_pic_GCJ='-pic'
16134 lt_prog_compiler_static_GCJ='-Bstatic'
16138 lt_prog_compiler_can_build_shared_GCJ=no
16140 esac
16143 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16144 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16147 # Check to make sure the PIC flag actually works.
16149 if test -n "$lt_prog_compiler_pic_GCJ"; then
16151 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16152 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16153 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156 lt_prog_compiler_pic_works_GCJ=no
16157 ac_outfile=conftest.$ac_objext
16158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16159 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16160 # Insert the option either (1) after the last *FLAGS variable, or
16161 # (2) before a word containing "conftest.", or (3) at the end.
16162 # Note that $ac_compile itself does not contain backslashes and begins
16163 # with a dollar sign (not a hyphen), so the echo should work correctly.
16164 # The option is referenced via a variable to avoid confusing sed.
16165 lt_compile=`echo "$ac_compile" | $SED \
16166 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16168 -e 's:$: $lt_compiler_flag:'`
16169 (eval echo "\"\$as_me:16169: $lt_compile\"" >&5)
16170 (eval "$lt_compile" 2>conftest.err)
16171 ac_status=$?
16172 cat conftest.err >&5
16173 echo "$as_me:16173: \$? = $ac_status" >&5
16174 if (exit $ac_status) && test -s "$ac_outfile"; then
16175 # The compiler can only warn and ignore the option if not recognized
16176 # So say no if there are warnings
16177 if test ! -s conftest.err; then
16178 lt_prog_compiler_pic_works_GCJ=yes
16181 $rm conftest*
16184 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16185 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16187 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16188 case $lt_prog_compiler_pic_GCJ in
16189 "" | " "*) ;;
16190 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16191 esac
16192 else
16193 lt_prog_compiler_pic_GCJ=
16194 lt_prog_compiler_can_build_shared_GCJ=no
16198 case "$host_os" in
16199 # For platforms which do not support PIC, -DPIC is meaningless:
16200 *djgpp*)
16201 lt_prog_compiler_pic_GCJ=
16204 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16206 esac
16208 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16210 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213 lt_cv_prog_compiler_c_o_GCJ=no
16214 $rm -r conftest 2>/dev/null
16215 mkdir conftest
16216 cd conftest
16217 mkdir out
16218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16220 lt_compiler_flag="-o out/conftest2.$ac_objext"
16221 # Insert the option either (1) after the last *FLAGS variable, or
16222 # (2) before a word containing "conftest.", or (3) at the end.
16223 # Note that $ac_compile itself does not contain backslashes and begins
16224 # with a dollar sign (not a hyphen), so the echo should work correctly.
16225 lt_compile=`echo "$ac_compile" | $SED \
16226 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16228 -e 's:$: $lt_compiler_flag:'`
16229 (eval echo "\"\$as_me:16229: $lt_compile\"" >&5)
16230 (eval "$lt_compile" 2>out/conftest.err)
16231 ac_status=$?
16232 cat out/conftest.err >&5
16233 echo "$as_me:16233: \$? = $ac_status" >&5
16234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16235 then
16236 # The compiler can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 if test ! -s out/conftest.err; then
16239 lt_cv_prog_compiler_c_o_GCJ=yes
16242 chmod u+w .
16243 $rm conftest*
16244 # SGI C++ compiler will create directory out/ii_files/ for
16245 # template instantiation
16246 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16247 $rm out/* && rmdir out
16248 cd ..
16249 rmdir conftest
16250 $rm conftest*
16253 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16254 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16257 hard_links="nottested"
16258 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16259 # do not overwrite the value of need_locks provided by the user
16260 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16261 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16262 hard_links=yes
16263 $rm conftest*
16264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16265 touch conftest.a
16266 ln conftest.a conftest.b 2>&5 || hard_links=no
16267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16268 echo "$as_me:$LINENO: result: $hard_links" >&5
16269 echo "${ECHO_T}$hard_links" >&6
16270 if test "$hard_links" = no; then
16271 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16272 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16273 need_locks=warn
16275 else
16276 need_locks=no
16279 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16282 runpath_var=
16283 allow_undefined_flag_GCJ=
16284 enable_shared_with_static_runtimes_GCJ=no
16285 archive_cmds_GCJ=
16286 archive_expsym_cmds_GCJ=
16287 old_archive_From_new_cmds_GCJ=
16288 old_archive_from_expsyms_cmds_GCJ=
16289 export_dynamic_flag_spec_GCJ=
16290 whole_archive_flag_spec_GCJ=
16291 thread_safe_flag_spec_GCJ=
16292 hardcode_libdir_flag_spec_GCJ=
16293 hardcode_libdir_flag_spec_ld_GCJ=
16294 hardcode_libdir_separator_GCJ=
16295 hardcode_direct_GCJ=no
16296 hardcode_minus_L_GCJ=no
16297 hardcode_shlibpath_var_GCJ=unsupported
16298 link_all_deplibs_GCJ=unknown
16299 hardcode_automatic_GCJ=no
16300 module_cmds_GCJ=
16301 module_expsym_cmds_GCJ=
16302 always_export_symbols_GCJ=no
16303 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16304 # include_expsyms should be a list of space-separated symbols to be *always*
16305 # included in the symbol list
16306 include_expsyms_GCJ=
16307 # exclude_expsyms can be an extended regexp of symbols to exclude
16308 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16309 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16310 # as well as any symbol that contains `d'.
16311 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16313 # platforms (ab)use it in PIC code, but their linkers get confused if
16314 # the symbol is explicitly referenced. Since portable code cannot
16315 # rely on this symbol name, it's probably fine to never include it in
16316 # preloaded symbol tables.
16317 extract_expsyms_cmds=
16319 case $host_os in
16320 cygwin* | mingw* | pw32*)
16321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16322 # When not using gcc, we currently assume that we are using
16323 # Microsoft Visual C++.
16324 if test "$GCC" != yes; then
16325 with_gnu_ld=no
16328 openbsd*)
16329 with_gnu_ld=no
16331 esac
16333 ld_shlibs_GCJ=yes
16334 if test "$with_gnu_ld" = yes; then
16335 # If archive_cmds runs LD, not CC, wlarc should be empty
16336 wlarc='${wl}'
16338 # See if GNU ld supports shared libraries.
16339 case $host_os in
16340 aix3* | aix4* | aix5*)
16341 # On AIX/PPC, the GNU linker is very broken
16342 if test "$host_cpu" != ia64; then
16343 ld_shlibs_GCJ=no
16344 cat <<EOF 1>&2
16346 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16347 *** to be unable to reliably create shared libraries on AIX.
16348 *** Therefore, libtool is disabling shared libraries support. If you
16349 *** really care for shared libraries, you may want to modify your PATH
16350 *** so that a non-GNU linker is found, and then restart.
16356 amigaos*)
16357 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)'
16358 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16359 hardcode_minus_L_GCJ=yes
16361 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16362 # that the semantics of dynamic libraries on AmigaOS, at least up
16363 # to version 4, is to share data among multiple programs linked
16364 # with the same dynamic library. Since this doesn't match the
16365 # behavior of shared libraries on other platforms, we can't use
16366 # them.
16367 ld_shlibs_GCJ=no
16370 beos*)
16371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16372 allow_undefined_flag_GCJ=unsupported
16373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16374 # support --undefined. This deserves some investigation. FIXME
16375 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 else
16377 ld_shlibs_GCJ=no
16381 cygwin* | mingw* | pw32*)
16382 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16383 # as there is no search path for DLLs.
16384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16385 allow_undefined_flag_GCJ=unsupported
16386 always_export_symbols_GCJ=no
16387 enable_shared_with_static_runtimes_GCJ=yes
16388 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16390 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16391 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16392 # If the export-symbols file already is a .def file (1st line
16393 # is EXPORTS), use it as is; otherwise, prepend...
16394 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16395 cp $export_symbols $output_objdir/$soname.def;
16396 else
16397 echo EXPORTS > $output_objdir/$soname.def;
16398 cat $export_symbols >> $output_objdir/$soname.def;
16400 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16401 else
16402 ld_shlibs=no
16406 netbsd*)
16407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16408 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16409 wlarc=
16410 else
16411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16412 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16416 solaris* | sysv5*)
16417 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16418 ld_shlibs_GCJ=no
16419 cat <<EOF 1>&2
16421 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16422 *** create shared libraries on Solaris systems. Therefore, libtool
16423 *** is disabling shared libraries support. We urge you to upgrade GNU
16424 *** binutils to release 2.9.1 or newer. Another option is to modify
16425 *** your PATH or compiler configuration so that the native linker is
16426 *** used, and then restart.
16429 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16430 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16431 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16432 else
16433 ld_shlibs_GCJ=no
16437 sunos4*)
16438 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16439 wlarc=
16440 hardcode_direct_GCJ=yes
16441 hardcode_shlibpath_var_GCJ=no
16444 linux*)
16445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16446 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16447 archive_cmds_GCJ="$tmp_archive_cmds"
16448 supports_anon_versioning=no
16449 case `$LD -v 2>/dev/null` in
16450 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16453 *\ 2.11.*) ;; # other 2.11 versions
16454 *) supports_anon_versioning=yes ;;
16455 esac
16456 if test $supports_anon_versioning = yes; then
16457 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16459 $echo "local: *; };" >> $output_objdir/$libname.ver~
16460 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16461 else
16462 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16464 else
16465 ld_shlibs_GCJ=no
16470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16471 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16472 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16473 else
16474 ld_shlibs_GCJ=no
16477 esac
16479 if test "$ld_shlibs_GCJ" = yes; then
16480 runpath_var=LD_RUN_PATH
16481 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16482 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16483 # ancient GNU ld didn't support --whole-archive et. al.
16484 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16485 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16486 else
16487 whole_archive_flag_spec_GCJ=
16490 else
16491 # PORTME fill in a description of your system's linker (not GNU ld)
16492 case $host_os in
16493 aix3*)
16494 allow_undefined_flag_GCJ=unsupported
16495 always_export_symbols_GCJ=yes
16496 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'
16497 # Note: this linker hardcodes the directories in LIBPATH if there
16498 # are no directories specified by -L.
16499 hardcode_minus_L_GCJ=yes
16500 if test "$GCC" = yes && test -z "$link_static_flag"; then
16501 # Neither direct hardcoding nor static linking is supported with a
16502 # broken collect2.
16503 hardcode_direct_GCJ=unsupported
16507 aix4* | aix5*)
16508 if test "$host_cpu" = ia64; then
16509 # On IA64, the linker does run time linking by default, so we don't
16510 # have to do anything special.
16511 aix_use_runtimelinking=no
16512 exp_sym_flag='-Bexport'
16513 no_entry_flag=""
16514 else
16515 # If we're using GNU nm, then we don't want the "-C" option.
16516 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16517 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16518 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'
16519 else
16520 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'
16522 aix_use_runtimelinking=no
16524 # Test if we are trying to use run time linking or normal
16525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16526 # need to do runtime linking.
16527 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16528 for ld_flag in $LDFLAGS; do
16529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16530 aix_use_runtimelinking=yes
16531 break
16533 done
16534 esac
16536 exp_sym_flag='-bexport'
16537 no_entry_flag='-bnoentry'
16540 # When large executables or shared objects are built, AIX ld can
16541 # have problems creating the table of contents. If linking a library
16542 # or program results in "error TOC overflow" add -mminimal-toc to
16543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16546 archive_cmds_GCJ=''
16547 hardcode_direct_GCJ=yes
16548 hardcode_libdir_separator_GCJ=':'
16549 link_all_deplibs_GCJ=yes
16551 if test "$GCC" = yes; then
16552 case $host_os in aix4.012|aix4.012.*)
16553 # We only want to do this on AIX 4.2 and lower, the check
16554 # below for broken collect2 doesn't work under 4.3+
16555 collect2name=`${CC} -print-prog-name=collect2`
16556 if test -f "$collect2name" && \
16557 strings "$collect2name" | grep resolve_lib_name >/dev/null
16558 then
16559 # We have reworked collect2
16560 hardcode_direct_GCJ=yes
16561 else
16562 # We have old collect2
16563 hardcode_direct_GCJ=unsupported
16564 # It fails to find uninstalled libraries when the uninstalled
16565 # path is not listed in the libpath. Setting hardcode_minus_L
16566 # to unsupported forces relinking
16567 hardcode_minus_L_GCJ=yes
16568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569 hardcode_libdir_separator_GCJ=
16571 esac
16572 shared_flag='-shared'
16573 else
16574 # not using gcc
16575 if test "$host_cpu" = ia64; then
16576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16577 # chokes on -Wl,-G. The following line is correct:
16578 shared_flag='-G'
16579 else
16580 if test "$aix_use_runtimelinking" = yes; then
16581 shared_flag='${wl}-G'
16582 else
16583 shared_flag='${wl}-bM:SRE'
16588 # It seems that -bexpall does not export symbols beginning with
16589 # underscore (_), so it is better to generate a list of symbols to export.
16590 always_export_symbols_GCJ=yes
16591 if test "$aix_use_runtimelinking" = yes; then
16592 # Warning - without using the other runtime loading flags (-brtl),
16593 # -berok will link without error, but may produce a broken library.
16594 allow_undefined_flag_GCJ='-berok'
16595 # Determine the default libpath from the value encoded in an empty executable.
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16604 main ()
16608 return 0;
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16636 # Check for a 64-bit object if we didn't find anything.
16637 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; }
16638 }'`; fi
16639 else
16640 echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16644 rm -f conftest.err conftest.$ac_objext \
16645 conftest$ac_exeext conftest.$ac_ext
16646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16648 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16649 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16650 else
16651 if test "$host_cpu" = ia64; then
16652 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16653 allow_undefined_flag_GCJ="-z nodefs"
16654 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16655 else
16656 # Determine the default libpath from the value encoded in an empty executable.
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h. */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16665 main ()
16669 return 0;
16671 _ACEOF
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16674 (eval $ac_link) 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag"
16682 || test ! -s conftest.err'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest$ac_exeext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16697 # Check for a 64-bit object if we didn't find anything.
16698 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; }
16699 }'`; fi
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16705 rm -f conftest.err conftest.$ac_objext \
16706 conftest$ac_exeext conftest.$ac_ext
16707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16710 # Warning - without using the other run time loading flags,
16711 # -berok will link without error, but may produce a broken library.
16712 no_undefined_flag_GCJ=' ${wl}-bernotok'
16713 allow_undefined_flag_GCJ=' ${wl}-berok'
16714 # -bexpall does not export symbols beginning with underscore (_)
16715 always_export_symbols_GCJ=yes
16716 # Exported symbols can be pulled into shared objects from archives
16717 whole_archive_flag_spec_GCJ=' '
16718 archive_cmds_need_lc_GCJ=yes
16719 # This is similar to how AIX traditionally builds it's shared libraries.
16720 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16725 amigaos*)
16726 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)'
16727 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728 hardcode_minus_L_GCJ=yes
16729 # see comment about different semantics on the GNU ld section
16730 ld_shlibs_GCJ=no
16733 bsdi[45]*)
16734 export_dynamic_flag_spec_GCJ=-rdynamic
16737 cygwin* | mingw* | pw32*)
16738 # When not using gcc, we currently assume that we are using
16739 # Microsoft Visual C++.
16740 # hardcode_libdir_flag_spec is actually meaningless, as there is
16741 # no search path for DLLs.
16742 hardcode_libdir_flag_spec_GCJ=' '
16743 allow_undefined_flag_GCJ=unsupported
16744 # Tell ltmain to make .lib files, not .a files.
16745 libext=lib
16746 # Tell ltmain to make .dll files, not .so files.
16747 shrext_cmds=".dll"
16748 # FIXME: Setting linknames here is a bad hack.
16749 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16750 # The linker will automatically build a .lib file if we build a DLL.
16751 old_archive_From_new_cmds_GCJ='true'
16752 # FIXME: Should let the user specify the lib program.
16753 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16754 fix_srcfile_path='`cygpath -w "$srcfile"`'
16755 enable_shared_with_static_runtimes_GCJ=yes
16758 darwin* | rhapsody*)
16759 case "$host_os" in
16760 rhapsody* | darwin1.[012])
16761 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16763 *) # Darwin 1.3 on
16764 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16765 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16766 else
16767 case ${MACOSX_DEPLOYMENT_TARGET} in
16768 10.[012])
16769 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16771 10.*)
16772 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16774 esac
16777 esac
16778 archive_cmds_need_lc_GCJ=no
16779 hardcode_direct_GCJ=no
16780 hardcode_automatic_GCJ=yes
16781 hardcode_shlibpath_var_GCJ=unsupported
16782 whole_archive_flag_spec_GCJ=''
16783 link_all_deplibs_GCJ=yes
16784 if test "$GCC" = yes ; then
16785 output_verbose_link_cmd='echo'
16786 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16787 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16788 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16789 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}'
16790 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}'
16791 else
16792 case "$cc_basename" in
16793 xlc*)
16794 output_verbose_link_cmd='echo'
16795 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16796 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16797 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16798 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}'
16799 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}'
16802 ld_shlibs_GCJ=no
16804 esac
16808 dgux*)
16809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16811 hardcode_shlibpath_var_GCJ=no
16814 freebsd1*)
16815 ld_shlibs_GCJ=no
16818 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16819 # support. Future versions do this automatically, but an explicit c++rt0.o
16820 # does not break anything, and helps significantly (at the cost of a little
16821 # extra space).
16822 freebsd2.2*)
16823 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825 hardcode_direct_GCJ=yes
16826 hardcode_shlibpath_var_GCJ=no
16829 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16830 freebsd2*)
16831 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16832 hardcode_direct_GCJ=yes
16833 hardcode_minus_L_GCJ=yes
16834 hardcode_shlibpath_var_GCJ=no
16837 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16838 freebsd* | kfreebsd*-gnu)
16839 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16840 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16841 hardcode_direct_GCJ=yes
16842 hardcode_shlibpath_var_GCJ=no
16845 hpux9*)
16846 if test "$GCC" = yes; then
16847 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'
16848 else
16849 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'
16851 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16852 hardcode_libdir_separator_GCJ=:
16853 hardcode_direct_GCJ=yes
16855 # hardcode_minus_L: Not really in the search PATH,
16856 # but as the default location of the library.
16857 hardcode_minus_L_GCJ=yes
16858 export_dynamic_flag_spec_GCJ='${wl}-E'
16861 hpux10* | hpux11*)
16862 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16863 case "$host_cpu" in
16864 hppa*64*|ia64*)
16865 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16868 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16870 esac
16871 else
16872 case "$host_cpu" in
16873 hppa*64*|ia64*)
16874 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16879 esac
16881 if test "$with_gnu_ld" = no; then
16882 case "$host_cpu" in
16883 hppa*64*)
16884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16885 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16886 hardcode_libdir_separator_GCJ=:
16887 hardcode_direct_GCJ=no
16888 hardcode_shlibpath_var_GCJ=no
16890 ia64*)
16891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16892 hardcode_direct_GCJ=no
16893 hardcode_shlibpath_var_GCJ=no
16895 # hardcode_minus_L: Not really in the search PATH,
16896 # but as the default location of the library.
16897 hardcode_minus_L_GCJ=yes
16900 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16901 hardcode_libdir_separator_GCJ=:
16902 hardcode_direct_GCJ=yes
16903 export_dynamic_flag_spec_GCJ='${wl}-E'
16905 # hardcode_minus_L: Not really in the search PATH,
16906 # but as the default location of the library.
16907 hardcode_minus_L_GCJ=yes
16909 esac
16913 irix5* | irix6* | nonstopux*)
16914 if test "$GCC" = yes; then
16915 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'
16916 else
16917 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'
16918 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16920 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16921 hardcode_libdir_separator_GCJ=:
16922 link_all_deplibs_GCJ=yes
16925 netbsd*)
16926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16928 else
16929 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16931 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16932 hardcode_direct_GCJ=yes
16933 hardcode_shlibpath_var_GCJ=no
16936 newsos6)
16937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_direct_GCJ=yes
16939 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16940 hardcode_libdir_separator_GCJ=:
16941 hardcode_shlibpath_var_GCJ=no
16944 openbsd*)
16945 hardcode_direct_GCJ=yes
16946 hardcode_shlibpath_var_GCJ=no
16947 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16948 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16950 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16951 export_dynamic_flag_spec_GCJ='${wl}-E'
16952 else
16953 case $host_os in
16954 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16955 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16956 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16959 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16960 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16962 esac
16966 os2*)
16967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16968 hardcode_minus_L_GCJ=yes
16969 allow_undefined_flag_GCJ=unsupported
16970 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'
16971 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16974 osf3*)
16975 if test "$GCC" = yes; then
16976 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16977 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'
16978 else
16979 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16980 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'
16982 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16983 hardcode_libdir_separator_GCJ=:
16986 osf4* | osf5*) # as osf3* with the addition of -msym flag
16987 if test "$GCC" = yes; then
16988 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16989 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'
16990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16991 else
16992 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16993 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'
16994 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~
16995 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16997 # Both c and cxx compiler support -rpath directly
16998 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17000 hardcode_libdir_separator_GCJ=:
17003 sco3.2v5*)
17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_shlibpath_var_GCJ=no
17006 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17007 runpath_var=LD_RUN_PATH
17008 hardcode_runpath_var=yes
17011 solaris*)
17012 no_undefined_flag_GCJ=' -z text'
17013 if test "$GCC" = yes; then
17014 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17015 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17016 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17017 else
17018 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17022 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17023 hardcode_shlibpath_var_GCJ=no
17024 case $host_os in
17025 solaris2.[0-5] | solaris2.[0-5].*) ;;
17026 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17027 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17028 esac
17029 link_all_deplibs_GCJ=yes
17032 sunos4*)
17033 if test "x$host_vendor" = xsequent; then
17034 # Use $CC to link under sequent, because it throws in some extra .o
17035 # files that make .init and .fini sections work.
17036 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17037 else
17038 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17041 hardcode_direct_GCJ=yes
17042 hardcode_minus_L_GCJ=yes
17043 hardcode_shlibpath_var_GCJ=no
17046 sysv4)
17047 case $host_vendor in
17048 sni)
17049 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17050 hardcode_direct_GCJ=yes # is this really true???
17052 siemens)
17053 ## LD is ld it makes a PLAMLIB
17054 ## CC just makes a GrossModule.
17055 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17056 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17057 hardcode_direct_GCJ=no
17059 motorola)
17060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17061 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17063 esac
17064 runpath_var='LD_RUN_PATH'
17065 hardcode_shlibpath_var_GCJ=no
17068 sysv4.3*)
17069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_shlibpath_var_GCJ=no
17071 export_dynamic_flag_spec_GCJ='-Bexport'
17074 sysv4*MP*)
17075 if test -d /usr/nec; then
17076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 hardcode_shlibpath_var_GCJ=no
17078 runpath_var=LD_RUN_PATH
17079 hardcode_runpath_var=yes
17080 ld_shlibs_GCJ=yes
17084 sysv4.2uw2*)
17085 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17086 hardcode_direct_GCJ=yes
17087 hardcode_minus_L_GCJ=no
17088 hardcode_shlibpath_var_GCJ=no
17089 hardcode_runpath_var=yes
17090 runpath_var=LD_RUN_PATH
17093 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17094 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17095 if test "$GCC" = yes; then
17096 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 else
17098 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 runpath_var='LD_RUN_PATH'
17101 hardcode_shlibpath_var_GCJ=no
17104 sysv5*)
17105 no_undefined_flag_GCJ=' -z text'
17106 # $CC -shared without GNU ld will not create a library from C++
17107 # object files and a static libstdc++, better avoid it by now
17108 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17110 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17111 hardcode_libdir_flag_spec_GCJ=
17112 hardcode_shlibpath_var_GCJ=no
17113 runpath_var='LD_RUN_PATH'
17116 uts4*)
17117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17119 hardcode_shlibpath_var_GCJ=no
17123 ld_shlibs_GCJ=no
17125 esac
17128 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17129 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17130 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17133 if test "$GCC" = yes; then
17134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17138 # Do we need to explicitly link libc?
17140 case "x$archive_cmds_need_lc_GCJ" in
17141 x|xyes)
17142 # Assume -lc should be added
17143 archive_cmds_need_lc_GCJ=yes
17145 if test "$enable_shared" = yes && test "$GCC" = yes; then
17146 case $archive_cmds_GCJ in
17147 *'~'*)
17148 # FIXME: we may have to deal with multi-command sequences.
17150 '$CC '*)
17151 # Test whether the compiler implicitly links with -lc since on some
17152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17153 # to ld, don't add -lc before -lgcc.
17154 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17155 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17156 $rm conftest*
17157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } 2>conftest.err; then
17164 soname=conftest
17165 lib=conftest
17166 libobjs=conftest.$ac_objext
17167 deplibs=
17168 wl=$lt_prog_compiler_wl_GCJ
17169 compiler_flags=-v
17170 linker_flags=-v
17171 verstring=
17172 output_objdir=.
17173 libname=conftest
17174 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17175 allow_undefined_flag_GCJ=
17176 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17177 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }
17181 then
17182 archive_cmds_need_lc_GCJ=no
17183 else
17184 archive_cmds_need_lc_GCJ=yes
17186 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17187 else
17188 cat conftest.err 1>&5
17190 $rm conftest*
17191 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17192 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17194 esac
17197 esac
17199 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17201 library_names_spec=
17202 libname_spec='lib$name'
17203 soname_spec=
17204 shrext_cmds=".so"
17205 postinstall_cmds=
17206 postuninstall_cmds=
17207 finish_cmds=
17208 finish_eval=
17209 shlibpath_var=
17210 shlibpath_overrides_runpath=unknown
17211 version_type=none
17212 dynamic_linker="$host_os ld.so"
17213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17214 if test "$GCC" = yes; then
17215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17216 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17217 # if the path contains ";" then we assume it to be the separator
17218 # otherwise default to the standard path separator (i.e. ":") - it is
17219 # assumed that no part of a normal pathname contains ";" but that should
17220 # okay in the real world where ";" in dirpaths is itself problematic.
17221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17222 else
17223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17225 else
17226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17228 need_lib_prefix=unknown
17229 hardcode_into_libs=no
17231 # when you set need_version to no, make sure it does not cause -set_version
17232 # flags to be left without arguments
17233 need_version=unknown
17235 case $host_os in
17236 aix3*)
17237 version_type=linux
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17239 shlibpath_var=LIBPATH
17241 # AIX 3 has no versioning support, so we append a major version to the name.
17242 soname_spec='${libname}${release}${shared_ext}$major'
17245 aix4* | aix5*)
17246 version_type=linux
17247 need_lib_prefix=no
17248 need_version=no
17249 hardcode_into_libs=yes
17250 if test "$host_cpu" = ia64; then
17251 # AIX 5 supports IA64
17252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 else
17255 # With GCC up to 2.95.x, collect2 would create an import file
17256 # for dependence libraries. The import file would start with
17257 # the line `#! .'. This would cause the generated library to
17258 # depend on `.', always an invalid library. This was fixed in
17259 # development snapshots of GCC prior to 3.0.
17260 case $host_os in
17261 aix4 | aix4.[01] | aix4.[01].*)
17262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17263 echo ' yes '
17264 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17266 else
17267 can_build_shared=no
17270 esac
17271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17272 # soname into executable. Probably we can add versioning support to
17273 # collect2, so additional links can be useful in future.
17274 if test "$aix_use_runtimelinking" = yes; then
17275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17276 # instead of lib<name>.a to let people know that these are not
17277 # typical AIX shared libraries.
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 else
17280 # We preserve .a as extension for shared libraries through AIX4.2
17281 # and later when we are not doing run time linking.
17282 library_names_spec='${libname}${release}.a $libname.a'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17285 shlibpath_var=LIBPATH
17289 amigaos*)
17290 library_names_spec='$libname.ixlibrary $libname.a'
17291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17292 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'
17295 beos*)
17296 library_names_spec='${libname}${shared_ext}'
17297 dynamic_linker="$host_os ld.so"
17298 shlibpath_var=LIBRARY_PATH
17301 bsdi[45]*)
17302 version_type=linux
17303 need_version=no
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17310 # the default ld.so.conf also contains /usr/contrib/lib and
17311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17312 # libtool to hard-code these into programs
17315 cygwin* | mingw* | pw32*)
17316 version_type=windows
17317 shrext_cmds=".dll"
17318 need_version=no
17319 need_lib_prefix=no
17321 case $GCC,$host_os in
17322 yes,cygwin* | yes,mingw* | yes,pw32*)
17323 library_names_spec='$libname.dll.a'
17324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17325 postinstall_cmds='base_file=`basename \${file}`~
17326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17327 dldir=$destdir/`dirname \$dlpath`~
17328 test -d \$dldir || mkdir -p \$dldir~
17329 $install_prog $dir/$dlname \$dldir/$dlname'
17330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17331 dlpath=$dir/\$dldll~
17332 $rm \$dlpath'
17333 shlibpath_overrides_runpath=yes
17335 case $host_os in
17336 cygwin*)
17337 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17338 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17339 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17341 mingw*)
17342 # MinGW DLLs use traditional 'lib' prefix
17343 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17345 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17346 # It is most probably a Windows format PATH printed by
17347 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17348 # path with ; separators, and with drive letters. We can handle the
17349 # drive letters (cygwin fileutils understands them), so leave them,
17350 # especially as we might pass files found there to a mingw objdump,
17351 # which wouldn't understand a cygwinified path. Ahh.
17352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17353 else
17354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17357 pw32*)
17358 # pw32 DLLs use 'pw' prefix rather than 'lib'
17359 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17361 esac
17365 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17367 esac
17368 dynamic_linker='Win32 ld.exe'
17369 # FIXME: first we should search . and the directory the executable is in
17370 shlibpath_var=PATH
17373 darwin* | rhapsody*)
17374 dynamic_linker="$host_os dyld"
17375 version_type=darwin
17376 need_lib_prefix=no
17377 need_version=no
17378 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17379 soname_spec='${libname}${release}${major}$shared_ext'
17380 shlibpath_overrides_runpath=yes
17381 shlibpath_var=DYLD_LIBRARY_PATH
17382 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17383 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17384 if test "$GCC" = yes; then
17385 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"`
17386 else
17387 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17392 dgux*)
17393 version_type=linux
17394 need_lib_prefix=no
17395 need_version=no
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17401 freebsd1*)
17402 dynamic_linker=no
17405 kfreebsd*-gnu)
17406 version_type=linux
17407 need_lib_prefix=no
17408 need_version=no
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath=no
17413 hardcode_into_libs=yes
17414 dynamic_linker='GNU ld.so'
17417 freebsd*)
17418 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17419 version_type=freebsd-$objformat
17420 case $version_type in
17421 freebsd-elf*)
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17423 need_version=no
17424 need_lib_prefix=no
17426 freebsd-*)
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17428 need_version=yes
17430 esac
17431 shlibpath_var=LD_LIBRARY_PATH
17432 case $host_os in
17433 freebsd2*)
17434 shlibpath_overrides_runpath=yes
17436 freebsd3.01* | freebsdelf3.01*)
17437 shlibpath_overrides_runpath=yes
17438 hardcode_into_libs=yes
17440 *) # from 3.2 on
17441 shlibpath_overrides_runpath=no
17442 hardcode_into_libs=yes
17444 esac
17447 gnu*)
17448 version_type=linux
17449 need_lib_prefix=no
17450 need_version=no
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 hardcode_into_libs=yes
17457 hpux9* | hpux10* | hpux11*)
17458 # Give a soname corresponding to the major version so that dld.sl refuses to
17459 # link against other versions.
17460 version_type=sunos
17461 need_lib_prefix=no
17462 need_version=no
17463 case "$host_cpu" in
17464 ia64*)
17465 shrext_cmds='.so'
17466 hardcode_into_libs=yes
17467 dynamic_linker="$host_os dld.so"
17468 shlibpath_var=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 if test "X$HPUX_IA64_MODE" = X32; then
17473 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17474 else
17475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17479 hppa*64*)
17480 shrext_cmds='.sl'
17481 hardcode_into_libs=yes
17482 dynamic_linker="$host_os dld.sl"
17483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 soname_spec='${libname}${release}${shared_ext}$major'
17487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17491 shrext_cmds='.sl'
17492 dynamic_linker="$host_os dld.sl"
17493 shlibpath_var=SHLIB_PATH
17494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496 soname_spec='${libname}${release}${shared_ext}$major'
17498 esac
17499 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17500 postinstall_cmds='chmod 555 $lib'
17503 irix5* | irix6* | nonstopux*)
17504 case $host_os in
17505 nonstopux*) version_type=nonstopux ;;
17507 if test "$lt_cv_prog_gnu_ld" = yes; then
17508 version_type=linux
17509 else
17510 version_type=irix
17511 fi ;;
17512 esac
17513 need_lib_prefix=no
17514 need_version=no
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17517 case $host_os in
17518 irix5* | nonstopux*)
17519 libsuff= shlibsuff=
17522 case $LD in # libtool.m4 will add one of these switches to LD
17523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17524 libsuff= shlibsuff= libmagic=32-bit;;
17525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17526 libsuff=32 shlibsuff=N32 libmagic=N32;;
17527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17529 *) libsuff= shlibsuff= libmagic=never-match;;
17530 esac
17532 esac
17533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17534 shlibpath_overrides_runpath=no
17535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17537 hardcode_into_libs=yes
17540 # No shared lib support for Linux oldld, aout, or coff.
17541 linux*oldld* | linux*aout* | linux*coff*)
17542 dynamic_linker=no
17545 # This must be Linux ELF.
17546 linux*)
17547 version_type=linux
17548 need_lib_prefix=no
17549 need_version=no
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=no
17555 # This implies no fast_install, which is unacceptable.
17556 # Some rework will be needed to allow for fast_install
17557 # before this can be enabled.
17558 hardcode_into_libs=yes
17560 # Append ld.so.conf contents to the search path
17561 if test -f /etc/ld.so.conf; then
17562 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17563 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17566 # We used to test for /lib/ld.so.1 and disable shared libraries on
17567 # powerpc, because MkLinux only supported shared libraries with the
17568 # GNU dynamic linker. Since this was broken with cross compilers,
17569 # most powerpc-linux boxes support dynamic linking these days and
17570 # people can always --disable-shared, the test was removed, and we
17571 # assume the GNU/Linux dynamic linker is in use.
17572 dynamic_linker='GNU/Linux ld.so'
17575 knetbsd*-gnu)
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=no
17583 hardcode_into_libs=yes
17584 dynamic_linker='GNU ld.so'
17587 netbsd*)
17588 version_type=sunos
17589 need_lib_prefix=no
17590 need_version=no
17591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17594 dynamic_linker='NetBSD (a.out) ld.so'
17595 else
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 dynamic_linker='NetBSD ld.elf_so'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 shlibpath_overrides_runpath=yes
17602 hardcode_into_libs=yes
17605 newsos6)
17606 version_type=linux
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=yes
17612 nto-qnx*)
17613 version_type=linux
17614 need_lib_prefix=no
17615 need_version=no
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath=yes
17622 openbsd*)
17623 version_type=sunos
17624 need_lib_prefix=no
17625 need_version=no
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17630 case $host_os in
17631 openbsd2.[89] | openbsd2.[89].*)
17632 shlibpath_overrides_runpath=no
17635 shlibpath_overrides_runpath=yes
17637 esac
17638 else
17639 shlibpath_overrides_runpath=yes
17643 os2*)
17644 libname_spec='$name'
17645 shrext_cmds=".dll"
17646 need_lib_prefix=no
17647 library_names_spec='$libname${shared_ext} $libname.a'
17648 dynamic_linker='OS/2 ld.exe'
17649 shlibpath_var=LIBPATH
17652 osf3* | osf4* | osf5*)
17653 version_type=osf
17654 need_lib_prefix=no
17655 need_version=no
17656 soname_spec='${libname}${release}${shared_ext}$major'
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 shlibpath_var=LD_LIBRARY_PATH
17659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17663 sco3.2v5*)
17664 version_type=osf
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 shlibpath_var=LD_LIBRARY_PATH
17670 solaris*)
17671 version_type=linux
17672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 shlibpath_overrides_runpath=yes
17678 hardcode_into_libs=yes
17679 # ldd complains unless libraries are executable
17680 postinstall_cmds='chmod +x $lib'
17683 sunos4*)
17684 version_type=sunos
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17687 shlibpath_var=LD_LIBRARY_PATH
17688 shlibpath_overrides_runpath=yes
17689 if test "$with_gnu_ld" = yes; then
17690 need_lib_prefix=no
17692 need_version=yes
17695 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17696 version_type=linux
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17698 soname_spec='${libname}${release}${shared_ext}$major'
17699 shlibpath_var=LD_LIBRARY_PATH
17700 case $host_vendor in
17701 sni)
17702 shlibpath_overrides_runpath=no
17703 need_lib_prefix=no
17704 export_dynamic_flag_spec='${wl}-Blargedynsym'
17705 runpath_var=LD_RUN_PATH
17707 siemens)
17708 need_lib_prefix=no
17710 motorola)
17711 need_lib_prefix=no
17712 need_version=no
17713 shlibpath_overrides_runpath=no
17714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17716 esac
17719 sysv4*MP*)
17720 if test -d /usr/nec ;then
17721 version_type=linux
17722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17723 soname_spec='$libname${shared_ext}.$major'
17724 shlibpath_var=LD_LIBRARY_PATH
17728 uts4*)
17729 version_type=linux
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 soname_spec='${libname}${release}${shared_ext}$major'
17732 shlibpath_var=LD_LIBRARY_PATH
17736 dynamic_linker=no
17738 esac
17739 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17740 echo "${ECHO_T}$dynamic_linker" >&6
17741 test "$dynamic_linker" = no && can_build_shared=no
17743 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17744 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17745 hardcode_action_GCJ=
17746 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17747 test -n "$runpath_var_GCJ" || \
17748 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17750 # We can hardcode non-existant directories.
17751 if test "$hardcode_direct_GCJ" != no &&
17752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17753 # have to relink, otherwise we might link with an installed library
17754 # when we should be linking with a yet-to-be-installed one
17755 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17756 test "$hardcode_minus_L_GCJ" != no; then
17757 # Linking always hardcodes the temporary library directory.
17758 hardcode_action_GCJ=relink
17759 else
17760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17761 hardcode_action_GCJ=immediate
17763 else
17764 # We cannot hardcode anything, or else we can only hardcode existing
17765 # directories.
17766 hardcode_action_GCJ=unsupported
17768 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17769 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17771 if test "$hardcode_action_GCJ" = relink; then
17772 # Fast installation is not supported
17773 enable_fast_install=no
17774 elif test "$shlibpath_overrides_runpath" = yes ||
17775 test "$enable_shared" = no; then
17776 # Fast installation is not necessary
17777 enable_fast_install=needless
17780 striplib=
17781 old_striplib=
17782 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17783 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17784 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17787 echo "$as_me:$LINENO: result: yes" >&5
17788 echo "${ECHO_T}yes" >&6
17789 else
17790 # FIXME - insert some real tests, host_os isn't really good enough
17791 case $host_os in
17792 darwin*)
17793 if test -n "$STRIP" ; then
17794 striplib="$STRIP -x"
17795 echo "$as_me:$LINENO: result: yes" >&5
17796 echo "${ECHO_T}yes" >&6
17797 else
17798 echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6
17803 echo "$as_me:$LINENO: result: no" >&5
17804 echo "${ECHO_T}no" >&6
17806 esac
17809 if test "x$enable_dlopen" != xyes; then
17810 enable_dlopen=unknown
17811 enable_dlopen_self=unknown
17812 enable_dlopen_self_static=unknown
17813 else
17814 lt_cv_dlopen=no
17815 lt_cv_dlopen_libs=
17817 case $host_os in
17818 beos*)
17819 lt_cv_dlopen="load_add_on"
17820 lt_cv_dlopen_libs=
17821 lt_cv_dlopen_self=yes
17824 mingw* | pw32*)
17825 lt_cv_dlopen="LoadLibrary"
17826 lt_cv_dlopen_libs=
17829 cygwin*)
17830 lt_cv_dlopen="dlopen"
17831 lt_cv_dlopen_libs=
17834 darwin*)
17835 # if libdl is installed we need to link against it
17836 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17837 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841 ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-ldl $LIBS"
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17850 /* Override any gcc2 internal prototype to avoid an error. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856 char dlopen ();
17858 main ()
17860 dlopen ();
17862 return 0;
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_dl_dlopen=yes
17888 else
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 ac_cv_lib_dl_dlopen=no
17894 rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17899 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17900 if test $ac_cv_lib_dl_dlopen = yes; then
17901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17902 else
17904 lt_cv_dlopen="dyld"
17905 lt_cv_dlopen_libs=
17906 lt_cv_dlopen_self=yes
17913 echo "$as_me:$LINENO: checking for shl_load" >&5
17914 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17915 if test "${ac_cv_func_shl_load+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17926 #define shl_load innocuous_shl_load
17928 /* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char shl_load (); below.
17930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17931 <limits.h> exists even on freestanding compilers. */
17933 #ifdef __STDC__
17934 # include <limits.h>
17935 #else
17936 # include <assert.h>
17937 #endif
17939 #undef shl_load
17941 /* Override any gcc2 internal prototype to avoid an error. */
17942 #ifdef __cplusplus
17943 extern "C"
17945 #endif
17946 /* We use char because int might match the return type of a gcc2
17947 builtin and then its argument prototype would still apply. */
17948 char shl_load ();
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17953 choke me
17954 #else
17955 char (*f) () = shl_load;
17956 #endif
17957 #ifdef __cplusplus
17959 #endif
17962 main ()
17964 return f != shl_load;
17966 return 0;
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 ac_cv_func_shl_load=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_cv_func_shl_load=no
17998 rm -f conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18001 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18002 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18003 if test $ac_cv_func_shl_load = yes; then
18004 lt_cv_dlopen="shl_load"
18005 else
18006 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18007 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18008 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011 ac_check_lib_save_LIBS=$LIBS
18012 LIBS="-ldld $LIBS"
18013 cat >conftest.$ac_ext <<_ACEOF
18014 /* confdefs.h. */
18015 _ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18020 /* Override any gcc2 internal prototype to avoid an error. */
18021 #ifdef __cplusplus
18022 extern "C"
18023 #endif
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18026 char shl_load ();
18028 main ()
18030 shl_load ();
18032 return 0;
18034 _ACEOF
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>conftest.er1
18038 ac_status=$?
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
18044 { ac_try='test -z "$ac_c_werror_flag"
18045 || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_lib_dld_shl_load=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_lib_dld_shl_load=no
18064 rm -f conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18068 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18069 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18070 if test $ac_cv_lib_dld_shl_load = yes; then
18071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18072 else
18073 echo "$as_me:$LINENO: checking for dlopen" >&5
18074 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18075 if test "${ac_cv_func_dlopen+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18086 #define dlopen innocuous_dlopen
18088 /* System header to define __stub macros and hopefully few prototypes,
18089 which can conflict with char dlopen (); below.
18090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091 <limits.h> exists even on freestanding compilers. */
18093 #ifdef __STDC__
18094 # include <limits.h>
18095 #else
18096 # include <assert.h>
18097 #endif
18099 #undef dlopen
18101 /* Override any gcc2 internal prototype to avoid an error. */
18102 #ifdef __cplusplus
18103 extern "C"
18105 #endif
18106 /* We use char because int might match the return type of a gcc2
18107 builtin and then its argument prototype would still apply. */
18108 char dlopen ();
18109 /* The GNU C library defines this for functions which it implements
18110 to always fail with ENOSYS. Some functions are actually named
18111 something starting with __ and the normal name is an alias. */
18112 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18113 choke me
18114 #else
18115 char (*f) () = dlopen;
18116 #endif
18117 #ifdef __cplusplus
18119 #endif
18122 main ()
18124 return f != dlopen;
18126 return 0;
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest$ac_exeext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_func_dlopen=yes
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_func_dlopen=no
18158 rm -f conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18161 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18162 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18163 if test $ac_cv_func_dlopen = yes; then
18164 lt_cv_dlopen="dlopen"
18165 else
18166 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171 ac_check_lib_save_LIBS=$LIBS
18172 LIBS="-ldl $LIBS"
18173 cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h. */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18180 /* Override any gcc2 internal prototype to avoid an error. */
18181 #ifdef __cplusplus
18182 extern "C"
18183 #endif
18184 /* We use char because int might match the return type of a gcc2
18185 builtin and then its argument prototype would still apply. */
18186 char dlopen ();
18188 main ()
18190 dlopen ();
18192 return 0;
18194 _ACEOF
18195 rm -f conftest.$ac_objext conftest$ac_exeext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18197 (eval $ac_link) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_cv_lib_dl_dlopen=yes
18218 else
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18222 ac_cv_lib_dl_dlopen=no
18224 rm -f conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226 LIBS=$ac_check_lib_save_LIBS
18228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18230 if test $ac_cv_lib_dl_dlopen = yes; then
18231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18232 else
18233 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18234 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18235 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238 ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lsvld $LIBS"
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18247 /* Override any gcc2 internal prototype to avoid an error. */
18248 #ifdef __cplusplus
18249 extern "C"
18250 #endif
18251 /* We use char because int might match the return type of a gcc2
18252 builtin and then its argument prototype would still apply. */
18253 char dlopen ();
18255 main ()
18257 dlopen ();
18259 return 0;
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag"
18272 || test ! -s conftest.err'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest$ac_exeext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_lib_svld_dlopen=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_cv_lib_svld_dlopen=no
18291 rm -f conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18295 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18296 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18297 if test $ac_cv_lib_svld_dlopen = yes; then
18298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18299 else
18300 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18301 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18302 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305 ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-ldld $LIBS"
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h. */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18314 /* Override any gcc2 internal prototype to avoid an error. */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 /* We use char because int might match the return type of a gcc2
18319 builtin and then its argument prototype would still apply. */
18320 char dld_link ();
18322 main ()
18324 dld_link ();
18326 return 0;
18328 _ACEOF
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18331 (eval $ac_link) 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_cv_lib_dld_dld_link=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_cv_lib_dld_dld_link=no
18358 rm -f conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18363 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18364 if test $ac_cv_lib_dld_dld_link = yes; then
18365 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18384 esac
18386 if test "x$lt_cv_dlopen" != xno; then
18387 enable_dlopen=yes
18388 else
18389 enable_dlopen=no
18392 case $lt_cv_dlopen in
18393 dlopen)
18394 save_CPPFLAGS="$CPPFLAGS"
18395 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18397 save_LDFLAGS="$LDFLAGS"
18398 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18400 save_LIBS="$LIBS"
18401 LIBS="$lt_cv_dlopen_libs $LIBS"
18403 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18404 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18405 if test "${lt_cv_dlopen_self+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408 if test "$cross_compiling" = yes; then :
18409 lt_cv_dlopen_self=cross
18410 else
18411 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18412 lt_status=$lt_dlunknown
18413 cat > conftest.$ac_ext <<EOF
18414 #line 18414 "configure"
18415 #include "confdefs.h"
18417 #if HAVE_DLFCN_H
18418 #include <dlfcn.h>
18419 #endif
18421 #include <stdio.h>
18423 #ifdef RTLD_GLOBAL
18424 # define LT_DLGLOBAL RTLD_GLOBAL
18425 #else
18426 # ifdef DL_GLOBAL
18427 # define LT_DLGLOBAL DL_GLOBAL
18428 # else
18429 # define LT_DLGLOBAL 0
18430 # endif
18431 #endif
18433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18434 find out it does not work in some platform. */
18435 #ifndef LT_DLLAZY_OR_NOW
18436 # ifdef RTLD_LAZY
18437 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18438 # else
18439 # ifdef DL_LAZY
18440 # define LT_DLLAZY_OR_NOW DL_LAZY
18441 # else
18442 # ifdef RTLD_NOW
18443 # define LT_DLLAZY_OR_NOW RTLD_NOW
18444 # else
18445 # ifdef DL_NOW
18446 # define LT_DLLAZY_OR_NOW DL_NOW
18447 # else
18448 # define LT_DLLAZY_OR_NOW 0
18449 # endif
18450 # endif
18451 # endif
18452 # endif
18453 #endif
18455 #ifdef __cplusplus
18456 extern "C" void exit (int);
18457 #endif
18459 void fnord() { int i=42;}
18460 int main ()
18462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18463 int status = $lt_dlunknown;
18465 if (self)
18467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18468 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18469 /* dlclose (self); */
18472 exit (status);
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476 (eval $ac_link) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18480 (./conftest; exit; ) 2>/dev/null
18481 lt_status=$?
18482 case x$lt_status in
18483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18485 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18486 esac
18487 else :
18488 # compilation failed
18489 lt_cv_dlopen_self=no
18492 rm -fr conftest*
18496 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18497 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18499 if test "x$lt_cv_dlopen_self" = xyes; then
18500 LDFLAGS="$LDFLAGS $link_static_flag"
18501 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18502 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18503 if test "${lt_cv_dlopen_self_static+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 if test "$cross_compiling" = yes; then :
18507 lt_cv_dlopen_self_static=cross
18508 else
18509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18510 lt_status=$lt_dlunknown
18511 cat > conftest.$ac_ext <<EOF
18512 #line 18512 "configure"
18513 #include "confdefs.h"
18515 #if HAVE_DLFCN_H
18516 #include <dlfcn.h>
18517 #endif
18519 #include <stdio.h>
18521 #ifdef RTLD_GLOBAL
18522 # define LT_DLGLOBAL RTLD_GLOBAL
18523 #else
18524 # ifdef DL_GLOBAL
18525 # define LT_DLGLOBAL DL_GLOBAL
18526 # else
18527 # define LT_DLGLOBAL 0
18528 # endif
18529 #endif
18531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18532 find out it does not work in some platform. */
18533 #ifndef LT_DLLAZY_OR_NOW
18534 # ifdef RTLD_LAZY
18535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18536 # else
18537 # ifdef DL_LAZY
18538 # define LT_DLLAZY_OR_NOW DL_LAZY
18539 # else
18540 # ifdef RTLD_NOW
18541 # define LT_DLLAZY_OR_NOW RTLD_NOW
18542 # else
18543 # ifdef DL_NOW
18544 # define LT_DLLAZY_OR_NOW DL_NOW
18545 # else
18546 # define LT_DLLAZY_OR_NOW 0
18547 # endif
18548 # endif
18549 # endif
18550 # endif
18551 #endif
18553 #ifdef __cplusplus
18554 extern "C" void exit (int);
18555 #endif
18557 void fnord() { int i=42;}
18558 int main ()
18560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18561 int status = $lt_dlunknown;
18563 if (self)
18565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18567 /* dlclose (self); */
18570 exit (status);
18573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18574 (eval $ac_link) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18578 (./conftest; exit; ) 2>/dev/null
18579 lt_status=$?
18580 case x$lt_status in
18581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18583 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18584 esac
18585 else :
18586 # compilation failed
18587 lt_cv_dlopen_self_static=no
18590 rm -fr conftest*
18594 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18595 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18598 CPPFLAGS="$save_CPPFLAGS"
18599 LDFLAGS="$save_LDFLAGS"
18600 LIBS="$save_LIBS"
18602 esac
18604 case $lt_cv_dlopen_self in
18605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18606 *) enable_dlopen_self=unknown ;;
18607 esac
18609 case $lt_cv_dlopen_self_static in
18610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18611 *) enable_dlopen_self_static=unknown ;;
18612 esac
18616 # The else clause should only fire when bootstrapping the
18617 # libtool distribution, otherwise you forgot to ship ltmain.sh
18618 # with your package, and you will get complaints that there are
18619 # no rules to generate ltmain.sh.
18620 if test -f "$ltmain"; then
18621 # See if we are running on zsh, and set the options which allow our commands through
18622 # without removal of \ escapes.
18623 if test -n "${ZSH_VERSION+set}" ; then
18624 setopt NO_GLOB_SUBST
18626 # Now quote all the things that may contain metacharacters while being
18627 # careful not to overquote the AC_SUBSTed values. We take copies of the
18628 # variables and quote the copies for generation of the libtool script.
18629 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18630 SED SHELL STRIP \
18631 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18632 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18633 deplibs_check_method reload_flag reload_cmds need_locks \
18634 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18635 lt_cv_sys_global_symbol_to_c_name_address \
18636 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18637 old_postinstall_cmds old_postuninstall_cmds \
18638 compiler_GCJ \
18639 CC_GCJ \
18640 LD_GCJ \
18641 lt_prog_compiler_wl_GCJ \
18642 lt_prog_compiler_pic_GCJ \
18643 lt_prog_compiler_static_GCJ \
18644 lt_prog_compiler_no_builtin_flag_GCJ \
18645 export_dynamic_flag_spec_GCJ \
18646 thread_safe_flag_spec_GCJ \
18647 whole_archive_flag_spec_GCJ \
18648 enable_shared_with_static_runtimes_GCJ \
18649 old_archive_cmds_GCJ \
18650 old_archive_from_new_cmds_GCJ \
18651 predep_objects_GCJ \
18652 postdep_objects_GCJ \
18653 predeps_GCJ \
18654 postdeps_GCJ \
18655 compiler_lib_search_path_GCJ \
18656 archive_cmds_GCJ \
18657 archive_expsym_cmds_GCJ \
18658 postinstall_cmds_GCJ \
18659 postuninstall_cmds_GCJ \
18660 old_archive_from_expsyms_cmds_GCJ \
18661 allow_undefined_flag_GCJ \
18662 no_undefined_flag_GCJ \
18663 export_symbols_cmds_GCJ \
18664 hardcode_libdir_flag_spec_GCJ \
18665 hardcode_libdir_flag_spec_ld_GCJ \
18666 hardcode_libdir_separator_GCJ \
18667 hardcode_automatic_GCJ \
18668 module_cmds_GCJ \
18669 module_expsym_cmds_GCJ \
18670 lt_cv_prog_compiler_c_o_GCJ \
18671 exclude_expsyms_GCJ \
18672 include_expsyms_GCJ; do
18674 case $var in
18675 old_archive_cmds_GCJ | \
18676 old_archive_from_new_cmds_GCJ | \
18677 archive_cmds_GCJ | \
18678 archive_expsym_cmds_GCJ | \
18679 module_cmds_GCJ | \
18680 module_expsym_cmds_GCJ | \
18681 old_archive_from_expsyms_cmds_GCJ | \
18682 export_symbols_cmds_GCJ | \
18683 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18684 postinstall_cmds | postuninstall_cmds | \
18685 old_postinstall_cmds | old_postuninstall_cmds | \
18686 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18687 # Double-quote double-evaled strings.
18688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18693 esac
18694 done
18696 case $lt_echo in
18697 *'\$0 --fallback-echo"')
18698 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18700 esac
18702 cfgfile="$ofile"
18704 cat <<__EOF__ >> "$cfgfile"
18705 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18709 # Shell to use when invoking shell scripts.
18710 SHELL=$lt_SHELL
18712 # Whether or not to build shared libraries.
18713 build_libtool_libs=$enable_shared
18715 # Whether or not to build static libraries.
18716 build_old_libs=$enable_static
18718 # Whether or not to add -lc for building shared libraries.
18719 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18721 # Whether or not to disallow shared libs when runtime libs are static
18722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18724 # Whether or not to optimize for fast installation.
18725 fast_install=$enable_fast_install
18727 # The host system.
18728 host_alias=$host_alias
18729 host=$host
18731 # An echo program that does not interpret backslashes.
18732 echo=$lt_echo
18734 # The archiver.
18735 AR=$lt_AR
18736 AR_FLAGS=$lt_AR_FLAGS
18738 # A C compiler.
18739 LTCC=$lt_LTCC
18741 # A language-specific compiler.
18742 CC=$lt_compiler_GCJ
18744 # Is the compiler the GNU C compiler?
18745 with_gcc=$GCC_GCJ
18747 # An ERE matcher.
18748 EGREP=$lt_EGREP
18750 # The linker used to build libraries.
18751 LD=$lt_LD_GCJ
18753 # Whether we need hard or soft links.
18754 LN_S=$lt_LN_S
18756 # A BSD-compatible nm program.
18757 NM=$lt_NM
18759 # A symbol stripping program
18760 STRIP=$lt_STRIP
18762 # Used to examine libraries when file_magic_cmd begins "file"
18763 MAGIC_CMD=$MAGIC_CMD
18765 # Used on cygwin: DLL creation program.
18766 DLLTOOL="$DLLTOOL"
18768 # Used on cygwin: object dumper.
18769 OBJDUMP="$OBJDUMP"
18771 # Used on cygwin: assembler.
18772 AS="$AS"
18774 # The name of the directory that contains temporary libtool files.
18775 objdir=$objdir
18777 # How to create reloadable object files.
18778 reload_flag=$lt_reload_flag
18779 reload_cmds=$lt_reload_cmds
18781 # How to pass a linker flag through the compiler.
18782 wl=$lt_lt_prog_compiler_wl_GCJ
18784 # Object file suffix (normally "o").
18785 objext="$ac_objext"
18787 # Old archive suffix (normally "a").
18788 libext="$libext"
18790 # Shared library suffix (normally ".so").
18791 shrext_cmds='$shrext_cmds'
18793 # Executable file suffix (normally "").
18794 exeext="$exeext"
18796 # Additional compiler flags for building library objects.
18797 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18798 pic_mode=$pic_mode
18800 # What is the maximum length of a command?
18801 max_cmd_len=$lt_cv_sys_max_cmd_len
18803 # Does compiler simultaneously support -c and -o options?
18804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18806 # Must we lock files when doing compilation ?
18807 need_locks=$lt_need_locks
18809 # Do we need the lib prefix for modules?
18810 need_lib_prefix=$need_lib_prefix
18812 # Do we need a version for libraries?
18813 need_version=$need_version
18815 # Whether dlopen is supported.
18816 dlopen_support=$enable_dlopen
18818 # Whether dlopen of programs is supported.
18819 dlopen_self=$enable_dlopen_self
18821 # Whether dlopen of statically linked programs is supported.
18822 dlopen_self_static=$enable_dlopen_self_static
18824 # Compiler flag to prevent dynamic linking.
18825 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18827 # Compiler flag to turn off builtin functions.
18828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18830 # Compiler flag to allow reflexive dlopens.
18831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18833 # Compiler flag to generate shared objects directly from archives.
18834 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18836 # Compiler flag to generate thread-safe objects.
18837 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18839 # Library versioning type.
18840 version_type=$version_type
18842 # Format of library name prefix.
18843 libname_spec=$lt_libname_spec
18845 # List of archive names. First name is the real one, the rest are links.
18846 # The last name is the one that the linker finds with -lNAME.
18847 library_names_spec=$lt_library_names_spec
18849 # The coded name of the library, if different from the real name.
18850 soname_spec=$lt_soname_spec
18852 # Commands used to build and install an old-style archive.
18853 RANLIB=$lt_RANLIB
18854 old_archive_cmds=$lt_old_archive_cmds_GCJ
18855 old_postinstall_cmds=$lt_old_postinstall_cmds
18856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18858 # Create an old-style archive from a shared archive.
18859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18861 # Create a temporary old-style archive to link instead of a shared archive.
18862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18864 # Commands used to build and install a shared archive.
18865 archive_cmds=$lt_archive_cmds_GCJ
18866 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18867 postinstall_cmds=$lt_postinstall_cmds
18868 postuninstall_cmds=$lt_postuninstall_cmds
18870 # Commands used to build a loadable module (assumed same as above if empty)
18871 module_cmds=$lt_module_cmds_GCJ
18872 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18874 # Commands to strip libraries.
18875 old_striplib=$lt_old_striplib
18876 striplib=$lt_striplib
18878 # Dependencies to place before the objects being linked to create a
18879 # shared library.
18880 predep_objects=$lt_predep_objects_GCJ
18882 # Dependencies to place after the objects being linked to create a
18883 # shared library.
18884 postdep_objects=$lt_postdep_objects_GCJ
18886 # Dependencies to place before the objects being linked to create a
18887 # shared library.
18888 predeps=$lt_predeps_GCJ
18890 # Dependencies to place after the objects being linked to create a
18891 # shared library.
18892 postdeps=$lt_postdeps_GCJ
18894 # The library search path used internally by the compiler when linking
18895 # a shared library.
18896 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18898 # Method to check whether dependent libraries are shared objects.
18899 deplibs_check_method=$lt_deplibs_check_method
18901 # Command to use when deplibs_check_method == file_magic.
18902 file_magic_cmd=$lt_file_magic_cmd
18904 # Flag that allows shared libraries with undefined symbols to be built.
18905 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18907 # Flag that forces no undefined symbols.
18908 no_undefined_flag=$lt_no_undefined_flag_GCJ
18910 # Commands used to finish a libtool library installation in a directory.
18911 finish_cmds=$lt_finish_cmds
18913 # Same as above, but a single script fragment to be evaled but not shown.
18914 finish_eval=$lt_finish_eval
18916 # Take the output of nm and produce a listing of raw symbols and C names.
18917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18919 # Transform the output of nm in a proper C declaration
18920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18922 # Transform the output of nm in a C name address pair
18923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18925 # This is the shared library runtime path variable.
18926 runpath_var=$runpath_var
18928 # This is the shared library path variable.
18929 shlibpath_var=$shlibpath_var
18931 # Is shlibpath searched before the hard-coded library search path?
18932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18934 # How to hardcode a shared library path into an executable.
18935 hardcode_action=$hardcode_action_GCJ
18937 # Whether we should hardcode library paths into libraries.
18938 hardcode_into_libs=$hardcode_into_libs
18940 # Flag to hardcode \$libdir into a binary during linking.
18941 # This must work even if \$libdir does not exist.
18942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18944 # If ld is used when linking, flag to hardcode \$libdir into
18945 # a binary during linking. This must work even if \$libdir does
18946 # not exist.
18947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18949 # Whether we need a single -rpath flag with a separated argument.
18950 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18953 # resulting binary.
18954 hardcode_direct=$hardcode_direct_GCJ
18956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18957 # resulting binary.
18958 hardcode_minus_L=$hardcode_minus_L_GCJ
18960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18961 # the resulting binary.
18962 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18964 # Set to yes if building a shared library automatically hardcodes DIR into the library
18965 # and all subsequent libraries and executables linked against it.
18966 hardcode_automatic=$hardcode_automatic_GCJ
18968 # Variables whose values should be saved in libtool wrapper scripts and
18969 # restored at relink time.
18970 variables_saved_for_relink="$variables_saved_for_relink"
18972 # Whether libtool must link a program against all its dependency libraries.
18973 link_all_deplibs=$link_all_deplibs_GCJ
18975 # Compile-time system search path for libraries
18976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18978 # Run-time system search path for libraries
18979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18981 # Fix the shell variable \$srcfile for the compiler.
18982 fix_srcfile_path="$fix_srcfile_path_GCJ"
18984 # Set to yes if exported symbols are required.
18985 always_export_symbols=$always_export_symbols_GCJ
18987 # The commands to list exported symbols.
18988 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18990 # The commands to extract the exported symbol list from a shared archive.
18991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18993 # Symbols that should not be listed in the preloaded symbols.
18994 exclude_expsyms=$lt_exclude_expsyms_GCJ
18996 # Symbols that must always be exported.
18997 include_expsyms=$lt_include_expsyms_GCJ
18999 # ### END LIBTOOL TAG CONFIG: $tagname
19001 __EOF__
19004 else
19005 # If there is no Makefile yet, we rely on a make rule to execute
19006 # `config.status --recheck' to rerun these tests and create the
19007 # libtool script then.
19008 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19009 if test -f "$ltmain_in"; then
19010 test -f Makefile && make "$ltmain"
19015 ac_ext=c
19016 ac_cpp='$CPP $CPPFLAGS'
19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19021 CC="$lt_save_CC"
19023 else
19024 tagname=""
19032 # Source file extension for RC test sources.
19033 ac_ext=rc
19035 # Object file extension for compiled RC test sources.
19036 objext=o
19037 objext_RC=$objext
19039 # Code to be used in simple compile tests
19040 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19042 # Code to be used in simple link tests
19043 lt_simple_link_test_code="$lt_simple_compile_test_code"
19045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19047 # If no C compiler was specified, use CC.
19048 LTCC=${LTCC-"$CC"}
19050 # Allow CC to be a program name with arguments.
19051 compiler=$CC
19054 # Allow CC to be a program name with arguments.
19055 lt_save_CC="$CC"
19056 CC=${RC-"windres"}
19057 compiler=$CC
19058 compiler_RC=$CC
19059 lt_cv_prog_compiler_c_o_RC=yes
19061 # The else clause should only fire when bootstrapping the
19062 # libtool distribution, otherwise you forgot to ship ltmain.sh
19063 # with your package, and you will get complaints that there are
19064 # no rules to generate ltmain.sh.
19065 if test -f "$ltmain"; then
19066 # See if we are running on zsh, and set the options which allow our commands through
19067 # without removal of \ escapes.
19068 if test -n "${ZSH_VERSION+set}" ; then
19069 setopt NO_GLOB_SUBST
19071 # Now quote all the things that may contain metacharacters while being
19072 # careful not to overquote the AC_SUBSTed values. We take copies of the
19073 # variables and quote the copies for generation of the libtool script.
19074 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19075 SED SHELL STRIP \
19076 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19077 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19078 deplibs_check_method reload_flag reload_cmds need_locks \
19079 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19080 lt_cv_sys_global_symbol_to_c_name_address \
19081 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19082 old_postinstall_cmds old_postuninstall_cmds \
19083 compiler_RC \
19084 CC_RC \
19085 LD_RC \
19086 lt_prog_compiler_wl_RC \
19087 lt_prog_compiler_pic_RC \
19088 lt_prog_compiler_static_RC \
19089 lt_prog_compiler_no_builtin_flag_RC \
19090 export_dynamic_flag_spec_RC \
19091 thread_safe_flag_spec_RC \
19092 whole_archive_flag_spec_RC \
19093 enable_shared_with_static_runtimes_RC \
19094 old_archive_cmds_RC \
19095 old_archive_from_new_cmds_RC \
19096 predep_objects_RC \
19097 postdep_objects_RC \
19098 predeps_RC \
19099 postdeps_RC \
19100 compiler_lib_search_path_RC \
19101 archive_cmds_RC \
19102 archive_expsym_cmds_RC \
19103 postinstall_cmds_RC \
19104 postuninstall_cmds_RC \
19105 old_archive_from_expsyms_cmds_RC \
19106 allow_undefined_flag_RC \
19107 no_undefined_flag_RC \
19108 export_symbols_cmds_RC \
19109 hardcode_libdir_flag_spec_RC \
19110 hardcode_libdir_flag_spec_ld_RC \
19111 hardcode_libdir_separator_RC \
19112 hardcode_automatic_RC \
19113 module_cmds_RC \
19114 module_expsym_cmds_RC \
19115 lt_cv_prog_compiler_c_o_RC \
19116 exclude_expsyms_RC \
19117 include_expsyms_RC; do
19119 case $var in
19120 old_archive_cmds_RC | \
19121 old_archive_from_new_cmds_RC | \
19122 archive_cmds_RC | \
19123 archive_expsym_cmds_RC | \
19124 module_cmds_RC | \
19125 module_expsym_cmds_RC | \
19126 old_archive_from_expsyms_cmds_RC | \
19127 export_symbols_cmds_RC | \
19128 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19129 postinstall_cmds | postuninstall_cmds | \
19130 old_postinstall_cmds | old_postuninstall_cmds | \
19131 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19132 # Double-quote double-evaled strings.
19133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19138 esac
19139 done
19141 case $lt_echo in
19142 *'\$0 --fallback-echo"')
19143 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19145 esac
19147 cfgfile="$ofile"
19149 cat <<__EOF__ >> "$cfgfile"
19150 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19154 # Shell to use when invoking shell scripts.
19155 SHELL=$lt_SHELL
19157 # Whether or not to build shared libraries.
19158 build_libtool_libs=$enable_shared
19160 # Whether or not to build static libraries.
19161 build_old_libs=$enable_static
19163 # Whether or not to add -lc for building shared libraries.
19164 build_libtool_need_lc=$archive_cmds_need_lc_RC
19166 # Whether or not to disallow shared libs when runtime libs are static
19167 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19169 # Whether or not to optimize for fast installation.
19170 fast_install=$enable_fast_install
19172 # The host system.
19173 host_alias=$host_alias
19174 host=$host
19176 # An echo program that does not interpret backslashes.
19177 echo=$lt_echo
19179 # The archiver.
19180 AR=$lt_AR
19181 AR_FLAGS=$lt_AR_FLAGS
19183 # A C compiler.
19184 LTCC=$lt_LTCC
19186 # A language-specific compiler.
19187 CC=$lt_compiler_RC
19189 # Is the compiler the GNU C compiler?
19190 with_gcc=$GCC_RC
19192 # An ERE matcher.
19193 EGREP=$lt_EGREP
19195 # The linker used to build libraries.
19196 LD=$lt_LD_RC
19198 # Whether we need hard or soft links.
19199 LN_S=$lt_LN_S
19201 # A BSD-compatible nm program.
19202 NM=$lt_NM
19204 # A symbol stripping program
19205 STRIP=$lt_STRIP
19207 # Used to examine libraries when file_magic_cmd begins "file"
19208 MAGIC_CMD=$MAGIC_CMD
19210 # Used on cygwin: DLL creation program.
19211 DLLTOOL="$DLLTOOL"
19213 # Used on cygwin: object dumper.
19214 OBJDUMP="$OBJDUMP"
19216 # Used on cygwin: assembler.
19217 AS="$AS"
19219 # The name of the directory that contains temporary libtool files.
19220 objdir=$objdir
19222 # How to create reloadable object files.
19223 reload_flag=$lt_reload_flag
19224 reload_cmds=$lt_reload_cmds
19226 # How to pass a linker flag through the compiler.
19227 wl=$lt_lt_prog_compiler_wl_RC
19229 # Object file suffix (normally "o").
19230 objext="$ac_objext"
19232 # Old archive suffix (normally "a").
19233 libext="$libext"
19235 # Shared library suffix (normally ".so").
19236 shrext_cmds='$shrext_cmds'
19238 # Executable file suffix (normally "").
19239 exeext="$exeext"
19241 # Additional compiler flags for building library objects.
19242 pic_flag=$lt_lt_prog_compiler_pic_RC
19243 pic_mode=$pic_mode
19245 # What is the maximum length of a command?
19246 max_cmd_len=$lt_cv_sys_max_cmd_len
19248 # Does compiler simultaneously support -c and -o options?
19249 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19251 # Must we lock files when doing compilation ?
19252 need_locks=$lt_need_locks
19254 # Do we need the lib prefix for modules?
19255 need_lib_prefix=$need_lib_prefix
19257 # Do we need a version for libraries?
19258 need_version=$need_version
19260 # Whether dlopen is supported.
19261 dlopen_support=$enable_dlopen
19263 # Whether dlopen of programs is supported.
19264 dlopen_self=$enable_dlopen_self
19266 # Whether dlopen of statically linked programs is supported.
19267 dlopen_self_static=$enable_dlopen_self_static
19269 # Compiler flag to prevent dynamic linking.
19270 link_static_flag=$lt_lt_prog_compiler_static_RC
19272 # Compiler flag to turn off builtin functions.
19273 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19275 # Compiler flag to allow reflexive dlopens.
19276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19278 # Compiler flag to generate shared objects directly from archives.
19279 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19281 # Compiler flag to generate thread-safe objects.
19282 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19284 # Library versioning type.
19285 version_type=$version_type
19287 # Format of library name prefix.
19288 libname_spec=$lt_libname_spec
19290 # List of archive names. First name is the real one, the rest are links.
19291 # The last name is the one that the linker finds with -lNAME.
19292 library_names_spec=$lt_library_names_spec
19294 # The coded name of the library, if different from the real name.
19295 soname_spec=$lt_soname_spec
19297 # Commands used to build and install an old-style archive.
19298 RANLIB=$lt_RANLIB
19299 old_archive_cmds=$lt_old_archive_cmds_RC
19300 old_postinstall_cmds=$lt_old_postinstall_cmds
19301 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19303 # Create an old-style archive from a shared archive.
19304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19306 # Create a temporary old-style archive to link instead of a shared archive.
19307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19309 # Commands used to build and install a shared archive.
19310 archive_cmds=$lt_archive_cmds_RC
19311 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19312 postinstall_cmds=$lt_postinstall_cmds
19313 postuninstall_cmds=$lt_postuninstall_cmds
19315 # Commands used to build a loadable module (assumed same as above if empty)
19316 module_cmds=$lt_module_cmds_RC
19317 module_expsym_cmds=$lt_module_expsym_cmds_RC
19319 # Commands to strip libraries.
19320 old_striplib=$lt_old_striplib
19321 striplib=$lt_striplib
19323 # Dependencies to place before the objects being linked to create a
19324 # shared library.
19325 predep_objects=$lt_predep_objects_RC
19327 # Dependencies to place after the objects being linked to create a
19328 # shared library.
19329 postdep_objects=$lt_postdep_objects_RC
19331 # Dependencies to place before the objects being linked to create a
19332 # shared library.
19333 predeps=$lt_predeps_RC
19335 # Dependencies to place after the objects being linked to create a
19336 # shared library.
19337 postdeps=$lt_postdeps_RC
19339 # The library search path used internally by the compiler when linking
19340 # a shared library.
19341 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19343 # Method to check whether dependent libraries are shared objects.
19344 deplibs_check_method=$lt_deplibs_check_method
19346 # Command to use when deplibs_check_method == file_magic.
19347 file_magic_cmd=$lt_file_magic_cmd
19349 # Flag that allows shared libraries with undefined symbols to be built.
19350 allow_undefined_flag=$lt_allow_undefined_flag_RC
19352 # Flag that forces no undefined symbols.
19353 no_undefined_flag=$lt_no_undefined_flag_RC
19355 # Commands used to finish a libtool library installation in a directory.
19356 finish_cmds=$lt_finish_cmds
19358 # Same as above, but a single script fragment to be evaled but not shown.
19359 finish_eval=$lt_finish_eval
19361 # Take the output of nm and produce a listing of raw symbols and C names.
19362 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19364 # Transform the output of nm in a proper C declaration
19365 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19367 # Transform the output of nm in a C name address pair
19368 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19370 # This is the shared library runtime path variable.
19371 runpath_var=$runpath_var
19373 # This is the shared library path variable.
19374 shlibpath_var=$shlibpath_var
19376 # Is shlibpath searched before the hard-coded library search path?
19377 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19379 # How to hardcode a shared library path into an executable.
19380 hardcode_action=$hardcode_action_RC
19382 # Whether we should hardcode library paths into libraries.
19383 hardcode_into_libs=$hardcode_into_libs
19385 # Flag to hardcode \$libdir into a binary during linking.
19386 # This must work even if \$libdir does not exist.
19387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19389 # If ld is used when linking, flag to hardcode \$libdir into
19390 # a binary during linking. This must work even if \$libdir does
19391 # not exist.
19392 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19394 # Whether we need a single -rpath flag with a separated argument.
19395 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19397 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19398 # resulting binary.
19399 hardcode_direct=$hardcode_direct_RC
19401 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19402 # resulting binary.
19403 hardcode_minus_L=$hardcode_minus_L_RC
19405 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19406 # the resulting binary.
19407 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19409 # Set to yes if building a shared library automatically hardcodes DIR into the library
19410 # and all subsequent libraries and executables linked against it.
19411 hardcode_automatic=$hardcode_automatic_RC
19413 # Variables whose values should be saved in libtool wrapper scripts and
19414 # restored at relink time.
19415 variables_saved_for_relink="$variables_saved_for_relink"
19417 # Whether libtool must link a program against all its dependency libraries.
19418 link_all_deplibs=$link_all_deplibs_RC
19420 # Compile-time system search path for libraries
19421 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19423 # Run-time system search path for libraries
19424 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19426 # Fix the shell variable \$srcfile for the compiler.
19427 fix_srcfile_path="$fix_srcfile_path_RC"
19429 # Set to yes if exported symbols are required.
19430 always_export_symbols=$always_export_symbols_RC
19432 # The commands to list exported symbols.
19433 export_symbols_cmds=$lt_export_symbols_cmds_RC
19435 # The commands to extract the exported symbol list from a shared archive.
19436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19438 # Symbols that should not be listed in the preloaded symbols.
19439 exclude_expsyms=$lt_exclude_expsyms_RC
19441 # Symbols that must always be exported.
19442 include_expsyms=$lt_include_expsyms_RC
19444 # ### END LIBTOOL TAG CONFIG: $tagname
19446 __EOF__
19449 else
19450 # If there is no Makefile yet, we rely on a make rule to execute
19451 # `config.status --recheck' to rerun these tests and create the
19452 # libtool script then.
19453 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19454 if test -f "$ltmain_in"; then
19455 test -f Makefile && make "$ltmain"
19460 ac_ext=c
19461 ac_cpp='$CPP $CPPFLAGS'
19462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19466 CC="$lt_save_CC"
19471 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19472 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19473 { (exit 1); exit 1; }; }
19475 esac
19477 # Append the new tag name to the list of available tags.
19478 if test -n "$tagname" ; then
19479 available_tags="$available_tags $tagname"
19482 done
19483 IFS="$lt_save_ifs"
19485 # Now substitute the updated list of available tags.
19486 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19487 mv "${ofile}T" "$ofile"
19488 chmod +x "$ofile"
19489 else
19490 rm -f "${ofile}T"
19491 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19492 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19493 { (exit 1); exit 1; }; }
19499 # This can be used to rebuild libtool when needed
19500 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19502 # Always use our own libtool.
19503 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19505 # Prevent multiple expansion
19528 # set the flags
19529 CFLAGS="$CFLAGS -ansi -Wall -pedantic -I\$(top_srcdir)/src"
19530 NEUROFLAGS="-D__USE_GNU -I\${top_srcdir}/include -I\${top_srcdir}/include/neuro"
19531 NEUROLIBFLAGS="--enable-realtime-pseudo-reloc"
19532 SDLFLAGS="`sdl-config --libs`"
19535 # Check whether --enable-Debug or --disable-Debug was given.
19536 if test "${enable_Debug+set}" = set; then
19537 enableval="$enable_Debug"
19539 else
19540 enable_Debug=no
19544 # Check whether --with-lowlib or --without-lowlib was given.
19545 if test "${with_lowlib+set}" = set; then
19546 withval="$with_lowlib"
19547 lowlib="$withval"
19548 else
19549 lowlib="sdl"
19552 freetype_enable=no
19554 # host related checkings
19556 echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
19557 echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
19558 case $host in
19559 *-*-cygwin | *-*-mingw* | *-*-pw32*)
19560 NEUROFLAGS="$NEUROFLAGS -DWIN32"
19561 NEUROLIBFLAGS="$NEUROLIBFLAGS -no-undefined"
19562 need_no_undefined=yes
19563 targ=w32
19564 #LIBS="$LIBS -lc -lgcc_s -ldl"
19567 targ=unix
19568 need_no_undefined=no
19570 esac
19571 echo "$as_me:$LINENO: result: $need_no_undefined" >&5
19572 echo "${ECHO_T}$need_no_undefined" >&6
19575 if test x$need_no_undefined = xyes; then
19576 NO_UNDEFINED_TRUE=
19577 NO_UNDEFINED_FALSE='#'
19578 else
19579 NO_UNDEFINED_TRUE='#'
19580 NO_UNDEFINED_FALSE=
19584 case $targ in
19585 w32)
19587 for ac_header in windows.h
19589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19591 echo "$as_me:$LINENO: checking for $ac_header" >&5
19592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19598 else
19599 # Is the header compilable?
19600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19608 $ac_includes_default
19609 #include <$ac_header>
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613 (eval $ac_compile) 2>conftest.er1
19614 ac_status=$?
19615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_header_compiler=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_header_compiler=no
19640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19642 echo "${ECHO_T}$ac_header_compiler" >&6
19644 # Is the header present?
19645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 #include <$ac_header>
19654 _ACEOF
19655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev/null; then
19663 if test -s conftest.err; then
19664 ac_cpp_err=$ac_c_preproc_warn_flag
19665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19666 else
19667 ac_cpp_err=
19669 else
19670 ac_cpp_err=yes
19672 if test -z "$ac_cpp_err"; then
19673 ac_header_preproc=yes
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_header_preproc=no
19680 rm -f conftest.err conftest.$ac_ext
19681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19682 echo "${ECHO_T}$ac_header_preproc" >&6
19684 # So? What about this header?
19685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19686 yes:no: )
19687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19691 ac_header_preproc=yes
19693 no:yes:* )
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19707 cat <<\_ASBOX
19708 ## ------------------------------------------ ##
19709 ## Report this to the AC_PACKAGE_NAME lists. ##
19710 ## ------------------------------------------ ##
19711 _ASBOX
19713 sed "s/^/$as_me: WARNING: /" >&2
19715 esac
19716 echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721 eval "$as_ac_Header=\$ac_header_preproc"
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19730 _ACEOF
19732 else
19733 { { echo "$as_me:$LINENO: error: the required header windows is missing." >&5
19734 echo "$as_me: error: the required header windows is missing." >&2;}
19735 { (exit 1); exit 1; }; }
19738 done
19740 #AC_CHECK_FUNCS([GetTickCount], , [AC_MSG_ERROR([a required function is missing.])])
19745 unix)
19747 for ac_header in stdlib.h
19749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19751 echo "$as_me:$LINENO: checking for $ac_header" >&5
19752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19758 else
19759 # Is the header compilable?
19760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 $ac_includes_default
19769 #include <$ac_header>
19770 _ACEOF
19771 rm -f conftest.$ac_objext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19773 (eval $ac_compile) 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_header_compiler=yes
19794 else
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_header_compiler=no
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19802 echo "${ECHO_T}$ac_header_compiler" >&6
19804 # Is the header present?
19805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 #include <$ac_header>
19814 _ACEOF
19815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } >/dev/null; then
19823 if test -s conftest.err; then
19824 ac_cpp_err=$ac_c_preproc_warn_flag
19825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19826 else
19827 ac_cpp_err=
19829 else
19830 ac_cpp_err=yes
19832 if test -z "$ac_cpp_err"; then
19833 ac_header_preproc=yes
19834 else
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_header_preproc=no
19840 rm -f conftest.err conftest.$ac_ext
19841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19842 echo "${ECHO_T}$ac_header_preproc" >&6
19844 # So? What about this header?
19845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19846 yes:no: )
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19851 ac_header_preproc=yes
19853 no:yes:* )
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19867 cat <<\_ASBOX
19868 ## ------------------------------------------ ##
19869 ## Report this to the AC_PACKAGE_NAME lists. ##
19870 ## ------------------------------------------ ##
19871 _ASBOX
19873 sed "s/^/$as_me: WARNING: /" >&2
19875 esac
19876 echo "$as_me:$LINENO: checking for $ac_header" >&5
19877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881 eval "$as_ac_Header=\$ac_header_preproc"
19883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19888 cat >>confdefs.h <<_ACEOF
19889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19890 _ACEOF
19894 done
19896 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
19897 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
19898 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901 if test "$cross_compiling" = yes; then
19902 ac_cv_func_realloc_0_nonnull=no
19903 else
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 #if STDC_HEADERS || HAVE_STDLIB_H
19911 # include <stdlib.h>
19912 #else
19913 char *realloc ();
19914 #endif
19917 main ()
19919 exit (realloc (0, 0) ? 0 : 1);
19921 return 0;
19923 _ACEOF
19924 rm -f conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926 (eval $ac_link) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_func_realloc_0_nonnull=yes
19936 else
19937 echo "$as_me: program exited with status $ac_status" >&5
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ( exit $ac_status )
19942 ac_cv_func_realloc_0_nonnull=no
19944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19947 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
19948 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
19949 if test $ac_cv_func_realloc_0_nonnull = yes; then
19951 cat >>confdefs.h <<\_ACEOF
19952 #define HAVE_REALLOC 1
19953 _ACEOF
19955 else
19956 cat >>confdefs.h <<\_ACEOF
19957 #define HAVE_REALLOC 0
19958 _ACEOF
19960 case $LIBOBJS in
19961 "realloc.$ac_objext" | \
19962 *" realloc.$ac_objext" | \
19963 "realloc.$ac_objext "* | \
19964 *" realloc.$ac_objext "* ) ;;
19965 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
19966 esac
19969 cat >>confdefs.h <<\_ACEOF
19970 #define realloc rpl_realloc
19971 _ACEOF
19978 for ac_header in unistd.h
19980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19982 echo "$as_me:$LINENO: checking for $ac_header" >&5
19983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19989 else
19990 # Is the header compilable?
19991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 $ac_includes_default
20000 #include <$ac_header>
20001 _ACEOF
20002 rm -f conftest.$ac_objext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20004 (eval $ac_compile) 2>conftest.er1
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -z "$ac_c_werror_flag"
20012 || test ! -s conftest.err'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; } &&
20018 { ac_try='test -s conftest.$ac_objext'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
20024 ac_header_compiler=yes
20025 else
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ac_header_compiler=no
20031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20033 echo "${ECHO_T}$ac_header_compiler" >&6
20035 # Is the header present?
20036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h. */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 #include <$ac_header>
20045 _ACEOF
20046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } >/dev/null; then
20054 if test -s conftest.err; then
20055 ac_cpp_err=$ac_c_preproc_warn_flag
20056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20057 else
20058 ac_cpp_err=
20060 else
20061 ac_cpp_err=yes
20063 if test -z "$ac_cpp_err"; then
20064 ac_header_preproc=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_header_preproc=no
20071 rm -f conftest.err conftest.$ac_ext
20072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20073 echo "${ECHO_T}$ac_header_preproc" >&6
20075 # So? What about this header?
20076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20077 yes:no: )
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20082 ac_header_preproc=yes
20084 no:yes:* )
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20098 cat <<\_ASBOX
20099 ## ------------------------------------------ ##
20100 ## Report this to the AC_PACKAGE_NAME lists. ##
20101 ## ------------------------------------------ ##
20102 _ASBOX
20104 sed "s/^/$as_me: WARNING: /" >&2
20106 esac
20107 echo "$as_me:$LINENO: checking for $ac_header" >&5
20108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 eval "$as_ac_Header=\$ac_header_preproc"
20114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20119 cat >>confdefs.h <<_ACEOF
20120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20121 _ACEOF
20123 else
20124 { { echo "$as_me:$LINENO: error: the required header unistd is missing." >&5
20125 echo "$as_me: error: the required header unistd is missing." >&2;}
20126 { (exit 1); exit 1; }; }
20129 done
20132 for ac_func in gettimeofday
20134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20135 echo "$as_me:$LINENO: checking for $ac_func" >&5
20136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20137 if eval "test \"\${$as_ac_var+set}\" = set"; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h. */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20148 #define $ac_func innocuous_$ac_func
20150 /* System header to define __stub macros and hopefully few prototypes,
20151 which can conflict with char $ac_func (); below.
20152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20153 <limits.h> exists even on freestanding compilers. */
20155 #ifdef __STDC__
20156 # include <limits.h>
20157 #else
20158 # include <assert.h>
20159 #endif
20161 #undef $ac_func
20163 /* Override any gcc2 internal prototype to avoid an error. */
20164 #ifdef __cplusplus
20165 extern "C"
20167 #endif
20168 /* We use char because int might match the return type of a gcc2
20169 builtin and then its argument prototype would still apply. */
20170 char $ac_func ();
20171 /* The GNU C library defines this for functions which it implements
20172 to always fail with ENOSYS. Some functions are actually named
20173 something starting with __ and the normal name is an alias. */
20174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20175 choke me
20176 #else
20177 char (*f) () = $ac_func;
20178 #endif
20179 #ifdef __cplusplus
20181 #endif
20184 main ()
20186 return f != $ac_func;
20188 return 0;
20190 _ACEOF
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193 (eval $ac_link) 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
20200 { ac_try='test -z "$ac_c_werror_flag"
20201 || test ! -s conftest.err'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 eval "$as_ac_var=yes"
20214 else
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 eval "$as_ac_var=no"
20220 rm -f conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20225 if test `eval echo '${'$as_ac_var'}'` = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20228 _ACEOF
20230 else
20231 { { echo "$as_me:$LINENO: error: a required function is missing." >&5
20232 echo "$as_me: error: a required function is missing." >&2;}
20233 { (exit 1); exit 1; }; }
20235 done
20238 esac
20241 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20242 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20243 if test "${ac_cv_header_stdc+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <stdlib.h>
20253 #include <stdarg.h>
20254 #include <string.h>
20255 #include <float.h>
20258 main ()
20262 return 0;
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag"
20275 || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_header_stdc=yes
20288 else
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_cv_header_stdc=no
20294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20296 if test $ac_cv_header_stdc = yes; then
20297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20298 cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h. */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304 #include <string.h>
20306 _ACEOF
20307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20308 $EGREP "memchr" >/dev/null 2>&1; then
20310 else
20311 ac_cv_header_stdc=no
20313 rm -f conftest*
20317 if test $ac_cv_header_stdc = yes; then
20318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 #include <stdlib.h>
20327 _ACEOF
20328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20329 $EGREP "free" >/dev/null 2>&1; then
20331 else
20332 ac_cv_header_stdc=no
20334 rm -f conftest*
20338 if test $ac_cv_header_stdc = yes; then
20339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20340 if test "$cross_compiling" = yes; then
20342 else
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 #include <ctype.h>
20350 #if ((' ' & 0x0FF) == 0x020)
20351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20353 #else
20354 # define ISLOWER(c) \
20355 (('a' <= (c) && (c) <= 'i') \
20356 || ('j' <= (c) && (c) <= 'r') \
20357 || ('s' <= (c) && (c) <= 'z'))
20358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20359 #endif
20361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20363 main ()
20365 int i;
20366 for (i = 0; i < 256; i++)
20367 if (XOR (islower (i), ISLOWER (i))
20368 || toupper (i) != TOUPPER (i))
20369 exit(2);
20370 exit (0);
20372 _ACEOF
20373 rm -f conftest$ac_exeext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375 (eval $ac_link) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20385 else
20386 echo "$as_me: program exited with status $ac_status" >&5
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 ( exit $ac_status )
20391 ac_cv_header_stdc=no
20393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20398 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20399 if test $ac_cv_header_stdc = yes; then
20401 cat >>confdefs.h <<\_ACEOF
20402 #define STDC_HEADERS 1
20403 _ACEOF
20411 for ac_header in fcntl.h stdlib.h string.h sys/time.h
20413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20415 echo "$as_me:$LINENO: checking for $ac_header" >&5
20416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20422 else
20423 # Is the header compilable?
20424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 $ac_includes_default
20433 #include <$ac_header>
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_header_compiler=yes
20458 else
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_header_compiler=no
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20466 echo "${ECHO_T}$ac_header_compiler" >&6
20468 # Is the header present?
20469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <$ac_header>
20478 _ACEOF
20479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20481 ac_status=$?
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } >/dev/null; then
20487 if test -s conftest.err; then
20488 ac_cpp_err=$ac_c_preproc_warn_flag
20489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20490 else
20491 ac_cpp_err=
20493 else
20494 ac_cpp_err=yes
20496 if test -z "$ac_cpp_err"; then
20497 ac_header_preproc=yes
20498 else
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_header_preproc=no
20504 rm -f conftest.err conftest.$ac_ext
20505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20506 echo "${ECHO_T}$ac_header_preproc" >&6
20508 # So? What about this header?
20509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20510 yes:no: )
20511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20515 ac_header_preproc=yes
20517 no:yes:* )
20518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20531 cat <<\_ASBOX
20532 ## ------------------------------------------ ##
20533 ## Report this to the AC_PACKAGE_NAME lists. ##
20534 ## ------------------------------------------ ##
20535 _ASBOX
20537 sed "s/^/$as_me: WARNING: /" >&2
20539 esac
20540 echo "$as_me:$LINENO: checking for $ac_header" >&5
20541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545 eval "$as_ac_Header=\$ac_header_preproc"
20547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20554 _ACEOF
20556 else
20557 { { echo "$as_me:$LINENO: error: a required header is missing." >&5
20558 echo "$as_me: error: a required header is missing." >&2;}
20559 { (exit 1); exit 1; }; }
20562 done
20565 # Checks for typedefs, structures, and compiler characteristics.
20567 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20568 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20569 if test "${ac_cv_c_const+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h. */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20580 main ()
20582 /* FIXME: Include the comments suggested by Paul. */
20583 #ifndef __cplusplus
20584 /* Ultrix mips cc rejects this. */
20585 typedef int charset[2];
20586 const charset x;
20587 /* SunOS 4.1.1 cc rejects this. */
20588 char const *const *ccp;
20589 char **p;
20590 /* NEC SVR4.0.2 mips cc rejects this. */
20591 struct point {int x, y;};
20592 static struct point const zero = {0,0};
20593 /* AIX XL C 1.02.0.0 rejects this.
20594 It does not let you subtract one const X* pointer from another in
20595 an arm of an if-expression whose if-part is not a constant
20596 expression */
20597 const char *g = "string";
20598 ccp = &g + (g ? g-g : 0);
20599 /* HPUX 7.0 cc rejects these. */
20600 ++ccp;
20601 p = (char**) ccp;
20602 ccp = (char const *const *) p;
20603 { /* SCO 3.2v4 cc rejects this. */
20604 char *t;
20605 char const *s = 0 ? (char *) 0 : (char const *) 0;
20607 *t++ = 0;
20609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20610 int x[] = {25, 17};
20611 const int *foo = &x[0];
20612 ++foo;
20614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20615 typedef const int *iptr;
20616 iptr p = 0;
20617 ++p;
20619 { /* AIX XL C 1.02.0.0 rejects this saying
20620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20621 struct s { int j; const int *ap[3]; };
20622 struct s *b; b->j = 5;
20624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20625 const int foo = 10;
20627 #endif
20630 return 0;
20632 _ACEOF
20633 rm -f conftest.$ac_objext
20634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20635 (eval $ac_compile) 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } &&
20642 { ac_try='test -z "$ac_c_werror_flag"
20643 || test ! -s conftest.err'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } &&
20649 { ac_try='test -s conftest.$ac_objext'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 ac_cv_c_const=yes
20656 else
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_c_const=no
20662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20664 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20665 echo "${ECHO_T}$ac_cv_c_const" >&6
20666 if test $ac_cv_c_const = no; then
20668 cat >>confdefs.h <<\_ACEOF
20669 #define const
20670 _ACEOF
20674 echo "$as_me:$LINENO: checking for size_t" >&5
20675 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20676 if test "${ac_cv_type_size_t+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 $ac_includes_default
20687 main ()
20689 if ((size_t *) 0)
20690 return 0;
20691 if (sizeof (size_t))
20692 return 0;
20694 return 0;
20696 _ACEOF
20697 rm -f conftest.$ac_objext
20698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20699 (eval $ac_compile) 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
20706 { ac_try='test -z "$ac_c_werror_flag"
20707 || test ! -s conftest.err'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_cv_type_size_t=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_cv_type_size_t=no
20726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20728 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20729 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20730 if test $ac_cv_type_size_t = yes; then
20732 else
20734 cat >>confdefs.h <<_ACEOF
20735 #define size_t unsigned
20736 _ACEOF
20740 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20741 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20742 if test "${ac_cv_header_time+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <sys/types.h>
20752 #include <sys/time.h>
20753 #include <time.h>
20756 main ()
20758 if ((struct tm *) 0)
20759 return 0;
20761 return 0;
20763 _ACEOF
20764 rm -f conftest.$ac_objext
20765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20766 (eval $ac_compile) 2>conftest.er1
20767 ac_status=$?
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag"
20774 || test ! -s conftest.err'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; } &&
20780 { ac_try='test -s conftest.$ac_objext'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 ac_cv_header_time=yes
20787 else
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_cv_header_time=no
20793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20795 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20796 echo "${ECHO_T}$ac_cv_header_time" >&6
20797 if test $ac_cv_header_time = yes; then
20799 cat >>confdefs.h <<\_ACEOF
20800 #define TIME_WITH_SYS_TIME 1
20801 _ACEOF
20806 # Checks for library functions.
20808 for ac_func in vprintf
20810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20811 echo "$as_me:$LINENO: checking for $ac_func" >&5
20812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20813 if eval "test \"\${$as_ac_var+set}\" = set"; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20824 #define $ac_func innocuous_$ac_func
20826 /* System header to define __stub macros and hopefully few prototypes,
20827 which can conflict with char $ac_func (); below.
20828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20829 <limits.h> exists even on freestanding compilers. */
20831 #ifdef __STDC__
20832 # include <limits.h>
20833 #else
20834 # include <assert.h>
20835 #endif
20837 #undef $ac_func
20839 /* Override any gcc2 internal prototype to avoid an error. */
20840 #ifdef __cplusplus
20841 extern "C"
20843 #endif
20844 /* We use char because int might match the return type of a gcc2
20845 builtin and then its argument prototype would still apply. */
20846 char $ac_func ();
20847 /* The GNU C library defines this for functions which it implements
20848 to always fail with ENOSYS. Some functions are actually named
20849 something starting with __ and the normal name is an alias. */
20850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20851 choke me
20852 #else
20853 char (*f) () = $ac_func;
20854 #endif
20855 #ifdef __cplusplus
20857 #endif
20860 main ()
20862 return f != $ac_func;
20864 return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_c_werror_flag"
20877 || test ! -s conftest.err'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest$ac_exeext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 eval "$as_ac_var=yes"
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 eval "$as_ac_var=no"
20896 rm -f conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20901 if test `eval echo '${'$as_ac_var'}'` = yes; then
20902 cat >>confdefs.h <<_ACEOF
20903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20904 _ACEOF
20906 echo "$as_me:$LINENO: checking for _doprnt" >&5
20907 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20908 if test "${ac_cv_func__doprnt+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20919 #define _doprnt innocuous__doprnt
20921 /* System header to define __stub macros and hopefully few prototypes,
20922 which can conflict with char _doprnt (); below.
20923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20924 <limits.h> exists even on freestanding compilers. */
20926 #ifdef __STDC__
20927 # include <limits.h>
20928 #else
20929 # include <assert.h>
20930 #endif
20932 #undef _doprnt
20934 /* Override any gcc2 internal prototype to avoid an error. */
20935 #ifdef __cplusplus
20936 extern "C"
20938 #endif
20939 /* We use char because int might match the return type of a gcc2
20940 builtin and then its argument prototype would still apply. */
20941 char _doprnt ();
20942 /* The GNU C library defines this for functions which it implements
20943 to always fail with ENOSYS. Some functions are actually named
20944 something starting with __ and the normal name is an alias. */
20945 #if defined (__stub__doprnt) || defined (__stub____doprnt)
20946 choke me
20947 #else
20948 char (*f) () = _doprnt;
20949 #endif
20950 #ifdef __cplusplus
20952 #endif
20955 main ()
20957 return f != _doprnt;
20959 return 0;
20961 _ACEOF
20962 rm -f conftest.$ac_objext conftest$ac_exeext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20964 (eval $ac_link) 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -z "$ac_c_werror_flag"
20972 || test ! -s conftest.err'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } &&
20978 { ac_try='test -s conftest$ac_exeext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_func__doprnt=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_cv_func__doprnt=no
20991 rm -f conftest.err conftest.$ac_objext \
20992 conftest$ac_exeext conftest.$ac_ext
20994 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20995 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
20996 if test $ac_cv_func__doprnt = yes; then
20998 cat >>confdefs.h <<\_ACEOF
20999 #define HAVE_DOPRNT 1
21000 _ACEOF
21005 done
21011 for ac_func in memchr memset strchr
21013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21014 echo "$as_me:$LINENO: checking for $ac_func" >&5
21015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21016 if eval "test \"\${$as_ac_var+set}\" = set"; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h. */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21027 #define $ac_func innocuous_$ac_func
21029 /* System header to define __stub macros and hopefully few prototypes,
21030 which can conflict with char $ac_func (); below.
21031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21032 <limits.h> exists even on freestanding compilers. */
21034 #ifdef __STDC__
21035 # include <limits.h>
21036 #else
21037 # include <assert.h>
21038 #endif
21040 #undef $ac_func
21042 /* Override any gcc2 internal prototype to avoid an error. */
21043 #ifdef __cplusplus
21044 extern "C"
21046 #endif
21047 /* We use char because int might match the return type of a gcc2
21048 builtin and then its argument prototype would still apply. */
21049 char $ac_func ();
21050 /* The GNU C library defines this for functions which it implements
21051 to always fail with ENOSYS. Some functions are actually named
21052 something starting with __ and the normal name is an alias. */
21053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21054 choke me
21055 #else
21056 char (*f) () = $ac_func;
21057 #endif
21058 #ifdef __cplusplus
21060 #endif
21063 main ()
21065 return f != $ac_func;
21067 return 0;
21069 _ACEOF
21070 rm -f conftest.$ac_objext conftest$ac_exeext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21072 (eval $ac_link) 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -z "$ac_c_werror_flag"
21080 || test ! -s conftest.err'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; } &&
21086 { ac_try='test -s conftest$ac_exeext'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 eval "$as_ac_var=yes"
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 eval "$as_ac_var=no"
21099 rm -f conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21104 if test `eval echo '${'$as_ac_var'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21107 _ACEOF
21109 else
21110 { { echo "$as_me:$LINENO: error: a required function is missing." >&5
21111 echo "$as_me: error: a required function is missing." >&2;}
21112 { (exit 1); exit 1; }; }
21114 done
21117 SELECTED_LOWLIB=`echo $lowlib`
21122 if test x$SELECTED_LOWLIB = xsdl; then
21123 USE_SDL_TRUE=
21124 USE_SDL_FALSE='#'
21125 else
21126 USE_SDL_TRUE='#'
21127 USE_SDL_FALSE=
21130 if test $SELECTED_LOWLIB = sdl; then
21131 if test $targ = unix; then
21132 echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
21133 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6
21134 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137 ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-lSDL $LIBS"
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h. */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 /* Override any gcc2 internal prototype to avoid an error. */
21147 #ifdef __cplusplus
21148 extern "C"
21149 #endif
21150 /* We use char because int might match the return type of a gcc2
21151 builtin and then its argument prototype would still apply. */
21152 char SDL_Init ();
21154 main ()
21156 SDL_Init ();
21158 return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext conftest$ac_exeext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21163 (eval $ac_link) 2>conftest.er1
21164 ac_status=$?
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
21170 { ac_try='test -z "$ac_c_werror_flag"
21171 || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_lib_SDL_SDL_Init=yes
21184 else
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 ac_cv_lib_SDL_SDL_Init=no
21190 rm -f conftest.err conftest.$ac_objext \
21191 conftest$ac_exeext conftest.$ac_ext
21192 LIBS=$ac_check_lib_save_LIBS
21194 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
21195 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6
21196 if test $ac_cv_lib_SDL_SDL_Init = yes; then
21197 cat >>confdefs.h <<\_ACEOF
21198 #define USE_SDL 1
21199 _ACEOF
21200 LIBS="$LIBS $SDLFLAGS"
21201 NEUROFLAGS="$NEUROFLAGS `sdl-config --cflags`"
21202 else
21203 { { echo "$as_me:$LINENO: error: You don't have libSDL you can get it from http://www.libsdl.org" >&5
21204 echo "$as_me: error: You don't have libSDL you can get it from http://www.libsdl.org" >&2;}
21205 { (exit 1); exit 1; }; }
21211 else
21212 echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
21213 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6
21214 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217 ac_check_lib_save_LIBS=$LIBS
21218 LIBS="-lSDL $LIBS"
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21226 /* Override any gcc2 internal prototype to avoid an error. */
21227 #ifdef __cplusplus
21228 extern "C"
21229 #endif
21230 /* We use char because int might match the return type of a gcc2
21231 builtin and then its argument prototype would still apply. */
21232 char SDL_Init ();
21234 main ()
21236 SDL_Init ();
21238 return 0;
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21243 (eval $ac_link) 2>conftest.er1
21244 ac_status=$?
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
21250 { ac_try='test -z "$ac_c_werror_flag"
21251 || test ! -s conftest.err'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest$ac_exeext'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 ac_cv_lib_SDL_SDL_Init=yes
21264 else
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_cv_lib_SDL_SDL_Init=no
21270 rm -f conftest.err conftest.$ac_objext \
21271 conftest$ac_exeext conftest.$ac_ext
21272 LIBS=$ac_check_lib_save_LIBS
21274 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
21275 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6
21276 if test $ac_cv_lib_SDL_SDL_Init = yes; then
21277 cat >>confdefs.h <<\_ACEOF
21278 #define USE_SDL 1
21279 _ACEOF
21280 LIBS="$LIBS -lSDL"
21281 else
21282 { { echo "$as_me:$LINENO: error: You don't have libSDL you can get it from http://www.libsdl.org" >&5
21283 echo "$as_me: error: You don't have libSDL you can get it from http://www.libsdl.org" >&2;}
21284 { (exit 1); exit 1; }; }
21292 freetype_enable=yes
21294 echo "$as_me:$LINENO: checking for gzgetc in -lz" >&5
21295 echo $ECHO_N "checking for gzgetc in -lz... $ECHO_C" >&6
21296 if test "${ac_cv_lib_z_gzgetc+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21298 else
21299 ac_check_lib_save_LIBS=$LIBS
21300 LIBS="-lz $LIBS"
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21308 /* Override any gcc2 internal prototype to avoid an error. */
21309 #ifdef __cplusplus
21310 extern "C"
21311 #endif
21312 /* We use char because int might match the return type of a gcc2
21313 builtin and then its argument prototype would still apply. */
21314 char gzgetc ();
21316 main ()
21318 gzgetc ();
21320 return 0;
21322 _ACEOF
21323 rm -f conftest.$ac_objext conftest$ac_exeext
21324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21325 (eval $ac_link) 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } &&
21332 { ac_try='test -z "$ac_c_werror_flag"
21333 || test ! -s conftest.err'
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; } &&
21339 { ac_try='test -s conftest$ac_exeext'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_lib_z_gzgetc=yes
21346 else
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21350 ac_cv_lib_z_gzgetc=no
21352 rm -f conftest.err conftest.$ac_objext \
21353 conftest$ac_exeext conftest.$ac_ext
21354 LIBS=$ac_check_lib_save_LIBS
21356 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzgetc" >&5
21357 echo "${ECHO_T}$ac_cv_lib_z_gzgetc" >&6
21358 if test $ac_cv_lib_z_gzgetc = yes; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define USE_ZLIB 1
21361 _ACEOF
21362 LIBS="$LIBS -lz"
21363 else
21364 { { echo "$as_me:$LINENO: error: You don't have the Z library" >&5
21365 echo "$as_me: error: You don't have the Z library" >&2;}
21366 { (exit 1); exit 1; }; }
21373 if test x$SELECTED_LOWLIB = xX11; then
21374 USE_X11_TRUE=
21375 USE_X11_FALSE='#'
21376 else
21377 USE_X11_TRUE='#'
21378 USE_X11_FALSE=
21381 if test $SELECTED_LOWLIB = X11; then
21382 echo "$as_me:$LINENO: checking for X" >&5
21383 echo $ECHO_N "checking for X... $ECHO_C" >&6
21386 # Check whether --with-x or --without-x was given.
21387 if test "${with_x+set}" = set; then
21388 withval="$with_x"
21391 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21392 if test "x$with_x" = xno; then
21393 # The user explicitly disabled X.
21394 have_x=disabled
21395 else
21396 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21397 # Both variables are already set.
21398 have_x=yes
21399 else
21400 if test "${ac_cv_have_x+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403 # One or both of the vars are not set, and there is no cached value.
21404 ac_x_includes=no ac_x_libraries=no
21405 rm -fr conftest.dir
21406 if mkdir conftest.dir; then
21407 cd conftest.dir
21408 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21409 cat >Imakefile <<'_ACEOF'
21410 acfindx:
21411 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21412 _ACEOF
21413 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21415 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21416 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21417 for ac_extension in a so sl; do
21418 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21419 test -f $ac_im_libdir/libX11.$ac_extension; then
21420 ac_im_usrlibdir=$ac_im_libdir; break
21422 done
21423 # Screen out bogus values from the imake configuration. They are
21424 # bogus both because they are the default anyway, and because
21425 # using them would break gcc on systems where it needs fixed includes.
21426 case $ac_im_incroot in
21427 /usr/include) ;;
21428 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21429 esac
21430 case $ac_im_usrlibdir in
21431 /usr/lib | /lib) ;;
21432 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21433 esac
21435 cd ..
21436 rm -fr conftest.dir
21439 # Standard set of common directories for X headers.
21440 # Check X11 before X11Rn because it is often a symlink to the current release.
21441 ac_x_header_dirs='
21442 /usr/X11/include
21443 /usr/X11R6/include
21444 /usr/X11R5/include
21445 /usr/X11R4/include
21447 /usr/include/X11
21448 /usr/include/X11R6
21449 /usr/include/X11R5
21450 /usr/include/X11R4
21452 /usr/local/X11/include
21453 /usr/local/X11R6/include
21454 /usr/local/X11R5/include
21455 /usr/local/X11R4/include
21457 /usr/local/include/X11
21458 /usr/local/include/X11R6
21459 /usr/local/include/X11R5
21460 /usr/local/include/X11R4
21462 /usr/X386/include
21463 /usr/x386/include
21464 /usr/XFree86/include/X11
21466 /usr/include
21467 /usr/local/include
21468 /usr/unsupported/include
21469 /usr/athena/include
21470 /usr/local/x11r5/include
21471 /usr/lpp/Xamples/include
21473 /usr/openwin/include
21474 /usr/openwin/share/include'
21476 if test "$ac_x_includes" = no; then
21477 # Guess where to find include files, by looking for Intrinsic.h.
21478 # First, try using that file with no special directory specified.
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 #include <X11/Intrinsic.h>
21486 _ACEOF
21487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } >/dev/null; then
21495 if test -s conftest.err; then
21496 ac_cpp_err=$ac_c_preproc_warn_flag
21497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21498 else
21499 ac_cpp_err=
21501 else
21502 ac_cpp_err=yes
21504 if test -z "$ac_cpp_err"; then
21505 # We can compile using X headers with no special include directory.
21506 ac_x_includes=
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 for ac_dir in $ac_x_header_dirs; do
21512 if test -r "$ac_dir/X11/Intrinsic.h"; then
21513 ac_x_includes=$ac_dir
21514 break
21516 done
21518 rm -f conftest.err conftest.$ac_ext
21519 fi # $ac_x_includes = no
21521 if test "$ac_x_libraries" = no; then
21522 # Check for the libraries.
21523 # See if we find them without any special options.
21524 # Don't add to $LIBS permanently.
21525 ac_save_LIBS=$LIBS
21526 LIBS="-lXt $LIBS"
21527 cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h. */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <X11/Intrinsic.h>
21535 main ()
21537 XtMalloc (0)
21539 return 0;
21541 _ACEOF
21542 rm -f conftest.$ac_objext conftest$ac_exeext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21544 (eval $ac_link) 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_c_werror_flag"
21552 || test ! -s conftest.err'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try='test -s conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 LIBS=$ac_save_LIBS
21565 # We can link X programs with no special library path.
21566 ac_x_libraries=
21567 else
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 LIBS=$ac_save_LIBS
21572 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21574 # Don't even attempt the hair of trying to link an X program!
21575 for ac_extension in a so sl; do
21576 if test -r $ac_dir/libXt.$ac_extension; then
21577 ac_x_libraries=$ac_dir
21578 break 2
21580 done
21581 done
21583 rm -f conftest.err conftest.$ac_objext \
21584 conftest$ac_exeext conftest.$ac_ext
21585 fi # $ac_x_libraries = no
21587 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21588 # Didn't find X anywhere. Cache the known absence of X.
21589 ac_cv_have_x="have_x=no"
21590 else
21591 # Record where we found X for the cache.
21592 ac_cv_have_x="have_x=yes \
21593 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21598 eval "$ac_cv_have_x"
21599 fi # $with_x != no
21601 if test "$have_x" != yes; then
21602 echo "$as_me:$LINENO: result: $have_x" >&5
21603 echo "${ECHO_T}$have_x" >&6
21604 no_x=yes
21605 else
21606 # If each of the values was on the command line, it overrides each guess.
21607 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21608 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21609 # Update the cache value to reflect the command line values.
21610 ac_cv_have_x="have_x=yes \
21611 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21612 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21613 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21616 if test "$no_x" = yes; then
21617 # Not all programs may use this symbol, but it does not hurt to define it.
21619 cat >>confdefs.h <<\_ACEOF
21620 #define X_DISPLAY_MISSING 1
21621 _ACEOF
21623 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21624 else
21625 if test -n "$x_includes"; then
21626 X_CFLAGS="$X_CFLAGS -I$x_includes"
21629 # It would also be nice to do this for all -L options, not just this one.
21630 if test -n "$x_libraries"; then
21631 X_LIBS="$X_LIBS -L$x_libraries"
21632 # For Solaris; some versions of Sun CC require a space after -R and
21633 # others require no space. Words are not sufficient . . . .
21634 case `(uname -sr) 2>/dev/null` in
21635 "SunOS 5"*)
21636 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21637 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21638 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h. */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21647 main ()
21651 return 0;
21653 _ACEOF
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656 (eval $ac_link) 2>conftest.er1
21657 ac_status=$?
21658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -z "$ac_c_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest$ac_exeext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 ac_R_nospace=yes
21677 else
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 ac_R_nospace=no
21683 rm -f conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21685 if test $ac_R_nospace = yes; then
21686 echo "$as_me:$LINENO: result: no" >&5
21687 echo "${ECHO_T}no" >&6
21688 X_LIBS="$X_LIBS -R$x_libraries"
21689 else
21690 LIBS="$ac_xsave_LIBS -R $x_libraries"
21691 cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h. */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21699 main ()
21703 return 0;
21705 _ACEOF
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21708 (eval $ac_link) 2>conftest.er1
21709 ac_status=$?
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest$ac_exeext'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ac_R_space=yes
21729 else
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ac_R_space=no
21735 rm -f conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 if test $ac_R_space = yes; then
21738 echo "$as_me:$LINENO: result: yes" >&5
21739 echo "${ECHO_T}yes" >&6
21740 X_LIBS="$X_LIBS -R $x_libraries"
21741 else
21742 echo "$as_me:$LINENO: result: neither works" >&5
21743 echo "${ECHO_T}neither works" >&6
21746 LIBS=$ac_xsave_LIBS
21747 esac
21750 # Check for system-dependent libraries X programs must link with.
21751 # Do this before checking for the system-independent R6 libraries
21752 # (-lICE), since we may need -lsocket or whatever for X linking.
21754 if test "$ISC" = yes; then
21755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21756 else
21757 # Martyn Johnson says this is needed for Ultrix, if the X
21758 # libraries were built with DECnet support. And Karl Berry says
21759 # the Alpha needs dnet_stub (dnet does not exist).
21760 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h. */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21768 /* Override any gcc2 internal prototype to avoid an error. */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 /* We use char because int might match the return type of a gcc2
21773 builtin and then its argument prototype would still apply. */
21774 char XOpenDisplay ();
21776 main ()
21778 XOpenDisplay ();
21780 return 0;
21782 _ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21785 (eval $ac_link) 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -z "$ac_c_werror_flag"
21793 || test ! -s conftest.err'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest$ac_exeext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21806 else
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21811 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21812 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 else
21815 ac_check_lib_save_LIBS=$LIBS
21816 LIBS="-ldnet $LIBS"
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21824 /* Override any gcc2 internal prototype to avoid an error. */
21825 #ifdef __cplusplus
21826 extern "C"
21827 #endif
21828 /* We use char because int might match the return type of a gcc2
21829 builtin and then its argument prototype would still apply. */
21830 char dnet_ntoa ();
21832 main ()
21834 dnet_ntoa ();
21836 return 0;
21838 _ACEOF
21839 rm -f conftest.$ac_objext conftest$ac_exeext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841 (eval $ac_link) 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } &&
21848 { ac_try='test -z "$ac_c_werror_flag"
21849 || test ! -s conftest.err'
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; } &&
21855 { ac_try='test -s conftest$ac_exeext'
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 ac_cv_lib_dnet_dnet_ntoa=yes
21862 else
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_cv_lib_dnet_dnet_ntoa=no
21868 rm -f conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
21870 LIBS=$ac_check_lib_save_LIBS
21872 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21873 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21874 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21875 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21878 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21879 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21880 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21881 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884 ac_check_lib_save_LIBS=$LIBS
21885 LIBS="-ldnet_stub $LIBS"
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21893 /* Override any gcc2 internal prototype to avoid an error. */
21894 #ifdef __cplusplus
21895 extern "C"
21896 #endif
21897 /* We use char because int might match the return type of a gcc2
21898 builtin and then its argument prototype would still apply. */
21899 char dnet_ntoa ();
21901 main ()
21903 dnet_ntoa ();
21905 return 0;
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21910 (eval $ac_link) 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } &&
21917 { ac_try='test -z "$ac_c_werror_flag"
21918 || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try='test -s conftest$ac_exeext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21931 else
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_cv_lib_dnet_stub_dnet_ntoa=no
21937 rm -f conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21941 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21942 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21943 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21944 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21949 rm -f conftest.err conftest.$ac_objext \
21950 conftest$ac_exeext conftest.$ac_ext
21951 LIBS="$ac_xsave_LIBS"
21953 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21954 # to get the SysV transport functions.
21955 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21956 # needs -lnsl.
21957 # The nsl library prevents programs from opening the X display
21958 # on Irix 5.2, according to T.E. Dickey.
21959 # The functions gethostbyname, getservbyname, and inet_addr are
21960 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21961 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21962 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21963 if test "${ac_cv_func_gethostbyname+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966 cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h. */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21974 #define gethostbyname innocuous_gethostbyname
21976 /* System header to define __stub macros and hopefully few prototypes,
21977 which can conflict with char gethostbyname (); below.
21978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21979 <limits.h> exists even on freestanding compilers. */
21981 #ifdef __STDC__
21982 # include <limits.h>
21983 #else
21984 # include <assert.h>
21985 #endif
21987 #undef gethostbyname
21989 /* Override any gcc2 internal prototype to avoid an error. */
21990 #ifdef __cplusplus
21991 extern "C"
21993 #endif
21994 /* We use char because int might match the return type of a gcc2
21995 builtin and then its argument prototype would still apply. */
21996 char gethostbyname ();
21997 /* The GNU C library defines this for functions which it implements
21998 to always fail with ENOSYS. Some functions are actually named
21999 something starting with __ and the normal name is an alias. */
22000 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22001 choke me
22002 #else
22003 char (*f) () = gethostbyname;
22004 #endif
22005 #ifdef __cplusplus
22007 #endif
22010 main ()
22012 return f != gethostbyname;
22014 return 0;
22016 _ACEOF
22017 rm -f conftest.$ac_objext conftest$ac_exeext
22018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22019 (eval $ac_link) 2>conftest.er1
22020 ac_status=$?
22021 grep -v '^ *+' conftest.er1 >conftest.err
22022 rm -f conftest.er1
22023 cat conftest.err >&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } &&
22026 { ac_try='test -z "$ac_c_werror_flag"
22027 || test ! -s conftest.err'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; } &&
22033 { ac_try='test -s conftest$ac_exeext'
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; }; then
22039 ac_cv_func_gethostbyname=yes
22040 else
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22044 ac_cv_func_gethostbyname=no
22046 rm -f conftest.err conftest.$ac_objext \
22047 conftest$ac_exeext conftest.$ac_ext
22049 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22050 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22052 if test $ac_cv_func_gethostbyname = no; then
22053 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22054 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22055 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058 ac_check_lib_save_LIBS=$LIBS
22059 LIBS="-lnsl $LIBS"
22060 cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h. */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22067 /* Override any gcc2 internal prototype to avoid an error. */
22068 #ifdef __cplusplus
22069 extern "C"
22070 #endif
22071 /* We use char because int might match the return type of a gcc2
22072 builtin and then its argument prototype would still apply. */
22073 char gethostbyname ();
22075 main ()
22077 gethostbyname ();
22079 return 0;
22081 _ACEOF
22082 rm -f conftest.$ac_objext conftest$ac_exeext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22084 (eval $ac_link) 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try='test -z "$ac_c_werror_flag"
22092 || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest$ac_exeext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_lib_nsl_gethostbyname=yes
22105 else
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_cv_lib_nsl_gethostbyname=no
22111 rm -f conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22113 LIBS=$ac_check_lib_save_LIBS
22115 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22116 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22117 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22121 if test $ac_cv_lib_nsl_gethostbyname = no; then
22122 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22123 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22124 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127 ac_check_lib_save_LIBS=$LIBS
22128 LIBS="-lbsd $LIBS"
22129 cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h. */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22136 /* Override any gcc2 internal prototype to avoid an error. */
22137 #ifdef __cplusplus
22138 extern "C"
22139 #endif
22140 /* We use char because int might match the return type of a gcc2
22141 builtin and then its argument prototype would still apply. */
22142 char gethostbyname ();
22144 main ()
22146 gethostbyname ();
22148 return 0;
22150 _ACEOF
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest$ac_exeext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 ac_cv_lib_bsd_gethostbyname=yes
22174 else
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ac_cv_lib_bsd_gethostbyname=no
22180 rm -f conftest.err conftest.$ac_objext \
22181 conftest$ac_exeext conftest.$ac_ext
22182 LIBS=$ac_check_lib_save_LIBS
22184 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22185 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22186 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22193 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22194 # socket/setsockopt and other routines are undefined under SCO ODT
22195 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22196 # on later versions), says Simon Leinen: it contains gethostby*
22197 # variants that don't use the name server (or something). -lsocket
22198 # must be given before -lnsl if both are needed. We assume that
22199 # if connect needs -lnsl, so does gethostbyname.
22200 echo "$as_me:$LINENO: checking for connect" >&5
22201 echo $ECHO_N "checking for connect... $ECHO_C" >&6
22202 if test "${ac_cv_func_connect+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 else
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22213 #define connect innocuous_connect
22215 /* System header to define __stub macros and hopefully few prototypes,
22216 which can conflict with char connect (); below.
22217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22218 <limits.h> exists even on freestanding compilers. */
22220 #ifdef __STDC__
22221 # include <limits.h>
22222 #else
22223 # include <assert.h>
22224 #endif
22226 #undef connect
22228 /* Override any gcc2 internal prototype to avoid an error. */
22229 #ifdef __cplusplus
22230 extern "C"
22232 #endif
22233 /* We use char because int might match the return type of a gcc2
22234 builtin and then its argument prototype would still apply. */
22235 char connect ();
22236 /* The GNU C library defines this for functions which it implements
22237 to always fail with ENOSYS. Some functions are actually named
22238 something starting with __ and the normal name is an alias. */
22239 #if defined (__stub_connect) || defined (__stub___connect)
22240 choke me
22241 #else
22242 char (*f) () = connect;
22243 #endif
22244 #ifdef __cplusplus
22246 #endif
22249 main ()
22251 return f != connect;
22253 return 0;
22255 _ACEOF
22256 rm -f conftest.$ac_objext conftest$ac_exeext
22257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22258 (eval $ac_link) 2>conftest.er1
22259 ac_status=$?
22260 grep -v '^ *+' conftest.er1 >conftest.err
22261 rm -f conftest.er1
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } &&
22265 { ac_try='test -z "$ac_c_werror_flag"
22266 || test ! -s conftest.err'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; } &&
22272 { ac_try='test -s conftest$ac_exeext'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 ac_cv_func_connect=yes
22279 else
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_func_connect=no
22285 rm -f conftest.err conftest.$ac_objext \
22286 conftest$ac_exeext conftest.$ac_ext
22288 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22289 echo "${ECHO_T}$ac_cv_func_connect" >&6
22291 if test $ac_cv_func_connect = no; then
22292 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22293 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22294 if test "${ac_cv_lib_socket_connect+set}" = set; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297 ac_check_lib_save_LIBS=$LIBS
22298 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22299 cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h. */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22306 /* Override any gcc2 internal prototype to avoid an error. */
22307 #ifdef __cplusplus
22308 extern "C"
22309 #endif
22310 /* We use char because int might match the return type of a gcc2
22311 builtin and then its argument prototype would still apply. */
22312 char connect ();
22314 main ()
22316 connect ();
22318 return 0;
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323 (eval $ac_link) 2>conftest.er1
22324 ac_status=$?
22325 grep -v '^ *+' conftest.er1 >conftest.err
22326 rm -f conftest.er1
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } &&
22330 { ac_try='test -z "$ac_c_werror_flag"
22331 || test ! -s conftest.err'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest$ac_exeext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_lib_socket_connect=yes
22344 else
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ac_cv_lib_socket_connect=no
22350 rm -f conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
22352 LIBS=$ac_check_lib_save_LIBS
22354 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22355 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22356 if test $ac_cv_lib_socket_connect = yes; then
22357 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22362 # Guillermo Gomez says -lposix is necessary on A/UX.
22363 echo "$as_me:$LINENO: checking for remove" >&5
22364 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22365 if test "${ac_cv_func_remove+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 else
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22376 #define remove innocuous_remove
22378 /* System header to define __stub macros and hopefully few prototypes,
22379 which can conflict with char remove (); below.
22380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22381 <limits.h> exists even on freestanding compilers. */
22383 #ifdef __STDC__
22384 # include <limits.h>
22385 #else
22386 # include <assert.h>
22387 #endif
22389 #undef remove
22391 /* Override any gcc2 internal prototype to avoid an error. */
22392 #ifdef __cplusplus
22393 extern "C"
22395 #endif
22396 /* We use char because int might match the return type of a gcc2
22397 builtin and then its argument prototype would still apply. */
22398 char remove ();
22399 /* The GNU C library defines this for functions which it implements
22400 to always fail with ENOSYS. Some functions are actually named
22401 something starting with __ and the normal name is an alias. */
22402 #if defined (__stub_remove) || defined (__stub___remove)
22403 choke me
22404 #else
22405 char (*f) () = remove;
22406 #endif
22407 #ifdef __cplusplus
22409 #endif
22412 main ()
22414 return f != remove;
22416 return 0;
22418 _ACEOF
22419 rm -f conftest.$ac_objext conftest$ac_exeext
22420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22421 (eval $ac_link) 2>conftest.er1
22422 ac_status=$?
22423 grep -v '^ *+' conftest.er1 >conftest.err
22424 rm -f conftest.er1
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } &&
22428 { ac_try='test -z "$ac_c_werror_flag"
22429 || test ! -s conftest.err'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; } &&
22435 { ac_try='test -s conftest$ac_exeext'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 ac_cv_func_remove=yes
22442 else
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ac_cv_func_remove=no
22448 rm -f conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22451 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22452 echo "${ECHO_T}$ac_cv_func_remove" >&6
22454 if test $ac_cv_func_remove = no; then
22455 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22456 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22457 if test "${ac_cv_lib_posix_remove+set}" = set; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460 ac_check_lib_save_LIBS=$LIBS
22461 LIBS="-lposix $LIBS"
22462 cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h. */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22469 /* Override any gcc2 internal prototype to avoid an error. */
22470 #ifdef __cplusplus
22471 extern "C"
22472 #endif
22473 /* We use char because int might match the return type of a gcc2
22474 builtin and then its argument prototype would still apply. */
22475 char remove ();
22477 main ()
22479 remove ();
22481 return 0;
22483 _ACEOF
22484 rm -f conftest.$ac_objext conftest$ac_exeext
22485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22486 (eval $ac_link) 2>conftest.er1
22487 ac_status=$?
22488 grep -v '^ *+' conftest.er1 >conftest.err
22489 rm -f conftest.er1
22490 cat conftest.err >&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } &&
22493 { ac_try='test -z "$ac_c_werror_flag"
22494 || test ! -s conftest.err'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; } &&
22500 { ac_try='test -s conftest$ac_exeext'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 ac_cv_lib_posix_remove=yes
22507 else
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_cv_lib_posix_remove=no
22513 rm -f conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22515 LIBS=$ac_check_lib_save_LIBS
22517 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22518 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22519 if test $ac_cv_lib_posix_remove = yes; then
22520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22525 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22526 echo "$as_me:$LINENO: checking for shmat" >&5
22527 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22528 if test "${ac_cv_func_shmat+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22530 else
22531 cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h. */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22539 #define shmat innocuous_shmat
22541 /* System header to define __stub macros and hopefully few prototypes,
22542 which can conflict with char shmat (); below.
22543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22544 <limits.h> exists even on freestanding compilers. */
22546 #ifdef __STDC__
22547 # include <limits.h>
22548 #else
22549 # include <assert.h>
22550 #endif
22552 #undef shmat
22554 /* Override any gcc2 internal prototype to avoid an error. */
22555 #ifdef __cplusplus
22556 extern "C"
22558 #endif
22559 /* We use char because int might match the return type of a gcc2
22560 builtin and then its argument prototype would still apply. */
22561 char shmat ();
22562 /* The GNU C library defines this for functions which it implements
22563 to always fail with ENOSYS. Some functions are actually named
22564 something starting with __ and the normal name is an alias. */
22565 #if defined (__stub_shmat) || defined (__stub___shmat)
22566 choke me
22567 #else
22568 char (*f) () = shmat;
22569 #endif
22570 #ifdef __cplusplus
22572 #endif
22575 main ()
22577 return f != shmat;
22579 return 0;
22581 _ACEOF
22582 rm -f conftest.$ac_objext conftest$ac_exeext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22584 (eval $ac_link) 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } &&
22591 { ac_try='test -z "$ac_c_werror_flag"
22592 || test ! -s conftest.err'
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; } &&
22598 { ac_try='test -s conftest$ac_exeext'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }; then
22604 ac_cv_func_shmat=yes
22605 else
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609 ac_cv_func_shmat=no
22611 rm -f conftest.err conftest.$ac_objext \
22612 conftest$ac_exeext conftest.$ac_ext
22614 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22615 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22617 if test $ac_cv_func_shmat = no; then
22618 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22619 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22620 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623 ac_check_lib_save_LIBS=$LIBS
22624 LIBS="-lipc $LIBS"
22625 cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h. */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22632 /* Override any gcc2 internal prototype to avoid an error. */
22633 #ifdef __cplusplus
22634 extern "C"
22635 #endif
22636 /* We use char because int might match the return type of a gcc2
22637 builtin and then its argument prototype would still apply. */
22638 char shmat ();
22640 main ()
22642 shmat ();
22644 return 0;
22646 _ACEOF
22647 rm -f conftest.$ac_objext conftest$ac_exeext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22649 (eval $ac_link) 2>conftest.er1
22650 ac_status=$?
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -z "$ac_c_werror_flag"
22657 || test ! -s conftest.err'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try='test -s conftest$ac_exeext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 ac_cv_lib_ipc_shmat=yes
22670 else
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 ac_cv_lib_ipc_shmat=no
22676 rm -f conftest.err conftest.$ac_objext \
22677 conftest$ac_exeext conftest.$ac_ext
22678 LIBS=$ac_check_lib_save_LIBS
22680 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22681 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22682 if test $ac_cv_lib_ipc_shmat = yes; then
22683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22689 # Check for libraries that X11R6 Xt/Xaw programs need.
22690 ac_save_LDFLAGS=$LDFLAGS
22691 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22692 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22693 # check for ICE first), but we must link in the order -lSM -lICE or
22694 # we get undefined symbols. So assume we have SM if we have ICE.
22695 # These have to be linked with before -lX11, unlike the other
22696 # libraries we check for below, so use a different variable.
22697 # John Interrante, Karl Berry
22698 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22699 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22700 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703 ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h. */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* Override any gcc2 internal prototype to avoid an error. */
22713 #ifdef __cplusplus
22714 extern "C"
22715 #endif
22716 /* We use char because int might match the return type of a gcc2
22717 builtin and then its argument prototype would still apply. */
22718 char IceConnectionNumber ();
22720 main ()
22722 IceConnectionNumber ();
22724 return 0;
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729 (eval $ac_link) 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -z "$ac_c_werror_flag"
22737 || test ! -s conftest.err'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest$ac_exeext'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 ac_cv_lib_ICE_IceConnectionNumber=yes
22750 else
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 ac_cv_lib_ICE_IceConnectionNumber=no
22756 rm -f conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
22758 LIBS=$ac_check_lib_save_LIBS
22760 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22761 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22762 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22763 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22766 LDFLAGS=$ac_save_LDFLAGS
22770 LDFLAGS="$CFLAGS $X_LIBS"
22771 CFLAGS="$CFLAGS $X_CFLAGS"
22772 echo "$as_me:$LINENO: checking for XCreateGC in -lX11" >&5
22773 echo $ECHO_N "checking for XCreateGC in -lX11... $ECHO_C" >&6
22774 if test "${ac_cv_lib_X11_XCreateGC+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777 ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-lX11 $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h. */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 /* Override any gcc2 internal prototype to avoid an error. */
22787 #ifdef __cplusplus
22788 extern "C"
22789 #endif
22790 /* We use char because int might match the return type of a gcc2
22791 builtin and then its argument prototype would still apply. */
22792 char XCreateGC ();
22794 main ()
22796 XCreateGC ();
22798 return 0;
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803 (eval $ac_link) 2>conftest.er1
22804 ac_status=$?
22805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -z "$ac_c_werror_flag"
22811 || test ! -s conftest.err'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; } &&
22817 { ac_try='test -s conftest$ac_exeext'
22818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 ac_cv_lib_X11_XCreateGC=yes
22824 else
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_cv_lib_X11_XCreateGC=no
22830 rm -f conftest.err conftest.$ac_objext \
22831 conftest$ac_exeext conftest.$ac_ext
22832 LIBS=$ac_check_lib_save_LIBS
22834 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCreateGC" >&5
22835 echo "${ECHO_T}$ac_cv_lib_X11_XCreateGC" >&6
22836 if test $ac_cv_lib_X11_XCreateGC = yes; then
22837 cat >>confdefs.h <<\_ACEOF
22838 #define USE_X11 1
22839 _ACEOF
22840 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
22841 else
22842 { { echo "$as_me:$LINENO: error: You don't have libX11" >&5
22843 echo "$as_me: error: You don't have libX11" >&2;}
22844 { (exit 1); exit 1; }; }
22847 # LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
22848 # NEUROFLAGS="$NEUROFLAGS $X_CFLAGS"
22849 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
22850 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
22851 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854 ac_check_lib_save_LIBS=$LIBS
22855 LIBS="-lXpm $LIBS"
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h. */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22863 /* Override any gcc2 internal prototype to avoid an error. */
22864 #ifdef __cplusplus
22865 extern "C"
22866 #endif
22867 /* We use char because int might match the return type of a gcc2
22868 builtin and then its argument prototype would still apply. */
22869 char XpmCreatePixmapFromData ();
22871 main ()
22873 XpmCreatePixmapFromData ();
22875 return 0;
22877 _ACEOF
22878 rm -f conftest.$ac_objext conftest$ac_exeext
22879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22880 (eval $ac_link) 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } &&
22887 { ac_try='test -z "$ac_c_werror_flag"
22888 || test ! -s conftest.err'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest$ac_exeext'
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22900 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
22901 else
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22905 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
22907 rm -f conftest.err conftest.$ac_objext \
22908 conftest$ac_exeext conftest.$ac_ext
22909 LIBS=$ac_check_lib_save_LIBS
22911 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
22912 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
22913 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
22914 LIBS="$LIBS -lXpm"
22915 else
22916 { { echo "$as_me:$LINENO: error: You don't have libXpm" >&5
22917 echo "$as_me: error: You don't have libXpm" >&2;}
22918 { (exit 1); exit 1; }; }
22922 freetype_enable=yes
22926 echo "$as_me:$LINENO: checking for log10 in -lm" >&5
22927 echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
22928 if test "${ac_cv_lib_m_log10+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 else
22931 ac_check_lib_save_LIBS=$LIBS
22932 LIBS="-lm $LIBS"
22933 cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h. */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22940 /* Override any gcc2 internal prototype to avoid an error. */
22941 #ifdef __cplusplus
22942 extern "C"
22943 #endif
22944 /* We use char because int might match the return type of a gcc2
22945 builtin and then its argument prototype would still apply. */
22946 char log10 ();
22948 main ()
22950 log10 ();
22952 return 0;
22954 _ACEOF
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22957 (eval $ac_link) 2>conftest.er1
22958 ac_status=$?
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } &&
22964 { ac_try='test -z "$ac_c_werror_flag"
22965 || test ! -s conftest.err'
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; } &&
22971 { ac_try='test -s conftest$ac_exeext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_lib_m_log10=yes
22978 else
22979 echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22982 ac_cv_lib_m_log10=no
22984 rm -f conftest.err conftest.$ac_objext \
22985 conftest$ac_exeext conftest.$ac_ext
22986 LIBS=$ac_check_lib_save_LIBS
22988 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
22989 echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
22990 if test $ac_cv_lib_m_log10 = yes; then
22991 cat >>confdefs.h <<_ACEOF
22992 #define HAVE_LIBM 1
22993 _ACEOF
22995 LIBS="-lm $LIBS"
22997 else
22998 { { echo "$as_me:$LINENO: error: You don't have libm -- math" >&5
22999 echo "$as_me: error: You don't have libm -- math" >&2;}
23000 { (exit 1); exit 1; }; }
23005 if test x$freetype_enable = xyes; then
23006 echo "$as_me:$LINENO: checking for FT_New_Face in -lfreetype" >&5
23007 echo $ECHO_N "checking for FT_New_Face in -lfreetype... $ECHO_C" >&6
23008 if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011 ac_check_lib_save_LIBS=$LIBS
23012 LIBS="-lfreetype $LIBS"
23013 cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h. */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23020 /* Override any gcc2 internal prototype to avoid an error. */
23021 #ifdef __cplusplus
23022 extern "C"
23023 #endif
23024 /* We use char because int might match the return type of a gcc2
23025 builtin and then its argument prototype would still apply. */
23026 char FT_New_Face ();
23028 main ()
23030 FT_New_Face ();
23032 return 0;
23034 _ACEOF
23035 rm -f conftest.$ac_objext conftest$ac_exeext
23036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23037 (eval $ac_link) 2>conftest.er1
23038 ac_status=$?
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
23044 { ac_try='test -z "$ac_c_werror_flag"
23045 || test ! -s conftest.err'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 { ac_try='test -s conftest$ac_exeext'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; }; then
23057 ac_cv_lib_freetype_FT_New_Face=yes
23058 else
23059 echo "$as_me: failed program was:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23062 ac_cv_lib_freetype_FT_New_Face=no
23064 rm -f conftest.err conftest.$ac_objext \
23065 conftest$ac_exeext conftest.$ac_ext
23066 LIBS=$ac_check_lib_save_LIBS
23068 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_New_Face" >&5
23069 echo "${ECHO_T}$ac_cv_lib_freetype_FT_New_Face" >&6
23070 if test $ac_cv_lib_freetype_FT_New_Face = yes; then
23071 LIBS="$LIBS `freetype-config --libs`" CFLAGS="$CFLAGS `freetype-config --cflags`"
23072 else
23073 { { echo "$as_me:$LINENO: error: You don't have the libfreetype2 library you can get it from freetype.sourceforge.net" >&5
23074 echo "$as_me: error: You don't have the libfreetype2 library you can get it from freetype.sourceforge.net" >&2;}
23075 { (exit 1); exit 1; }; }
23081 if test x$enable_Debug = xyes; then
23082 #NEUROFLAGS="$NEUROFLAGS -g"
23083 CFLAGS="$CFLAGS -g"
23084 else
23085 #NEUROFLAGS="$NEUROFLAGS -O2 -s"
23086 CFLAGS="$CFLAGS -Os -s"
23092 # set the installation path for the headers
23093 includedir=$includedir/neuro
23095 echo
23097 # enumerate the Makefiles to be created
23098 ac_config_files="$ac_config_files Makefile include/Makefile include/neuro/Makefile src/Makefile src/memory/Makefile src/video/Makefile src/events/Makefile src/extlib/Makefile src/misc/Makefile docs/Makefile"
23101 #AC_MSG_NOTICE([This is the low library Neuro will use : $SELECTED_LOWLIB])
23103 cat >confcache <<\_ACEOF
23104 # This file is a shell script that caches the results of configure
23105 # tests run on this system so they can be shared between configure
23106 # scripts and configure runs, see configure's option --config-cache.
23107 # It is not useful on other systems. If it contains results you don't
23108 # want to keep, you may remove or edit it.
23110 # config.status only pays attention to the cache file if you give it
23111 # the --recheck option to rerun configure.
23113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23115 # following values.
23117 _ACEOF
23119 # The following way of writing the cache mishandles newlines in values,
23120 # but we know of no workaround that is simple, portable, and efficient.
23121 # So, don't put newlines in cache variables' values.
23122 # Ultrix sh set writes to stderr and can't be redirected directly,
23123 # and sets the high bit in the cache file unless we assign to the vars.
23125 (set) 2>&1 |
23126 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23127 *ac_space=\ *)
23128 # `set' does not quote correctly, so add quotes (double-quote
23129 # substitution turns \\\\ into \\, and sed turns \\ into \).
23130 sed -n \
23131 "s/'/'\\\\''/g;
23132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23135 # `set' quotes correctly as required by POSIX, so do not add quotes.
23136 sed -n \
23137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23139 esac;
23141 sed '
23142 t clear
23143 : clear
23144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23145 t end
23146 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23147 : end' >>confcache
23148 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23149 if test -w $cache_file; then
23150 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23151 cat confcache >$cache_file
23152 else
23153 echo "not updating unwritable cache $cache_file"
23156 rm -f confcache
23158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23159 # Let make expand exec_prefix.
23160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23162 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23163 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23164 # trailing colons and then remove the whole line if VPATH becomes empty
23165 # (actually we leave an empty line to preserve line numbers).
23166 if test "x$srcdir" = x.; then
23167 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23168 s/:*\$(srcdir):*/:/;
23169 s/:*\${srcdir}:*/:/;
23170 s/:*@srcdir@:*/:/;
23171 s/^\([^=]*=[ ]*\):*/\1/;
23172 s/:*$//;
23173 s/^[^=]*=[ ]*$//;
23177 # Transform confdefs.h into DEFS.
23178 # Protect against shell expansion while executing Makefile rules.
23179 # Protect against Makefile macro expansion.
23181 # If the first sed substitution is executed (which looks for macros that
23182 # take arguments), then we branch to the quote section. Otherwise,
23183 # look for a macro that doesn't take arguments.
23184 cat >confdef2opt.sed <<\_ACEOF
23185 t clear
23186 : clear
23187 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
23188 t quote
23189 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
23190 t quote
23192 : quote
23193 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
23194 s,\[,\\&,g
23195 s,\],\\&,g
23196 s,\$,$$,g
23198 _ACEOF
23199 # We use echo to avoid assuming a particular line-breaking character.
23200 # The extra dot is to prevent the shell from consuming trailing
23201 # line-breaks from the sub-command output. A line-break within
23202 # single-quotes doesn't work because, if this script is created in a
23203 # platform that uses two characters for line-breaks (e.g., DOS), tr
23204 # would break.
23205 ac_LF_and_DOT=`echo; echo .`
23206 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
23207 rm -f confdef2opt.sed
23210 ac_libobjs=
23211 ac_ltlibobjs=
23212 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23213 # 1. Remove the extension, and $U if already installed.
23214 ac_i=`echo "$ac_i" |
23215 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23216 # 2. Add them.
23217 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23218 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23219 done
23220 LIBOBJS=$ac_libobjs
23222 LTLIBOBJS=$ac_ltlibobjs
23225 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23226 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23227 Usually this means the macro was only invoked conditionally." >&5
23228 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23229 Usually this means the macro was only invoked conditionally." >&2;}
23230 { (exit 1); exit 1; }; }
23232 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23233 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23234 Usually this means the macro was only invoked conditionally." >&5
23235 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23236 Usually this means the macro was only invoked conditionally." >&2;}
23237 { (exit 1); exit 1; }; }
23239 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23240 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23241 Usually this means the macro was only invoked conditionally." >&5
23242 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23243 Usually this means the macro was only invoked conditionally." >&2;}
23244 { (exit 1); exit 1; }; }
23246 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
23247 { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
23248 Usually this means the macro was only invoked conditionally." >&5
23249 echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
23250 Usually this means the macro was only invoked conditionally." >&2;}
23251 { (exit 1); exit 1; }; }
23253 if test -z "${USE_SDL_TRUE}" && test -z "${USE_SDL_FALSE}"; then
23254 { { echo "$as_me:$LINENO: error: conditional \"USE_SDL\" was never defined.
23255 Usually this means the macro was only invoked conditionally." >&5
23256 echo "$as_me: error: conditional \"USE_SDL\" was never defined.
23257 Usually this means the macro was only invoked conditionally." >&2;}
23258 { (exit 1); exit 1; }; }
23260 if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
23261 { { echo "$as_me:$LINENO: error: conditional \"USE_X11\" was never defined.
23262 Usually this means the macro was only invoked conditionally." >&5
23263 echo "$as_me: error: conditional \"USE_X11\" was never defined.
23264 Usually this means the macro was only invoked conditionally." >&2;}
23265 { (exit 1); exit 1; }; }
23268 : ${CONFIG_STATUS=./config.status}
23269 ac_clean_files_save=$ac_clean_files
23270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23271 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23272 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23273 cat >$CONFIG_STATUS <<_ACEOF
23274 #! $SHELL
23275 # Generated by $as_me.
23276 # Run this file to recreate the current configuration.
23277 # Compiler output produced by configure, useful for debugging
23278 # configure, is in config.log if it exists.
23280 debug=false
23281 ac_cs_recheck=false
23282 ac_cs_silent=false
23283 SHELL=\${CONFIG_SHELL-$SHELL}
23284 _ACEOF
23286 cat >>$CONFIG_STATUS <<\_ACEOF
23287 ## --------------------- ##
23288 ## M4sh Initialization. ##
23289 ## --------------------- ##
23291 # Be Bourne compatible
23292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23293 emulate sh
23294 NULLCMD=:
23295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23296 # is contrary to our usage. Disable this feature.
23297 alias -g '${1+"$@"}'='"$@"'
23298 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23299 set -o posix
23301 DUALCASE=1; export DUALCASE # for MKS sh
23303 # Support unset when possible.
23304 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23305 as_unset=unset
23306 else
23307 as_unset=false
23311 # Work around bugs in pre-3.0 UWIN ksh.
23312 $as_unset ENV MAIL MAILPATH
23313 PS1='$ '
23314 PS2='> '
23315 PS4='+ '
23317 # NLS nuisances.
23318 for as_var in \
23319 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23320 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23321 LC_TELEPHONE LC_TIME
23323 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23324 eval $as_var=C; export $as_var
23325 else
23326 $as_unset $as_var
23328 done
23330 # Required to use basename.
23331 if expr a : '\(a\)' >/dev/null 2>&1; then
23332 as_expr=expr
23333 else
23334 as_expr=false
23337 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23338 as_basename=basename
23339 else
23340 as_basename=false
23344 # Name of the executable.
23345 as_me=`$as_basename "$0" ||
23346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23347 X"$0" : 'X\(//\)$' \| \
23348 X"$0" : 'X\(/\)$' \| \
23349 . : '\(.\)' 2>/dev/null ||
23350 echo X/"$0" |
23351 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23352 /^X\/\(\/\/\)$/{ s//\1/; q; }
23353 /^X\/\(\/\).*/{ s//\1/; q; }
23354 s/.*/./; q'`
23357 # PATH needs CR, and LINENO needs CR and PATH.
23358 # Avoid depending upon Character Ranges.
23359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23362 as_cr_digits='0123456789'
23363 as_cr_alnum=$as_cr_Letters$as_cr_digits
23365 # The user is always right.
23366 if test "${PATH_SEPARATOR+set}" != set; then
23367 echo "#! /bin/sh" >conf$$.sh
23368 echo "exit 0" >>conf$$.sh
23369 chmod +x conf$$.sh
23370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23371 PATH_SEPARATOR=';'
23372 else
23373 PATH_SEPARATOR=:
23375 rm -f conf$$.sh
23379 as_lineno_1=$LINENO
23380 as_lineno_2=$LINENO
23381 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23382 test "x$as_lineno_1" != "x$as_lineno_2" &&
23383 test "x$as_lineno_3" = "x$as_lineno_2" || {
23384 # Find who we are. Look in the path if we contain no path at all
23385 # relative or not.
23386 case $0 in
23387 *[\\/]* ) as_myself=$0 ;;
23388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23389 for as_dir in $PATH
23391 IFS=$as_save_IFS
23392 test -z "$as_dir" && as_dir=.
23393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23394 done
23397 esac
23398 # We did not find ourselves, most probably we were run as `sh COMMAND'
23399 # in which case we are not to be found in the path.
23400 if test "x$as_myself" = x; then
23401 as_myself=$0
23403 if test ! -f "$as_myself"; then
23404 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23405 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23406 { (exit 1); exit 1; }; }
23408 case $CONFIG_SHELL in
23410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23411 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23413 IFS=$as_save_IFS
23414 test -z "$as_dir" && as_dir=.
23415 for as_base in sh bash ksh sh5; do
23416 case $as_dir in
23418 if ("$as_dir/$as_base" -c '
23419 as_lineno_1=$LINENO
23420 as_lineno_2=$LINENO
23421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23422 test "x$as_lineno_1" != "x$as_lineno_2" &&
23423 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23424 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23425 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23426 CONFIG_SHELL=$as_dir/$as_base
23427 export CONFIG_SHELL
23428 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23429 fi;;
23430 esac
23431 done
23432 done
23434 esac
23436 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23437 # uniformly replaced by the line number. The first 'sed' inserts a
23438 # line-number line before each line; the second 'sed' does the real
23439 # work. The second script uses 'N' to pair each line-number line
23440 # with the numbered line, and appends trailing '-' during
23441 # substitution so that $LINENO is not a special case at line end.
23442 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23443 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23444 sed '=' <$as_myself |
23445 sed '
23447 s,$,-,
23448 : loop
23449 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23450 t loop
23451 s,-$,,
23452 s,^['$as_cr_digits']*\n,,
23453 ' >$as_me.lineno &&
23454 chmod +x $as_me.lineno ||
23455 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23456 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23457 { (exit 1); exit 1; }; }
23459 # Don't try to exec as it changes $[0], causing all sort of problems
23460 # (the dirname of $[0] is not the place where we might find the
23461 # original and so on. Autoconf is especially sensible to this).
23462 . ./$as_me.lineno
23463 # Exit status is that of the last command.
23464 exit
23468 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23469 *c*,-n*) ECHO_N= ECHO_C='
23470 ' ECHO_T=' ' ;;
23471 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23472 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23473 esac
23475 if expr a : '\(a\)' >/dev/null 2>&1; then
23476 as_expr=expr
23477 else
23478 as_expr=false
23481 rm -f conf$$ conf$$.exe conf$$.file
23482 echo >conf$$.file
23483 if ln -s conf$$.file conf$$ 2>/dev/null; then
23484 # We could just check for DJGPP; but this test a) works b) is more generic
23485 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23486 if test -f conf$$.exe; then
23487 # Don't use ln at all; we don't have any links
23488 as_ln_s='cp -p'
23489 else
23490 as_ln_s='ln -s'
23492 elif ln conf$$.file conf$$ 2>/dev/null; then
23493 as_ln_s=ln
23494 else
23495 as_ln_s='cp -p'
23497 rm -f conf$$ conf$$.exe conf$$.file
23499 if mkdir -p . 2>/dev/null; then
23500 as_mkdir_p=:
23501 else
23502 test -d ./-p && rmdir ./-p
23503 as_mkdir_p=false
23506 as_executable_p="test -f"
23508 # Sed expression to map a string onto a valid CPP name.
23509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23511 # Sed expression to map a string onto a valid variable name.
23512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23515 # IFS
23516 # We need space, tab and new line, in precisely that order.
23517 as_nl='
23519 IFS=" $as_nl"
23521 # CDPATH.
23522 $as_unset CDPATH
23524 exec 6>&1
23526 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23527 # report actual input values of CONFIG_FILES etc. instead of their
23528 # values after options handling. Logging --version etc. is OK.
23529 exec 5>>config.log
23531 echo
23532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23533 ## Running $as_me. ##
23534 _ASBOX
23535 } >&5
23536 cat >&5 <<_CSEOF
23538 This file was extended by $as_me, which was
23539 generated by GNU Autoconf 2.59. Invocation command line was
23541 CONFIG_FILES = $CONFIG_FILES
23542 CONFIG_HEADERS = $CONFIG_HEADERS
23543 CONFIG_LINKS = $CONFIG_LINKS
23544 CONFIG_COMMANDS = $CONFIG_COMMANDS
23545 $ $0 $@
23547 _CSEOF
23548 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23549 echo >&5
23550 _ACEOF
23552 # Files that config.status was made for.
23553 if test -n "$ac_config_files"; then
23554 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23557 if test -n "$ac_config_headers"; then
23558 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23561 if test -n "$ac_config_links"; then
23562 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23565 if test -n "$ac_config_commands"; then
23566 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23569 cat >>$CONFIG_STATUS <<\_ACEOF
23571 ac_cs_usage="\
23572 \`$as_me' instantiates files from templates according to the
23573 current configuration.
23575 Usage: $0 [OPTIONS] [FILE]...
23577 -h, --help print this help, then exit
23578 -V, --version print version number, then exit
23579 -q, --quiet do not print progress messages
23580 -d, --debug don't remove temporary files
23581 --recheck update $as_me by reconfiguring in the same conditions
23582 --file=FILE[:TEMPLATE]
23583 instantiate the configuration file FILE
23585 Configuration files:
23586 $config_files
23588 Configuration commands:
23589 $config_commands
23591 Report bugs to <bug-autoconf@gnu.org>."
23592 _ACEOF
23594 cat >>$CONFIG_STATUS <<_ACEOF
23595 ac_cs_version="\\
23596 config.status
23597 configured by $0, generated by GNU Autoconf 2.59,
23598 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23600 Copyright (C) 2003 Free Software Foundation, Inc.
23601 This config.status script is free software; the Free Software Foundation
23602 gives unlimited permission to copy, distribute and modify it."
23603 srcdir=$srcdir
23604 INSTALL="$INSTALL"
23605 _ACEOF
23607 cat >>$CONFIG_STATUS <<\_ACEOF
23608 # If no file are specified by the user, then we need to provide default
23609 # value. By we need to know if files were specified by the user.
23610 ac_need_defaults=:
23611 while test $# != 0
23613 case $1 in
23614 --*=*)
23615 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23616 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23617 ac_shift=:
23620 ac_option=$1
23621 ac_optarg=$2
23622 ac_shift=shift
23624 *) # This is not an option, so the user has probably given explicit
23625 # arguments.
23626 ac_option=$1
23627 ac_need_defaults=false;;
23628 esac
23630 case $ac_option in
23631 # Handling of the options.
23632 _ACEOF
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23635 ac_cs_recheck=: ;;
23636 --version | --vers* | -V )
23637 echo "$ac_cs_version"; exit 0 ;;
23638 --he | --h)
23639 # Conflict between --help and --header
23640 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23641 Try \`$0 --help' for more information." >&5
23642 echo "$as_me: error: ambiguous option: $1
23643 Try \`$0 --help' for more information." >&2;}
23644 { (exit 1); exit 1; }; };;
23645 --help | --hel | -h )
23646 echo "$ac_cs_usage"; exit 0 ;;
23647 --debug | --d* | -d )
23648 debug=: ;;
23649 --file | --fil | --fi | --f )
23650 $ac_shift
23651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23652 ac_need_defaults=false;;
23653 --header | --heade | --head | --hea )
23654 $ac_shift
23655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23656 ac_need_defaults=false;;
23657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23659 ac_cs_silent=: ;;
23661 # This is an error.
23662 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23663 Try \`$0 --help' for more information." >&5
23664 echo "$as_me: error: unrecognized option: $1
23665 Try \`$0 --help' for more information." >&2;}
23666 { (exit 1); exit 1; }; } ;;
23668 *) ac_config_targets="$ac_config_targets $1" ;;
23670 esac
23671 shift
23672 done
23674 ac_configure_extra_args=
23676 if $ac_cs_silent; then
23677 exec 6>/dev/null
23678 ac_configure_extra_args="$ac_configure_extra_args --silent"
23681 _ACEOF
23682 cat >>$CONFIG_STATUS <<_ACEOF
23683 if \$ac_cs_recheck; then
23684 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23685 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23688 _ACEOF
23690 cat >>$CONFIG_STATUS <<_ACEOF
23692 # INIT-COMMANDS section.
23695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23697 _ACEOF
23701 cat >>$CONFIG_STATUS <<\_ACEOF
23702 for ac_config_target in $ac_config_targets
23704 case "$ac_config_target" in
23705 # Handling of arguments.
23706 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23707 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23708 "include/neuro/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/neuro/Makefile" ;;
23709 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23710 "src/memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/memory/Makefile" ;;
23711 "src/video/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/video/Makefile" ;;
23712 "src/events/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/events/Makefile" ;;
23713 "src/extlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extlib/Makefile" ;;
23714 "src/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;;
23715 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23716 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23717 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23718 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23719 { (exit 1); exit 1; }; };;
23720 esac
23721 done
23723 # If the user did not use the arguments to specify the items to instantiate,
23724 # then the envvar interface is used. Set only those that are not.
23725 # We use the long form for the default assignment because of an extremely
23726 # bizarre bug on SunOS 4.1.3.
23727 if $ac_need_defaults; then
23728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23732 # Have a temporary directory for convenience. Make it in the build tree
23733 # simply because there is no reason to put it here, and in addition,
23734 # creating and moving files from /tmp can sometimes cause problems.
23735 # Create a temporary directory, and hook for its removal unless debugging.
23736 $debug ||
23738 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23739 trap '{ (exit 1); exit 1; }' 1 2 13 15
23742 # Create a (secure) tmp directory for tmp files.
23745 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23746 test -n "$tmp" && test -d "$tmp"
23747 } ||
23749 tmp=./confstat$$-$RANDOM
23750 (umask 077 && mkdir $tmp)
23751 } ||
23753 echo "$me: cannot create a temporary directory in ." >&2
23754 { (exit 1); exit 1; }
23757 _ACEOF
23759 cat >>$CONFIG_STATUS <<_ACEOF
23762 # CONFIG_FILES section.
23765 # No need to generate the scripts if there are no CONFIG_FILES.
23766 # This happens for instance when ./config.status config.h
23767 if test -n "\$CONFIG_FILES"; then
23768 # Protect against being on the right side of a sed subst in config.status.
23769 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23770 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23771 s,@SHELL@,$SHELL,;t t
23772 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23773 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23774 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23775 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23776 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23777 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23778 s,@exec_prefix@,$exec_prefix,;t t
23779 s,@prefix@,$prefix,;t t
23780 s,@program_transform_name@,$program_transform_name,;t t
23781 s,@bindir@,$bindir,;t t
23782 s,@sbindir@,$sbindir,;t t
23783 s,@libexecdir@,$libexecdir,;t t
23784 s,@datadir@,$datadir,;t t
23785 s,@sysconfdir@,$sysconfdir,;t t
23786 s,@sharedstatedir@,$sharedstatedir,;t t
23787 s,@localstatedir@,$localstatedir,;t t
23788 s,@libdir@,$libdir,;t t
23789 s,@includedir@,$includedir,;t t
23790 s,@oldincludedir@,$oldincludedir,;t t
23791 s,@infodir@,$infodir,;t t
23792 s,@mandir@,$mandir,;t t
23793 s,@build_alias@,$build_alias,;t t
23794 s,@host_alias@,$host_alias,;t t
23795 s,@target_alias@,$target_alias,;t t
23796 s,@DEFS@,$DEFS,;t t
23797 s,@ECHO_C@,$ECHO_C,;t t
23798 s,@ECHO_N@,$ECHO_N,;t t
23799 s,@ECHO_T@,$ECHO_T,;t t
23800 s,@LIBS@,$LIBS,;t t
23801 s,@NEURO_MAJOR_VERSION@,$NEURO_MAJOR_VERSION,;t t
23802 s,@NEURO_MINOR_VERSION@,$NEURO_MINOR_VERSION,;t t
23803 s,@NEURO_MICRO_VERSION@,$NEURO_MICRO_VERSION,;t t
23804 s,@NEURO_INTERFACE_AGE@,$NEURO_INTERFACE_AGE,;t t
23805 s,@NEURO_BINARY_AGE@,$NEURO_BINARY_AGE,;t t
23806 s,@NEURO_VERSION@,$NEURO_VERSION,;t t
23807 s,@LT_CURRENT@,$LT_CURRENT,;t t
23808 s,@LT_REVISION@,$LT_REVISION,;t t
23809 s,@LT_AGE@,$LT_AGE,;t t
23810 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23811 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23812 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23813 s,@CYGPATH_W@,$CYGPATH_W,;t t
23814 s,@PACKAGE@,$PACKAGE,;t t
23815 s,@VERSION@,$VERSION,;t t
23816 s,@ACLOCAL@,$ACLOCAL,;t t
23817 s,@AUTOCONF@,$AUTOCONF,;t t
23818 s,@AUTOMAKE@,$AUTOMAKE,;t t
23819 s,@AUTOHEADER@,$AUTOHEADER,;t t
23820 s,@MAKEINFO@,$MAKEINFO,;t t
23821 s,@install_sh@,$install_sh,;t t
23822 s,@STRIP@,$STRIP,;t t
23823 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23824 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23825 s,@mkdir_p@,$mkdir_p,;t t
23826 s,@AWK@,$AWK,;t t
23827 s,@SET_MAKE@,$SET_MAKE,;t t
23828 s,@am__leading_dot@,$am__leading_dot,;t t
23829 s,@AMTAR@,$AMTAR,;t t
23830 s,@am__tar@,$am__tar,;t t
23831 s,@am__untar@,$am__untar,;t t
23832 s,@build@,$build,;t t
23833 s,@build_cpu@,$build_cpu,;t t
23834 s,@build_vendor@,$build_vendor,;t t
23835 s,@build_os@,$build_os,;t t
23836 s,@host@,$host,;t t
23837 s,@host_cpu@,$host_cpu,;t t
23838 s,@host_vendor@,$host_vendor,;t t
23839 s,@host_os@,$host_os,;t t
23840 s,@CXX@,$CXX,;t t
23841 s,@CXXFLAGS@,$CXXFLAGS,;t t
23842 s,@LDFLAGS@,$LDFLAGS,;t t
23843 s,@CPPFLAGS@,$CPPFLAGS,;t t
23844 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23845 s,@EXEEXT@,$EXEEXT,;t t
23846 s,@OBJEXT@,$OBJEXT,;t t
23847 s,@DEPDIR@,$DEPDIR,;t t
23848 s,@am__include@,$am__include,;t t
23849 s,@am__quote@,$am__quote,;t t
23850 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23851 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23852 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23853 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23854 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23855 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23856 s,@CC@,$CC,;t t
23857 s,@CFLAGS@,$CFLAGS,;t t
23858 s,@ac_ct_CC@,$ac_ct_CC,;t t
23859 s,@CCDEPMODE@,$CCDEPMODE,;t t
23860 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23861 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23862 s,@CPP@,$CPP,;t t
23863 s,@LN_S@,$LN_S,;t t
23864 s,@EGREP@,$EGREP,;t t
23865 s,@ECHO@,$ECHO,;t t
23866 s,@AR@,$AR,;t t
23867 s,@ac_ct_AR@,$ac_ct_AR,;t t
23868 s,@RANLIB@,$RANLIB,;t t
23869 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23870 s,@DLLTOOL@,$DLLTOOL,;t t
23871 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23872 s,@AS@,$AS,;t t
23873 s,@ac_ct_AS@,$ac_ct_AS,;t t
23874 s,@OBJDUMP@,$OBJDUMP,;t t
23875 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23876 s,@CXXCPP@,$CXXCPP,;t t
23877 s,@F77@,$F77,;t t
23878 s,@FFLAGS@,$FFLAGS,;t t
23879 s,@ac_ct_F77@,$ac_ct_F77,;t t
23880 s,@LIBTOOL@,$LIBTOOL,;t t
23881 s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
23882 s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
23883 s,@LIBOBJS@,$LIBOBJS,;t t
23884 s,@USE_SDL_TRUE@,$USE_SDL_TRUE,;t t
23885 s,@USE_SDL_FALSE@,$USE_SDL_FALSE,;t t
23886 s,@USE_X11_TRUE@,$USE_X11_TRUE,;t t
23887 s,@USE_X11_FALSE@,$USE_X11_FALSE,;t t
23888 s,@X_CFLAGS@,$X_CFLAGS,;t t
23889 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
23890 s,@X_LIBS@,$X_LIBS,;t t
23891 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
23892 s,@NEUROFLAGS@,$NEUROFLAGS,;t t
23893 s,@NEUROLIBFLAGS@,$NEUROLIBFLAGS,;t t
23894 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23895 CEOF
23897 _ACEOF
23899 cat >>$CONFIG_STATUS <<\_ACEOF
23900 # Split the substitutions into bite-sized pieces for seds with
23901 # small command number limits, like on Digital OSF/1 and HP-UX.
23902 ac_max_sed_lines=48
23903 ac_sed_frag=1 # Number of current file.
23904 ac_beg=1 # First line for current file.
23905 ac_end=$ac_max_sed_lines # Line after last line for current file.
23906 ac_more_lines=:
23907 ac_sed_cmds=
23908 while $ac_more_lines; do
23909 if test $ac_beg -gt 1; then
23910 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23911 else
23912 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23914 if test ! -s $tmp/subs.frag; then
23915 ac_more_lines=false
23916 else
23917 # The purpose of the label and of the branching condition is to
23918 # speed up the sed processing (if there are no `@' at all, there
23919 # is no need to browse any of the substitutions).
23920 # These are the two extra sed commands mentioned above.
23921 (echo ':t
23922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23923 if test -z "$ac_sed_cmds"; then
23924 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23925 else
23926 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23928 ac_sed_frag=`expr $ac_sed_frag + 1`
23929 ac_beg=$ac_end
23930 ac_end=`expr $ac_end + $ac_max_sed_lines`
23932 done
23933 if test -z "$ac_sed_cmds"; then
23934 ac_sed_cmds=cat
23936 fi # test -n "$CONFIG_FILES"
23938 _ACEOF
23939 cat >>$CONFIG_STATUS <<\_ACEOF
23940 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23942 case $ac_file in
23943 - | *:- | *:-:* ) # input from stdin
23944 cat >$tmp/stdin
23945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23949 * ) ac_file_in=$ac_file.in ;;
23950 esac
23952 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23953 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23955 X"$ac_file" : 'X\(//\)[^/]' \| \
23956 X"$ac_file" : 'X\(//\)$' \| \
23957 X"$ac_file" : 'X\(/\)' \| \
23958 . : '\(.\)' 2>/dev/null ||
23959 echo X"$ac_file" |
23960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23962 /^X\(\/\/\)$/{ s//\1/; q; }
23963 /^X\(\/\).*/{ s//\1/; q; }
23964 s/.*/./; q'`
23965 { if $as_mkdir_p; then
23966 mkdir -p "$ac_dir"
23967 else
23968 as_dir="$ac_dir"
23969 as_dirs=
23970 while test ! -d "$as_dir"; do
23971 as_dirs="$as_dir $as_dirs"
23972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23974 X"$as_dir" : 'X\(//\)[^/]' \| \
23975 X"$as_dir" : 'X\(//\)$' \| \
23976 X"$as_dir" : 'X\(/\)' \| \
23977 . : '\(.\)' 2>/dev/null ||
23978 echo X"$as_dir" |
23979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981 /^X\(\/\/\)$/{ s//\1/; q; }
23982 /^X\(\/\).*/{ s//\1/; q; }
23983 s/.*/./; q'`
23984 done
23985 test ! -n "$as_dirs" || mkdir $as_dirs
23986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23988 { (exit 1); exit 1; }; }; }
23990 ac_builddir=.
23992 if test "$ac_dir" != .; then
23993 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23994 # A "../" for each directory in $ac_dir_suffix.
23995 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23996 else
23997 ac_dir_suffix= ac_top_builddir=
24000 case $srcdir in
24001 .) # No --srcdir option. We are building in place.
24002 ac_srcdir=.
24003 if test -z "$ac_top_builddir"; then
24004 ac_top_srcdir=.
24005 else
24006 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24007 fi ;;
24008 [\\/]* | ?:[\\/]* ) # Absolute path.
24009 ac_srcdir=$srcdir$ac_dir_suffix;
24010 ac_top_srcdir=$srcdir ;;
24011 *) # Relative path.
24012 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24013 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24014 esac
24016 # Do not use `cd foo && pwd` to compute absolute paths, because
24017 # the directories may not exist.
24018 case `pwd` in
24019 .) ac_abs_builddir="$ac_dir";;
24021 case "$ac_dir" in
24022 .) ac_abs_builddir=`pwd`;;
24023 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24024 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24025 esac;;
24026 esac
24027 case $ac_abs_builddir in
24028 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24030 case ${ac_top_builddir}. in
24031 .) ac_abs_top_builddir=$ac_abs_builddir;;
24032 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24033 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24034 esac;;
24035 esac
24036 case $ac_abs_builddir in
24037 .) ac_abs_srcdir=$ac_srcdir;;
24039 case $ac_srcdir in
24040 .) ac_abs_srcdir=$ac_abs_builddir;;
24041 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24042 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24043 esac;;
24044 esac
24045 case $ac_abs_builddir in
24046 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24048 case $ac_top_srcdir in
24049 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24050 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24051 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24052 esac;;
24053 esac
24056 case $INSTALL in
24057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24058 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24059 esac
24061 if test x"$ac_file" != x-; then
24062 { echo "$as_me:$LINENO: creating $ac_file" >&5
24063 echo "$as_me: creating $ac_file" >&6;}
24064 rm -f "$ac_file"
24066 # Let's still pretend it is `configure' which instantiates (i.e., don't
24067 # use $as_me), people would be surprised to read:
24068 # /* config.h. Generated by config.status. */
24069 if test x"$ac_file" = x-; then
24070 configure_input=
24071 else
24072 configure_input="$ac_file. "
24074 configure_input=$configure_input"Generated from `echo $ac_file_in |
24075 sed 's,.*/,,'` by configure."
24077 # First look for the input files in the build tree, otherwise in the
24078 # src tree.
24079 ac_file_inputs=`IFS=:
24080 for f in $ac_file_in; do
24081 case $f in
24082 -) echo $tmp/stdin ;;
24083 [\\/$]*)
24084 # Absolute (can't be DOS-style, as IFS=:)
24085 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24086 echo "$as_me: error: cannot find input file: $f" >&2;}
24087 { (exit 1); exit 1; }; }
24088 echo "$f";;
24089 *) # Relative
24090 if test -f "$f"; then
24091 # Build tree
24092 echo "$f"
24093 elif test -f "$srcdir/$f"; then
24094 # Source tree
24095 echo "$srcdir/$f"
24096 else
24097 # /dev/null tree
24098 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24099 echo "$as_me: error: cannot find input file: $f" >&2;}
24100 { (exit 1); exit 1; }; }
24101 fi;;
24102 esac
24103 done` || { (exit 1); exit 1; }
24104 _ACEOF
24105 cat >>$CONFIG_STATUS <<_ACEOF
24106 sed "$ac_vpsub
24107 $extrasub
24108 _ACEOF
24109 cat >>$CONFIG_STATUS <<\_ACEOF
24111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24112 s,@configure_input@,$configure_input,;t t
24113 s,@srcdir@,$ac_srcdir,;t t
24114 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24115 s,@top_srcdir@,$ac_top_srcdir,;t t
24116 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24117 s,@builddir@,$ac_builddir,;t t
24118 s,@abs_builddir@,$ac_abs_builddir,;t t
24119 s,@top_builddir@,$ac_top_builddir,;t t
24120 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24121 s,@INSTALL@,$ac_INSTALL,;t t
24122 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24123 rm -f $tmp/stdin
24124 if test x"$ac_file" != x-; then
24125 mv $tmp/out $ac_file
24126 else
24127 cat $tmp/out
24128 rm -f $tmp/out
24131 done
24132 _ACEOF
24133 cat >>$CONFIG_STATUS <<\_ACEOF
24136 # CONFIG_COMMANDS section.
24138 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24139 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24140 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24141 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24142 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24143 X"$ac_dest" : 'X\(//\)[^/]' \| \
24144 X"$ac_dest" : 'X\(//\)$' \| \
24145 X"$ac_dest" : 'X\(/\)' \| \
24146 . : '\(.\)' 2>/dev/null ||
24147 echo X"$ac_dest" |
24148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24150 /^X\(\/\/\)$/{ s//\1/; q; }
24151 /^X\(\/\).*/{ s//\1/; q; }
24152 s/.*/./; q'`
24153 { if $as_mkdir_p; then
24154 mkdir -p "$ac_dir"
24155 else
24156 as_dir="$ac_dir"
24157 as_dirs=
24158 while test ! -d "$as_dir"; do
24159 as_dirs="$as_dir $as_dirs"
24160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24162 X"$as_dir" : 'X\(//\)[^/]' \| \
24163 X"$as_dir" : 'X\(//\)$' \| \
24164 X"$as_dir" : 'X\(/\)' \| \
24165 . : '\(.\)' 2>/dev/null ||
24166 echo X"$as_dir" |
24167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24169 /^X\(\/\/\)$/{ s//\1/; q; }
24170 /^X\(\/\).*/{ s//\1/; q; }
24171 s/.*/./; q'`
24172 done
24173 test ! -n "$as_dirs" || mkdir $as_dirs
24174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24176 { (exit 1); exit 1; }; }; }
24178 ac_builddir=.
24180 if test "$ac_dir" != .; then
24181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24182 # A "../" for each directory in $ac_dir_suffix.
24183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24184 else
24185 ac_dir_suffix= ac_top_builddir=
24188 case $srcdir in
24189 .) # No --srcdir option. We are building in place.
24190 ac_srcdir=.
24191 if test -z "$ac_top_builddir"; then
24192 ac_top_srcdir=.
24193 else
24194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24195 fi ;;
24196 [\\/]* | ?:[\\/]* ) # Absolute path.
24197 ac_srcdir=$srcdir$ac_dir_suffix;
24198 ac_top_srcdir=$srcdir ;;
24199 *) # Relative path.
24200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24202 esac
24204 # Do not use `cd foo && pwd` to compute absolute paths, because
24205 # the directories may not exist.
24206 case `pwd` in
24207 .) ac_abs_builddir="$ac_dir";;
24209 case "$ac_dir" in
24210 .) ac_abs_builddir=`pwd`;;
24211 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24212 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24213 esac;;
24214 esac
24215 case $ac_abs_builddir in
24216 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24218 case ${ac_top_builddir}. in
24219 .) ac_abs_top_builddir=$ac_abs_builddir;;
24220 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24221 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24222 esac;;
24223 esac
24224 case $ac_abs_builddir in
24225 .) ac_abs_srcdir=$ac_srcdir;;
24227 case $ac_srcdir in
24228 .) ac_abs_srcdir=$ac_abs_builddir;;
24229 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24230 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24231 esac;;
24232 esac
24233 case $ac_abs_builddir in
24234 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24236 case $ac_top_srcdir in
24237 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24238 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24239 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24240 esac;;
24241 esac
24244 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24245 echo "$as_me: executing $ac_dest commands" >&6;}
24246 case $ac_dest in
24247 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24248 # Strip MF so we end up with the name of the file.
24249 mf=`echo "$mf" | sed -e 's/:.*$//'`
24250 # Check whether this is an Automake generated Makefile or not.
24251 # We used to match only the files named `Makefile.in', but
24252 # some people rename them; so instead we look at the file content.
24253 # Grep'ing the first line is not enough: some people post-process
24254 # each Makefile.in and add a new line on top of each file to say so.
24255 # So let's grep whole file.
24256 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24257 dirpart=`(dirname "$mf") 2>/dev/null ||
24258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24259 X"$mf" : 'X\(//\)[^/]' \| \
24260 X"$mf" : 'X\(//\)$' \| \
24261 X"$mf" : 'X\(/\)' \| \
24262 . : '\(.\)' 2>/dev/null ||
24263 echo X"$mf" |
24264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24266 /^X\(\/\/\)$/{ s//\1/; q; }
24267 /^X\(\/\).*/{ s//\1/; q; }
24268 s/.*/./; q'`
24269 else
24270 continue
24272 # Extract the definition of DEPDIR, am__include, and am__quote
24273 # from the Makefile without running `make'.
24274 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24275 test -z "$DEPDIR" && continue
24276 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24277 test -z "am__include" && continue
24278 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24279 # When using ansi2knr, U may be empty or an underscore; expand it
24280 U=`sed -n 's/^U = //p' < "$mf"`
24281 # Find all dependency output files, they are included files with
24282 # $(DEPDIR) in their names. We invoke sed twice because it is the
24283 # simplest approach to changing $(DEPDIR) to its actual value in the
24284 # expansion.
24285 for file in `sed -n "
24286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24288 # Make sure the directory exists.
24289 test -f "$dirpart/$file" && continue
24290 fdir=`(dirname "$file") 2>/dev/null ||
24291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24292 X"$file" : 'X\(//\)[^/]' \| \
24293 X"$file" : 'X\(//\)$' \| \
24294 X"$file" : 'X\(/\)' \| \
24295 . : '\(.\)' 2>/dev/null ||
24296 echo X"$file" |
24297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24299 /^X\(\/\/\)$/{ s//\1/; q; }
24300 /^X\(\/\).*/{ s//\1/; q; }
24301 s/.*/./; q'`
24302 { if $as_mkdir_p; then
24303 mkdir -p $dirpart/$fdir
24304 else
24305 as_dir=$dirpart/$fdir
24306 as_dirs=
24307 while test ! -d "$as_dir"; do
24308 as_dirs="$as_dir $as_dirs"
24309 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24311 X"$as_dir" : 'X\(//\)[^/]' \| \
24312 X"$as_dir" : 'X\(//\)$' \| \
24313 X"$as_dir" : 'X\(/\)' \| \
24314 . : '\(.\)' 2>/dev/null ||
24315 echo X"$as_dir" |
24316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24318 /^X\(\/\/\)$/{ s//\1/; q; }
24319 /^X\(\/\).*/{ s//\1/; q; }
24320 s/.*/./; q'`
24321 done
24322 test ! -n "$as_dirs" || mkdir $as_dirs
24323 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24324 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24325 { (exit 1); exit 1; }; }; }
24327 # echo "creating $dirpart/$file"
24328 echo '# dummy' > "$dirpart/$file"
24329 done
24330 done
24332 esac
24333 done
24334 _ACEOF
24336 cat >>$CONFIG_STATUS <<\_ACEOF
24338 { (exit 0); exit 0; }
24339 _ACEOF
24340 chmod +x $CONFIG_STATUS
24341 ac_clean_files=$ac_clean_files_save
24344 # configure is writing to config.log, and then calls config.status.
24345 # config.status does its own redirection, appending to config.log.
24346 # Unfortunately, on DOS this fails, as config.log is still kept open
24347 # by configure, so config.status won't be able to write to it; its
24348 # output is simply discarded. So we exec the FD to /dev/null,
24349 # effectively closing config.log, so it can be properly (re)opened and
24350 # appended to by config.status. When coming back to configure, we
24351 # need to make the FD available again.
24352 if test "$no_create" != yes; then
24353 ac_cs_success=:
24354 ac_config_status_args=
24355 test "$silent" = yes &&
24356 ac_config_status_args="$ac_config_status_args --quiet"
24357 exec 5>/dev/null
24358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24359 exec 5>>config.log
24360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24361 # would make configure fail if this is the last instruction.
24362 $ac_cs_success || { (exit 1); exit 1; }
24366 echo " "
24367 echo "This is the low library Neuro will use : $SELECTED_LOWLIB"
24368 echo " "