Implemented a new fixed version of the bitmap loading module which was tested and...
[neuro.git] / configure
blob2a12b051509f2fb128065bcc08d772504cfabd7e
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_subdirs_all="$ac_subdirs_all src/neuronet"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB EGREP ECHO AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE LIBOBJS USE_VIDEO_TRUE USE_VIDEO_FALSE USE_SDL_TRUE USE_SDL_FALSE USE_X11_TRUE USE_X11_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS NEUROFLAGS NEUROLDFLAGS USE_NEURONET_TRUE USE_NEURONET_FALSE subdirs LTLIBOBJS'
469 ac_subst_files=''
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
509 ac_prev=
510 for ac_option
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
523 case $ac_option in
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
542 --config-cache | -C)
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 esac
806 done
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
881 else
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures this package to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 _ACEOF
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1008 cat <<\_ACEOF
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 X features:
1016 --x-includes=DIR X include files are in DIR
1017 --x-libraries=DIR X library files are in DIR
1019 System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 _ACEOF
1025 if test -n "$ac_init_help"; then
1027 cat <<\_ACEOF
1029 Optional Features:
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-Debug enable the debugging of this program [default=no]
1042 --disable-video disables all the video particularities of this library [default=no]
1043 --disable-neuronet disables the neuronet library from being built [default=no]
1045 Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
1053 --with-lowlib=<lowlib> the low library Neuro will use;
1054 only a single value is valid here;
1055 Default is "sdl";
1056 Possible low libraries are :
1057 dummy, X11, sdl
1058 --with-x use the X Window System
1060 Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1067 CPP C preprocessor
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1077 _ACEOF
1080 if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1087 if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092 ac_dir_suffix= ac_top_builddir=
1095 case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1113 case `pwd` in
1114 .) ac_abs_builddir="$ac_dir";;
1116 case "$ac_dir" in
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1134 case $ac_srcdir in
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 esac;;
1148 esac
1150 cd $ac_dir
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1153 echo
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1156 echo
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1160 echo
1161 $ac_configure --help
1162 else
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 cd $ac_popdir
1166 done
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1171 cat <<\_ACEOF
1173 Copyright (C) 2003 Free Software Foundation, Inc.
1174 This configure script is free software; the Free Software Foundation
1175 gives unlimited permission to copy, distribute and modify it.
1176 _ACEOF
1177 exit 0
1179 exec 5>config.log
1180 cat >&5 <<_ACEOF
1181 This file contains any messages produced by compilers while
1182 running configure, to aid debugging if configure makes a mistake.
1184 It was created by $as_me, which was
1185 generated by GNU Autoconf 2.59. Invocation command line was
1187 $ $0 $@
1189 _ACEOF
1191 cat <<_ASUNAME
1192 ## --------- ##
1193 ## Platform. ##
1194 ## --------- ##
1196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 _ASUNAME
1215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 for as_dir in $PATH
1218 IFS=$as_save_IFS
1219 test -z "$as_dir" && as_dir=.
1220 echo "PATH: $as_dir"
1221 done
1223 } >&5
1225 cat >&5 <<_ACEOF
1228 ## ----------- ##
1229 ## Core tests. ##
1230 ## ----------- ##
1232 _ACEOF
1235 # Keep a trace of the command line.
1236 # Strip out --no-create and --no-recursion so they do not pile up.
1237 # Strip out --silent because we don't want to record it for future runs.
1238 # Also quote any args containing shell meta-characters.
1239 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_configure_args=
1241 ac_configure_args0=
1242 ac_configure_args1=
1243 ac_sep=
1244 ac_must_keep_next=false
1245 for ac_pass in 1 2
1247 for ac_arg
1249 case $ac_arg in
1250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 continue ;;
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 esac
1257 case $ac_pass in
1258 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1260 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261 if test $ac_must_keep_next = true; then
1262 ac_must_keep_next=false # Got value, back to normal.
1263 else
1264 case $ac_arg in
1265 *=* | --config-cache | -C | -disable-* | --disable-* \
1266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268 | -with-* | --with-* | -without-* | --without-* | --x)
1269 case "$ac_configure_args0 " in
1270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 esac
1273 -* ) ac_must_keep_next=true ;;
1274 esac
1276 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277 # Get rid of the leading space.
1278 ac_sep=" "
1280 esac
1281 done
1282 done
1283 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1286 # When interrupted or exit'd, cleanup temporary files, and complete
1287 # config.log. We remove comments because anyway the quotes in there
1288 # would cause problems or look ugly.
1289 # WARNING: Be sure not to use single quotes in there, as some shells,
1290 # such as our DU 5.0 friend, will then `close' the trap.
1291 trap 'exit_status=$?
1292 # Save into config.log some information that might help in debugging.
1294 echo
1296 cat <<\_ASBOX
1297 ## ---------------- ##
1298 ## Cache variables. ##
1299 ## ---------------- ##
1300 _ASBOX
1301 echo
1302 # The following way of writing the cache mishandles newlines in values,
1304 (set) 2>&1 |
1305 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 *ac_space=\ *)
1307 sed -n \
1308 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312 sed -n \
1313 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315 esac;
1317 echo
1319 cat <<\_ASBOX
1320 ## ----------------- ##
1321 ## Output variables. ##
1322 ## ----------------- ##
1323 _ASBOX
1324 echo
1325 for ac_var in $ac_subst_vars
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1329 done | sort
1330 echo
1332 if test -n "$ac_subst_files"; then
1333 cat <<\_ASBOX
1334 ## ------------- ##
1335 ## Output files. ##
1336 ## ------------- ##
1337 _ASBOX
1338 echo
1339 for ac_var in $ac_subst_files
1341 eval ac_val=$`echo $ac_var`
1342 echo "$ac_var='"'"'$ac_val'"'"'"
1343 done | sort
1344 echo
1347 if test -s confdefs.h; then
1348 cat <<\_ASBOX
1349 ## ----------- ##
1350 ## confdefs.h. ##
1351 ## ----------- ##
1352 _ASBOX
1353 echo
1354 sed "/^$/d" confdefs.h | sort
1355 echo
1357 test "$ac_signal" != 0 &&
1358 echo "$as_me: caught signal $ac_signal"
1359 echo "$as_me: exit $exit_status"
1360 } >&5
1361 rm -f core *.core &&
1362 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 exit $exit_status
1365 for ac_signal in 1 2 13 15; do
1366 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 done
1368 ac_signal=0
1370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1371 rm -rf conftest* confdefs.h
1372 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 echo >confdefs.h
1375 # Predefined preprocessor variables.
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 _ACEOF
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 _ACEOF
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 _ACEOF
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 _ACEOF
1402 # Let the site file select an alternate cache file if it wants to.
1403 # Prefer explicitly selected file to automatically selected ones.
1404 if test -z "$CONFIG_SITE"; then
1405 if test "x$prefix" != xNONE; then
1406 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 else
1408 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411 for ac_site_file in $CONFIG_SITE; do
1412 if test -r "$ac_site_file"; then
1413 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414 echo "$as_me: loading site script $ac_site_file" >&6;}
1415 sed 's/^/| /' "$ac_site_file" >&5
1416 . "$ac_site_file"
1418 done
1420 if test -r "$cache_file"; then
1421 # Some versions of bash will fail to source /dev/null (special
1422 # files actually), so we avoid doing that.
1423 if test -f "$cache_file"; then
1424 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425 echo "$as_me: loading cache $cache_file" >&6;}
1426 case $cache_file in
1427 [\\/]* | ?:[\\/]* ) . $cache_file;;
1428 *) . ./$cache_file;;
1429 esac
1431 else
1432 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433 echo "$as_me: creating cache $cache_file" >&6;}
1434 >$cache_file
1437 # Check that the precious variables saved in the cache have kept the same
1438 # value.
1439 ac_cache_corrupted=false
1440 for ac_var in `(set) 2>&1 |
1441 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1442 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443 eval ac_new_set=\$ac_env_${ac_var}_set
1444 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445 eval ac_new_val="\$ac_env_${ac_var}_value"
1446 case $ac_old_set,$ac_new_set in
1447 set,)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,set)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,);;
1457 if test "x$ac_old_val" != "x$ac_new_val"; then
1458 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1461 echo "$as_me: former value: $ac_old_val" >&2;}
1462 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1463 echo "$as_me: current value: $ac_new_val" >&2;}
1464 ac_cache_corrupted=:
1465 fi;;
1466 esac
1467 # Pass precious variables to config.status.
1468 if test "$ac_new_set" = set; then
1469 case $ac_new_val in
1470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 *) ac_arg=$ac_var=$ac_new_val ;;
1473 esac
1474 case " $ac_configure_args " in
1475 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1476 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 esac
1479 done
1480 if $ac_cache_corrupted; then
1481 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485 { (exit 1); exit 1; }; }
1488 ac_ext=c
1489 ac_cpp='$CPP $CPPFLAGS'
1490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514 # NEURO_MICRO_VERSION += 1 when bug fixes were done or small changes
1515 # NEURO_MINOR_VERSION += 1 when new functions and or modules were added, anything more than mere bug fixes or small changes
1516 # 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.
1518 NEURO_MAJOR_VERSION=0
1519 NEURO_MINOR_VERSION=49
1520 NEURO_MICRO_VERSION=33
1521 NEURO_INTERFACE_AGE=3
1522 NEURO_REVISION=7
1523 NEURO_BINARY_AGE=3
1524 NEURO_VERSION=$NEURO_MAJOR_VERSION.$NEURO_MINOR_VERSION.$NEURO_MICRO_VERSION
1534 # libtool versioning
1535 LT_CURRENT=$NEURO_INTERFACE_AGE
1536 LT_REVISION=$NEURO_REVISION
1537 LT_AGE=$NEURO_BINARY_AGE
1543 #AC_INIT(Neuro, $NEURO_VERSION)
1545 ac_config_headers="$ac_config_headers include/neuro/config.h"
1548 # init automake
1549 am__api_version="1.9"
1550 ac_aux_dir=
1551 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1552 if test -f $ac_dir/install-sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install-sh -c"
1555 break
1556 elif test -f $ac_dir/install.sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install.sh -c"
1559 break
1560 elif test -f $ac_dir/shtool; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/shtool install -c"
1563 break
1565 done
1566 if test -z "$ac_aux_dir"; then
1567 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1568 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1569 { (exit 1); exit 1; }; }
1571 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1572 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1573 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575 # Find a good install program. We prefer a C program (faster),
1576 # so one script is as good as another. But avoid the broken or
1577 # incompatible versions:
1578 # SysV /etc/install, /usr/sbin/install
1579 # SunOS /usr/etc/install
1580 # IRIX /sbin/install
1581 # AIX /bin/install
1582 # AmigaOS /C/install, which installs bootblocks on floppy discs
1583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1586 # OS/2's system install, which has a completely different semantic
1587 # ./install, which can be erroneously created by make from ./install.sh.
1588 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1589 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1590 if test -z "$INSTALL"; then
1591 if test "${ac_cv_path_install+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 # Account for people who put trailing slashes in PATH elements.
1600 case $as_dir/ in
1601 ./ | .// | /cC/* | \
1602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1604 /usr/ucb/* ) ;;
1606 # OSF1 and SCO ODT 3.0 have their own names for install.
1607 # Don't use installbsd from OSF since it installs stuff as root
1608 # by default.
1609 for ac_prog in ginstall scoinst install; do
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1612 if test $ac_prog = install &&
1613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614 # AIX install. It has an incompatible calling convention.
1616 elif test $ac_prog = install &&
1617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618 # program-specific install script used by HP pwplus--don't use.
1620 else
1621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1622 break 3
1625 done
1626 done
1628 esac
1629 done
1633 if test "${ac_cv_path_install+set}" = set; then
1634 INSTALL=$ac_cv_path_install
1635 else
1636 # As a last resort, use the slow shell script. We don't cache a
1637 # path for INSTALL within a source directory, because that will
1638 # break other packages using the cache if that directory is
1639 # removed, or if the path is relative.
1640 INSTALL=$ac_install_sh
1643 echo "$as_me:$LINENO: result: $INSTALL" >&5
1644 echo "${ECHO_T}$INSTALL" >&6
1646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1647 # It thinks the first close brace ends the variable substitution.
1648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1654 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1655 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1656 # Just in case
1657 sleep 1
1658 echo timestamp > conftest.file
1659 # Do `set' in a subshell so we don't clobber the current shell's
1660 # arguments. Must try -L first in case configure is actually a
1661 # symlink; some systems play weird games with the mod time of symlinks
1662 # (eg FreeBSD returns the mod time of the symlink's containing
1663 # directory).
1664 if (
1665 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1666 if test "$*" = "X"; then
1667 # -L didn't work.
1668 set X `ls -t $srcdir/configure conftest.file`
1670 rm -f conftest.file
1671 if test "$*" != "X $srcdir/configure conftest.file" \
1672 && test "$*" != "X conftest.file $srcdir/configure"; then
1674 # If neither matched, then we have a broken ls. This can happen
1675 # if, for instance, CONFIG_SHELL is bash and it inherits a
1676 # broken ls alias from the environment. This has actually
1677 # happened. Such a system could not be considered "sane".
1678 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1679 alias in your environment" >&5
1680 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1681 alias in your environment" >&2;}
1682 { (exit 1); exit 1; }; }
1685 test "$2" = conftest.file
1687 then
1688 # Ok.
1690 else
1691 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1692 Check your system clock" >&5
1693 echo "$as_me: error: newly created file is older than distributed files!
1694 Check your system clock" >&2;}
1695 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 test "$program_prefix" != NONE &&
1700 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1701 # Use a double $ so make ignores it.
1702 test "$program_suffix" != NONE &&
1703 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1704 # Double any \ or $. echo might interpret backslashes.
1705 # By default was `s,x,x', remove it if useless.
1706 cat <<\_ACEOF >conftest.sed
1707 s/[\\$]/&&/g;s/;s,x,x,$//
1708 _ACEOF
1709 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1710 rm conftest.sed
1712 # expand $ac_aux_dir to an absolute path
1713 am_aux_dir=`cd $ac_aux_dir && pwd`
1715 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1716 # Use eval to expand $SHELL
1717 if eval "$MISSING --run true"; then
1718 am_missing_run="$MISSING --run "
1719 else
1720 am_missing_run=
1721 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1722 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1725 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1726 # We used to keeping the `.' as first argument, in order to
1727 # allow $(mkdir_p) to be used without argument. As in
1728 # $(mkdir_p) $(somedir)
1729 # where $(somedir) is conditionally defined. However this is wrong
1730 # for two reasons:
1731 # 1. if the package is installed by a user who cannot write `.'
1732 # make install will fail,
1733 # 2. the above comment should most certainly read
1734 # $(mkdir_p) $(DESTDIR)$(somedir)
1735 # so it does not work when $(somedir) is undefined and
1736 # $(DESTDIR) is not.
1737 # To support the latter case, we have to write
1738 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1739 # so the `.' trick is pointless.
1740 mkdir_p='mkdir -p --'
1741 else
1742 # On NextStep and OpenStep, the `mkdir' command does not
1743 # recognize any option. It will interpret all options as
1744 # directories to create, and then abort because `.' already
1745 # exists.
1746 for d in ./-p ./--version;
1748 test -d $d && rmdir $d
1749 done
1750 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1751 if test -f "$ac_aux_dir/mkinstalldirs"; then
1752 mkdir_p='$(mkinstalldirs)'
1753 else
1754 mkdir_p='$(install_sh) -d'
1758 for ac_prog in gawk mawk nawk awk
1760 # Extract the first word of "$ac_prog", so it can be a program name with args.
1761 set dummy $ac_prog; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_AWK+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767 if test -n "$AWK"; then
1768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_AWK="$ac_prog"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1781 done
1782 done
1786 AWK=$ac_cv_prog_AWK
1787 if test -n "$AWK"; then
1788 echo "$as_me:$LINENO: result: $AWK" >&5
1789 echo "${ECHO_T}$AWK" >&6
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 test -n "$AWK" && break
1796 done
1798 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1800 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1801 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 cat >conftest.make <<\_ACEOF
1805 all:
1806 @echo 'ac_maketemp="$(MAKE)"'
1807 _ACEOF
1808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1809 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1810 if test -n "$ac_maketemp"; then
1811 eval ac_cv_prog_make_${ac_make}_set=yes
1812 else
1813 eval ac_cv_prog_make_${ac_make}_set=no
1815 rm -f conftest.make
1817 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 SET_MAKE=
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 SET_MAKE="MAKE=${MAKE-make}"
1827 rm -rf .tst 2>/dev/null
1828 mkdir .tst 2>/dev/null
1829 if test -d .tst; then
1830 am__leading_dot=.
1831 else
1832 am__leading_dot=_
1834 rmdir .tst 2>/dev/null
1836 # test to see if srcdir already configured
1837 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1838 test -f $srcdir/config.status; then
1839 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1840 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1841 { (exit 1); exit 1; }; }
1844 # test whether we have cygpath
1845 if test -z "$CYGPATH_W"; then
1846 if (cygpath --version) >/dev/null 2>/dev/null; then
1847 CYGPATH_W='cygpath -w'
1848 else
1849 CYGPATH_W=echo
1854 # Define the identity of the package.
1855 PACKAGE=neuro
1856 VERSION=$NEURO_VERSION
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE "$PACKAGE"
1861 _ACEOF
1864 cat >>confdefs.h <<_ACEOF
1865 #define VERSION "$VERSION"
1866 _ACEOF
1868 # Some tools Automake needs.
1870 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1873 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1876 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1879 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1882 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1884 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1886 # Installed binaries are usually stripped using `strip' when the user
1887 # run `make install-strip'. However `strip' might not be the right
1888 # tool to use in cross-compilation environments, therefore Automake
1889 # will honor the `STRIP' environment variable to overrule this program.
1890 if test "$cross_compiling" != no; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}strip; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_STRIP+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$STRIP"; then
1900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 STRIP=$ac_cv_prog_STRIP
1919 if test -n "$STRIP"; then
1920 echo "$as_me:$LINENO: result: $STRIP" >&5
1921 echo "${ECHO_T}$STRIP" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_STRIP"; then
1929 ac_ct_STRIP=$STRIP
1930 # Extract the first word of "strip", so it can be a program name with args.
1931 set dummy strip; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$ac_ct_STRIP"; then
1938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_STRIP="strip"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1954 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1957 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1958 if test -n "$ac_ct_STRIP"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1960 echo "${ECHO_T}$ac_ct_STRIP" >&6
1961 else
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1966 STRIP=$ac_ct_STRIP
1967 else
1968 STRIP="$ac_cv_prog_STRIP"
1972 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1974 # We need awk for the "check" target. The system "awk" is bad on
1975 # some platforms.
1976 # Always define AMTAR for backward compatibility.
1978 AMTAR=${AMTAR-"${am_missing_run}tar"}
1980 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1987 # call canonical host to get valuable informations about the current system
1988 # Make sure we can run config.sub.
1989 $ac_config_sub sun4 >/dev/null 2>&1 ||
1990 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1991 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1992 { (exit 1); exit 1; }; }
1994 echo "$as_me:$LINENO: checking build system type" >&5
1995 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1996 if test "${ac_cv_build+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 ac_cv_build_alias=$build_alias
2000 test -z "$ac_cv_build_alias" &&
2001 ac_cv_build_alias=`$ac_config_guess`
2002 test -z "$ac_cv_build_alias" &&
2003 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2004 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2005 { (exit 1); exit 1; }; }
2006 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2007 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2008 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2009 { (exit 1); exit 1; }; }
2012 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2013 echo "${ECHO_T}$ac_cv_build" >&6
2014 build=$ac_cv_build
2015 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2016 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2017 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2020 echo "$as_me:$LINENO: checking host system type" >&5
2021 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2022 if test "${ac_cv_host+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 ac_cv_host_alias=$host_alias
2026 test -z "$ac_cv_host_alias" &&
2027 ac_cv_host_alias=$ac_cv_build_alias
2028 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2029 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2030 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2031 { (exit 1); exit 1; }; }
2034 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2035 echo "${ECHO_T}$ac_cv_host" >&6
2036 host=$ac_cv_host
2037 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2038 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2039 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2043 cat >>confdefs.h <<_ACEOF
2044 #define OS "${host}"
2045 _ACEOF
2047 echo "$as_me:$LINENO: result: $host" >&5
2048 echo "${ECHO_T}$host" >&6
2050 #dnl ----- set some variables ------
2052 # check for programs
2054 # ANSI C compiler check
2055 ac_ext=c
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 if test -n "$ac_tool_prefix"; then
2061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 if test -n "$CC"; then
2069 ac_cv_prog_CC="$CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2082 done
2083 done
2087 CC=$ac_cv_prog_CC
2088 if test -n "$CC"; then
2089 echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6
2091 else
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2097 if test -z "$ac_cv_prog_CC"; then
2098 ac_ct_CC=$CC
2099 # Extract the first word of "gcc", so it can be a program name with args.
2100 set dummy gcc; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_ac_ct_CC="gcc"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2120 done
2121 done
2125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128 echo "${ECHO_T}$ac_ct_CC" >&6
2129 else
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 CC=$ac_ct_CC
2135 else
2136 CC="$ac_cv_prog_CC"
2139 if test -z "$CC"; then
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}cc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_CC="${ac_tool_prefix}cc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2162 done
2163 done
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169 echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6
2171 else
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2177 if test -z "$ac_cv_prog_CC"; then
2178 ac_ct_CC=$CC
2179 # Extract the first word of "cc", so it can be a program name with args.
2180 set dummy cc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_ac_ct_CC="cc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2200 done
2201 done
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6
2209 else
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2214 CC=$ac_ct_CC
2215 else
2216 CC="$ac_cv_prog_CC"
2220 if test -z "$CC"; then
2221 # Extract the first word of "cc", so it can be a program name with args.
2222 set dummy cc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 ac_prog_rejected=no
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2240 ac_prog_rejected=yes
2241 continue
2243 ac_cv_prog_CC="cc"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2250 if test $ac_prog_rejected = yes; then
2251 # We found a bogon in the path, so make sure we never use it.
2252 set dummy $ac_cv_prog_CC
2253 shift
2254 if test $# != 0; then
2255 # We chose a different compiler from the bogus one.
2256 # However, it has the same basename, so the bogon will be chosen
2257 # first if we set CC to just the basename; use the full file name.
2258 shift
2259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6
2268 else
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2274 if test -z "$CC"; then
2275 if test -n "$ac_tool_prefix"; then
2276 for ac_prog in cl
2278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2299 done
2300 done
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2308 else
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2313 test -n "$CC" && break
2314 done
2316 if test -z "$CC"; then
2317 ac_ct_CC=$CC
2318 for ac_prog in cl
2320 # Extract the first word of "$ac_prog", so it can be a program name with args.
2321 set dummy $ac_prog; ac_word=$2
2322 echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$ac_ct_CC"; then
2328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337 ac_cv_prog_ac_ct_CC="$ac_prog"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2341 done
2342 done
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2349 echo "${ECHO_T}$ac_ct_CC" >&6
2350 else
2351 echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6
2355 test -n "$ac_ct_CC" && break
2356 done
2358 CC=$ac_ct_CC
2364 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2370 # Provide some information about the compiler.
2371 echo "$as_me:$LINENO:" \
2372 "checking for C compiler version" >&5
2373 ac_compiler=`set X $ac_compile; echo $2`
2374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2375 (eval $ac_compiler --version </dev/null >&5) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2380 (eval $ac_compiler -v </dev/null >&5) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2385 (eval $ac_compiler -V </dev/null >&5) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2390 cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2398 main ()
2402 return 0;
2404 _ACEOF
2405 ac_clean_files_save=$ac_clean_files
2406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2407 # Try to create an executable without -o first, disregard a.out.
2408 # It will help us diagnose broken compilers, and finding out an intuition
2409 # of exeext.
2410 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2414 (eval $ac_link_default) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # Find the output, starting from the most likely. This scheme is
2419 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2420 # resort.
2422 # Be careful to initialize this variable, since it used to be cached.
2423 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2424 ac_cv_exeext=
2425 # b.out is created by i960 compilers.
2426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2428 test -f "$ac_file" || continue
2429 case $ac_file in
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2432 conftest.$ac_ext )
2433 # This is the source file.
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 # FIXME: I believe we export ac_cv_exeext for Libtool,
2442 # but it would be cool to find out if it's true. Does anybody
2443 # maintain Libtool? --akim.
2444 export ac_cv_exeext
2445 break;;
2447 break;;
2448 esac
2449 done
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&5
2456 echo "$as_me: error: C compiler cannot create executables
2457 See \`config.log' for more details." >&2;}
2458 { (exit 77); exit 77; }; }
2461 ac_exeext=$ac_cv_exeext
2462 echo "$as_me:$LINENO: result: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6
2465 # Check the compiler produces executables we can run. If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2470 # If not cross compiling, check that we can run a simple program.
2471 if test "$cross_compiling" != yes; then
2472 if { ac_try='./$ac_file'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 cross_compiling=no
2479 else
2480 if test "$cross_compiling" = maybe; then
2481 cross_compiling=yes
2482 else
2483 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot run C compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2493 echo "$as_me:$LINENO: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6
2496 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2497 ac_clean_files=$ac_clean_files_save
2498 # Check the compiler produces executables we can run. If not, either
2499 # the compiler is broken, or we cross compile.
2500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2503 echo "${ECHO_T}$cross_compiling" >&6
2505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2513 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2514 # work properly (i.e., refer to `conftest.exe'), while it won't with
2515 # `rm'.
2516 for ac_file in conftest.exe conftest conftest.*; do
2517 test -f "$ac_file" || continue
2518 case $ac_file in
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2520 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 export ac_cv_exeext
2522 break;;
2523 * ) break;;
2524 esac
2525 done
2526 else
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2534 rm -f conftest$ac_cv_exeext
2535 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2543 if test "${ac_cv_objext+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
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. */
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.o conftest.obj
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2568 case $ac_file in
2569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2571 break;;
2572 esac
2573 done
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2588 echo "${ECHO_T}$ac_cv_objext" >&6
2589 OBJEXT=$ac_cv_objext
2590 ac_objext=$OBJEXT
2591 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2592 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2604 main ()
2606 #ifndef __GNUC__
2607 choke me
2608 #endif
2611 return 0;
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_compiler_gnu=yes
2637 else
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2641 ac_compiler_gnu=no
2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2647 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2648 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2649 GCC=`test $ac_compiler_gnu = yes && echo yes`
2650 ac_test_CFLAGS=${CFLAGS+set}
2651 ac_save_CFLAGS=$CFLAGS
2652 CFLAGS="-g"
2653 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2654 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2655 if test "${ac_cv_prog_cc_g+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2666 main ()
2670 return 0;
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 ac_cv_prog_cc_g=yes
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 ac_cv_prog_cc_g=no
2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2706 if test "$ac_test_CFLAGS" = set; then
2707 CFLAGS=$ac_save_CFLAGS
2708 elif test $ac_cv_prog_cc_g = yes; then
2709 if test "$GCC" = yes; then
2710 CFLAGS="-g -O2"
2711 else
2712 CFLAGS="-g"
2714 else
2715 if test "$GCC" = yes; then
2716 CFLAGS="-O2"
2717 else
2718 CFLAGS=
2721 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2722 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2723 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 ac_cv_prog_cc_stdc=no
2727 ac_save_CC=$CC
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 #include <stdarg.h>
2735 #include <stdio.h>
2736 #include <sys/types.h>
2737 #include <sys/stat.h>
2738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2739 struct buf { int x; };
2740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742 char **p;
2743 int i;
2745 return p[i];
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2749 char *s;
2750 va_list v;
2751 va_start (v,p);
2752 s = g (p, va_arg (v,int));
2753 va_end (v);
2754 return s;
2757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2758 function prototypes and stuff, but not '\xHH' hex character constants.
2759 These don't provoke an error unfortunately, instead are silently treated
2760 as 'x'. The following induces an error, until -std1 is added to get
2761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2762 array size at least. It's necessary to write '\x00'==0 to get something
2763 that's true only with -std1. */
2764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2766 int test (int i, double x);
2767 struct s1 {int (*f) (int a);};
2768 struct s2 {int (*f) (double a);};
2769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2770 int argc;
2771 char **argv;
2773 main ()
2775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 return 0;
2779 _ACEOF
2780 # Don't try gcc -ansi; that turns off useful extensions and
2781 # breaks some systems' header files.
2782 # AIX -qlanglvl=ansi
2783 # Ultrix and OSF/1 -std1
2784 # HP-UX 10.20 and later -Ae
2785 # HP-UX older versions -Aa -D_HPUX_SOURCE
2786 # SVR4 -Xc -D__EXTENSIONS__
2787 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2789 CC="$ac_save_CC $ac_arg"
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag"
2800 || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_prog_cc_stdc=$ac_arg
2813 break
2814 else
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.err conftest.$ac_objext
2820 done
2821 rm -f conftest.$ac_ext conftest.$ac_objext
2822 CC=$ac_save_CC
2826 case "x$ac_cv_prog_cc_stdc" in
2827 x|xno)
2828 echo "$as_me:$LINENO: result: none needed" >&5
2829 echo "${ECHO_T}none needed" >&6 ;;
2831 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2832 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2833 CC="$CC $ac_cv_prog_cc_stdc" ;;
2834 esac
2836 # Some people use a C++ compiler to compile C. Since we use `exit',
2837 # in C++ we need to declare it. In case someone uses the same compiler
2838 # for both compiling C and C++ we need to have the C++ compiler decide
2839 # the declaration of exit, since it's the most demanding environment.
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #ifndef __cplusplus
2842 choke me
2843 #endif
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847 (eval $ac_compile) 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -z "$ac_c_werror_flag"
2855 || test ! -s conftest.err'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; } &&
2861 { ac_try='test -s conftest.$ac_objext'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 for ac_declaration in \
2868 '' \
2869 'extern "C" void std::exit (int) throw (); using std::exit;' \
2870 'extern "C" void std::exit (int); using std::exit;' \
2871 'extern "C" void exit (int) throw ();' \
2872 'extern "C" void exit (int);' \
2873 'void exit (int);'
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2881 $ac_declaration
2882 #include <stdlib.h>
2884 main ()
2886 exit (42);
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag"
2901 || test ! -s conftest.err'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 continue
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 $ac_declaration
2929 main ()
2931 exit (42);
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -z "$ac_c_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 break
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965 done
2966 rm -f conftest*
2967 if test -n "$ac_declaration"; then
2968 echo '#ifdef __cplusplus' >>confdefs.h
2969 echo $ac_declaration >>confdefs.h
2970 echo '#endif' >>confdefs.h
2973 else
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 DEPDIR="${am__leading_dot}deps"
2986 ac_config_commands="$ac_config_commands depfiles"
2989 am_make=${MAKE-make}
2990 cat > confinc << 'END'
2991 am__doit:
2992 @echo done
2993 .PHONY: am__doit
2995 # If we don't find an include directive, just comment out the code.
2996 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2997 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2998 am__include="#"
2999 am__quote=
3000 _am_result=none
3001 # First try GNU make style include.
3002 echo "include confinc" > confmf
3003 # We grep out `Entering directory' and `Leaving directory'
3004 # messages which can occur if `w' ends up in MAKEFLAGS.
3005 # In particular we don't look at `^make:' because GNU make might
3006 # be invoked under some other name (usually "gmake"), in which
3007 # case it prints its new name instead of `make'.
3008 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3009 am__include=include
3010 am__quote=
3011 _am_result=GNU
3013 # Now try BSD make style include.
3014 if test "$am__include" = "#"; then
3015 echo '.include "confinc"' > confmf
3016 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3017 am__include=.include
3018 am__quote="\""
3019 _am_result=BSD
3024 echo "$as_me:$LINENO: result: $_am_result" >&5
3025 echo "${ECHO_T}$_am_result" >&6
3026 rm -f confinc confmf
3028 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3029 if test "${enable_dependency_tracking+set}" = set; then
3030 enableval="$enable_dependency_tracking"
3033 if test "x$enable_dependency_tracking" != xno; then
3034 am_depcomp="$ac_aux_dir/depcomp"
3035 AMDEPBACKSLASH='\'
3039 if test "x$enable_dependency_tracking" != xno; then
3040 AMDEP_TRUE=
3041 AMDEP_FALSE='#'
3042 else
3043 AMDEP_TRUE='#'
3044 AMDEP_FALSE=
3050 depcc="$CC" am_compiler_list=
3052 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3053 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3054 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3058 # We make a subdir and do the tests there. Otherwise we can end up
3059 # making bogus files that we don't know about and never remove. For
3060 # instance it was reported that on HP-UX the gcc test will end up
3061 # making a dummy file named `D' -- because `-MD' means `put the output
3062 # in D'.
3063 mkdir conftest.dir
3064 # Copy depcomp to subdir because otherwise we won't find it if we're
3065 # using a relative directory.
3066 cp "$am_depcomp" conftest.dir
3067 cd conftest.dir
3068 # We will build objects and dependencies in a subdirectory because
3069 # it helps to detect inapplicable dependency modes. For instance
3070 # both Tru64's cc and ICC support -MD to output dependencies as a
3071 # side effect of compilation, but ICC will put the dependencies in
3072 # the current directory while Tru64 will put them in the object
3073 # directory.
3074 mkdir sub
3076 am_cv_CC_dependencies_compiler_type=none
3077 if test "$am_compiler_list" = ""; then
3078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3080 for depmode in $am_compiler_list; do
3081 # Setup a source with many dependencies, because some compilers
3082 # like to wrap large dependency lists on column 80 (with \), and
3083 # we should not choose a depcomp mode which is confused by this.
3085 # We need to recreate these files for each test, as the compiler may
3086 # overwrite some of them when testing with obscure command lines.
3087 # This happens at least with the AIX C compiler.
3088 : > sub/conftest.c
3089 for i in 1 2 3 4 5 6; do
3090 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3091 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3092 # Solaris 8's {/usr,}/bin/sh.
3093 touch sub/conftst$i.h
3094 done
3095 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3097 case $depmode in
3098 nosideeffect)
3099 # after this tag, mechanisms are not by side-effect, so they'll
3100 # only be used when explicitly requested
3101 if test "x$enable_dependency_tracking" = xyes; then
3102 continue
3103 else
3104 break
3107 none) break ;;
3108 esac
3109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3110 # mode. It turns out that the SunPro C++ compiler does not properly
3111 # handle `-M -o', and we need to detect this.
3112 if depmode=$depmode \
3113 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3114 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3115 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3116 >/dev/null 2>conftest.err &&
3117 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3118 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3119 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3120 # icc doesn't choke on unknown options, it will just issue warnings
3121 # or remarks (even with -Werror). So we grep stderr for any message
3122 # that says an option was ignored or not supported.
3123 # When given -MP, icc 7.0 and 7.1 complain thusly:
3124 # icc: Command line warning: ignoring option '-M'; no argument required
3125 # The diagnosis changed in icc 8.0:
3126 # icc: Command line remark: option '-MP' not supported
3127 if (grep 'ignoring option' conftest.err ||
3128 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3129 am_cv_CC_dependencies_compiler_type=$depmode
3130 break
3133 done
3135 cd ..
3136 rm -rf conftest.dir
3137 else
3138 am_cv_CC_dependencies_compiler_type=none
3142 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3143 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3144 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3149 test "x$enable_dependency_tracking" != xno \
3150 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3151 am__fastdepCC_TRUE=
3152 am__fastdepCC_FALSE='#'
3153 else
3154 am__fastdepCC_TRUE='#'
3155 am__fastdepCC_FALSE=
3160 # C preprocessor check
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3170 CPP=
3172 if test -z "$CPP"; then
3173 if test "${ac_cv_prog_CPP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 # Double quotes because CPP needs to be expanded
3177 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3179 ac_preproc_ok=false
3180 for ac_c_preproc_warn_flag in '' yes
3182 # Use a header file that comes with gcc, so configuring glibc
3183 # with a fresh cross-compiler works.
3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185 # <limits.h> exists even on freestanding compilers.
3186 # On the NeXT, cc -E runs the code through the compiler's parser,
3187 # not just through cpp. "Syntax error" is here to catch this case.
3188 cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h. */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3194 #ifdef __STDC__
3195 # include <limits.h>
3196 #else
3197 # include <assert.h>
3198 #endif
3199 Syntax error
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212 else
3213 ac_cpp_err=
3215 else
3216 ac_cpp_err=yes
3218 if test -z "$ac_cpp_err"; then
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 # Broken: fails on valid input.
3225 continue
3227 rm -f conftest.err conftest.$ac_ext
3229 # OK, works on sane cases. Now check whether non-existent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <ac_nonexistent.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3253 else
3254 ac_cpp_err=yes
3256 if test -z "$ac_cpp_err"; then
3257 # Broken: success on invalid input.
3258 continue
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Passes both tests.
3264 ac_preproc_ok=:
3265 break
3267 rm -f conftest.err conftest.$ac_ext
3269 done
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3273 break
3276 done
3277 ac_cv_prog_CPP=$CPP
3280 CPP=$ac_cv_prog_CPP
3281 else
3282 ac_cv_prog_CPP=$CPP
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3286 ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306 Syntax error
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319 else
3320 ac_cpp_err=
3322 else
3323 ac_cpp_err=yes
3325 if test -z "$ac_cpp_err"; then
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3332 continue
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #include <ac_nonexistent.h>
3345 _ACEOF
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 else
3358 ac_cpp_err=
3360 else
3361 ac_cpp_err=yes
3363 if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3365 continue
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3374 rm -f conftest.err conftest.$ac_ext
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3381 else
3382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 # Find a good install program. We prefer a C program (faster),
3396 # so one script is as good as another. But avoid the broken or
3397 # incompatible versions:
3398 # SysV /etc/install, /usr/sbin/install
3399 # SunOS /usr/etc/install
3400 # IRIX /sbin/install
3401 # AIX /bin/install
3402 # AmigaOS /C/install, which installs bootblocks on floppy discs
3403 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3404 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3405 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3406 # OS/2's system install, which has a completely different semantic
3407 # ./install, which can be erroneously created by make from ./install.sh.
3408 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3409 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3410 if test -z "$INSTALL"; then
3411 if test "${ac_cv_path_install+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 # Account for people who put trailing slashes in PATH elements.
3420 case $as_dir/ in
3421 ./ | .// | /cC/* | \
3422 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3423 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3424 /usr/ucb/* ) ;;
3426 # OSF1 and SCO ODT 3.0 have their own names for install.
3427 # Don't use installbsd from OSF since it installs stuff as root
3428 # by default.
3429 for ac_prog in ginstall scoinst install; do
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3432 if test $ac_prog = install &&
3433 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3434 # AIX install. It has an incompatible calling convention.
3436 elif test $ac_prog = install &&
3437 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438 # program-specific install script used by HP pwplus--don't use.
3440 else
3441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3442 break 3
3445 done
3446 done
3448 esac
3449 done
3453 if test "${ac_cv_path_install+set}" = set; then
3454 INSTALL=$ac_cv_path_install
3455 else
3456 # As a last resort, use the slow shell script. We don't cache a
3457 # path for INSTALL within a source directory, because that will
3458 # break other packages using the cache if that directory is
3459 # removed, or if the path is relative.
3460 INSTALL=$ac_install_sh
3463 echo "$as_me:$LINENO: result: $INSTALL" >&5
3464 echo "${ECHO_T}$INSTALL" >&6
3466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3467 # It thinks the first close brace ends the variable substitution.
3468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3474 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3475 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3476 LN_S=$as_ln_s
3477 if test "$LN_S" = "ln -s"; then
3478 echo "$as_me:$LINENO: result: yes" >&5
3479 echo "${ECHO_T}yes" >&6
3480 else
3481 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3482 echo "${ECHO_T}no, using $LN_S" >&6
3485 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3486 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3487 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3488 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 cat >conftest.make <<\_ACEOF
3492 all:
3493 @echo 'ac_maketemp="$(MAKE)"'
3494 _ACEOF
3495 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3496 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3497 if test -n "$ac_maketemp"; then
3498 eval ac_cv_prog_make_${ac_make}_set=yes
3499 else
3500 eval ac_cv_prog_make_${ac_make}_set=no
3502 rm -f conftest.make
3504 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507 SET_MAKE=
3508 else
3509 echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3511 SET_MAKE="MAKE=${MAKE-make}"
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_RANLIB+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 if test -n "$RANLIB"; then
3523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3541 RANLIB=$ac_cv_prog_RANLIB
3542 if test -n "$RANLIB"; then
3543 echo "$as_me:$LINENO: result: $RANLIB" >&5
3544 echo "${ECHO_T}$RANLIB" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3551 if test -z "$ac_cv_prog_RANLIB"; then
3552 ac_ct_RANLIB=$RANLIB
3553 # Extract the first word of "ranlib", so it can be a program name with args.
3554 set dummy ranlib; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 if test -n "$ac_ct_RANLIB"; then
3561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_RANLIB="ranlib"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3577 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3581 if test -n "$ac_ct_RANLIB"; then
3582 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3583 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3589 RANLIB=$ac_ct_RANLIB
3590 else
3591 RANLIB="$ac_cv_prog_RANLIB"
3595 # check for cygwin stuff
3599 # libtool setup
3600 # Check whether --enable-shared or --disable-shared was given.
3601 if test "${enable_shared+set}" = set; then
3602 enableval="$enable_shared"
3603 p=${PACKAGE-default}
3604 case $enableval in
3605 yes) enable_shared=yes ;;
3606 no) enable_shared=no ;;
3608 enable_shared=no
3609 # Look at the argument we got. We use all the common list separators.
3610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3611 for pkg in $enableval; do
3612 IFS="$lt_save_ifs"
3613 if test "X$pkg" = "X$p"; then
3614 enable_shared=yes
3616 done
3617 IFS="$lt_save_ifs"
3619 esac
3620 else
3621 enable_shared=yes
3624 # Check whether --enable-static or --disable-static was given.
3625 if test "${enable_static+set}" = set; then
3626 enableval="$enable_static"
3627 p=${PACKAGE-default}
3628 case $enableval in
3629 yes) enable_static=yes ;;
3630 no) enable_static=no ;;
3632 enable_static=no
3633 # Look at the argument we got. We use all the common list separators.
3634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3635 for pkg in $enableval; do
3636 IFS="$lt_save_ifs"
3637 if test "X$pkg" = "X$p"; then
3638 enable_static=yes
3640 done
3641 IFS="$lt_save_ifs"
3643 esac
3644 else
3645 enable_static=yes
3648 # Check whether --enable-fast-install or --disable-fast-install was given.
3649 if test "${enable_fast_install+set}" = set; then
3650 enableval="$enable_fast_install"
3651 p=${PACKAGE-default}
3652 case $enableval in
3653 yes) enable_fast_install=yes ;;
3654 no) enable_fast_install=no ;;
3656 enable_fast_install=no
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659 for pkg in $enableval; do
3660 IFS="$lt_save_ifs"
3661 if test "X$pkg" = "X$p"; then
3662 enable_fast_install=yes
3664 done
3665 IFS="$lt_save_ifs"
3667 esac
3668 else
3669 enable_fast_install=yes
3672 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3673 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3674 if test "${lt_cv_path_SED+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 # Loop through the user's path and test for sed and gsed.
3678 # Then use that list of sed's as ones to test for truncation.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for lt_ac_prog in sed gsed; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3687 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3689 done
3690 done
3691 done
3692 lt_ac_max=0
3693 lt_ac_count=0
3694 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3695 # along with /bin/sed that truncates output.
3696 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3697 test ! -f $lt_ac_sed && break
3698 cat /dev/null > conftest.in
3699 lt_ac_count=0
3700 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3701 # Check for GNU sed and select it if it is found.
3702 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3703 lt_cv_path_SED=$lt_ac_sed
3704 break
3706 while true; do
3707 cat conftest.in conftest.in >conftest.tmp
3708 mv conftest.tmp conftest.in
3709 cp conftest.in conftest.nl
3710 echo >>conftest.nl
3711 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3712 cmp -s conftest.out conftest.nl || break
3713 # 10000 chars as input seems more than enough
3714 test $lt_ac_count -gt 10 && break
3715 lt_ac_count=`expr $lt_ac_count + 1`
3716 if test $lt_ac_count -gt $lt_ac_max; then
3717 lt_ac_max=$lt_ac_count
3718 lt_cv_path_SED=$lt_ac_sed
3720 done
3721 done
3725 SED=$lt_cv_path_SED
3726 echo "$as_me:$LINENO: result: $SED" >&5
3727 echo "${ECHO_T}$SED" >&6
3729 echo "$as_me:$LINENO: checking for egrep" >&5
3730 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3731 if test "${ac_cv_prog_egrep+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3735 then ac_cv_prog_egrep='grep -E'
3736 else ac_cv_prog_egrep='egrep'
3739 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3740 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3741 EGREP=$ac_cv_prog_egrep
3745 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3746 if test "${with_gnu_ld+set}" = set; then
3747 withval="$with_gnu_ld"
3748 test "$withval" = no || with_gnu_ld=yes
3749 else
3750 with_gnu_ld=no
3752 ac_prog=ld
3753 if test "$GCC" = yes; then
3754 # Check if gcc -print-prog-name=ld gives a path.
3755 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3756 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3757 case $host in
3758 *-*-mingw*)
3759 # gcc leaves a trailing carriage return which upsets mingw
3760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3763 esac
3764 case $ac_prog in
3765 # Accept absolute paths.
3766 [\\/]* | ?:[\\/]*)
3767 re_direlt='/[^/][^/]*/\.\./'
3768 # Canonicalize the pathname of ld
3769 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3770 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3771 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3772 done
3773 test -z "$LD" && LD="$ac_prog"
3776 # If it fails, then pretend we aren't using GCC.
3777 ac_prog=ld
3780 # If it is relative, then search for the first ld in PATH.
3781 with_gnu_ld=unknown
3783 esac
3784 elif test "$with_gnu_ld" = yes; then
3785 echo "$as_me:$LINENO: checking for GNU ld" >&5
3786 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3787 else
3788 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3789 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3791 if test "${lt_cv_path_LD+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 if test -z "$LD"; then
3795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3796 for ac_dir in $PATH; do
3797 IFS="$lt_save_ifs"
3798 test -z "$ac_dir" && ac_dir=.
3799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3800 lt_cv_path_LD="$ac_dir/$ac_prog"
3801 # Check to see if the program is GNU ld. I'd rather use --version,
3802 # but apparently some GNU ld's only accept -v.
3803 # Break only if it was the GNU/non-GNU ld that we prefer.
3804 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3805 *GNU* | *'with BFD'*)
3806 test "$with_gnu_ld" != no && break
3809 test "$with_gnu_ld" != yes && break
3811 esac
3813 done
3814 IFS="$lt_save_ifs"
3815 else
3816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3820 LD="$lt_cv_path_LD"
3821 if test -n "$LD"; then
3822 echo "$as_me:$LINENO: result: $LD" >&5
3823 echo "${ECHO_T}$LD" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3828 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3829 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3830 { (exit 1); exit 1; }; }
3831 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3832 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3833 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3837 case `$LD -v 2>&1 </dev/null` in
3838 *GNU* | *'with BFD'*)
3839 lt_cv_prog_gnu_ld=yes
3842 lt_cv_prog_gnu_ld=no
3844 esac
3846 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3847 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3848 with_gnu_ld=$lt_cv_prog_gnu_ld
3851 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3852 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3853 if test "${lt_cv_ld_reload_flag+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 lt_cv_ld_reload_flag='-r'
3858 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3859 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3860 reload_flag=$lt_cv_ld_reload_flag
3861 case $reload_flag in
3862 "" | " "*) ;;
3863 *) reload_flag=" $reload_flag" ;;
3864 esac
3865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3866 case $host_os in
3867 darwin*)
3868 if test "$GCC" = yes; then
3869 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3870 else
3871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3874 esac
3876 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3877 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3878 if test "${lt_cv_path_NM+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 if test -n "$NM"; then
3882 # Let the user override the test.
3883 lt_cv_path_NM="$NM"
3884 else
3885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3886 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3887 IFS="$lt_save_ifs"
3888 test -z "$ac_dir" && ac_dir=.
3889 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3890 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3891 # Check to see if the nm accepts a BSD-compat flag.
3892 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3893 # nm: unknown option "B" ignored
3894 # Tru64's nm complains that /dev/null is an invalid object file
3895 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3896 */dev/null* | *'Invalid file or object type'*)
3897 lt_cv_path_NM="$tmp_nm -B"
3898 break
3901 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3902 */dev/null*)
3903 lt_cv_path_NM="$tmp_nm -p"
3904 break
3907 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3908 continue # so that we can try to find one that supports BSD flags
3910 esac
3911 esac
3913 done
3914 IFS="$lt_save_ifs"
3915 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3918 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3919 echo "${ECHO_T}$lt_cv_path_NM" >&6
3920 NM="$lt_cv_path_NM"
3922 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3923 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3924 if test "${lt_cv_deplibs_check_method+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 lt_cv_file_magic_cmd='$MAGIC_CMD'
3928 lt_cv_file_magic_test_file=
3929 lt_cv_deplibs_check_method='unknown'
3930 # Need to set the preceding variable on all platforms that support
3931 # interlibrary dependencies.
3932 # 'none' -- dependencies not supported.
3933 # `unknown' -- same as none, but documents that we really don't know.
3934 # 'pass_all' -- all dependencies passed with no checks.
3935 # 'test_compile' -- check by making test program.
3936 # 'file_magic [[regex]]' -- check by looking for files in library path
3937 # which responds to the $file_magic_cmd with a given extended regex.
3938 # If you have `file' or equivalent on your system and you're not sure
3939 # whether `pass_all' will *always* work, you probably want this one.
3941 case $host_os in
3942 aix4* | aix5*)
3943 lt_cv_deplibs_check_method=pass_all
3946 beos*)
3947 lt_cv_deplibs_check_method=pass_all
3950 bsdi[45]*)
3951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3952 lt_cv_file_magic_cmd='/usr/bin/file -L'
3953 lt_cv_file_magic_test_file=/shlib/libc.so
3956 cygwin*)
3957 # func_win32_libid is a shell function defined in ltmain.sh
3958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3959 lt_cv_file_magic_cmd='func_win32_libid'
3962 mingw* | pw32*)
3963 # Base MSYS/MinGW do not provide the 'file' command needed by
3964 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3965 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3966 lt_cv_file_magic_cmd='$OBJDUMP -f'
3969 darwin* | rhapsody*)
3970 lt_cv_deplibs_check_method=pass_all
3973 freebsd* | kfreebsd*-gnu)
3974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3975 case $host_cpu in
3976 i*86 )
3977 # Not sure whether the presence of OpenBSD here was a mistake.
3978 # Let's accept both of them until this is cleared up.
3979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3980 lt_cv_file_magic_cmd=/usr/bin/file
3981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3983 esac
3984 else
3985 lt_cv_deplibs_check_method=pass_all
3989 gnu*)
3990 lt_cv_deplibs_check_method=pass_all
3993 hpux10.20* | hpux11*)
3994 lt_cv_file_magic_cmd=/usr/bin/file
3995 case "$host_cpu" in
3996 ia64*)
3997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4000 hppa*64*)
4001 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]'
4002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4008 esac
4011 irix5* | irix6* | nonstopux*)
4012 case $LD in
4013 *-32|*"-32 ") libmagic=32-bit;;
4014 *-n32|*"-n32 ") libmagic=N32;;
4015 *-64|*"-64 ") libmagic=64-bit;;
4016 *) libmagic=never-match;;
4017 esac
4018 lt_cv_deplibs_check_method=pass_all
4021 # This must be Linux ELF.
4022 linux*)
4023 lt_cv_deplibs_check_method=pass_all
4026 netbsd*)
4027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4029 else
4030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4034 newos6*)
4035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4036 lt_cv_file_magic_cmd=/usr/bin/file
4037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4040 nto-qnx*)
4041 lt_cv_deplibs_check_method=unknown
4044 openbsd*)
4045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4047 else
4048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4052 osf3* | osf4* | osf5*)
4053 lt_cv_deplibs_check_method=pass_all
4056 sco3.2v5*)
4057 lt_cv_deplibs_check_method=pass_all
4060 solaris*)
4061 lt_cv_deplibs_check_method=pass_all
4064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4065 case $host_vendor in
4066 motorola)
4067 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]'
4068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4070 ncr)
4071 lt_cv_deplibs_check_method=pass_all
4073 sequent)
4074 lt_cv_file_magic_cmd='/bin/file'
4075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4077 sni)
4078 lt_cv_file_magic_cmd='/bin/file'
4079 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4080 lt_cv_file_magic_test_file=/lib/libc.so
4082 siemens)
4083 lt_cv_deplibs_check_method=pass_all
4085 esac
4088 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4089 lt_cv_deplibs_check_method=pass_all
4091 esac
4094 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4095 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4096 file_magic_cmd=$lt_cv_file_magic_cmd
4097 deplibs_check_method=$lt_cv_deplibs_check_method
4098 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4103 # If no C compiler was specified, use CC.
4104 LTCC=${LTCC-"$CC"}
4106 # Allow CC to be a program name with arguments.
4107 compiler=$CC
4110 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4111 if test "${enable_libtool_lock+set}" = set; then
4112 enableval="$enable_libtool_lock"
4115 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4117 # Some flags need to be propagated to the compiler or linker for good
4118 # libtool support.
4119 case $host in
4120 ia64-*-hpux*)
4121 # Find out which ABI we are using.
4122 echo 'int i;' > conftest.$ac_ext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; then
4128 case `/usr/bin/file conftest.$ac_objext` in
4129 *ELF-32*)
4130 HPUX_IA64_MODE="32"
4132 *ELF-64*)
4133 HPUX_IA64_MODE="64"
4135 esac
4137 rm -rf conftest*
4139 *-*-irix6*)
4140 # Find out which ABI we are using.
4141 echo '#line 4141 "configure"' > conftest.$ac_ext
4142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4143 (eval $ac_compile) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; then
4147 if test "$lt_cv_prog_gnu_ld" = yes; then
4148 case `/usr/bin/file conftest.$ac_objext` in
4149 *32-bit*)
4150 LD="${LD-ld} -melf32bsmip"
4152 *N32*)
4153 LD="${LD-ld} -melf32bmipn32"
4155 *64-bit*)
4156 LD="${LD-ld} -melf64bmip"
4158 esac
4159 else
4160 case `/usr/bin/file conftest.$ac_objext` in
4161 *32-bit*)
4162 LD="${LD-ld} -32"
4164 *N32*)
4165 LD="${LD-ld} -n32"
4167 *64-bit*)
4168 LD="${LD-ld} -64"
4170 esac
4173 rm -rf conftest*
4176 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4177 # Find out which ABI we are using.
4178 echo 'int i;' > conftest.$ac_ext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; then
4184 case "`/usr/bin/file conftest.o`" in
4185 *32-bit*)
4186 case $host in
4187 x86_64-*linux*)
4188 LD="${LD-ld} -m elf_i386"
4190 ppc64-*linux*|powerpc64-*linux*)
4191 LD="${LD-ld} -m elf32ppclinux"
4193 s390x-*linux*)
4194 LD="${LD-ld} -m elf_s390"
4196 sparc64-*linux*)
4197 LD="${LD-ld} -m elf32_sparc"
4199 esac
4201 *64-bit*)
4202 case $host in
4203 x86_64-*linux*)
4204 LD="${LD-ld} -m elf_x86_64"
4206 ppc*-*linux*|powerpc*-*linux*)
4207 LD="${LD-ld} -m elf64ppc"
4209 s390*-*linux*)
4210 LD="${LD-ld} -m elf64_s390"
4212 sparc*-*linux*)
4213 LD="${LD-ld} -m elf64_sparc"
4215 esac
4217 esac
4219 rm -rf conftest*
4222 *-*-sco3.2v5*)
4223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4224 SAVE_CFLAGS="$CFLAGS"
4225 CFLAGS="$CFLAGS -belf"
4226 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4227 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4228 if test "${lt_cv_cc_needs_belf+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4245 main ()
4249 return 0;
4251 _ACEOF
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag"
4262 || test ! -s conftest.err'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 lt_cv_cc_needs_belf=yes
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 lt_cv_cc_needs_belf=no
4281 rm -f conftest.err conftest.$ac_objext \
4282 conftest$ac_exeext conftest.$ac_ext
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4291 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4294 CFLAGS="$SAVE_CFLAGS"
4297 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4298 if test -n "$ac_tool_prefix"; then
4299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 if test -n "$DLLTOOL"; then
4307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4325 DLLTOOL=$ac_cv_prog_DLLTOOL
4326 if test -n "$DLLTOOL"; then
4327 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4328 echo "${ECHO_T}$DLLTOOL" >&6
4329 else
4330 echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4335 if test -z "$ac_cv_prog_DLLTOOL"; then
4336 ac_ct_DLLTOOL=$DLLTOOL
4337 # Extract the first word of "dlltool", so it can be a program name with args.
4338 set dummy dlltool; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 if test -n "$ac_ct_DLLTOOL"; then
4345 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4361 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4364 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4365 if test -n "$ac_ct_DLLTOOL"; then
4366 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4367 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4368 else
4369 echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6
4373 DLLTOOL=$ac_ct_DLLTOOL
4374 else
4375 DLLTOOL="$ac_cv_prog_DLLTOOL"
4378 if test -n "$ac_tool_prefix"; then
4379 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4380 set dummy ${ac_tool_prefix}as; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_AS+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 if test -n "$AS"; then
4387 ac_cv_prog_AS="$AS" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_AS="${ac_tool_prefix}as"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4405 AS=$ac_cv_prog_AS
4406 if test -n "$AS"; then
4407 echo "$as_me:$LINENO: result: $AS" >&5
4408 echo "${ECHO_T}$AS" >&6
4409 else
4410 echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4415 if test -z "$ac_cv_prog_AS"; then
4416 ac_ct_AS=$AS
4417 # Extract the first word of "as", so it can be a program name with args.
4418 set dummy as; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 if test -n "$ac_ct_AS"; then
4425 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_ac_ct_AS="as"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4441 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4444 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4445 if test -n "$ac_ct_AS"; then
4446 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4447 echo "${ECHO_T}$ac_ct_AS" >&6
4448 else
4449 echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4453 AS=$ac_ct_AS
4454 else
4455 AS="$ac_cv_prog_AS"
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4460 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$OBJDUMP"; then
4467 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4485 OBJDUMP=$ac_cv_prog_OBJDUMP
4486 if test -n "$OBJDUMP"; then
4487 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4488 echo "${ECHO_T}$OBJDUMP" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6
4495 if test -z "$ac_cv_prog_OBJDUMP"; then
4496 ac_ct_OBJDUMP=$OBJDUMP
4497 # Extract the first word of "objdump", so it can be a program name with args.
4498 set dummy objdump; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 if test -n "$ac_ct_OBJDUMP"; then
4505 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4518 done
4519 done
4521 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4524 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4525 if test -n "$ac_ct_OBJDUMP"; then
4526 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4527 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4528 else
4529 echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4533 OBJDUMP=$ac_ct_OBJDUMP
4534 else
4535 OBJDUMP="$ac_cv_prog_OBJDUMP"
4540 esac
4542 need_locks="$enable_libtool_lock"
4546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4548 if test "${ac_cv_header_stdc+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <stdlib.h>
4558 #include <stdarg.h>
4559 #include <string.h>
4560 #include <float.h>
4563 main ()
4567 return 0;
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_header_stdc=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_cv_header_stdc=no
4599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601 if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 #include <string.h>
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then
4615 else
4616 ac_cv_header_stdc=no
4618 rm -f conftest*
4622 if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #include <stdlib.h>
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then
4636 else
4637 ac_cv_header_stdc=no
4639 rm -f conftest*
4643 if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then
4647 else
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <ctype.h>
4655 #if ((' ' & 0x0FF) == 0x020)
4656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658 #else
4659 # define ISLOWER(c) \
4660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
4663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664 #endif
4666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668 main ()
4670 int i;
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
4673 || toupper (i) != TOUPPER (i))
4674 exit(2);
4675 exit (0);
4677 _ACEOF
4678 rm -f conftest$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4690 else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 ( exit $ac_status )
4696 ac_cv_header_stdc=no
4698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4704 if test $ac_cv_header_stdc = yes; then
4706 cat >>confdefs.h <<\_ACEOF
4707 #define STDC_HEADERS 1
4708 _ACEOF
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723 inttypes.h stdint.h unistd.h
4725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 echo "$as_me:$LINENO: checking for $ac_header" >&5
4727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4739 #include <$ac_header>
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 eval "$as_ac_Header=yes"
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 eval "$as_ac_Header=no"
4770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4775 cat >>confdefs.h <<_ACEOF
4776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 _ACEOF
4781 done
4785 for ac_header in dlfcn.h
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4789 echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 else
4797 # Is the header compilable?
4798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 $ac_includes_default
4807 #include <$ac_header>
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_header_compiler=yes
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 ac_header_compiler=no
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840 echo "${ECHO_T}$ac_header_compiler" >&6
4842 # Is the header present?
4843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <$ac_header>
4852 _ACEOF
4853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } >/dev/null; then
4861 if test -s conftest.err; then
4862 ac_cpp_err=$ac_c_preproc_warn_flag
4863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864 else
4865 ac_cpp_err=
4867 else
4868 ac_cpp_err=yes
4870 if test -z "$ac_cpp_err"; then
4871 ac_header_preproc=yes
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4876 ac_header_preproc=no
4878 rm -f conftest.err conftest.$ac_ext
4879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4880 echo "${ECHO_T}$ac_header_preproc" >&6
4882 # So? What about this header?
4883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4884 yes:no: )
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4889 ac_header_preproc=yes
4891 no:yes:* )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4905 cat <<\_ASBOX
4906 ## ------------------------------------------ ##
4907 ## Report this to the AC_PACKAGE_NAME lists. ##
4908 ## ------------------------------------------ ##
4909 _ASBOX
4911 sed "s/^/$as_me: WARNING: /" >&2
4913 esac
4914 echo "$as_me:$LINENO: checking for $ac_header" >&5
4915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 eval "$as_ac_Header=\$ac_header_preproc"
4921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 _ACEOF
4932 done
4934 ac_ext=cc
4935 ac_cpp='$CXXCPP $CPPFLAGS'
4936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4939 if test -n "$ac_tool_prefix"; then
4940 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_CXX+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if test -n "$CXX"; then
4950 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4968 CXX=$ac_cv_prog_CXX
4969 if test -n "$CXX"; then
4970 echo "$as_me:$LINENO: result: $CXX" >&5
4971 echo "${ECHO_T}$CXX" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 test -n "$CXX" && break
4978 done
4980 if test -z "$CXX"; then
4981 ac_ct_CXX=$CXX
4982 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 if test -n "$ac_ct_CXX"; then
4992 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_ac_ct_CXX="$ac_prog"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5011 if test -n "$ac_ct_CXX"; then
5012 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5013 echo "${ECHO_T}$ac_ct_CXX" >&6
5014 else
5015 echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5019 test -n "$ac_ct_CXX" && break
5020 done
5021 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5023 CXX=$ac_ct_CXX
5027 # Provide some information about the compiler.
5028 echo "$as_me:$LINENO:" \
5029 "checking for C++ compiler version" >&5
5030 ac_compiler=`set X $ac_compile; echo $2`
5031 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5032 (eval $ac_compiler --version </dev/null >&5) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }
5036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5037 (eval $ac_compiler -v </dev/null >&5) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }
5041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5042 (eval $ac_compiler -V </dev/null >&5) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5047 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5048 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5049 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5060 main ()
5062 #ifndef __GNUC__
5063 choke me
5064 #endif
5067 return 0;
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_cxx_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 ac_compiler_gnu=yes
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 ac_compiler_gnu=no
5099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5103 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5104 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5105 GXX=`test $ac_compiler_gnu = yes && echo yes`
5106 ac_test_CXXFLAGS=${CXXFLAGS+set}
5107 ac_save_CXXFLAGS=$CXXFLAGS
5108 CXXFLAGS="-g"
5109 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5110 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5111 if test "${ac_cv_prog_cxx_g+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5122 main ()
5126 return 0;
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_cxx_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_prog_cxx_g=yes
5152 else
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ac_cv_prog_cxx_g=no
5158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5161 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5162 if test "$ac_test_CXXFLAGS" = set; then
5163 CXXFLAGS=$ac_save_CXXFLAGS
5164 elif test $ac_cv_prog_cxx_g = yes; then
5165 if test "$GXX" = yes; then
5166 CXXFLAGS="-g -O2"
5167 else
5168 CXXFLAGS="-g"
5170 else
5171 if test "$GXX" = yes; then
5172 CXXFLAGS="-O2"
5173 else
5174 CXXFLAGS=
5177 for ac_declaration in \
5178 '' \
5179 'extern "C" void std::exit (int) throw (); using std::exit;' \
5180 'extern "C" void std::exit (int); using std::exit;' \
5181 'extern "C" void exit (int) throw ();' \
5182 'extern "C" void exit (int);' \
5183 'void exit (int);'
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 $ac_declaration
5192 #include <stdlib.h>
5194 main ()
5196 exit (42);
5198 return 0;
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203 (eval $ac_compile) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_cxx_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5228 continue
5230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_declaration
5239 main ()
5241 exit (42);
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_cxx_werror_flag"
5256 || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 break
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275 done
5276 rm -f conftest*
5277 if test -n "$ac_declaration"; then
5278 echo '#ifdef __cplusplus' >>confdefs.h
5279 echo $ac_declaration >>confdefs.h
5280 echo '#endif' >>confdefs.h
5283 ac_ext=cc
5284 ac_cpp='$CXXCPP $CPPFLAGS'
5285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5289 depcc="$CXX" am_compiler_list=
5291 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5292 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5293 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5297 # We make a subdir and do the tests there. Otherwise we can end up
5298 # making bogus files that we don't know about and never remove. For
5299 # instance it was reported that on HP-UX the gcc test will end up
5300 # making a dummy file named `D' -- because `-MD' means `put the output
5301 # in D'.
5302 mkdir conftest.dir
5303 # Copy depcomp to subdir because otherwise we won't find it if we're
5304 # using a relative directory.
5305 cp "$am_depcomp" conftest.dir
5306 cd conftest.dir
5307 # We will build objects and dependencies in a subdirectory because
5308 # it helps to detect inapplicable dependency modes. For instance
5309 # both Tru64's cc and ICC support -MD to output dependencies as a
5310 # side effect of compilation, but ICC will put the dependencies in
5311 # the current directory while Tru64 will put them in the object
5312 # directory.
5313 mkdir sub
5315 am_cv_CXX_dependencies_compiler_type=none
5316 if test "$am_compiler_list" = ""; then
5317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5319 for depmode in $am_compiler_list; do
5320 # Setup a source with many dependencies, because some compilers
5321 # like to wrap large dependency lists on column 80 (with \), and
5322 # we should not choose a depcomp mode which is confused by this.
5324 # We need to recreate these files for each test, as the compiler may
5325 # overwrite some of them when testing with obscure command lines.
5326 # This happens at least with the AIX C compiler.
5327 : > sub/conftest.c
5328 for i in 1 2 3 4 5 6; do
5329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5331 # Solaris 8's {/usr,}/bin/sh.
5332 touch sub/conftst$i.h
5333 done
5334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5336 case $depmode in
5337 nosideeffect)
5338 # after this tag, mechanisms are not by side-effect, so they'll
5339 # only be used when explicitly requested
5340 if test "x$enable_dependency_tracking" = xyes; then
5341 continue
5342 else
5343 break
5346 none) break ;;
5347 esac
5348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5349 # mode. It turns out that the SunPro C++ compiler does not properly
5350 # handle `-M -o', and we need to detect this.
5351 if depmode=$depmode \
5352 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5354 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5355 >/dev/null 2>conftest.err &&
5356 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5357 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5358 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5359 # icc doesn't choke on unknown options, it will just issue warnings
5360 # or remarks (even with -Werror). So we grep stderr for any message
5361 # that says an option was ignored or not supported.
5362 # When given -MP, icc 7.0 and 7.1 complain thusly:
5363 # icc: Command line warning: ignoring option '-M'; no argument required
5364 # The diagnosis changed in icc 8.0:
5365 # icc: Command line remark: option '-MP' not supported
5366 if (grep 'ignoring option' conftest.err ||
5367 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5368 am_cv_CXX_dependencies_compiler_type=$depmode
5369 break
5372 done
5374 cd ..
5375 rm -rf conftest.dir
5376 else
5377 am_cv_CXX_dependencies_compiler_type=none
5381 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5382 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5383 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5388 test "x$enable_dependency_tracking" != xno \
5389 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5390 am__fastdepCXX_TRUE=
5391 am__fastdepCXX_FALSE='#'
5392 else
5393 am__fastdepCXX_TRUE='#'
5394 am__fastdepCXX_FALSE=
5400 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5401 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5402 (test "X$CXX" != "Xg++"))) ; then
5403 ac_ext=cc
5404 ac_cpp='$CXXCPP $CPPFLAGS'
5405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5408 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5409 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5410 if test -z "$CXXCPP"; then
5411 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 # Double quotes because CXXCPP needs to be expanded
5415 for CXXCPP in "$CXX -E" "/lib/cpp"
5417 ac_preproc_ok=false
5418 for ac_cxx_preproc_warn_flag in '' yes
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #ifdef __STDC__
5433 # include <limits.h>
5434 #else
5435 # include <assert.h>
5436 #endif
5437 Syntax error
5438 _ACEOF
5439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } >/dev/null; then
5447 if test -s conftest.err; then
5448 ac_cpp_err=$ac_cxx_preproc_warn_flag
5449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5450 else
5451 ac_cpp_err=
5453 else
5454 ac_cpp_err=yes
5456 if test -z "$ac_cpp_err"; then
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 # Broken: fails on valid input.
5463 continue
5465 rm -f conftest.err conftest.$ac_ext
5467 # OK, works on sane cases. Now check whether non-existent headers
5468 # can be detected and how.
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } >/dev/null; then
5485 if test -s conftest.err; then
5486 ac_cpp_err=$ac_cxx_preproc_warn_flag
5487 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5488 else
5489 ac_cpp_err=
5491 else
5492 ac_cpp_err=yes
5494 if test -z "$ac_cpp_err"; then
5495 # Broken: success on invalid input.
5496 continue
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 # Passes both tests.
5502 ac_preproc_ok=:
5503 break
5505 rm -f conftest.err conftest.$ac_ext
5507 done
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.$ac_ext
5510 if $ac_preproc_ok; then
5511 break
5514 done
5515 ac_cv_prog_CXXCPP=$CXXCPP
5518 CXXCPP=$ac_cv_prog_CXXCPP
5519 else
5520 ac_cv_prog_CXXCPP=$CXXCPP
5522 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5523 echo "${ECHO_T}$CXXCPP" >&6
5524 ac_preproc_ok=false
5525 for ac_cxx_preproc_warn_flag in '' yes
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544 Syntax error
5545 _ACEOF
5546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } >/dev/null; then
5554 if test -s conftest.err; then
5555 ac_cpp_err=$ac_cxx_preproc_warn_flag
5556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5557 else
5558 ac_cpp_err=
5560 else
5561 ac_cpp_err=yes
5563 if test -z "$ac_cpp_err"; then
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 # Broken: fails on valid input.
5570 continue
5572 rm -f conftest.err conftest.$ac_ext
5574 # OK, works on sane cases. Now check whether non-existent headers
5575 # can be detected and how.
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <ac_nonexistent.h>
5583 _ACEOF
5584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_cxx_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5595 else
5596 ac_cpp_err=
5598 else
5599 ac_cpp_err=yes
5601 if test -z "$ac_cpp_err"; then
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5612 rm -f conftest.err conftest.$ac_ext
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then
5619 else
5620 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5623 See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
5627 ac_ext=cc
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5636 ac_ext=f
5637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5640 if test -n "$ac_tool_prefix"; then
5641 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_F77+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 if test -n "$F77"; then
5651 ac_cv_prog_F77="$F77" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5669 F77=$ac_cv_prog_F77
5670 if test -n "$F77"; then
5671 echo "$as_me:$LINENO: result: $F77" >&5
5672 echo "${ECHO_T}$F77" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5678 test -n "$F77" && break
5679 done
5681 if test -z "$F77"; then
5682 ac_ct_F77=$F77
5683 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy $ac_prog; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$ac_ct_F77"; then
5693 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_F77="$ac_prog"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5711 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5712 if test -n "$ac_ct_F77"; then
5713 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5714 echo "${ECHO_T}$ac_ct_F77" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5720 test -n "$ac_ct_F77" && break
5721 done
5723 F77=$ac_ct_F77
5727 # Provide some information about the compiler.
5728 echo "$as_me:5728:" \
5729 "checking for Fortran 77 compiler version" >&5
5730 ac_compiler=`set X $ac_compile; echo $2`
5731 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5732 (eval $ac_compiler --version </dev/null >&5) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }
5736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5737 (eval $ac_compiler -v </dev/null >&5) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }
5741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5742 (eval $ac_compiler -V </dev/null >&5) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }
5746 rm -f a.out
5748 # If we don't use `.F' as extension, the preprocessor is not run on the
5749 # input file. (Note that this only needs to work for GNU compilers.)
5750 ac_save_ext=$ac_ext
5751 ac_ext=F
5752 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5753 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5754 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757 cat >conftest.$ac_ext <<_ACEOF
5758 program main
5759 #ifndef __GNUC__
5760 choke me
5761 #endif
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_f77_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_compiler_gnu=yes
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 ac_compiler_gnu=no
5794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5798 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5799 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5800 ac_ext=$ac_save_ext
5801 ac_test_FFLAGS=${FFLAGS+set}
5802 ac_save_FFLAGS=$FFLAGS
5803 FFLAGS=
5804 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5805 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5806 if test "${ac_cv_prog_f77_g+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 FFLAGS=-g
5810 cat >conftest.$ac_ext <<_ACEOF
5811 program main
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_f77_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_cv_prog_f77_g=yes
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_cv_prog_f77_g=no
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5848 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5849 if test "$ac_test_FFLAGS" = set; then
5850 FFLAGS=$ac_save_FFLAGS
5851 elif test $ac_cv_prog_f77_g = yes; then
5852 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5853 FFLAGS="-g -O2"
5854 else
5855 FFLAGS="-g"
5857 else
5858 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5859 FFLAGS="-O2"
5860 else
5861 FFLAGS=
5865 G77=`test $ac_compiler_gnu = yes && echo yes`
5866 ac_ext=c
5867 ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5876 # find the maximum length of command line arguments
5877 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5878 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5879 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5883 teststring="ABCD"
5885 case $build_os in
5886 msdosdjgpp*)
5887 # On DJGPP, this test can blow up pretty badly due to problems in libc
5888 # (any single argument exceeding 2000 bytes causes a buffer overrun
5889 # during glob expansion). Even if it were fixed, the result of this
5890 # check would be larger than it should be.
5891 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5894 gnu*)
5895 # Under GNU Hurd, this test is not required because there is
5896 # no limit to the length of command line arguments.
5897 # Libtool will interpret -1 as no limit whatsoever
5898 lt_cv_sys_max_cmd_len=-1;
5901 cygwin* | mingw*)
5902 # On Win9x/ME, this test blows up -- it succeeds, but takes
5903 # about 5 minutes as the teststring grows exponentially.
5904 # Worse, since 9x/ME are not pre-emptively multitasking,
5905 # you end up with a "frozen" computer, even though with patience
5906 # the test eventually succeeds (with a max line length of 256k).
5907 # Instead, let's just punt: use the minimum linelength reported by
5908 # all of the supported platforms: 8192 (on NT/2K/XP).
5909 lt_cv_sys_max_cmd_len=8192;
5912 amigaos*)
5913 # On AmigaOS with pdksh, this test takes hours, literally.
5914 # So we just punt and use a minimum line length of 8192.
5915 lt_cv_sys_max_cmd_len=8192;
5918 netbsd* | freebsd* | openbsd* | darwin* )
5919 # This has been around since 386BSD, at least. Likely further.
5920 if test -x /sbin/sysctl; then
5921 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5922 elif test -x /usr/sbin/sysctl; then
5923 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5924 else
5925 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5927 # And add a safety zone
5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5932 # If test is not a shell built-in, we'll probably end up computing a
5933 # maximum length that is only half of the actual maximum length, but
5934 # we can't tell.
5935 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5936 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5937 = "XX$teststring") >/dev/null 2>&1 &&
5938 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5939 lt_cv_sys_max_cmd_len=$new_result &&
5940 test $i != 17 # 1/2 MB should be enough
5942 i=`expr $i + 1`
5943 teststring=$teststring$teststring
5944 done
5945 teststring=
5946 # Add a significant safety factor because C++ compilers can tack on massive
5947 # amounts of additional arguments before passing them to the linker.
5948 # It appears as though 1/2 is a usable value.
5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5951 esac
5955 if test -n $lt_cv_sys_max_cmd_len ; then
5956 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5957 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5958 else
5959 echo "$as_me:$LINENO: result: none" >&5
5960 echo "${ECHO_T}none" >&6
5966 # Check for command to grab the raw symbol name followed by C symbol from nm.
5967 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5968 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5969 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5973 # These are sane defaults that work on at least a few old systems.
5974 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5976 # Character class describing NM global symbol codes.
5977 symcode='[BCDEGRST]'
5979 # Regexp to match symbols that can be accessed directly from C.
5980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5982 # Transform the above into a raw symbol and a C symbol.
5983 symxfrm='\1 \2\3 \3'
5985 # Transform an extracted symbol line into a proper C declaration
5986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5988 # Transform an extracted symbol line into symbol name and symbol address
5989 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'"
5991 # Define system-specific variables.
5992 case $host_os in
5993 aix*)
5994 symcode='[BCDT]'
5996 cygwin* | mingw* | pw32*)
5997 symcode='[ABCDGISTW]'
5999 hpux*) # Its linker distinguishes data from code symbols
6000 if test "$host_cpu" = ia64; then
6001 symcode='[ABCDEGRST]'
6003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6004 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'"
6006 linux*)
6007 if test "$host_cpu" = ia64; then
6008 symcode='[ABCDGIRSTW]'
6009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6010 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'"
6013 irix* | nonstopux*)
6014 symcode='[BCDEGRST]'
6016 osf*)
6017 symcode='[BCDEGQRST]'
6019 solaris* | sysv5*)
6020 symcode='[BDRT]'
6022 sysv4)
6023 symcode='[DFNSTU]'
6025 esac
6027 # Handle CRLF in mingw tool chain
6028 opt_cr=
6029 case $build_os in
6030 mingw*)
6031 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6033 esac
6035 # If we're using GNU nm, then use its standard symbol codes.
6036 case `$NM -V 2>&1` in
6037 *GNU* | *'with BFD'*)
6038 symcode='[ABCDGIRSTW]' ;;
6039 esac
6041 # Try without a prefix undercore, then with it.
6042 for ac_symprfx in "" "_"; do
6044 # Write the raw and C identifiers.
6045 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6047 # Check to see that the pipe works correctly.
6048 pipe_works=no
6050 rm -f conftest*
6051 cat > conftest.$ac_ext <<EOF
6052 #ifdef __cplusplus
6053 extern "C" {
6054 #endif
6055 char nm_test_var;
6056 void nm_test_func(){}
6057 #ifdef __cplusplus
6059 #endif
6060 int main(){nm_test_var='a';nm_test_func();return(0);}
6063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; then
6068 # Now try to grab the symbols.
6069 nlist=conftest.nm
6070 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6071 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && test -s "$nlist"; then
6075 # Try sorting and uniquifying the output.
6076 if sort "$nlist" | uniq > "$nlist"T; then
6077 mv -f "$nlist"T "$nlist"
6078 else
6079 rm -f "$nlist"T
6082 # Make sure that we snagged all the symbols we need.
6083 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6084 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6085 cat <<EOF > conftest.$ac_ext
6086 #ifdef __cplusplus
6087 extern "C" {
6088 #endif
6091 # Now generate the symbol file.
6092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6094 cat <<EOF >> conftest.$ac_ext
6095 #if defined (__STDC__) && __STDC__
6096 # define lt_ptr_t void *
6097 #else
6098 # define lt_ptr_t char *
6099 # define const
6100 #endif
6102 /* The mapping between symbol names and symbols. */
6103 const struct {
6104 const char *name;
6105 lt_ptr_t address;
6107 lt_preloaded_symbols[] =
6110 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6111 cat <<\EOF >> conftest.$ac_ext
6112 {0, (lt_ptr_t) 0}
6115 #ifdef __cplusplus
6117 #endif
6119 # Now try linking the two files.
6120 mv conftest.$ac_objext conftstm.$ac_objext
6121 lt_save_LIBS="$LIBS"
6122 lt_save_CFLAGS="$CFLAGS"
6123 LIBS="conftstm.$ac_objext"
6124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6130 pipe_works=yes
6132 LIBS="$lt_save_LIBS"
6133 CFLAGS="$lt_save_CFLAGS"
6134 else
6135 echo "cannot find nm_test_func in $nlist" >&5
6137 else
6138 echo "cannot find nm_test_var in $nlist" >&5
6140 else
6141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6143 else
6144 echo "$progname: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 rm -f conftest* conftst*
6149 # Do not use the global_symbol_pipe unless it works.
6150 if test "$pipe_works" = yes; then
6151 break
6152 else
6153 lt_cv_sys_global_symbol_pipe=
6155 done
6159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6160 lt_cv_sys_global_symbol_to_cdecl=
6162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6163 echo "$as_me:$LINENO: result: failed" >&5
6164 echo "${ECHO_T}failed" >&6
6165 else
6166 echo "$as_me:$LINENO: result: ok" >&5
6167 echo "${ECHO_T}ok" >&6
6170 echo "$as_me:$LINENO: checking for objdir" >&5
6171 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6172 if test "${lt_cv_objdir+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 rm -f .libs 2>/dev/null
6176 mkdir .libs 2>/dev/null
6177 if test -d .libs; then
6178 lt_cv_objdir=.libs
6179 else
6180 # MS-DOS does not allow filenames that begin with a dot.
6181 lt_cv_objdir=_libs
6183 rmdir .libs 2>/dev/null
6185 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6186 echo "${ECHO_T}$lt_cv_objdir" >&6
6187 objdir=$lt_cv_objdir
6193 case $host_os in
6194 aix3*)
6195 # AIX sometimes has problems with the GCC collect2 program. For some
6196 # reason, if we set the COLLECT_NAMES environment variable, the problems
6197 # vanish in a puff of smoke.
6198 if test "X${COLLECT_NAMES+set}" != Xset; then
6199 COLLECT_NAMES=
6200 export COLLECT_NAMES
6203 esac
6205 # Sed substitution that helps us do robust quoting. It backslashifies
6206 # metacharacters that are still active within double-quoted strings.
6207 Xsed='sed -e s/^X//'
6208 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6210 # Same as above, but do not quote variable references.
6211 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6213 # Sed substitution to delay expansion of an escaped shell variable in a
6214 # double_quote_subst'ed string.
6215 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6217 # Sed substitution to avoid accidental globbing in evaled expressions
6218 no_glob_subst='s/\*/\\\*/g'
6220 # Constants:
6221 rm="rm -f"
6223 # Global variables:
6224 default_ofile=libtool
6225 can_build_shared=yes
6227 # All known linkers require a `.a' archive for static linking (except M$VC,
6228 # which needs '.lib').
6229 libext=a
6230 ltmain="$ac_aux_dir/ltmain.sh"
6231 ofile="$default_ofile"
6232 with_gnu_ld="$lt_cv_prog_gnu_ld"
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}ar; ac_word=$2
6237 echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239 if test "${ac_cv_prog_AR+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 if test -n "$AR"; then
6243 ac_cv_prog_AR="$AR" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_AR="${ac_tool_prefix}ar"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6261 AR=$ac_cv_prog_AR
6262 if test -n "$AR"; then
6263 echo "$as_me:$LINENO: result: $AR" >&5
6264 echo "${ECHO_T}$AR" >&6
6265 else
6266 echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6
6271 if test -z "$ac_cv_prog_AR"; then
6272 ac_ct_AR=$AR
6273 # Extract the first word of "ar", so it can be a program name with args.
6274 set dummy ar; ac_word=$2
6275 echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 if test -n "$ac_ct_AR"; then
6281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_ac_ct_AR="ar"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6294 done
6295 done
6297 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6300 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6301 if test -n "$ac_ct_AR"; then
6302 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6303 echo "${ECHO_T}$ac_ct_AR" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6
6309 AR=$ac_ct_AR
6310 else
6311 AR="$ac_cv_prog_AR"
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6317 echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6319 if test "${ac_cv_prog_RANLIB+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322 if test -n "$RANLIB"; then
6323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6341 RANLIB=$ac_cv_prog_RANLIB
6342 if test -n "$RANLIB"; then
6343 echo "$as_me:$LINENO: result: $RANLIB" >&5
6344 echo "${ECHO_T}$RANLIB" >&6
6345 else
6346 echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6
6351 if test -z "$ac_cv_prog_RANLIB"; then
6352 ac_ct_RANLIB=$RANLIB
6353 # Extract the first word of "ranlib", so it can be a program name with args.
6354 set dummy ranlib; ac_word=$2
6355 echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6357 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 if test -n "$ac_ct_RANLIB"; then
6361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_ac_ct_RANLIB="ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6374 done
6375 done
6377 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6381 if test -n "$ac_ct_RANLIB"; then
6382 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6383 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6384 else
6385 echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6
6389 RANLIB=$ac_ct_RANLIB
6390 else
6391 RANLIB="$ac_cv_prog_RANLIB"
6394 if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}strip; ac_word=$2
6397 echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399 if test "${ac_cv_prog_STRIP+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 if test -n "$STRIP"; then
6403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6421 STRIP=$ac_cv_prog_STRIP
6422 if test -n "$STRIP"; then
6423 echo "$as_me:$LINENO: result: $STRIP" >&5
6424 echo "${ECHO_T}$STRIP" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6
6431 if test -z "$ac_cv_prog_STRIP"; then
6432 ac_ct_STRIP=$STRIP
6433 # Extract the first word of "strip", so it can be a program name with args.
6434 set dummy strip; ac_word=$2
6435 echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 if test -n "$ac_ct_STRIP"; then
6441 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_STRIP="strip"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6454 done
6455 done
6457 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6461 if test -n "$ac_ct_STRIP"; then
6462 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6463 echo "${ECHO_T}$ac_ct_STRIP" >&6
6464 else
6465 echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6469 STRIP=$ac_ct_STRIP
6470 else
6471 STRIP="$ac_cv_prog_STRIP"
6475 old_CC="$CC"
6476 old_CFLAGS="$CFLAGS"
6478 # Set sane defaults for various variables
6479 test -z "$AR" && AR=ar
6480 test -z "$AR_FLAGS" && AR_FLAGS=cru
6481 test -z "$AS" && AS=as
6482 test -z "$CC" && CC=cc
6483 test -z "$LTCC" && LTCC=$CC
6484 test -z "$DLLTOOL" && DLLTOOL=dlltool
6485 test -z "$LD" && LD=ld
6486 test -z "$LN_S" && LN_S="ln -s"
6487 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6488 test -z "$NM" && NM=nm
6489 test -z "$SED" && SED=sed
6490 test -z "$OBJDUMP" && OBJDUMP=objdump
6491 test -z "$RANLIB" && RANLIB=:
6492 test -z "$STRIP" && STRIP=:
6493 test -z "$ac_objext" && ac_objext=o
6495 # Determine commands to create old-style static archives.
6496 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6497 old_postinstall_cmds='chmod 644 $oldlib'
6498 old_postuninstall_cmds=
6500 if test -n "$RANLIB"; then
6501 case $host_os in
6502 openbsd*)
6503 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6506 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6508 esac
6509 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6512 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6514 # Only perform the check for file, if the check method requires it
6515 case $deplibs_check_method in
6516 file_magic*)
6517 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6518 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6519 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6520 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 case $MAGIC_CMD in
6524 [\\/*] | ?:[\\/]*)
6525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6528 lt_save_MAGIC_CMD="$MAGIC_CMD"
6529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6531 for ac_dir in $ac_dummy; do
6532 IFS="$lt_save_ifs"
6533 test -z "$ac_dir" && ac_dir=.
6534 if test -f $ac_dir/${ac_tool_prefix}file; then
6535 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6536 if test -n "$file_magic_test_file"; then
6537 case $deplibs_check_method in
6538 "file_magic "*)
6539 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6542 $EGREP "$file_magic_regex" > /dev/null; then
6544 else
6545 cat <<EOF 1>&2
6547 *** Warning: the command libtool uses to detect shared libraries,
6548 *** $file_magic_cmd, produces output that libtool cannot recognize.
6549 *** The result is that libtool may fail to recognize shared libraries
6550 *** as such. This will affect the creation of libtool libraries that
6551 *** depend on shared libraries, but programs linked with such libtool
6552 *** libraries will work regardless of this problem. Nevertheless, you
6553 *** may want to report the problem to your system manager and/or to
6554 *** bug-libtool@gnu.org
6557 fi ;;
6558 esac
6560 break
6562 done
6563 IFS="$lt_save_ifs"
6564 MAGIC_CMD="$lt_save_MAGIC_CMD"
6566 esac
6569 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6570 if test -n "$MAGIC_CMD"; then
6571 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6572 echo "${ECHO_T}$MAGIC_CMD" >&6
6573 else
6574 echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6
6578 if test -z "$lt_cv_path_MAGIC_CMD"; then
6579 if test -n "$ac_tool_prefix"; then
6580 echo "$as_me:$LINENO: checking for file" >&5
6581 echo $ECHO_N "checking for file... $ECHO_C" >&6
6582 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 case $MAGIC_CMD in
6586 [\\/*] | ?:[\\/]*)
6587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6590 lt_save_MAGIC_CMD="$MAGIC_CMD"
6591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6593 for ac_dir in $ac_dummy; do
6594 IFS="$lt_save_ifs"
6595 test -z "$ac_dir" && ac_dir=.
6596 if test -f $ac_dir/file; then
6597 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6598 if test -n "$file_magic_test_file"; then
6599 case $deplibs_check_method in
6600 "file_magic "*)
6601 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6604 $EGREP "$file_magic_regex" > /dev/null; then
6606 else
6607 cat <<EOF 1>&2
6609 *** Warning: the command libtool uses to detect shared libraries,
6610 *** $file_magic_cmd, produces output that libtool cannot recognize.
6611 *** The result is that libtool may fail to recognize shared libraries
6612 *** as such. This will affect the creation of libtool libraries that
6613 *** depend on shared libraries, but programs linked with such libtool
6614 *** libraries will work regardless of this problem. Nevertheless, you
6615 *** may want to report the problem to your system manager and/or to
6616 *** bug-libtool@gnu.org
6619 fi ;;
6620 esac
6622 break
6624 done
6625 IFS="$lt_save_ifs"
6626 MAGIC_CMD="$lt_save_MAGIC_CMD"
6628 esac
6631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6632 if test -n "$MAGIC_CMD"; then
6633 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6634 echo "${ECHO_T}$MAGIC_CMD" >&6
6635 else
6636 echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6
6640 else
6641 MAGIC_CMD=:
6647 esac
6649 enable_dlopen=no
6650 enable_win32_dll=yes
6652 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6653 if test "${enable_libtool_lock+set}" = set; then
6654 enableval="$enable_libtool_lock"
6657 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6660 # Check whether --with-pic or --without-pic was given.
6661 if test "${with_pic+set}" = set; then
6662 withval="$with_pic"
6663 pic_mode="$withval"
6664 else
6665 pic_mode=default
6667 test -z "$pic_mode" && pic_mode=default
6669 # Use C for the default configuration in the libtool script
6670 tagname=
6671 lt_save_CC="$CC"
6672 ac_ext=c
6673 ac_cpp='$CPP $CPPFLAGS'
6674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679 # Source file extension for C test sources.
6680 ac_ext=c
6682 # Object file extension for compiled C test sources.
6683 objext=o
6684 objext=$objext
6686 # Code to be used in simple compile tests
6687 lt_simple_compile_test_code="int some_variable = 0;\n"
6689 # Code to be used in simple link tests
6690 lt_simple_link_test_code='int main(){return(0);}\n'
6693 # If no C compiler was specified, use CC.
6694 LTCC=${LTCC-"$CC"}
6696 # Allow CC to be a program name with arguments.
6697 compiler=$CC
6701 # Check for any special shared library compilation flags.
6703 lt_prog_cc_shlib=
6704 if test "$GCC" = no; then
6705 case $host_os in
6706 sco3.2v5*)
6707 lt_prog_cc_shlib='-belf'
6709 esac
6711 if test -n "$lt_prog_cc_shlib"; then
6712 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6713 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6714 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6715 else
6716 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6717 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6718 lt_cv_prog_cc_can_build_shared=no
6724 # Check to make sure the static flag actually works.
6726 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6727 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6728 if test "${lt_prog_compiler_static_works+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731 lt_prog_compiler_static_works=no
6732 save_LDFLAGS="$LDFLAGS"
6733 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6734 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6736 # The compiler can only warn and ignore the option if not recognized
6737 # So say no if there are warnings
6738 if test -s conftest.err; then
6739 # Append any errors to the config.log.
6740 cat conftest.err 1>&5
6741 else
6742 lt_prog_compiler_static_works=yes
6745 $rm conftest*
6746 LDFLAGS="$save_LDFLAGS"
6749 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6750 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6752 if test x"$lt_prog_compiler_static_works" = xyes; then
6754 else
6755 lt_prog_compiler_static=
6761 lt_prog_compiler_no_builtin_flag=
6763 if test "$GCC" = yes; then
6764 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6767 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6768 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 lt_cv_prog_compiler_rtti_exceptions=no
6773 ac_outfile=conftest.$ac_objext
6774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6775 lt_compiler_flag="-fno-rtti -fno-exceptions"
6776 # Insert the option either (1) after the last *FLAGS variable, or
6777 # (2) before a word containing "conftest.", or (3) at the end.
6778 # Note that $ac_compile itself does not contain backslashes and begins
6779 # with a dollar sign (not a hyphen), so the echo should work correctly.
6780 # The option is referenced via a variable to avoid confusing sed.
6781 lt_compile=`echo "$ac_compile" | $SED \
6782 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6784 -e 's:$: $lt_compiler_flag:'`
6785 (eval echo "\"\$as_me:6785: $lt_compile\"" >&5)
6786 (eval "$lt_compile" 2>conftest.err)
6787 ac_status=$?
6788 cat conftest.err >&5
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 if (exit $ac_status) && test -s "$ac_outfile"; then
6791 # The compiler can only warn and ignore the option if not recognized
6792 # So say no if there are warnings
6793 if test ! -s conftest.err; then
6794 lt_cv_prog_compiler_rtti_exceptions=yes
6797 $rm conftest*
6800 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6801 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6805 else
6811 lt_prog_compiler_wl=
6812 lt_prog_compiler_pic=
6813 lt_prog_compiler_static=
6815 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6816 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6818 if test "$GCC" = yes; then
6819 lt_prog_compiler_wl='-Wl,'
6820 lt_prog_compiler_static='-static'
6822 case $host_os in
6823 aix*)
6824 # All AIX code is PIC.
6825 if test "$host_cpu" = ia64; then
6826 # AIX 5 now supports IA64 processor
6827 lt_prog_compiler_static='-Bstatic'
6831 amigaos*)
6832 # FIXME: we need at least 68020 code to build shared libraries, but
6833 # adding the `-m68020' flag to GCC prevents building anything better,
6834 # like `-m68040'.
6835 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6838 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6839 # PIC is the default for these OSes.
6842 mingw* | pw32* | os2*)
6843 # This hack is so that the source file can tell whether it is being
6844 # built for inclusion in a dll (and should export symbols for example).
6845 lt_prog_compiler_pic='-DDLL_EXPORT'
6848 darwin* | rhapsody*)
6849 # PIC is the default on this platform
6850 # Common symbols not allowed in MH_DYLIB files
6851 lt_prog_compiler_pic='-fno-common'
6854 msdosdjgpp*)
6855 # Just because we use GCC doesn't mean we suddenly get shared libraries
6856 # on systems that don't support them.
6857 lt_prog_compiler_can_build_shared=no
6858 enable_shared=no
6861 sysv4*MP*)
6862 if test -d /usr/nec; then
6863 lt_prog_compiler_pic=-Kconform_pic
6867 hpux*)
6868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6869 # not for PA HP-UX.
6870 case "$host_cpu" in
6871 hppa*64*|ia64*)
6872 # +Z the default
6875 lt_prog_compiler_pic='-fPIC'
6877 esac
6881 lt_prog_compiler_pic='-fPIC'
6883 esac
6884 else
6885 # PORTME Check for flag to pass linker flags through the system compiler.
6886 case $host_os in
6887 aix*)
6888 lt_prog_compiler_wl='-Wl,'
6889 if test "$host_cpu" = ia64; then
6890 # AIX 5 now supports IA64 processor
6891 lt_prog_compiler_static='-Bstatic'
6892 else
6893 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6896 darwin*)
6897 # PIC is the default on this platform
6898 # Common symbols not allowed in MH_DYLIB files
6899 case "$cc_basename" in
6900 xlc*)
6901 lt_prog_compiler_pic='-qnocommon'
6902 lt_prog_compiler_wl='-Wl,'
6904 esac
6907 mingw* | pw32* | os2*)
6908 # This hack is so that the source file can tell whether it is being
6909 # built for inclusion in a dll (and should export symbols for example).
6910 lt_prog_compiler_pic='-DDLL_EXPORT'
6913 hpux9* | hpux10* | hpux11*)
6914 lt_prog_compiler_wl='-Wl,'
6915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6916 # not for PA HP-UX.
6917 case "$host_cpu" in
6918 hppa*64*|ia64*)
6919 # +Z the default
6922 lt_prog_compiler_pic='+Z'
6924 esac
6925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6926 lt_prog_compiler_static='${wl}-a ${wl}archive'
6929 irix5* | irix6* | nonstopux*)
6930 lt_prog_compiler_wl='-Wl,'
6931 # PIC (with -KPIC) is the default.
6932 lt_prog_compiler_static='-non_shared'
6935 newsos6)
6936 lt_prog_compiler_pic='-KPIC'
6937 lt_prog_compiler_static='-Bstatic'
6940 linux*)
6941 case $CC in
6942 icc* | ecc*)
6943 lt_prog_compiler_wl='-Wl,'
6944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-static'
6947 ccc*)
6948 lt_prog_compiler_wl='-Wl,'
6949 # All Alpha code is PIC.
6950 lt_prog_compiler_static='-non_shared'
6952 esac
6955 osf3* | osf4* | osf5*)
6956 lt_prog_compiler_wl='-Wl,'
6957 # All OSF/1 code is PIC.
6958 lt_prog_compiler_static='-non_shared'
6961 sco3.2v5*)
6962 lt_prog_compiler_pic='-Kpic'
6963 lt_prog_compiler_static='-dn'
6966 solaris*)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_pic='-KPIC'
6969 lt_prog_compiler_static='-Bstatic'
6972 sunos4*)
6973 lt_prog_compiler_wl='-Qoption ld '
6974 lt_prog_compiler_pic='-PIC'
6975 lt_prog_compiler_static='-Bstatic'
6978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6979 lt_prog_compiler_wl='-Wl,'
6980 lt_prog_compiler_pic='-KPIC'
6981 lt_prog_compiler_static='-Bstatic'
6984 sysv4*MP*)
6985 if test -d /usr/nec ;then
6986 lt_prog_compiler_pic='-Kconform_pic'
6987 lt_prog_compiler_static='-Bstatic'
6991 uts4*)
6992 lt_prog_compiler_pic='-pic'
6993 lt_prog_compiler_static='-Bstatic'
6997 lt_prog_compiler_can_build_shared=no
6999 esac
7002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7003 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7006 # Check to make sure the PIC flag actually works.
7008 if test -n "$lt_prog_compiler_pic"; then
7010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7011 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7012 if test "${lt_prog_compiler_pic_works+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 lt_prog_compiler_pic_works=no
7016 ac_outfile=conftest.$ac_objext
7017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7018 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7019 # Insert the option either (1) after the last *FLAGS variable, or
7020 # (2) before a word containing "conftest.", or (3) at the end.
7021 # Note that $ac_compile itself does not contain backslashes and begins
7022 # with a dollar sign (not a hyphen), so the echo should work correctly.
7023 # The option is referenced via a variable to avoid confusing sed.
7024 lt_compile=`echo "$ac_compile" | $SED \
7025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7027 -e 's:$: $lt_compiler_flag:'`
7028 (eval echo "\"\$as_me:7028: $lt_compile\"" >&5)
7029 (eval "$lt_compile" 2>conftest.err)
7030 ac_status=$?
7031 cat conftest.err >&5
7032 echo "$as_me:7032: \$? = $ac_status" >&5
7033 if (exit $ac_status) && test -s "$ac_outfile"; then
7034 # The compiler can only warn and ignore the option if not recognized
7035 # So say no if there are warnings
7036 if test ! -s conftest.err; then
7037 lt_prog_compiler_pic_works=yes
7040 $rm conftest*
7043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7044 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7046 if test x"$lt_prog_compiler_pic_works" = xyes; then
7047 case $lt_prog_compiler_pic in
7048 "" | " "*) ;;
7049 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7050 esac
7051 else
7052 lt_prog_compiler_pic=
7053 lt_prog_compiler_can_build_shared=no
7057 case "$host_os" in
7058 # For platforms which do not support PIC, -DPIC is meaningless:
7059 *djgpp*)
7060 lt_prog_compiler_pic=
7063 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7065 esac
7067 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7069 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 lt_cv_prog_compiler_c_o=no
7073 $rm -r conftest 2>/dev/null
7074 mkdir conftest
7075 cd conftest
7076 mkdir out
7077 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7079 lt_compiler_flag="-o out/conftest2.$ac_objext"
7080 # Insert the option either (1) after the last *FLAGS variable, or
7081 # (2) before a word containing "conftest.", or (3) at the end.
7082 # Note that $ac_compile itself does not contain backslashes and begins
7083 # with a dollar sign (not a hyphen), so the echo should work correctly.
7084 lt_compile=`echo "$ac_compile" | $SED \
7085 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7087 -e 's:$: $lt_compiler_flag:'`
7088 (eval echo "\"\$as_me:7088: $lt_compile\"" >&5)
7089 (eval "$lt_compile" 2>out/conftest.err)
7090 ac_status=$?
7091 cat out/conftest.err >&5
7092 echo "$as_me:7092: \$? = $ac_status" >&5
7093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7094 then
7095 # The compiler can only warn and ignore the option if not recognized
7096 # So say no if there are warnings
7097 if test ! -s out/conftest.err; then
7098 lt_cv_prog_compiler_c_o=yes
7101 chmod u+w .
7102 $rm conftest*
7103 # SGI C++ compiler will create directory out/ii_files/ for
7104 # template instantiation
7105 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7106 $rm out/* && rmdir out
7107 cd ..
7108 rmdir conftest
7109 $rm conftest*
7112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7113 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7116 hard_links="nottested"
7117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7118 # do not overwrite the value of need_locks provided by the user
7119 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7120 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7121 hard_links=yes
7122 $rm conftest*
7123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7124 touch conftest.a
7125 ln conftest.a conftest.b 2>&5 || hard_links=no
7126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7127 echo "$as_me:$LINENO: result: $hard_links" >&5
7128 echo "${ECHO_T}$hard_links" >&6
7129 if test "$hard_links" = no; then
7130 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7131 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7132 need_locks=warn
7134 else
7135 need_locks=no
7138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7141 runpath_var=
7142 allow_undefined_flag=
7143 enable_shared_with_static_runtimes=no
7144 archive_cmds=
7145 archive_expsym_cmds=
7146 old_archive_From_new_cmds=
7147 old_archive_from_expsyms_cmds=
7148 export_dynamic_flag_spec=
7149 whole_archive_flag_spec=
7150 thread_safe_flag_spec=
7151 hardcode_libdir_flag_spec=
7152 hardcode_libdir_flag_spec_ld=
7153 hardcode_libdir_separator=
7154 hardcode_direct=no
7155 hardcode_minus_L=no
7156 hardcode_shlibpath_var=unsupported
7157 link_all_deplibs=unknown
7158 hardcode_automatic=no
7159 module_cmds=
7160 module_expsym_cmds=
7161 always_export_symbols=no
7162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7163 # include_expsyms should be a list of space-separated symbols to be *always*
7164 # included in the symbol list
7165 include_expsyms=
7166 # exclude_expsyms can be an extended regexp of symbols to exclude
7167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7169 # as well as any symbol that contains `d'.
7170 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7172 # platforms (ab)use it in PIC code, but their linkers get confused if
7173 # the symbol is explicitly referenced. Since portable code cannot
7174 # rely on this symbol name, it's probably fine to never include it in
7175 # preloaded symbol tables.
7176 extract_expsyms_cmds=
7178 case $host_os in
7179 cygwin* | mingw* | pw32*)
7180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7181 # When not using gcc, we currently assume that we are using
7182 # Microsoft Visual C++.
7183 if test "$GCC" != yes; then
7184 with_gnu_ld=no
7187 openbsd*)
7188 with_gnu_ld=no
7190 esac
7192 ld_shlibs=yes
7193 if test "$with_gnu_ld" = yes; then
7194 # If archive_cmds runs LD, not CC, wlarc should be empty
7195 wlarc='${wl}'
7197 # See if GNU ld supports shared libraries.
7198 case $host_os in
7199 aix3* | aix4* | aix5*)
7200 # On AIX/PPC, the GNU linker is very broken
7201 if test "$host_cpu" != ia64; then
7202 ld_shlibs=no
7203 cat <<EOF 1>&2
7205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7206 *** to be unable to reliably create shared libraries on AIX.
7207 *** Therefore, libtool is disabling shared libraries support. If you
7208 *** really care for shared libraries, you may want to modify your PATH
7209 *** so that a non-GNU linker is found, and then restart.
7215 amigaos*)
7216 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)'
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 hardcode_minus_L=yes
7220 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7221 # that the semantics of dynamic libraries on AmigaOS, at least up
7222 # to version 4, is to share data among multiple programs linked
7223 # with the same dynamic library. Since this doesn't match the
7224 # behavior of shared libraries on other platforms, we can't use
7225 # them.
7226 ld_shlibs=no
7229 beos*)
7230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7231 allow_undefined_flag=unsupported
7232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7233 # support --undefined. This deserves some investigation. FIXME
7234 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7235 else
7236 ld_shlibs=no
7240 cygwin* | mingw* | pw32*)
7241 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7242 # as there is no search path for DLLs.
7243 hardcode_libdir_flag_spec='-L$libdir'
7244 allow_undefined_flag=unsupported
7245 always_export_symbols=no
7246 enable_shared_with_static_runtimes=yes
7247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7249 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7251 # If the export-symbols file already is a .def file (1st line
7252 # is EXPORTS), use it as is; otherwise, prepend...
7253 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7254 cp $export_symbols $output_objdir/$soname.def;
7255 else
7256 echo EXPORTS > $output_objdir/$soname.def;
7257 cat $export_symbols >> $output_objdir/$soname.def;
7259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7260 else
7261 ld_shlibs=no
7265 netbsd*)
7266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7268 wlarc=
7269 else
7270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7275 solaris* | sysv5*)
7276 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7277 ld_shlibs=no
7278 cat <<EOF 1>&2
7280 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7281 *** create shared libraries on Solaris systems. Therefore, libtool
7282 *** is disabling shared libraries support. We urge you to upgrade GNU
7283 *** binutils to release 2.9.1 or newer. Another option is to modify
7284 *** your PATH or compiler configuration so that the native linker is
7285 *** used, and then restart.
7288 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7291 else
7292 ld_shlibs=no
7296 sunos4*)
7297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7298 wlarc=
7299 hardcode_direct=yes
7300 hardcode_shlibpath_var=no
7303 linux*)
7304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7305 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306 archive_cmds="$tmp_archive_cmds"
7307 supports_anon_versioning=no
7308 case `$LD -v 2>/dev/null` in
7309 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7312 *\ 2.11.*) ;; # other 2.11 versions
7313 *) supports_anon_versioning=yes ;;
7314 esac
7315 if test $supports_anon_versioning = yes; then
7316 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7318 $echo "local: *; };" >> $output_objdir/$libname.ver~
7319 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7320 else
7321 archive_expsym_cmds="$tmp_archive_cmds"
7323 else
7324 ld_shlibs=no
7329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7332 else
7333 ld_shlibs=no
7336 esac
7338 if test "$ld_shlibs" = yes; then
7339 runpath_var=LD_RUN_PATH
7340 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7341 export_dynamic_flag_spec='${wl}--export-dynamic'
7342 # ancient GNU ld didn't support --whole-archive et. al.
7343 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7344 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7345 else
7346 whole_archive_flag_spec=
7349 else
7350 # PORTME fill in a description of your system's linker (not GNU ld)
7351 case $host_os in
7352 aix3*)
7353 allow_undefined_flag=unsupported
7354 always_export_symbols=yes
7355 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'
7356 # Note: this linker hardcodes the directories in LIBPATH if there
7357 # are no directories specified by -L.
7358 hardcode_minus_L=yes
7359 if test "$GCC" = yes && test -z "$link_static_flag"; then
7360 # Neither direct hardcoding nor static linking is supported with a
7361 # broken collect2.
7362 hardcode_direct=unsupported
7366 aix4* | aix5*)
7367 if test "$host_cpu" = ia64; then
7368 # On IA64, the linker does run time linking by default, so we don't
7369 # have to do anything special.
7370 aix_use_runtimelinking=no
7371 exp_sym_flag='-Bexport'
7372 no_entry_flag=""
7373 else
7374 # If we're using GNU nm, then we don't want the "-C" option.
7375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7376 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7377 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'
7378 else
7379 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'
7381 aix_use_runtimelinking=no
7383 # Test if we are trying to use run time linking or normal
7384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7385 # need to do runtime linking.
7386 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7387 for ld_flag in $LDFLAGS; do
7388 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7389 aix_use_runtimelinking=yes
7390 break
7392 done
7393 esac
7395 exp_sym_flag='-bexport'
7396 no_entry_flag='-bnoentry'
7399 # When large executables or shared objects are built, AIX ld can
7400 # have problems creating the table of contents. If linking a library
7401 # or program results in "error TOC overflow" add -mminimal-toc to
7402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7405 archive_cmds=''
7406 hardcode_direct=yes
7407 hardcode_libdir_separator=':'
7408 link_all_deplibs=yes
7410 if test "$GCC" = yes; then
7411 case $host_os in aix4.012|aix4.012.*)
7412 # We only want to do this on AIX 4.2 and lower, the check
7413 # below for broken collect2 doesn't work under 4.3+
7414 collect2name=`${CC} -print-prog-name=collect2`
7415 if test -f "$collect2name" && \
7416 strings "$collect2name" | grep resolve_lib_name >/dev/null
7417 then
7418 # We have reworked collect2
7419 hardcode_direct=yes
7420 else
7421 # We have old collect2
7422 hardcode_direct=unsupported
7423 # It fails to find uninstalled libraries when the uninstalled
7424 # path is not listed in the libpath. Setting hardcode_minus_L
7425 # to unsupported forces relinking
7426 hardcode_minus_L=yes
7427 hardcode_libdir_flag_spec='-L$libdir'
7428 hardcode_libdir_separator=
7430 esac
7431 shared_flag='-shared'
7432 else
7433 # not using gcc
7434 if test "$host_cpu" = ia64; then
7435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7436 # chokes on -Wl,-G. The following line is correct:
7437 shared_flag='-G'
7438 else
7439 if test "$aix_use_runtimelinking" = yes; then
7440 shared_flag='${wl}-G'
7441 else
7442 shared_flag='${wl}-bM:SRE'
7447 # It seems that -bexpall does not export symbols beginning with
7448 # underscore (_), so it is better to generate a list of symbols to export.
7449 always_export_symbols=yes
7450 if test "$aix_use_runtimelinking" = yes; then
7451 # Warning - without using the other runtime loading flags (-brtl),
7452 # -berok will link without error, but may produce a broken library.
7453 allow_undefined_flag='-berok'
7454 # Determine the default libpath from the value encoded in an empty executable.
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7463 main ()
7467 return 0;
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -z "$ac_c_werror_flag"
7480 || test ! -s conftest.err'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; } &&
7486 { ac_try='test -s conftest$ac_exeext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7495 # Check for a 64-bit object if we didn't find anything.
7496 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; }
7497 }'`; fi
7498 else
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7503 rm -f conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7508 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"
7509 else
7510 if test "$host_cpu" = ia64; then
7511 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7512 allow_undefined_flag="-z nodefs"
7513 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"
7514 else
7515 # Determine the default libpath from the value encoded in an empty executable.
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h. */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7524 main ()
7528 return 0;
7530 _ACEOF
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7533 (eval $ac_link) 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7556 # Check for a 64-bit object if we didn't find anything.
7557 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; }
7558 }'`; fi
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -f conftest.err conftest.$ac_objext \
7565 conftest$ac_exeext conftest.$ac_ext
7566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7568 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7569 # Warning - without using the other run time loading flags,
7570 # -berok will link without error, but may produce a broken library.
7571 no_undefined_flag=' ${wl}-bernotok'
7572 allow_undefined_flag=' ${wl}-berok'
7573 # -bexpall does not export symbols beginning with underscore (_)
7574 always_export_symbols=yes
7575 # Exported symbols can be pulled into shared objects from archives
7576 whole_archive_flag_spec=' '
7577 archive_cmds_need_lc=yes
7578 # This is similar to how AIX traditionally builds it's shared libraries.
7579 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'
7584 amigaos*)
7585 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)'
7586 hardcode_libdir_flag_spec='-L$libdir'
7587 hardcode_minus_L=yes
7588 # see comment about different semantics on the GNU ld section
7589 ld_shlibs=no
7592 bsdi[45]*)
7593 export_dynamic_flag_spec=-rdynamic
7596 cygwin* | mingw* | pw32*)
7597 # When not using gcc, we currently assume that we are using
7598 # Microsoft Visual C++.
7599 # hardcode_libdir_flag_spec is actually meaningless, as there is
7600 # no search path for DLLs.
7601 hardcode_libdir_flag_spec=' '
7602 allow_undefined_flag=unsupported
7603 # Tell ltmain to make .lib files, not .a files.
7604 libext=lib
7605 # Tell ltmain to make .dll files, not .so files.
7606 shrext_cmds=".dll"
7607 # FIXME: Setting linknames here is a bad hack.
7608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7609 # The linker will automatically build a .lib file if we build a DLL.
7610 old_archive_From_new_cmds='true'
7611 # FIXME: Should let the user specify the lib program.
7612 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7613 fix_srcfile_path='`cygpath -w "$srcfile"`'
7614 enable_shared_with_static_runtimes=yes
7617 darwin* | rhapsody*)
7618 case "$host_os" in
7619 rhapsody* | darwin1.[012])
7620 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7622 *) # Darwin 1.3 on
7623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7625 else
7626 case ${MACOSX_DEPLOYMENT_TARGET} in
7627 10.[012])
7628 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7630 10.*)
7631 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7633 esac
7636 esac
7637 archive_cmds_need_lc=no
7638 hardcode_direct=no
7639 hardcode_automatic=yes
7640 hardcode_shlibpath_var=unsupported
7641 whole_archive_flag_spec=''
7642 link_all_deplibs=yes
7643 if test "$GCC" = yes ; then
7644 output_verbose_link_cmd='echo'
7645 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7646 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7648 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}'
7649 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}'
7650 else
7651 case "$cc_basename" in
7652 xlc*)
7653 output_verbose_link_cmd='echo'
7654 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7655 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7657 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}'
7658 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}'
7661 ld_shlibs=no
7663 esac
7667 dgux*)
7668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669 hardcode_libdir_flag_spec='-L$libdir'
7670 hardcode_shlibpath_var=no
7673 freebsd1*)
7674 ld_shlibs=no
7677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7678 # support. Future versions do this automatically, but an explicit c++rt0.o
7679 # does not break anything, and helps significantly (at the cost of a little
7680 # extra space).
7681 freebsd2.2*)
7682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7683 hardcode_libdir_flag_spec='-R$libdir'
7684 hardcode_direct=yes
7685 hardcode_shlibpath_var=no
7688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7689 freebsd2*)
7690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7691 hardcode_direct=yes
7692 hardcode_minus_L=yes
7693 hardcode_shlibpath_var=no
7696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7697 freebsd* | kfreebsd*-gnu)
7698 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7699 hardcode_libdir_flag_spec='-R$libdir'
7700 hardcode_direct=yes
7701 hardcode_shlibpath_var=no
7704 hpux9*)
7705 if test "$GCC" = yes; then
7706 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'
7707 else
7708 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'
7710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7711 hardcode_libdir_separator=:
7712 hardcode_direct=yes
7714 # hardcode_minus_L: Not really in the search PATH,
7715 # but as the default location of the library.
7716 hardcode_minus_L=yes
7717 export_dynamic_flag_spec='${wl}-E'
7720 hpux10* | hpux11*)
7721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7722 case "$host_cpu" in
7723 hppa*64*|ia64*)
7724 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7729 esac
7730 else
7731 case "$host_cpu" in
7732 hppa*64*|ia64*)
7733 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7738 esac
7740 if test "$with_gnu_ld" = no; then
7741 case "$host_cpu" in
7742 hppa*64*)
7743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7744 hardcode_libdir_flag_spec_ld='+b $libdir'
7745 hardcode_libdir_separator=:
7746 hardcode_direct=no
7747 hardcode_shlibpath_var=no
7749 ia64*)
7750 hardcode_libdir_flag_spec='-L$libdir'
7751 hardcode_direct=no
7752 hardcode_shlibpath_var=no
7754 # hardcode_minus_L: Not really in the search PATH,
7755 # but as the default location of the library.
7756 hardcode_minus_L=yes
7759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7760 hardcode_libdir_separator=:
7761 hardcode_direct=yes
7762 export_dynamic_flag_spec='${wl}-E'
7764 # hardcode_minus_L: Not really in the search PATH,
7765 # but as the default location of the library.
7766 hardcode_minus_L=yes
7768 esac
7772 irix5* | irix6* | nonstopux*)
7773 if test "$GCC" = yes; then
7774 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'
7775 else
7776 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'
7777 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7780 hardcode_libdir_separator=:
7781 link_all_deplibs=yes
7784 netbsd*)
7785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7787 else
7788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7790 hardcode_libdir_flag_spec='-R$libdir'
7791 hardcode_direct=yes
7792 hardcode_shlibpath_var=no
7795 newsos6)
7796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7797 hardcode_direct=yes
7798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator=:
7800 hardcode_shlibpath_var=no
7803 openbsd*)
7804 hardcode_direct=yes
7805 hardcode_shlibpath_var=no
7806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7810 export_dynamic_flag_spec='${wl}-E'
7811 else
7812 case $host_os in
7813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7815 hardcode_libdir_flag_spec='-R$libdir'
7818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7821 esac
7825 os2*)
7826 hardcode_libdir_flag_spec='-L$libdir'
7827 hardcode_minus_L=yes
7828 allow_undefined_flag=unsupported
7829 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'
7830 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7833 osf3*)
7834 if test "$GCC" = yes; then
7835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836 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'
7837 else
7838 allow_undefined_flag=' -expect_unresolved \*'
7839 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'
7841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7842 hardcode_libdir_separator=:
7845 osf4* | osf5*) # as osf3* with the addition of -msym flag
7846 if test "$GCC" = yes; then
7847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7848 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'
7849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7850 else
7851 allow_undefined_flag=' -expect_unresolved \*'
7852 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'
7853 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7854 $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'
7856 # Both c and cxx compiler support -rpath directly
7857 hardcode_libdir_flag_spec='-rpath $libdir'
7859 hardcode_libdir_separator=:
7862 sco3.2v5*)
7863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7864 hardcode_shlibpath_var=no
7865 export_dynamic_flag_spec='${wl}-Bexport'
7866 runpath_var=LD_RUN_PATH
7867 hardcode_runpath_var=yes
7870 solaris*)
7871 no_undefined_flag=' -z text'
7872 if test "$GCC" = yes; then
7873 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7874 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7875 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7876 else
7877 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7878 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7881 hardcode_libdir_flag_spec='-R$libdir'
7882 hardcode_shlibpath_var=no
7883 case $host_os in
7884 solaris2.[0-5] | solaris2.[0-5].*) ;;
7885 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7887 esac
7888 link_all_deplibs=yes
7891 sunos4*)
7892 if test "x$host_vendor" = xsequent; then
7893 # Use $CC to link under sequent, because it throws in some extra .o
7894 # files that make .init and .fini sections work.
7895 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7896 else
7897 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7899 hardcode_libdir_flag_spec='-L$libdir'
7900 hardcode_direct=yes
7901 hardcode_minus_L=yes
7902 hardcode_shlibpath_var=no
7905 sysv4)
7906 case $host_vendor in
7907 sni)
7908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909 hardcode_direct=yes # is this really true???
7911 siemens)
7912 ## LD is ld it makes a PLAMLIB
7913 ## CC just makes a GrossModule.
7914 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7915 reload_cmds='$CC -r -o $output$reload_objs'
7916 hardcode_direct=no
7918 motorola)
7919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7920 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7922 esac
7923 runpath_var='LD_RUN_PATH'
7924 hardcode_shlibpath_var=no
7927 sysv4.3*)
7928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7929 hardcode_shlibpath_var=no
7930 export_dynamic_flag_spec='-Bexport'
7933 sysv4*MP*)
7934 if test -d /usr/nec; then
7935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7936 hardcode_shlibpath_var=no
7937 runpath_var=LD_RUN_PATH
7938 hardcode_runpath_var=yes
7939 ld_shlibs=yes
7943 sysv4.2uw2*)
7944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7945 hardcode_direct=yes
7946 hardcode_minus_L=no
7947 hardcode_shlibpath_var=no
7948 hardcode_runpath_var=yes
7949 runpath_var=LD_RUN_PATH
7952 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7953 no_undefined_flag='${wl}-z ${wl}text'
7954 if test "$GCC" = yes; then
7955 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7956 else
7957 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7959 runpath_var='LD_RUN_PATH'
7960 hardcode_shlibpath_var=no
7963 sysv5*)
7964 no_undefined_flag=' -z text'
7965 # $CC -shared without GNU ld will not create a library from C++
7966 # object files and a static libstdc++, better avoid it by now
7967 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7968 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7970 hardcode_libdir_flag_spec=
7971 hardcode_shlibpath_var=no
7972 runpath_var='LD_RUN_PATH'
7975 uts4*)
7976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977 hardcode_libdir_flag_spec='-L$libdir'
7978 hardcode_shlibpath_var=no
7982 ld_shlibs=no
7984 esac
7987 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7988 echo "${ECHO_T}$ld_shlibs" >&6
7989 test "$ld_shlibs" = no && can_build_shared=no
7991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7992 if test "$GCC" = yes; then
7993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7997 # Do we need to explicitly link libc?
7999 case "x$archive_cmds_need_lc" in
8000 x|xyes)
8001 # Assume -lc should be added
8002 archive_cmds_need_lc=yes
8004 if test "$enable_shared" = yes && test "$GCC" = yes; then
8005 case $archive_cmds in
8006 *'~'*)
8007 # FIXME: we may have to deal with multi-command sequences.
8009 '$CC '*)
8010 # Test whether the compiler implicitly links with -lc since on some
8011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8012 # to ld, don't add -lc before -lgcc.
8013 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8014 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8015 $rm conftest*
8016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } 2>conftest.err; then
8023 soname=conftest
8024 lib=conftest
8025 libobjs=conftest.$ac_objext
8026 deplibs=
8027 wl=$lt_prog_compiler_wl
8028 compiler_flags=-v
8029 linker_flags=-v
8030 verstring=
8031 output_objdir=.
8032 libname=conftest
8033 lt_save_allow_undefined_flag=$allow_undefined_flag
8034 allow_undefined_flag=
8035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8036 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }
8040 then
8041 archive_cmds_need_lc=no
8042 else
8043 archive_cmds_need_lc=yes
8045 allow_undefined_flag=$lt_save_allow_undefined_flag
8046 else
8047 cat conftest.err 1>&5
8049 $rm conftest*
8050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8051 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8053 esac
8056 esac
8058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8060 library_names_spec=
8061 libname_spec='lib$name'
8062 soname_spec=
8063 shrext_cmds=".so"
8064 postinstall_cmds=
8065 postuninstall_cmds=
8066 finish_cmds=
8067 finish_eval=
8068 shlibpath_var=
8069 shlibpath_overrides_runpath=unknown
8070 version_type=none
8071 dynamic_linker="$host_os ld.so"
8072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8073 if test "$GCC" = yes; then
8074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8076 # if the path contains ";" then we assume it to be the separator
8077 # otherwise default to the standard path separator (i.e. ":") - it is
8078 # assumed that no part of a normal pathname contains ";" but that should
8079 # okay in the real world where ";" in dirpaths is itself problematic.
8080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8081 else
8082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8084 else
8085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8087 need_lib_prefix=unknown
8088 hardcode_into_libs=no
8090 # when you set need_version to no, make sure it does not cause -set_version
8091 # flags to be left without arguments
8092 need_version=unknown
8094 case $host_os in
8095 aix3*)
8096 version_type=linux
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8098 shlibpath_var=LIBPATH
8100 # AIX 3 has no versioning support, so we append a major version to the name.
8101 soname_spec='${libname}${release}${shared_ext}$major'
8104 aix4* | aix5*)
8105 version_type=linux
8106 need_lib_prefix=no
8107 need_version=no
8108 hardcode_into_libs=yes
8109 if test "$host_cpu" = ia64; then
8110 # AIX 5 supports IA64
8111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8112 shlibpath_var=LD_LIBRARY_PATH
8113 else
8114 # With GCC up to 2.95.x, collect2 would create an import file
8115 # for dependence libraries. The import file would start with
8116 # the line `#! .'. This would cause the generated library to
8117 # depend on `.', always an invalid library. This was fixed in
8118 # development snapshots of GCC prior to 3.0.
8119 case $host_os in
8120 aix4 | aix4.[01] | aix4.[01].*)
8121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8122 echo ' yes '
8123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8125 else
8126 can_build_shared=no
8129 esac
8130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8131 # soname into executable. Probably we can add versioning support to
8132 # collect2, so additional links can be useful in future.
8133 if test "$aix_use_runtimelinking" = yes; then
8134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8135 # instead of lib<name>.a to let people know that these are not
8136 # typical AIX shared libraries.
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8138 else
8139 # We preserve .a as extension for shared libraries through AIX4.2
8140 # and later when we are not doing run time linking.
8141 library_names_spec='${libname}${release}.a $libname.a'
8142 soname_spec='${libname}${release}${shared_ext}$major'
8144 shlibpath_var=LIBPATH
8148 amigaos*)
8149 library_names_spec='$libname.ixlibrary $libname.a'
8150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8151 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'
8154 beos*)
8155 library_names_spec='${libname}${shared_ext}'
8156 dynamic_linker="$host_os ld.so"
8157 shlibpath_var=LIBRARY_PATH
8160 bsdi[45]*)
8161 version_type=linux
8162 need_version=no
8163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8164 soname_spec='${libname}${release}${shared_ext}$major'
8165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8166 shlibpath_var=LD_LIBRARY_PATH
8167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8169 # the default ld.so.conf also contains /usr/contrib/lib and
8170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8171 # libtool to hard-code these into programs
8174 cygwin* | mingw* | pw32*)
8175 version_type=windows
8176 shrext_cmds=".dll"
8177 need_version=no
8178 need_lib_prefix=no
8180 case $GCC,$host_os in
8181 yes,cygwin* | yes,mingw* | yes,pw32*)
8182 library_names_spec='$libname.dll.a'
8183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8184 postinstall_cmds='base_file=`basename \${file}`~
8185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8186 dldir=$destdir/`dirname \$dlpath`~
8187 test -d \$dldir || mkdir -p \$dldir~
8188 $install_prog $dir/$dlname \$dldir/$dlname'
8189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8190 dlpath=$dir/\$dldll~
8191 $rm \$dlpath'
8192 shlibpath_overrides_runpath=yes
8194 case $host_os in
8195 cygwin*)
8196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8198 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8200 mingw*)
8201 # MinGW DLLs use traditional 'lib' prefix
8202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8204 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8205 # It is most probably a Windows format PATH printed by
8206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8207 # path with ; separators, and with drive letters. We can handle the
8208 # drive letters (cygwin fileutils understands them), so leave them,
8209 # especially as we might pass files found there to a mingw objdump,
8210 # which wouldn't understand a cygwinified path. Ahh.
8211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8212 else
8213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8216 pw32*)
8217 # pw32 DLLs use 'pw' prefix rather than 'lib'
8218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8220 esac
8224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8226 esac
8227 dynamic_linker='Win32 ld.exe'
8228 # FIXME: first we should search . and the directory the executable is in
8229 shlibpath_var=PATH
8232 darwin* | rhapsody*)
8233 dynamic_linker="$host_os dyld"
8234 version_type=darwin
8235 need_lib_prefix=no
8236 need_version=no
8237 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8238 soname_spec='${libname}${release}${major}$shared_ext'
8239 shlibpath_overrides_runpath=yes
8240 shlibpath_var=DYLD_LIBRARY_PATH
8241 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8242 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8243 if test "$GCC" = yes; then
8244 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"`
8245 else
8246 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8251 dgux*)
8252 version_type=linux
8253 need_lib_prefix=no
8254 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
8260 freebsd1*)
8261 dynamic_linker=no
8264 kfreebsd*-gnu)
8265 version_type=linux
8266 need_lib_prefix=no
8267 need_version=no
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8269 soname_spec='${libname}${release}${shared_ext}$major'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=no
8272 hardcode_into_libs=yes
8273 dynamic_linker='GNU ld.so'
8276 freebsd*)
8277 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8278 version_type=freebsd-$objformat
8279 case $version_type in
8280 freebsd-elf*)
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8282 need_version=no
8283 need_lib_prefix=no
8285 freebsd-*)
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8287 need_version=yes
8289 esac
8290 shlibpath_var=LD_LIBRARY_PATH
8291 case $host_os in
8292 freebsd2*)
8293 shlibpath_overrides_runpath=yes
8295 freebsd3.01* | freebsdelf3.01*)
8296 shlibpath_overrides_runpath=yes
8297 hardcode_into_libs=yes
8299 *) # from 3.2 on
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8303 esac
8306 gnu*)
8307 version_type=linux
8308 need_lib_prefix=no
8309 need_version=no
8310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8311 soname_spec='${libname}${release}${shared_ext}$major'
8312 shlibpath_var=LD_LIBRARY_PATH
8313 hardcode_into_libs=yes
8316 hpux9* | hpux10* | hpux11*)
8317 # Give a soname corresponding to the major version so that dld.sl refuses to
8318 # link against other versions.
8319 version_type=sunos
8320 need_lib_prefix=no
8321 need_version=no
8322 case "$host_cpu" in
8323 ia64*)
8324 shrext_cmds='.so'
8325 hardcode_into_libs=yes
8326 dynamic_linker="$host_os dld.so"
8327 shlibpath_var=LD_LIBRARY_PATH
8328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 if test "X$HPUX_IA64_MODE" = X32; then
8332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8333 else
8334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8338 hppa*64*)
8339 shrext_cmds='.sl'
8340 hardcode_into_libs=yes
8341 dynamic_linker="$host_os dld.sl"
8342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8345 soname_spec='${libname}${release}${shared_ext}$major'
8346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8350 shrext_cmds='.sl'
8351 dynamic_linker="$host_os dld.sl"
8352 shlibpath_var=SHLIB_PATH
8353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8355 soname_spec='${libname}${release}${shared_ext}$major'
8357 esac
8358 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8359 postinstall_cmds='chmod 555 $lib'
8362 irix5* | irix6* | nonstopux*)
8363 case $host_os in
8364 nonstopux*) version_type=nonstopux ;;
8366 if test "$lt_cv_prog_gnu_ld" = yes; then
8367 version_type=linux
8368 else
8369 version_type=irix
8370 fi ;;
8371 esac
8372 need_lib_prefix=no
8373 need_version=no
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8376 case $host_os in
8377 irix5* | nonstopux*)
8378 libsuff= shlibsuff=
8381 case $LD in # libtool.m4 will add one of these switches to LD
8382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8383 libsuff= shlibsuff= libmagic=32-bit;;
8384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8385 libsuff=32 shlibsuff=N32 libmagic=N32;;
8386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8387 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8388 *) libsuff= shlibsuff= libmagic=never-match;;
8389 esac
8391 esac
8392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8393 shlibpath_overrides_runpath=no
8394 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8395 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8396 hardcode_into_libs=yes
8399 # No shared lib support for Linux oldld, aout, or coff.
8400 linux*oldld* | linux*aout* | linux*coff*)
8401 dynamic_linker=no
8404 # This must be Linux ELF.
8405 linux*)
8406 version_type=linux
8407 need_lib_prefix=no
8408 need_version=no
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8410 soname_spec='${libname}${release}${shared_ext}$major'
8411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=no
8414 # This implies no fast_install, which is unacceptable.
8415 # Some rework will be needed to allow for fast_install
8416 # before this can be enabled.
8417 hardcode_into_libs=yes
8419 # Append ld.so.conf contents to the search path
8420 if test -f /etc/ld.so.conf; then
8421 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8425 # We used to test for /lib/ld.so.1 and disable shared libraries on
8426 # powerpc, because MkLinux only supported shared libraries with the
8427 # GNU dynamic linker. Since this was broken with cross compilers,
8428 # most powerpc-linux boxes support dynamic linking these days and
8429 # people can always --disable-shared, the test was removed, and we
8430 # assume the GNU/Linux dynamic linker is in use.
8431 dynamic_linker='GNU/Linux ld.so'
8434 knetbsd*-gnu)
8435 version_type=linux
8436 need_lib_prefix=no
8437 need_version=no
8438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8439 soname_spec='${libname}${release}${shared_ext}$major'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 shlibpath_overrides_runpath=no
8442 hardcode_into_libs=yes
8443 dynamic_linker='GNU ld.so'
8446 netbsd*)
8447 version_type=sunos
8448 need_lib_prefix=no
8449 need_version=no
8450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8453 dynamic_linker='NetBSD (a.out) ld.so'
8454 else
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 dynamic_linker='NetBSD ld.elf_so'
8459 shlibpath_var=LD_LIBRARY_PATH
8460 shlibpath_overrides_runpath=yes
8461 hardcode_into_libs=yes
8464 newsos6)
8465 version_type=linux
8466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=yes
8471 nto-qnx*)
8472 version_type=linux
8473 need_lib_prefix=no
8474 need_version=no
8475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8476 soname_spec='${libname}${release}${shared_ext}$major'
8477 shlibpath_var=LD_LIBRARY_PATH
8478 shlibpath_overrides_runpath=yes
8481 openbsd*)
8482 version_type=sunos
8483 need_lib_prefix=no
8484 need_version=no
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8489 case $host_os in
8490 openbsd2.[89] | openbsd2.[89].*)
8491 shlibpath_overrides_runpath=no
8494 shlibpath_overrides_runpath=yes
8496 esac
8497 else
8498 shlibpath_overrides_runpath=yes
8502 os2*)
8503 libname_spec='$name'
8504 shrext_cmds=".dll"
8505 need_lib_prefix=no
8506 library_names_spec='$libname${shared_ext} $libname.a'
8507 dynamic_linker='OS/2 ld.exe'
8508 shlibpath_var=LIBPATH
8511 osf3* | osf4* | osf5*)
8512 version_type=osf
8513 need_lib_prefix=no
8514 need_version=no
8515 soname_spec='${libname}${release}${shared_ext}$major'
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517 shlibpath_var=LD_LIBRARY_PATH
8518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8522 sco3.2v5*)
8523 version_type=osf
8524 soname_spec='${libname}${release}${shared_ext}$major'
8525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8526 shlibpath_var=LD_LIBRARY_PATH
8529 solaris*)
8530 version_type=linux
8531 need_lib_prefix=no
8532 need_version=no
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534 soname_spec='${libname}${release}${shared_ext}$major'
8535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=yes
8537 hardcode_into_libs=yes
8538 # ldd complains unless libraries are executable
8539 postinstall_cmds='chmod +x $lib'
8542 sunos4*)
8543 version_type=sunos
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8546 shlibpath_var=LD_LIBRARY_PATH
8547 shlibpath_overrides_runpath=yes
8548 if test "$with_gnu_ld" = yes; then
8549 need_lib_prefix=no
8551 need_version=yes
8554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8555 version_type=linux
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 soname_spec='${libname}${release}${shared_ext}$major'
8558 shlibpath_var=LD_LIBRARY_PATH
8559 case $host_vendor in
8560 sni)
8561 shlibpath_overrides_runpath=no
8562 need_lib_prefix=no
8563 export_dynamic_flag_spec='${wl}-Blargedynsym'
8564 runpath_var=LD_RUN_PATH
8566 siemens)
8567 need_lib_prefix=no
8569 motorola)
8570 need_lib_prefix=no
8571 need_version=no
8572 shlibpath_overrides_runpath=no
8573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8575 esac
8578 sysv4*MP*)
8579 if test -d /usr/nec ;then
8580 version_type=linux
8581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8582 soname_spec='$libname${shared_ext}.$major'
8583 shlibpath_var=LD_LIBRARY_PATH
8587 uts4*)
8588 version_type=linux
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8591 shlibpath_var=LD_LIBRARY_PATH
8595 dynamic_linker=no
8597 esac
8598 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8599 echo "${ECHO_T}$dynamic_linker" >&6
8600 test "$dynamic_linker" = no && can_build_shared=no
8602 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8603 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8604 hardcode_action=
8605 if test -n "$hardcode_libdir_flag_spec" || \
8606 test -n "$runpath_var" || \
8607 test "X$hardcode_automatic" = "Xyes" ; then
8609 # We can hardcode non-existant directories.
8610 if test "$hardcode_direct" != no &&
8611 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8612 # have to relink, otherwise we might link with an installed library
8613 # when we should be linking with a yet-to-be-installed one
8614 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8615 test "$hardcode_minus_L" != no; then
8616 # Linking always hardcodes the temporary library directory.
8617 hardcode_action=relink
8618 else
8619 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8620 hardcode_action=immediate
8622 else
8623 # We cannot hardcode anything, or else we can only hardcode existing
8624 # directories.
8625 hardcode_action=unsupported
8627 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8628 echo "${ECHO_T}$hardcode_action" >&6
8630 if test "$hardcode_action" = relink; then
8631 # Fast installation is not supported
8632 enable_fast_install=no
8633 elif test "$shlibpath_overrides_runpath" = yes ||
8634 test "$enable_shared" = no; then
8635 # Fast installation is not necessary
8636 enable_fast_install=needless
8639 striplib=
8640 old_striplib=
8641 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8642 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8643 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8646 echo "$as_me:$LINENO: result: yes" >&5
8647 echo "${ECHO_T}yes" >&6
8648 else
8649 # FIXME - insert some real tests, host_os isn't really good enough
8650 case $host_os in
8651 darwin*)
8652 if test -n "$STRIP" ; then
8653 striplib="$STRIP -x"
8654 echo "$as_me:$LINENO: result: yes" >&5
8655 echo "${ECHO_T}yes" >&6
8656 else
8657 echo "$as_me:$LINENO: result: no" >&5
8658 echo "${ECHO_T}no" >&6
8662 echo "$as_me:$LINENO: result: no" >&5
8663 echo "${ECHO_T}no" >&6
8665 esac
8668 if test "x$enable_dlopen" != xyes; then
8669 enable_dlopen=unknown
8670 enable_dlopen_self=unknown
8671 enable_dlopen_self_static=unknown
8672 else
8673 lt_cv_dlopen=no
8674 lt_cv_dlopen_libs=
8676 case $host_os in
8677 beos*)
8678 lt_cv_dlopen="load_add_on"
8679 lt_cv_dlopen_libs=
8680 lt_cv_dlopen_self=yes
8683 mingw* | pw32*)
8684 lt_cv_dlopen="LoadLibrary"
8685 lt_cv_dlopen_libs=
8688 cygwin*)
8689 lt_cv_dlopen="dlopen"
8690 lt_cv_dlopen_libs=
8693 darwin*)
8694 # if libdl is installed we need to link against it
8695 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8696 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8697 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700 ac_check_lib_save_LIBS=$LIBS
8701 LIBS="-ldl $LIBS"
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8709 /* Override any gcc2 internal prototype to avoid an error. */
8710 #ifdef __cplusplus
8711 extern "C"
8712 #endif
8713 /* We use char because int might match the return type of a gcc2
8714 builtin and then its argument prototype would still apply. */
8715 char dlopen ();
8717 main ()
8719 dlopen ();
8721 return 0;
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_lib_dl_dlopen=yes
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8751 ac_cv_lib_dl_dlopen=no
8753 rm -f conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 LIBS=$ac_check_lib_save_LIBS
8757 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8758 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8759 if test $ac_cv_lib_dl_dlopen = yes; then
8760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8761 else
8763 lt_cv_dlopen="dyld"
8764 lt_cv_dlopen_libs=
8765 lt_cv_dlopen_self=yes
8772 echo "$as_me:$LINENO: checking for shl_load" >&5
8773 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8774 if test "${ac_cv_func_shl_load+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8785 #define shl_load innocuous_shl_load
8787 /* System header to define __stub macros and hopefully few prototypes,
8788 which can conflict with char shl_load (); below.
8789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8790 <limits.h> exists even on freestanding compilers. */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8798 #undef shl_load
8800 /* Override any gcc2 internal prototype to avoid an error. */
8801 #ifdef __cplusplus
8802 extern "C"
8804 #endif
8805 /* We use char because int might match the return type of a gcc2
8806 builtin and then its argument prototype would still apply. */
8807 char shl_load ();
8808 /* The GNU C library defines this for functions which it implements
8809 to always fail with ENOSYS. Some functions are actually named
8810 something starting with __ and the normal name is an alias. */
8811 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8812 choke me
8813 #else
8814 char (*f) () = shl_load;
8815 #endif
8816 #ifdef __cplusplus
8818 #endif
8821 main ()
8823 return f != shl_load;
8825 return 0;
8827 _ACEOF
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8830 (eval $ac_link) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_func_shl_load=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_cv_func_shl_load=no
8857 rm -f conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8861 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8862 if test $ac_cv_func_shl_load = yes; then
8863 lt_cv_dlopen="shl_load"
8864 else
8865 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8866 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8867 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-ldld $LIBS"
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8879 /* Override any gcc2 internal prototype to avoid an error. */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 /* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */
8885 char shl_load ();
8887 main ()
8889 shl_load ();
8891 return 0;
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest$ac_exeext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_lib_dld_shl_load=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_cv_lib_dld_shl_load=no
8923 rm -f conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8928 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8929 if test $ac_cv_lib_dld_shl_load = yes; then
8930 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8931 else
8932 echo "$as_me:$LINENO: checking for dlopen" >&5
8933 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8934 if test "${ac_cv_func_dlopen+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h. */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8945 #define dlopen innocuous_dlopen
8947 /* System header to define __stub macros and hopefully few prototypes,
8948 which can conflict with char dlopen (); below.
8949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8950 <limits.h> exists even on freestanding compilers. */
8952 #ifdef __STDC__
8953 # include <limits.h>
8954 #else
8955 # include <assert.h>
8956 #endif
8958 #undef dlopen
8960 /* Override any gcc2 internal prototype to avoid an error. */
8961 #ifdef __cplusplus
8962 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967 char dlopen ();
8968 /* The GNU C library defines this for functions which it implements
8969 to always fail with ENOSYS. Some functions are actually named
8970 something starting with __ and the normal name is an alias. */
8971 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8972 choke me
8973 #else
8974 char (*f) () = dlopen;
8975 #endif
8976 #ifdef __cplusplus
8978 #endif
8981 main ()
8983 return f != dlopen;
8985 return 0;
8987 _ACEOF
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8990 (eval $ac_link) 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag"
8998 || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_func_dlopen=yes
9011 else
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_cv_func_dlopen=no
9017 rm -f conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9021 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9022 if test $ac_cv_func_dlopen = yes; then
9023 lt_cv_dlopen="dlopen"
9024 else
9025 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9026 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9027 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030 ac_check_lib_save_LIBS=$LIBS
9031 LIBS="-ldl $LIBS"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char dlopen ();
9047 main ()
9049 dlopen ();
9051 return 0;
9053 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_lib_dl_dlopen=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_cv_lib_dl_dlopen=no
9083 rm -f conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9087 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9088 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9089 if test $ac_cv_lib_dl_dlopen = yes; then
9090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9091 else
9092 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9093 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9094 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 ac_check_lib_save_LIBS=$LIBS
9098 LIBS="-lsvld $LIBS"
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 /* Override any gcc2 internal prototype to avoid an error. */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 /* We use char because int might match the return type of a gcc2
9111 builtin and then its argument prototype would still apply. */
9112 char dlopen ();
9114 main ()
9116 dlopen ();
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag"
9131 || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_lib_svld_dlopen=yes
9144 else
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_cv_lib_svld_dlopen=no
9150 rm -f conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext conftest.$ac_ext
9152 LIBS=$ac_check_lib_save_LIBS
9154 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9155 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9156 if test $ac_cv_lib_svld_dlopen = yes; then
9157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9158 else
9159 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9160 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9161 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-ldld $LIBS"
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9173 /* Override any gcc2 internal prototype to avoid an error. */
9174 #ifdef __cplusplus
9175 extern "C"
9176 #endif
9177 /* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */
9179 char dld_link ();
9181 main ()
9183 dld_link ();
9185 return 0;
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_dld_dld_link=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_cv_lib_dld_dld_link=no
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 LIBS=$ac_check_lib_save_LIBS
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9223 if test $ac_cv_lib_dld_dld_link = yes; then
9224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9243 esac
9245 if test "x$lt_cv_dlopen" != xno; then
9246 enable_dlopen=yes
9247 else
9248 enable_dlopen=no
9251 case $lt_cv_dlopen in
9252 dlopen)
9253 save_CPPFLAGS="$CPPFLAGS"
9254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9256 save_LDFLAGS="$LDFLAGS"
9257 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9259 save_LIBS="$LIBS"
9260 LIBS="$lt_cv_dlopen_libs $LIBS"
9262 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9264 if test "${lt_cv_dlopen_self+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 if test "$cross_compiling" = yes; then :
9268 lt_cv_dlopen_self=cross
9269 else
9270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9271 lt_status=$lt_dlunknown
9272 cat > conftest.$ac_ext <<EOF
9273 #line 9273 "configure"
9274 #include "confdefs.h"
9276 #if HAVE_DLFCN_H
9277 #include <dlfcn.h>
9278 #endif
9280 #include <stdio.h>
9282 #ifdef RTLD_GLOBAL
9283 # define LT_DLGLOBAL RTLD_GLOBAL
9284 #else
9285 # ifdef DL_GLOBAL
9286 # define LT_DLGLOBAL DL_GLOBAL
9287 # else
9288 # define LT_DLGLOBAL 0
9289 # endif
9290 #endif
9292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9293 find out it does not work in some platform. */
9294 #ifndef LT_DLLAZY_OR_NOW
9295 # ifdef RTLD_LAZY
9296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9297 # else
9298 # ifdef DL_LAZY
9299 # define LT_DLLAZY_OR_NOW DL_LAZY
9300 # else
9301 # ifdef RTLD_NOW
9302 # define LT_DLLAZY_OR_NOW RTLD_NOW
9303 # else
9304 # ifdef DL_NOW
9305 # define LT_DLLAZY_OR_NOW DL_NOW
9306 # else
9307 # define LT_DLLAZY_OR_NOW 0
9308 # endif
9309 # endif
9310 # endif
9311 # endif
9312 #endif
9314 #ifdef __cplusplus
9315 extern "C" void exit (int);
9316 #endif
9318 void fnord() { int i=42;}
9319 int main ()
9321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9322 int status = $lt_dlunknown;
9324 if (self)
9326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9328 /* dlclose (self); */
9331 exit (status);
9334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335 (eval $ac_link) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9339 (./conftest; exit; ) 2>/dev/null
9340 lt_status=$?
9341 case x$lt_status in
9342 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9343 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9344 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9345 esac
9346 else :
9347 # compilation failed
9348 lt_cv_dlopen_self=no
9351 rm -fr conftest*
9355 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9356 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9358 if test "x$lt_cv_dlopen_self" = xyes; then
9359 LDFLAGS="$LDFLAGS $link_static_flag"
9360 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9361 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9362 if test "${lt_cv_dlopen_self_static+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 if test "$cross_compiling" = yes; then :
9366 lt_cv_dlopen_self_static=cross
9367 else
9368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9369 lt_status=$lt_dlunknown
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9371 "configure"
9372 #include "confdefs.h"
9374 #if HAVE_DLFCN_H
9375 #include <dlfcn.h>
9376 #endif
9378 #include <stdio.h>
9380 #ifdef RTLD_GLOBAL
9381 # define LT_DLGLOBAL RTLD_GLOBAL
9382 #else
9383 # ifdef DL_GLOBAL
9384 # define LT_DLGLOBAL DL_GLOBAL
9385 # else
9386 # define LT_DLGLOBAL 0
9387 # endif
9388 #endif
9390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9391 find out it does not work in some platform. */
9392 #ifndef LT_DLLAZY_OR_NOW
9393 # ifdef RTLD_LAZY
9394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9395 # else
9396 # ifdef DL_LAZY
9397 # define LT_DLLAZY_OR_NOW DL_LAZY
9398 # else
9399 # ifdef RTLD_NOW
9400 # define LT_DLLAZY_OR_NOW RTLD_NOW
9401 # else
9402 # ifdef DL_NOW
9403 # define LT_DLLAZY_OR_NOW DL_NOW
9404 # else
9405 # define LT_DLLAZY_OR_NOW 0
9406 # endif
9407 # endif
9408 # endif
9409 # endif
9410 #endif
9412 #ifdef __cplusplus
9413 extern "C" void exit (int);
9414 #endif
9416 void fnord() { int i=42;}
9417 int main ()
9419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9420 int status = $lt_dlunknown;
9422 if (self)
9424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9425 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9426 /* dlclose (self); */
9429 exit (status);
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9437 (./conftest; exit; ) 2>/dev/null
9438 lt_status=$?
9439 case x$lt_status in
9440 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9441 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9442 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9443 esac
9444 else :
9445 # compilation failed
9446 lt_cv_dlopen_self_static=no
9449 rm -fr conftest*
9453 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9454 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9457 CPPFLAGS="$save_CPPFLAGS"
9458 LDFLAGS="$save_LDFLAGS"
9459 LIBS="$save_LIBS"
9461 esac
9463 case $lt_cv_dlopen_self in
9464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9465 *) enable_dlopen_self=unknown ;;
9466 esac
9468 case $lt_cv_dlopen_self_static in
9469 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9470 *) enable_dlopen_self_static=unknown ;;
9471 esac
9475 # Report which librarie types wil actually be built
9476 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9477 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9478 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9479 echo "${ECHO_T}$can_build_shared" >&6
9481 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9482 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9483 test "$can_build_shared" = "no" && enable_shared=no
9485 # On AIX, shared libraries and static libraries use the same namespace, and
9486 # are all built from PIC.
9487 case "$host_os" in
9488 aix3*)
9489 test "$enable_shared" = yes && enable_static=no
9490 if test -n "$RANLIB"; then
9491 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9492 postinstall_cmds='$RANLIB $lib'
9496 aix4* | aix5*)
9497 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9498 test "$enable_shared" = yes && enable_static=no
9501 esac
9502 echo "$as_me:$LINENO: result: $enable_shared" >&5
9503 echo "${ECHO_T}$enable_shared" >&6
9505 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9506 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9507 # Make sure either enable_shared or enable_static is yes.
9508 test "$enable_shared" = yes || enable_static=yes
9509 echo "$as_me:$LINENO: result: $enable_static" >&5
9510 echo "${ECHO_T}$enable_static" >&6
9512 # The else clause should only fire when bootstrapping the
9513 # libtool distribution, otherwise you forgot to ship ltmain.sh
9514 # with your package, and you will get complaints that there are
9515 # no rules to generate ltmain.sh.
9516 if test -f "$ltmain"; then
9517 # See if we are running on zsh, and set the options which allow our commands through
9518 # without removal of \ escapes.
9519 if test -n "${ZSH_VERSION+set}" ; then
9520 setopt NO_GLOB_SUBST
9522 # Now quote all the things that may contain metacharacters while being
9523 # careful not to overquote the AC_SUBSTed values. We take copies of the
9524 # variables and quote the copies for generation of the libtool script.
9525 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9526 SED SHELL STRIP \
9527 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9528 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9529 deplibs_check_method reload_flag reload_cmds need_locks \
9530 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9531 lt_cv_sys_global_symbol_to_c_name_address \
9532 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9533 old_postinstall_cmds old_postuninstall_cmds \
9534 compiler \
9535 CC \
9536 LD \
9537 lt_prog_compiler_wl \
9538 lt_prog_compiler_pic \
9539 lt_prog_compiler_static \
9540 lt_prog_compiler_no_builtin_flag \
9541 export_dynamic_flag_spec \
9542 thread_safe_flag_spec \
9543 whole_archive_flag_spec \
9544 enable_shared_with_static_runtimes \
9545 old_archive_cmds \
9546 old_archive_from_new_cmds \
9547 predep_objects \
9548 postdep_objects \
9549 predeps \
9550 postdeps \
9551 compiler_lib_search_path \
9552 archive_cmds \
9553 archive_expsym_cmds \
9554 postinstall_cmds \
9555 postuninstall_cmds \
9556 old_archive_from_expsyms_cmds \
9557 allow_undefined_flag \
9558 no_undefined_flag \
9559 export_symbols_cmds \
9560 hardcode_libdir_flag_spec \
9561 hardcode_libdir_flag_spec_ld \
9562 hardcode_libdir_separator \
9563 hardcode_automatic \
9564 module_cmds \
9565 module_expsym_cmds \
9566 lt_cv_prog_compiler_c_o \
9567 exclude_expsyms \
9568 include_expsyms; do
9570 case $var in
9571 old_archive_cmds | \
9572 old_archive_from_new_cmds | \
9573 archive_cmds | \
9574 archive_expsym_cmds | \
9575 module_cmds | \
9576 module_expsym_cmds | \
9577 old_archive_from_expsyms_cmds | \
9578 export_symbols_cmds | \
9579 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9580 postinstall_cmds | postuninstall_cmds | \
9581 old_postinstall_cmds | old_postuninstall_cmds | \
9582 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9583 # Double-quote double-evaled strings.
9584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9587 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9589 esac
9590 done
9592 case $lt_echo in
9593 *'\$0 --fallback-echo"')
9594 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9596 esac
9598 cfgfile="${ofile}T"
9599 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9600 $rm -f "$cfgfile"
9601 { echo "$as_me:$LINENO: creating $ofile" >&5
9602 echo "$as_me: creating $ofile" >&6;}
9604 cat <<__EOF__ >> "$cfgfile"
9605 #! $SHELL
9607 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9608 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9609 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9611 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9612 # Free Software Foundation, Inc.
9614 # This file is part of GNU Libtool:
9615 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9617 # This program is free software; you can redistribute it and/or modify
9618 # it under the terms of the GNU General Public License as published by
9619 # the Free Software Foundation; either version 2 of the License, or
9620 # (at your option) any later version.
9622 # This program is distributed in the hope that it will be useful, but
9623 # WITHOUT ANY WARRANTY; without even the implied warranty of
9624 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9625 # General Public License for more details.
9627 # You should have received a copy of the GNU General Public License
9628 # along with this program; if not, write to the Free Software
9629 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9631 # As a special exception to the GNU General Public License, if you
9632 # distribute this file as part of a program that contains a
9633 # configuration script generated by Autoconf, you may include it under
9634 # the same distribution terms that you use for the rest of that program.
9636 # A sed program that does not truncate output.
9637 SED=$lt_SED
9639 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9640 Xsed="$SED -e s/^X//"
9642 # The HP-UX ksh and POSIX shell print the target directory to stdout
9643 # if CDPATH is set.
9644 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9646 # The names of the tagged configurations supported by this script.
9647 available_tags=
9649 # ### BEGIN LIBTOOL CONFIG
9651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9653 # Shell to use when invoking shell scripts.
9654 SHELL=$lt_SHELL
9656 # Whether or not to build shared libraries.
9657 build_libtool_libs=$enable_shared
9659 # Whether or not to build static libraries.
9660 build_old_libs=$enable_static
9662 # Whether or not to add -lc for building shared libraries.
9663 build_libtool_need_lc=$archive_cmds_need_lc
9665 # Whether or not to disallow shared libs when runtime libs are static
9666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9668 # Whether or not to optimize for fast installation.
9669 fast_install=$enable_fast_install
9671 # The host system.
9672 host_alias=$host_alias
9673 host=$host
9675 # An echo program that does not interpret backslashes.
9676 echo=$lt_echo
9678 # The archiver.
9679 AR=$lt_AR
9680 AR_FLAGS=$lt_AR_FLAGS
9682 # A C compiler.
9683 LTCC=$lt_LTCC
9685 # A language-specific compiler.
9686 CC=$lt_compiler
9688 # Is the compiler the GNU C compiler?
9689 with_gcc=$GCC
9691 # An ERE matcher.
9692 EGREP=$lt_EGREP
9694 # The linker used to build libraries.
9695 LD=$lt_LD
9697 # Whether we need hard or soft links.
9698 LN_S=$lt_LN_S
9700 # A BSD-compatible nm program.
9701 NM=$lt_NM
9703 # A symbol stripping program
9704 STRIP=$lt_STRIP
9706 # Used to examine libraries when file_magic_cmd begins "file"
9707 MAGIC_CMD=$MAGIC_CMD
9709 # Used on cygwin: DLL creation program.
9710 DLLTOOL="$DLLTOOL"
9712 # Used on cygwin: object dumper.
9713 OBJDUMP="$OBJDUMP"
9715 # Used on cygwin: assembler.
9716 AS="$AS"
9718 # The name of the directory that contains temporary libtool files.
9719 objdir=$objdir
9721 # How to create reloadable object files.
9722 reload_flag=$lt_reload_flag
9723 reload_cmds=$lt_reload_cmds
9725 # How to pass a linker flag through the compiler.
9726 wl=$lt_lt_prog_compiler_wl
9728 # Object file suffix (normally "o").
9729 objext="$ac_objext"
9731 # Old archive suffix (normally "a").
9732 libext="$libext"
9734 # Shared library suffix (normally ".so").
9735 shrext_cmds='$shrext_cmds'
9737 # Executable file suffix (normally "").
9738 exeext="$exeext"
9740 # Additional compiler flags for building library objects.
9741 pic_flag=$lt_lt_prog_compiler_pic
9742 pic_mode=$pic_mode
9744 # What is the maximum length of a command?
9745 max_cmd_len=$lt_cv_sys_max_cmd_len
9747 # Does compiler simultaneously support -c and -o options?
9748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9750 # Must we lock files when doing compilation ?
9751 need_locks=$lt_need_locks
9753 # Do we need the lib prefix for modules?
9754 need_lib_prefix=$need_lib_prefix
9756 # Do we need a version for libraries?
9757 need_version=$need_version
9759 # Whether dlopen is supported.
9760 dlopen_support=$enable_dlopen
9762 # Whether dlopen of programs is supported.
9763 dlopen_self=$enable_dlopen_self
9765 # Whether dlopen of statically linked programs is supported.
9766 dlopen_self_static=$enable_dlopen_self_static
9768 # Compiler flag to prevent dynamic linking.
9769 link_static_flag=$lt_lt_prog_compiler_static
9771 # Compiler flag to turn off builtin functions.
9772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9774 # Compiler flag to allow reflexive dlopens.
9775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9777 # Compiler flag to generate shared objects directly from archives.
9778 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9780 # Compiler flag to generate thread-safe objects.
9781 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9783 # Library versioning type.
9784 version_type=$version_type
9786 # Format of library name prefix.
9787 libname_spec=$lt_libname_spec
9789 # List of archive names. First name is the real one, the rest are links.
9790 # The last name is the one that the linker finds with -lNAME.
9791 library_names_spec=$lt_library_names_spec
9793 # The coded name of the library, if different from the real name.
9794 soname_spec=$lt_soname_spec
9796 # Commands used to build and install an old-style archive.
9797 RANLIB=$lt_RANLIB
9798 old_archive_cmds=$lt_old_archive_cmds
9799 old_postinstall_cmds=$lt_old_postinstall_cmds
9800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9802 # Create an old-style archive from a shared archive.
9803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9805 # Create a temporary old-style archive to link instead of a shared archive.
9806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9808 # Commands used to build and install a shared archive.
9809 archive_cmds=$lt_archive_cmds
9810 archive_expsym_cmds=$lt_archive_expsym_cmds
9811 postinstall_cmds=$lt_postinstall_cmds
9812 postuninstall_cmds=$lt_postuninstall_cmds
9814 # Commands used to build a loadable module (assumed same as above if empty)
9815 module_cmds=$lt_module_cmds
9816 module_expsym_cmds=$lt_module_expsym_cmds
9818 # Commands to strip libraries.
9819 old_striplib=$lt_old_striplib
9820 striplib=$lt_striplib
9822 # Dependencies to place before the objects being linked to create a
9823 # shared library.
9824 predep_objects=$lt_predep_objects
9826 # Dependencies to place after the objects being linked to create a
9827 # shared library.
9828 postdep_objects=$lt_postdep_objects
9830 # Dependencies to place before the objects being linked to create a
9831 # shared library.
9832 predeps=$lt_predeps
9834 # Dependencies to place after the objects being linked to create a
9835 # shared library.
9836 postdeps=$lt_postdeps
9838 # The library search path used internally by the compiler when linking
9839 # a shared library.
9840 compiler_lib_search_path=$lt_compiler_lib_search_path
9842 # Method to check whether dependent libraries are shared objects.
9843 deplibs_check_method=$lt_deplibs_check_method
9845 # Command to use when deplibs_check_method == file_magic.
9846 file_magic_cmd=$lt_file_magic_cmd
9848 # Flag that allows shared libraries with undefined symbols to be built.
9849 allow_undefined_flag=$lt_allow_undefined_flag
9851 # Flag that forces no undefined symbols.
9852 no_undefined_flag=$lt_no_undefined_flag
9854 # Commands used to finish a libtool library installation in a directory.
9855 finish_cmds=$lt_finish_cmds
9857 # Same as above, but a single script fragment to be evaled but not shown.
9858 finish_eval=$lt_finish_eval
9860 # Take the output of nm and produce a listing of raw symbols and C names.
9861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9863 # Transform the output of nm in a proper C declaration
9864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9866 # Transform the output of nm in a C name address pair
9867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9869 # This is the shared library runtime path variable.
9870 runpath_var=$runpath_var
9872 # This is the shared library path variable.
9873 shlibpath_var=$shlibpath_var
9875 # Is shlibpath searched before the hard-coded library search path?
9876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9878 # How to hardcode a shared library path into an executable.
9879 hardcode_action=$hardcode_action
9881 # Whether we should hardcode library paths into libraries.
9882 hardcode_into_libs=$hardcode_into_libs
9884 # Flag to hardcode \$libdir into a binary during linking.
9885 # This must work even if \$libdir does not exist.
9886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9888 # If ld is used when linking, flag to hardcode \$libdir into
9889 # a binary during linking. This must work even if \$libdir does
9890 # not exist.
9891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9893 # Whether we need a single -rpath flag with a separated argument.
9894 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9897 # resulting binary.
9898 hardcode_direct=$hardcode_direct
9900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9901 # resulting binary.
9902 hardcode_minus_L=$hardcode_minus_L
9904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9905 # the resulting binary.
9906 hardcode_shlibpath_var=$hardcode_shlibpath_var
9908 # Set to yes if building a shared library automatically hardcodes DIR into the library
9909 # and all subsequent libraries and executables linked against it.
9910 hardcode_automatic=$hardcode_automatic
9912 # Variables whose values should be saved in libtool wrapper scripts and
9913 # restored at relink time.
9914 variables_saved_for_relink="$variables_saved_for_relink"
9916 # Whether libtool must link a program against all its dependency libraries.
9917 link_all_deplibs=$link_all_deplibs
9919 # Compile-time system search path for libraries
9920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9922 # Run-time system search path for libraries
9923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9925 # Fix the shell variable \$srcfile for the compiler.
9926 fix_srcfile_path="$fix_srcfile_path"
9928 # Set to yes if exported symbols are required.
9929 always_export_symbols=$always_export_symbols
9931 # The commands to list exported symbols.
9932 export_symbols_cmds=$lt_export_symbols_cmds
9934 # The commands to extract the exported symbol list from a shared archive.
9935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9937 # Symbols that should not be listed in the preloaded symbols.
9938 exclude_expsyms=$lt_exclude_expsyms
9940 # Symbols that must always be exported.
9941 include_expsyms=$lt_include_expsyms
9943 # ### END LIBTOOL CONFIG
9945 __EOF__
9948 case $host_os in
9949 aix3*)
9950 cat <<\EOF >> "$cfgfile"
9952 # AIX sometimes has problems with the GCC collect2 program. For some
9953 # reason, if we set the COLLECT_NAMES environment variable, the problems
9954 # vanish in a puff of smoke.
9955 if test "X${COLLECT_NAMES+set}" != Xset; then
9956 COLLECT_NAMES=
9957 export COLLECT_NAMES
9961 esac
9963 # We use sed instead of cat because bash on DJGPP gets confused if
9964 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9965 # text mode, it properly converts lines to CR/LF. This bash problem
9966 # is reportedly fixed, but why not run on old versions too?
9967 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9969 mv -f "$cfgfile" "$ofile" || \
9970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9971 chmod +x "$ofile"
9973 else
9974 # If there is no Makefile yet, we rely on a make rule to execute
9975 # `config.status --recheck' to rerun these tests and create the
9976 # libtool script then.
9977 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9978 if test -f "$ltmain_in"; then
9979 test -f Makefile && make "$ltmain"
9984 ac_ext=c
9985 ac_cpp='$CPP $CPPFLAGS'
9986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9990 CC="$lt_save_CC"
9993 # Check whether --with-tags or --without-tags was given.
9994 if test "${with_tags+set}" = set; then
9995 withval="$with_tags"
9996 tagnames="$withval"
9999 if test -f "$ltmain" && test -n "$tagnames"; then
10000 if test ! -f "${ofile}"; then
10001 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10002 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10005 if test -z "$LTCC"; then
10006 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10007 if test -z "$LTCC"; then
10008 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10009 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10010 else
10011 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10012 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10016 # Extract list of available tagged configurations in $ofile.
10017 # Note that this assumes the entire list is on one line.
10018 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10021 for tagname in $tagnames; do
10022 IFS="$lt_save_ifs"
10023 # Check whether tagname contains only valid characters
10024 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10025 "") ;;
10026 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10027 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10028 { (exit 1); exit 1; }; }
10030 esac
10032 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10033 then
10034 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10035 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10036 { (exit 1); exit 1; }; }
10039 # Update the list of available tags.
10040 if test -n "$tagname"; then
10041 echo appending configuration tag \"$tagname\" to $ofile
10043 case $tagname in
10044 CXX)
10045 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10046 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10047 (test "X$CXX" != "Xg++"))) ; then
10048 ac_ext=cc
10049 ac_cpp='$CXXCPP $CPPFLAGS'
10050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10057 archive_cmds_need_lc_CXX=no
10058 allow_undefined_flag_CXX=
10059 always_export_symbols_CXX=no
10060 archive_expsym_cmds_CXX=
10061 export_dynamic_flag_spec_CXX=
10062 hardcode_direct_CXX=no
10063 hardcode_libdir_flag_spec_CXX=
10064 hardcode_libdir_flag_spec_ld_CXX=
10065 hardcode_libdir_separator_CXX=
10066 hardcode_minus_L_CXX=no
10067 hardcode_automatic_CXX=no
10068 module_cmds_CXX=
10069 module_expsym_cmds_CXX=
10070 link_all_deplibs_CXX=unknown
10071 old_archive_cmds_CXX=$old_archive_cmds
10072 no_undefined_flag_CXX=
10073 whole_archive_flag_spec_CXX=
10074 enable_shared_with_static_runtimes_CXX=no
10076 # Dependencies to place before and after the object being linked:
10077 predep_objects_CXX=
10078 postdep_objects_CXX=
10079 predeps_CXX=
10080 postdeps_CXX=
10081 compiler_lib_search_path_CXX=
10083 # Source file extension for C++ test sources.
10084 ac_ext=cc
10086 # Object file extension for compiled C++ test sources.
10087 objext=o
10088 objext_CXX=$objext
10090 # Code to be used in simple compile tests
10091 lt_simple_compile_test_code="int some_variable = 0;\n"
10093 # Code to be used in simple link tests
10094 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10098 # If no C compiler was specified, use CC.
10099 LTCC=${LTCC-"$CC"}
10101 # Allow CC to be a program name with arguments.
10102 compiler=$CC
10105 # Allow CC to be a program name with arguments.
10106 lt_save_CC=$CC
10107 lt_save_LD=$LD
10108 lt_save_GCC=$GCC
10109 GCC=$GXX
10110 lt_save_with_gnu_ld=$with_gnu_ld
10111 lt_save_path_LD=$lt_cv_path_LD
10112 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10113 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10114 else
10115 unset lt_cv_prog_gnu_ld
10117 if test -n "${lt_cv_path_LDCXX+set}"; then
10118 lt_cv_path_LD=$lt_cv_path_LDCXX
10119 else
10120 unset lt_cv_path_LD
10122 test -z "${LDCXX+set}" || LD=$LDCXX
10123 CC=${CXX-"c++"}
10124 compiler=$CC
10125 compiler_CXX=$CC
10126 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10128 # We don't want -fno-exception wen compiling C++ code, so set the
10129 # no_builtin_flag separately
10130 if test "$GXX" = yes; then
10131 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10132 else
10133 lt_prog_compiler_no_builtin_flag_CXX=
10136 if test "$GXX" = yes; then
10137 # Set up default GNU C++ configuration
10140 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10141 if test "${with_gnu_ld+set}" = set; then
10142 withval="$with_gnu_ld"
10143 test "$withval" = no || with_gnu_ld=yes
10144 else
10145 with_gnu_ld=no
10147 ac_prog=ld
10148 if test "$GCC" = yes; then
10149 # Check if gcc -print-prog-name=ld gives a path.
10150 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10151 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10152 case $host in
10153 *-*-mingw*)
10154 # gcc leaves a trailing carriage return which upsets mingw
10155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10158 esac
10159 case $ac_prog in
10160 # Accept absolute paths.
10161 [\\/]* | ?:[\\/]*)
10162 re_direlt='/[^/][^/]*/\.\./'
10163 # Canonicalize the pathname of ld
10164 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10165 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10166 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10167 done
10168 test -z "$LD" && LD="$ac_prog"
10171 # If it fails, then pretend we aren't using GCC.
10172 ac_prog=ld
10175 # If it is relative, then search for the first ld in PATH.
10176 with_gnu_ld=unknown
10178 esac
10179 elif test "$with_gnu_ld" = yes; then
10180 echo "$as_me:$LINENO: checking for GNU ld" >&5
10181 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10182 else
10183 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10184 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10186 if test "${lt_cv_path_LD+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189 if test -z "$LD"; then
10190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10191 for ac_dir in $PATH; do
10192 IFS="$lt_save_ifs"
10193 test -z "$ac_dir" && ac_dir=.
10194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10195 lt_cv_path_LD="$ac_dir/$ac_prog"
10196 # Check to see if the program is GNU ld. I'd rather use --version,
10197 # but apparently some GNU ld's only accept -v.
10198 # Break only if it was the GNU/non-GNU ld that we prefer.
10199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10200 *GNU* | *'with BFD'*)
10201 test "$with_gnu_ld" != no && break
10204 test "$with_gnu_ld" != yes && break
10206 esac
10208 done
10209 IFS="$lt_save_ifs"
10210 else
10211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10215 LD="$lt_cv_path_LD"
10216 if test -n "$LD"; then
10217 echo "$as_me:$LINENO: result: $LD" >&5
10218 echo "${ECHO_T}$LD" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10225 { (exit 1); exit 1; }; }
10226 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10228 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10232 case `$LD -v 2>&1 </dev/null` in
10233 *GNU* | *'with BFD'*)
10234 lt_cv_prog_gnu_ld=yes
10237 lt_cv_prog_gnu_ld=no
10239 esac
10241 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10242 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10243 with_gnu_ld=$lt_cv_prog_gnu_ld
10247 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10248 # archiving commands below assume that GNU ld is being used.
10249 if test "$with_gnu_ld" = yes; then
10250 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251 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'
10253 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10254 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10256 # If archive_cmds runs LD, not CC, wlarc should be empty
10257 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10258 # investigate it a little bit more. (MM)
10259 wlarc='${wl}'
10261 # ancient GNU ld didn't support --whole-archive et. al.
10262 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10263 grep 'no-whole-archive' > /dev/null; then
10264 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10265 else
10266 whole_archive_flag_spec_CXX=
10268 else
10269 with_gnu_ld=no
10270 wlarc=
10272 # A generic and very simple default shared library creation
10273 # command for GNU C++ for the case where it uses the native
10274 # linker, instead of GNU ld. If possible, this setting should
10275 # overridden to take advantage of the native linker features on
10276 # the platform it is being used on.
10277 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10285 else
10286 GXX=no
10287 with_gnu_ld=no
10288 wlarc=
10291 # PORTME: fill in a description of your system's C++ link characteristics
10292 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10293 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10294 ld_shlibs_CXX=yes
10295 case $host_os in
10296 aix3*)
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10300 aix4* | aix5*)
10301 if test "$host_cpu" = ia64; then
10302 # On IA64, the linker does run time linking by default, so we don't
10303 # have to do anything special.
10304 aix_use_runtimelinking=no
10305 exp_sym_flag='-Bexport'
10306 no_entry_flag=""
10307 else
10308 aix_use_runtimelinking=no
10310 # Test if we are trying to use run time linking or normal
10311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10312 # need to do runtime linking.
10313 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10314 for ld_flag in $LDFLAGS; do
10315 case $ld_flag in
10316 *-brtl*)
10317 aix_use_runtimelinking=yes
10318 break
10320 esac
10321 done
10322 esac
10324 exp_sym_flag='-bexport'
10325 no_entry_flag='-bnoentry'
10328 # When large executables or shared objects are built, AIX ld can
10329 # have problems creating the table of contents. If linking a library
10330 # or program results in "error TOC overflow" add -mminimal-toc to
10331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10334 archive_cmds_CXX=''
10335 hardcode_direct_CXX=yes
10336 hardcode_libdir_separator_CXX=':'
10337 link_all_deplibs_CXX=yes
10339 if test "$GXX" = yes; then
10340 case $host_os in aix4.012|aix4.012.*)
10341 # We only want to do this on AIX 4.2 and lower, the check
10342 # below for broken collect2 doesn't work under 4.3+
10343 collect2name=`${CC} -print-prog-name=collect2`
10344 if test -f "$collect2name" && \
10345 strings "$collect2name" | grep resolve_lib_name >/dev/null
10346 then
10347 # We have reworked collect2
10348 hardcode_direct_CXX=yes
10349 else
10350 # We have old collect2
10351 hardcode_direct_CXX=unsupported
10352 # It fails to find uninstalled libraries when the uninstalled
10353 # path is not listed in the libpath. Setting hardcode_minus_L
10354 # to unsupported forces relinking
10355 hardcode_minus_L_CXX=yes
10356 hardcode_libdir_flag_spec_CXX='-L$libdir'
10357 hardcode_libdir_separator_CXX=
10359 esac
10360 shared_flag='-shared'
10361 else
10362 # not using gcc
10363 if test "$host_cpu" = ia64; then
10364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10365 # chokes on -Wl,-G. The following line is correct:
10366 shared_flag='-G'
10367 else
10368 if test "$aix_use_runtimelinking" = yes; then
10369 shared_flag='${wl}-G'
10370 else
10371 shared_flag='${wl}-bM:SRE'
10376 # It seems that -bexpall does not export symbols beginning with
10377 # underscore (_), so it is better to generate a list of symbols to export.
10378 always_export_symbols_CXX=yes
10379 if test "$aix_use_runtimelinking" = yes; then
10380 # Warning - without using the other runtime loading flags (-brtl),
10381 # -berok will link without error, but may produce a broken library.
10382 allow_undefined_flag_CXX='-berok'
10383 # Determine the default libpath from the value encoded in an empty executable.
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10392 main ()
10396 return 0;
10398 _ACEOF
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>conftest.er1
10402 ac_status=$?
10403 grep -v '^ *+' conftest.er1 >conftest.err
10404 rm -f conftest.er1
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -z "$ac_cxx_werror_flag"
10409 || test ! -s conftest.err'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10424 # Check for a 64-bit object if we didn't find anything.
10425 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; }
10426 }'`; fi
10427 else
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10432 rm -f conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10438 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"
10439 else
10440 if test "$host_cpu" = ia64; then
10441 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10442 allow_undefined_flag_CXX="-z nodefs"
10443 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"
10444 else
10445 # Determine the default libpath from the value encoded in an empty executable.
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10454 main ()
10458 return 0;
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_cxx_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10486 # Check for a 64-bit object if we didn't find anything.
10487 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; }
10488 }'`; fi
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10494 rm -f conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10499 # Warning - without using the other run time loading flags,
10500 # -berok will link without error, but may produce a broken library.
10501 no_undefined_flag_CXX=' ${wl}-bernotok'
10502 allow_undefined_flag_CXX=' ${wl}-berok'
10503 # -bexpall does not export symbols beginning with underscore (_)
10504 always_export_symbols_CXX=yes
10505 # Exported symbols can be pulled into shared objects from archives
10506 whole_archive_flag_spec_CXX=' '
10507 archive_cmds_need_lc_CXX=yes
10508 # This is similar to how AIX traditionally builds it's shared libraries.
10509 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'
10513 chorus*)
10514 case $cc_basename in
10516 # FIXME: insert proper C++ library support
10517 ld_shlibs_CXX=no
10519 esac
10523 cygwin* | mingw* | pw32*)
10524 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10525 # as there is no search path for DLLs.
10526 hardcode_libdir_flag_spec_CXX='-L$libdir'
10527 allow_undefined_flag_CXX=unsupported
10528 always_export_symbols_CXX=no
10529 enable_shared_with_static_runtimes_CXX=yes
10531 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10532 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'
10533 # If the export-symbols file already is a .def file (1st line
10534 # is EXPORTS), use it as is; otherwise, prepend...
10535 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10536 cp $export_symbols $output_objdir/$soname.def;
10537 else
10538 echo EXPORTS > $output_objdir/$soname.def;
10539 cat $export_symbols >> $output_objdir/$soname.def;
10541 $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'
10542 else
10543 ld_shlibs_CXX=no
10546 darwin* | rhapsody*)
10547 case "$host_os" in
10548 rhapsody* | darwin1.[012])
10549 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10551 *) # Darwin 1.3 on
10552 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10553 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10554 else
10555 case ${MACOSX_DEPLOYMENT_TARGET} in
10556 10.[012])
10557 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10559 10.*)
10560 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10562 esac
10565 esac
10566 archive_cmds_need_lc_CXX=no
10567 hardcode_direct_CXX=no
10568 hardcode_automatic_CXX=yes
10569 hardcode_shlibpath_var_CXX=unsupported
10570 whole_archive_flag_spec_CXX=''
10571 link_all_deplibs_CXX=yes
10573 if test "$GXX" = yes ; then
10574 lt_int_apple_cc_single_mod=no
10575 output_verbose_link_cmd='echo'
10576 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10577 lt_int_apple_cc_single_mod=yes
10579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10580 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10581 else
10582 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'
10584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10586 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10587 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}'
10588 else
10589 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}'
10591 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}'
10592 else
10593 case "$cc_basename" in
10594 xlc*)
10595 output_verbose_link_cmd='echo'
10596 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'
10597 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10599 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}'
10600 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}'
10603 ld_shlibs_CXX=no
10605 esac
10609 dgux*)
10610 case $cc_basename in
10611 ec++)
10612 # FIXME: insert proper C++ library support
10613 ld_shlibs_CXX=no
10615 ghcx)
10616 # Green Hills C++ Compiler
10617 # FIXME: insert proper C++ library support
10618 ld_shlibs_CXX=no
10621 # FIXME: insert proper C++ library support
10622 ld_shlibs_CXX=no
10624 esac
10626 freebsd12*)
10627 # C++ shared libraries reported to be fairly broken before switch to ELF
10628 ld_shlibs_CXX=no
10630 freebsd-elf*)
10631 archive_cmds_need_lc_CXX=no
10633 freebsd* | kfreebsd*-gnu)
10634 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10635 # conventions
10636 ld_shlibs_CXX=yes
10638 gnu*)
10640 hpux9*)
10641 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10642 hardcode_libdir_separator_CXX=:
10643 export_dynamic_flag_spec_CXX='${wl}-E'
10644 hardcode_direct_CXX=yes
10645 hardcode_minus_L_CXX=yes # Not in the search PATH,
10646 # but as the default
10647 # location of the library.
10649 case $cc_basename in
10651 # FIXME: insert proper C++ library support
10652 ld_shlibs_CXX=no
10654 aCC)
10655 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'
10656 # Commands to make compiler produce verbose output that lists
10657 # what "hidden" libraries, object files and flags are used when
10658 # linking a shared library.
10660 # There doesn't appear to be a way to prevent this compiler from
10661 # explicitly linking system object files so we need to strip them
10662 # from the output so that they don't get included in the library
10663 # dependencies.
10664 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'
10667 if test "$GXX" = yes; then
10668 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'
10669 else
10670 # FIXME: insert proper C++ library support
10671 ld_shlibs_CXX=no
10674 esac
10676 hpux10*|hpux11*)
10677 if test $with_gnu_ld = no; then
10678 case "$host_cpu" in
10679 hppa*64*)
10680 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10681 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10682 hardcode_libdir_separator_CXX=:
10684 ia64*)
10685 hardcode_libdir_flag_spec_CXX='-L$libdir'
10688 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10689 hardcode_libdir_separator_CXX=:
10690 export_dynamic_flag_spec_CXX='${wl}-E'
10692 esac
10694 case "$host_cpu" in
10695 hppa*64*)
10696 hardcode_direct_CXX=no
10697 hardcode_shlibpath_var_CXX=no
10699 ia64*)
10700 hardcode_direct_CXX=no
10701 hardcode_shlibpath_var_CXX=no
10702 hardcode_minus_L_CXX=yes # Not in the search PATH,
10703 # but as the default
10704 # location of the library.
10707 hardcode_direct_CXX=yes
10708 hardcode_minus_L_CXX=yes # Not in the search PATH,
10709 # but as the default
10710 # location of the library.
10712 esac
10714 case $cc_basename in
10716 # FIXME: insert proper C++ library support
10717 ld_shlibs_CXX=no
10719 aCC)
10720 case "$host_cpu" in
10721 hppa*64*|ia64*)
10722 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10725 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10727 esac
10728 # Commands to make compiler produce verbose output that lists
10729 # what "hidden" libraries, object files and flags are used when
10730 # linking a shared library.
10732 # There doesn't appear to be a way to prevent this compiler from
10733 # explicitly linking system object files so we need to strip them
10734 # from the output so that they don't get included in the library
10735 # dependencies.
10736 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'
10739 if test "$GXX" = yes; then
10740 if test $with_gnu_ld = no; then
10741 case "$host_cpu" in
10742 ia64*|hppa*64*)
10743 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10746 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'
10748 esac
10750 else
10751 # FIXME: insert proper C++ library support
10752 ld_shlibs_CXX=no
10755 esac
10757 irix5* | irix6*)
10758 case $cc_basename in
10760 # SGI C++
10761 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'
10763 # Archives containing C++ object files must be created using
10764 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10765 # necessary to make sure instantiated templates are included
10766 # in the archive.
10767 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10770 if test "$GXX" = yes; then
10771 if test "$with_gnu_ld" = no; then
10772 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'
10773 else
10774 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'
10777 link_all_deplibs_CXX=yes
10779 esac
10780 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10781 hardcode_libdir_separator_CXX=:
10783 linux*)
10784 case $cc_basename in
10785 KCC)
10786 # Kuck and Associates, Inc. (KAI) C++ Compiler
10788 # KCC will only create a shared library if the output file
10789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10790 # to its proper name (with version) after linking.
10791 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'
10792 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'
10793 # Commands to make compiler produce verbose output that lists
10794 # what "hidden" libraries, object files and flags are used when
10795 # linking a shared library.
10797 # There doesn't appear to be a way to prevent this compiler from
10798 # explicitly linking system object files so we need to strip them
10799 # from the output so that they don't get included in the library
10800 # dependencies.
10801 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'
10803 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10806 # Archives containing C++ object files must be created using
10807 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10808 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10810 icpc)
10811 # Intel C++
10812 with_gnu_ld=yes
10813 # version 8.0 and above of icpc choke on multiply defined symbols
10814 # if we add $predep_objects and $postdep_objects, however 7.1 and
10815 # earlier do not add the objects themselves.
10816 case `$CC -V 2>&1` in
10817 *"Version 7."*)
10818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10819 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'
10821 *) # Version 8.0 or newer
10822 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10823 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10825 esac
10826 archive_cmds_need_lc_CXX=no
10827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10828 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10829 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10831 cxx)
10832 # Compaq C++
10833 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10834 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'
10836 runpath_var=LD_RUN_PATH
10837 hardcode_libdir_flag_spec_CXX='-rpath $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"`; 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'
10850 esac
10852 lynxos*)
10853 # FIXME: insert proper C++ library support
10854 ld_shlibs_CXX=no
10856 m88k*)
10857 # FIXME: insert proper C++ library support
10858 ld_shlibs_CXX=no
10860 mvs*)
10861 case $cc_basename in
10862 cxx)
10863 # FIXME: insert proper C++ library support
10864 ld_shlibs_CXX=no
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10870 esac
10872 netbsd*)
10873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10874 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10875 wlarc=
10876 hardcode_libdir_flag_spec_CXX='-R$libdir'
10877 hardcode_direct_CXX=yes
10878 hardcode_shlibpath_var_CXX=no
10880 # Workaround some broken pre-1.5 toolchains
10881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10883 openbsd2*)
10884 # C++ shared libraries are fairly broken
10885 ld_shlibs_CXX=no
10887 openbsd*)
10888 hardcode_direct_CXX=yes
10889 hardcode_shlibpath_var_CXX=no
10890 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10893 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10894 export_dynamic_flag_spec_CXX='${wl}-E'
10895 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10897 output_verbose_link_cmd='echo'
10899 osf3*)
10900 case $cc_basename in
10901 KCC)
10902 # Kuck and Associates, Inc. (KAI) C++ Compiler
10904 # KCC will only create a shared library if the output file
10905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10906 # to its proper name (with version) after linking.
10907 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'
10909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10910 hardcode_libdir_separator_CXX=:
10912 # Archives containing C++ object files must be created using
10913 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10914 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10917 RCC)
10918 # Rational C++ 2.4.1
10919 # FIXME: insert proper C++ library support
10920 ld_shlibs_CXX=no
10922 cxx)
10923 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10924 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'
10926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10927 hardcode_libdir_separator_CXX=:
10929 # Commands to make compiler produce verbose output that lists
10930 # what "hidden" libraries, object files and flags are used when
10931 # linking a shared library.
10933 # There doesn't appear to be a way to prevent this compiler from
10934 # explicitly linking system object files so we need to strip them
10935 # from the output so that they don't get included in the library
10936 # dependencies.
10937 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'
10940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10942 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'
10944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10945 hardcode_libdir_separator_CXX=:
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10952 else
10953 # FIXME: insert proper C++ library support
10954 ld_shlibs_CXX=no
10957 esac
10959 osf4* | osf5*)
10960 case $cc_basename in
10961 KCC)
10962 # Kuck and Associates, Inc. (KAI) C++ Compiler
10964 # KCC will only create a shared library if the output file
10965 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10966 # to its proper name (with version) after linking.
10967 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'
10969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10970 hardcode_libdir_separator_CXX=:
10972 # Archives containing C++ object files must be created using
10973 # the KAI C++ compiler.
10974 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10976 RCC)
10977 # Rational C++ 2.4.1
10978 # FIXME: insert proper C++ library support
10979 ld_shlibs_CXX=no
10981 cxx)
10982 allow_undefined_flag_CXX=' -expect_unresolved \*'
10983 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'
10984 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10985 echo "-hidden">> $lib.exp~
10986 $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~
10987 $rm $lib.exp'
10989 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10990 hardcode_libdir_separator_CXX=:
10992 # Commands to make compiler produce verbose output that lists
10993 # what "hidden" libraries, object files and flags are used when
10994 # linking a shared library.
10996 # There doesn't appear to be a way to prevent this compiler from
10997 # explicitly linking system object files so we need to strip them
10998 # from the output so that they don't get included in the library
10999 # dependencies.
11000 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'
11003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11005 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'
11007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11008 hardcode_libdir_separator_CXX=:
11010 # Commands to make compiler produce verbose output that lists
11011 # what "hidden" libraries, object files and flags are used when
11012 # linking a shared library.
11013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11015 else
11016 # FIXME: insert proper C++ library support
11017 ld_shlibs_CXX=no
11020 esac
11022 psos*)
11023 # FIXME: insert proper C++ library support
11024 ld_shlibs_CXX=no
11026 sco*)
11027 archive_cmds_need_lc_CXX=no
11028 case $cc_basename in
11030 # FIXME: insert proper C++ library support
11031 ld_shlibs_CXX=no
11034 # FIXME: insert proper C++ library support
11035 ld_shlibs_CXX=no
11037 esac
11039 sunos4*)
11040 case $cc_basename in
11042 # Sun C++ 4.x
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11046 lcc)
11047 # Lucid
11048 # FIXME: insert proper C++ library support
11049 ld_shlibs_CXX=no
11052 # FIXME: insert proper C++ library support
11053 ld_shlibs_CXX=no
11055 esac
11057 solaris*)
11058 case $cc_basename in
11060 # Sun C++ 4.2, 5.x and Centerline C++
11061 no_undefined_flag_CXX=' -zdefs'
11062 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11063 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11064 $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'
11066 hardcode_libdir_flag_spec_CXX='-R$libdir'
11067 hardcode_shlibpath_var_CXX=no
11068 case $host_os in
11069 solaris2.0-5 | solaris2.0-5.*) ;;
11071 # The C++ compiler is used as linker so we must use $wl
11072 # flag to pass the commands to the underlying system
11073 # linker.
11074 # Supported since Solaris 2.6 (maybe 2.5.1?)
11075 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11077 esac
11078 link_all_deplibs_CXX=yes
11080 # Commands to make compiler produce verbose output that lists
11081 # what "hidden" libraries, object files and flags are used when
11082 # linking a shared library.
11084 # There doesn't appear to be a way to prevent this compiler from
11085 # explicitly linking system object files so we need to strip them
11086 # from the output so that they don't get included in the library
11087 # dependencies.
11088 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'
11090 # Archives containing C++ object files must be created using
11091 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11092 # necessary to make sure instantiated templates are included
11093 # in the archive.
11094 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11096 gcx)
11097 # Green Hills C++ Compiler
11098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11100 # The C++ compiler must be used to create the archive.
11101 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11104 # GNU C++ compiler with Solaris linker
11105 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11106 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11107 if $CC --version | grep -v '^2\.7' > /dev/null; then
11108 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11109 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11110 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11112 # Commands to make compiler produce verbose output that lists
11113 # what "hidden" libraries, object files and flags are used when
11114 # linking a shared library.
11115 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11116 else
11117 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11118 # platform.
11119 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11120 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11121 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11123 # Commands to make compiler produce verbose output that lists
11124 # what "hidden" libraries, object files and flags are used when
11125 # linking a shared library.
11126 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11129 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11132 esac
11134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11135 archive_cmds_need_lc_CXX=no
11137 tandem*)
11138 case $cc_basename in
11139 NCC)
11140 # NonStop-UX NCC 3.20
11141 # FIXME: insert proper C++ library support
11142 ld_shlibs_CXX=no
11145 # FIXME: insert proper C++ library support
11146 ld_shlibs_CXX=no
11148 esac
11150 vxworks*)
11151 # FIXME: insert proper C++ library support
11152 ld_shlibs_CXX=no
11155 # FIXME: insert proper C++ library support
11156 ld_shlibs_CXX=no
11158 esac
11159 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11160 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11161 test "$ld_shlibs_CXX" = no && can_build_shared=no
11163 GCC_CXX="$GXX"
11164 LD_CXX="$LD"
11167 cat > conftest.$ac_ext <<EOF
11168 class Foo
11170 public:
11171 Foo (void) { a = 0; }
11172 private:
11173 int a;
11177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178 (eval $ac_compile) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; then
11182 # Parse the compiler output and extract the necessary
11183 # objects, libraries and library flags.
11185 # Sentinel used to keep track of whether or not we are before
11186 # the conftest object file.
11187 pre_test_object_deps_done=no
11189 # The `*' in the case matches for architectures that use `case' in
11190 # $output_verbose_cmd can trigger glob expansion during the loop
11191 # eval without this substitution.
11192 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11194 for p in `eval $output_verbose_link_cmd`; do
11195 case $p in
11197 -L* | -R* | -l*)
11198 # Some compilers place space between "-{L,R}" and the path.
11199 # Remove the space.
11200 if test $p = "-L" \
11201 || test $p = "-R"; then
11202 prev=$p
11203 continue
11204 else
11205 prev=
11208 if test "$pre_test_object_deps_done" = no; then
11209 case $p in
11210 -L* | -R*)
11211 # Internal compiler library paths should come after those
11212 # provided the user. The postdeps already come after the
11213 # user supplied libs so there is no need to process them.
11214 if test -z "$compiler_lib_search_path_CXX"; then
11215 compiler_lib_search_path_CXX="${prev}${p}"
11216 else
11217 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11220 # The "-l" case would never come before the object being
11221 # linked, so don't bother handling this case.
11222 esac
11223 else
11224 if test -z "$postdeps_CXX"; then
11225 postdeps_CXX="${prev}${p}"
11226 else
11227 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11232 *.$objext)
11233 # This assumes that the test object file only shows up
11234 # once in the compiler output.
11235 if test "$p" = "conftest.$objext"; then
11236 pre_test_object_deps_done=yes
11237 continue
11240 if test "$pre_test_object_deps_done" = no; then
11241 if test -z "$predep_objects_CXX"; then
11242 predep_objects_CXX="$p"
11243 else
11244 predep_objects_CXX="$predep_objects_CXX $p"
11246 else
11247 if test -z "$postdep_objects_CXX"; then
11248 postdep_objects_CXX="$p"
11249 else
11250 postdep_objects_CXX="$postdep_objects_CXX $p"
11255 *) ;; # Ignore the rest.
11257 esac
11258 done
11260 # Clean up.
11261 rm -f a.out a.exe
11262 else
11263 echo "libtool.m4: error: problem compiling CXX test program"
11266 $rm -f confest.$objext
11268 case " $postdeps_CXX " in
11269 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11270 esac
11272 lt_prog_compiler_wl_CXX=
11273 lt_prog_compiler_pic_CXX=
11274 lt_prog_compiler_static_CXX=
11276 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11277 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11279 # C++ specific cases for pic, static, wl, etc.
11280 if test "$GXX" = yes; then
11281 lt_prog_compiler_wl_CXX='-Wl,'
11282 lt_prog_compiler_static_CXX='-static'
11284 case $host_os in
11285 aix*)
11286 # All AIX code is PIC.
11287 if test "$host_cpu" = ia64; then
11288 # AIX 5 now supports IA64 processor
11289 lt_prog_compiler_static_CXX='-Bstatic'
11292 amigaos*)
11293 # FIXME: we need at least 68020 code to build shared libraries, but
11294 # adding the `-m68020' flag to GCC prevents building anything better,
11295 # like `-m68040'.
11296 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11298 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11299 # PIC is the default for these OSes.
11301 mingw* | os2* | pw32*)
11302 # This hack is so that the source file can tell whether it is being
11303 # built for inclusion in a dll (and should export symbols for example).
11304 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11306 darwin* | rhapsody*)
11307 # PIC is the default on this platform
11308 # Common symbols not allowed in MH_DYLIB files
11309 lt_prog_compiler_pic_CXX='-fno-common'
11311 *djgpp*)
11312 # DJGPP does not support shared libraries at all
11313 lt_prog_compiler_pic_CXX=
11315 sysv4*MP*)
11316 if test -d /usr/nec; then
11317 lt_prog_compiler_pic_CXX=-Kconform_pic
11320 hpux*)
11321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11322 # not for PA HP-UX.
11323 case "$host_cpu" in
11324 hppa*64*|ia64*)
11327 lt_prog_compiler_pic_CXX='-fPIC'
11329 esac
11332 lt_prog_compiler_pic_CXX='-fPIC'
11334 esac
11335 else
11336 case $host_os in
11337 aix4* | aix5*)
11338 # All AIX code is PIC.
11339 if test "$host_cpu" = ia64; then
11340 # AIX 5 now supports IA64 processor
11341 lt_prog_compiler_static_CXX='-Bstatic'
11342 else
11343 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11346 chorus*)
11347 case $cc_basename in
11348 cxch68)
11349 # Green Hills C++ Compiler
11350 # _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"
11352 esac
11354 darwin*)
11355 # PIC is the default on this platform
11356 # Common symbols not allowed in MH_DYLIB files
11357 case "$cc_basename" in
11358 xlc*)
11359 lt_prog_compiler_pic_CXX='-qnocommon'
11360 lt_prog_compiler_wl_CXX='-Wl,'
11362 esac
11364 dgux*)
11365 case $cc_basename in
11366 ec++)
11367 lt_prog_compiler_pic_CXX='-KPIC'
11369 ghcx)
11370 # Green Hills C++ Compiler
11371 lt_prog_compiler_pic_CXX='-pic'
11375 esac
11377 freebsd* | kfreebsd*-gnu)
11378 # FreeBSD uses GNU C++
11380 hpux9* | hpux10* | hpux11*)
11381 case $cc_basename in
11383 lt_prog_compiler_wl_CXX='-Wl,'
11384 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11385 if test "$host_cpu" != ia64; then
11386 lt_prog_compiler_pic_CXX='+Z'
11389 aCC)
11390 lt_prog_compiler_wl_CXX='-Wl,'
11391 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11392 case "$host_cpu" in
11393 hppa*64*|ia64*)
11394 # +Z the default
11397 lt_prog_compiler_pic_CXX='+Z'
11399 esac
11403 esac
11405 irix5* | irix6* | nonstopux*)
11406 case $cc_basename in
11408 lt_prog_compiler_wl_CXX='-Wl,'
11409 lt_prog_compiler_static_CXX='-non_shared'
11410 # CC pic flag -KPIC is the default.
11414 esac
11416 linux*)
11417 case $cc_basename in
11418 KCC)
11419 # KAI C++ Compiler
11420 lt_prog_compiler_wl_CXX='--backend -Wl,'
11421 lt_prog_compiler_pic_CXX='-fPIC'
11423 icpc)
11424 # Intel C++
11425 lt_prog_compiler_wl_CXX='-Wl,'
11426 lt_prog_compiler_pic_CXX='-KPIC'
11427 lt_prog_compiler_static_CXX='-static'
11429 cxx)
11430 # Compaq C++
11431 # Make sure the PIC flag is empty. It appears that all Alpha
11432 # Linux and Compaq Tru64 Unix objects are PIC.
11433 lt_prog_compiler_pic_CXX=
11434 lt_prog_compiler_static_CXX='-non_shared'
11438 esac
11440 lynxos*)
11442 m88k*)
11444 mvs*)
11445 case $cc_basename in
11446 cxx)
11447 lt_prog_compiler_pic_CXX='-W c,exportall'
11451 esac
11453 netbsd*)
11455 osf3* | osf4* | osf5*)
11456 case $cc_basename in
11457 KCC)
11458 lt_prog_compiler_wl_CXX='--backend -Wl,'
11460 RCC)
11461 # Rational C++ 2.4.1
11462 lt_prog_compiler_pic_CXX='-pic'
11464 cxx)
11465 # Digital/Compaq C++
11466 lt_prog_compiler_wl_CXX='-Wl,'
11467 # Make sure the PIC flag is empty. It appears that all Alpha
11468 # Linux and Compaq Tru64 Unix objects are PIC.
11469 lt_prog_compiler_pic_CXX=
11470 lt_prog_compiler_static_CXX='-non_shared'
11474 esac
11476 psos*)
11478 sco*)
11479 case $cc_basename in
11481 lt_prog_compiler_pic_CXX='-fPIC'
11485 esac
11487 solaris*)
11488 case $cc_basename in
11490 # Sun C++ 4.2, 5.x and Centerline C++
11491 lt_prog_compiler_pic_CXX='-KPIC'
11492 lt_prog_compiler_static_CXX='-Bstatic'
11493 lt_prog_compiler_wl_CXX='-Qoption ld '
11495 gcx)
11496 # Green Hills C++ Compiler
11497 lt_prog_compiler_pic_CXX='-PIC'
11501 esac
11503 sunos4*)
11504 case $cc_basename in
11506 # Sun C++ 4.x
11507 lt_prog_compiler_pic_CXX='-pic'
11508 lt_prog_compiler_static_CXX='-Bstatic'
11510 lcc)
11511 # Lucid
11512 lt_prog_compiler_pic_CXX='-pic'
11516 esac
11518 tandem*)
11519 case $cc_basename in
11520 NCC)
11521 # NonStop-UX NCC 3.20
11522 lt_prog_compiler_pic_CXX='-KPIC'
11526 esac
11528 unixware*)
11530 vxworks*)
11533 lt_prog_compiler_can_build_shared_CXX=no
11535 esac
11538 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11539 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11542 # Check to make sure the PIC flag actually works.
11544 if test -n "$lt_prog_compiler_pic_CXX"; then
11546 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11547 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11548 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551 lt_prog_compiler_pic_works_CXX=no
11552 ac_outfile=conftest.$ac_objext
11553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11554 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11555 # Insert the option either (1) after the last *FLAGS variable, or
11556 # (2) before a word containing "conftest.", or (3) at the end.
11557 # Note that $ac_compile itself does not contain backslashes and begins
11558 # with a dollar sign (not a hyphen), so the echo should work correctly.
11559 # The option is referenced via a variable to avoid confusing sed.
11560 lt_compile=`echo "$ac_compile" | $SED \
11561 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11563 -e 's:$: $lt_compiler_flag:'`
11564 (eval echo "\"\$as_me:11564: $lt_compile\"" >&5)
11565 (eval "$lt_compile" 2>conftest.err)
11566 ac_status=$?
11567 cat conftest.err >&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 if (exit $ac_status) && test -s "$ac_outfile"; then
11570 # The compiler can only warn and ignore the option if not recognized
11571 # So say no if there are warnings
11572 if test ! -s conftest.err; then
11573 lt_prog_compiler_pic_works_CXX=yes
11576 $rm conftest*
11579 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11580 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11582 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11583 case $lt_prog_compiler_pic_CXX in
11584 "" | " "*) ;;
11585 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11586 esac
11587 else
11588 lt_prog_compiler_pic_CXX=
11589 lt_prog_compiler_can_build_shared_CXX=no
11593 case "$host_os" in
11594 # For platforms which do not support PIC, -DPIC is meaningless:
11595 *djgpp*)
11596 lt_prog_compiler_pic_CXX=
11599 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11601 esac
11603 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11605 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608 lt_cv_prog_compiler_c_o_CXX=no
11609 $rm -r conftest 2>/dev/null
11610 mkdir conftest
11611 cd conftest
11612 mkdir out
11613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11615 lt_compiler_flag="-o out/conftest2.$ac_objext"
11616 # Insert the option either (1) after the last *FLAGS variable, or
11617 # (2) before a word containing "conftest.", or (3) at the end.
11618 # Note that $ac_compile itself does not contain backslashes and begins
11619 # with a dollar sign (not a hyphen), so the echo should work correctly.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"\$as_me:11624: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>out/conftest.err)
11626 ac_status=$?
11627 cat out/conftest.err >&5
11628 echo "$as_me:11628: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11630 then
11631 # The compiler can only warn and ignore the option if not recognized
11632 # So say no if there are warnings
11633 if test ! -s out/conftest.err; then
11634 lt_cv_prog_compiler_c_o_CXX=yes
11637 chmod u+w .
11638 $rm conftest*
11639 # SGI C++ compiler will create directory out/ii_files/ for
11640 # template instantiation
11641 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11642 $rm out/* && rmdir out
11643 cd ..
11644 rmdir conftest
11645 $rm conftest*
11648 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11649 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11652 hard_links="nottested"
11653 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11654 # do not overwrite the value of need_locks provided by the user
11655 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11656 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11657 hard_links=yes
11658 $rm conftest*
11659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11660 touch conftest.a
11661 ln conftest.a conftest.b 2>&5 || hard_links=no
11662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11663 echo "$as_me:$LINENO: result: $hard_links" >&5
11664 echo "${ECHO_T}$hard_links" >&6
11665 if test "$hard_links" = no; then
11666 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11667 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11668 need_locks=warn
11670 else
11671 need_locks=no
11674 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11675 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11677 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11678 case $host_os in
11679 aix4* | aix5*)
11680 # If we're using GNU nm, then we don't want the "-C" option.
11681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11682 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11683 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'
11684 else
11685 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'
11688 pw32*)
11689 export_symbols_cmds_CXX="$ltdll_cmds"
11691 cygwin* | mingw*)
11692 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11695 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11697 esac
11699 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11700 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11701 test "$ld_shlibs_CXX" = no && can_build_shared=no
11703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11704 if test "$GCC" = yes; then
11705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709 # Do we need to explicitly link libc?
11711 case "x$archive_cmds_need_lc_CXX" in
11712 x|xyes)
11713 # Assume -lc should be added
11714 archive_cmds_need_lc_CXX=yes
11716 if test "$enable_shared" = yes && test "$GCC" = yes; then
11717 case $archive_cmds_CXX in
11718 *'~'*)
11719 # FIXME: we may have to deal with multi-command sequences.
11721 '$CC '*)
11722 # Test whether the compiler implicitly links with -lc since on some
11723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11724 # to ld, don't add -lc before -lgcc.
11725 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11726 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11727 $rm conftest*
11728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11731 (eval $ac_compile) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } 2>conftest.err; then
11735 soname=conftest
11736 lib=conftest
11737 libobjs=conftest.$ac_objext
11738 deplibs=
11739 wl=$lt_prog_compiler_wl_CXX
11740 compiler_flags=-v
11741 linker_flags=-v
11742 verstring=
11743 output_objdir=.
11744 libname=conftest
11745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11746 allow_undefined_flag_CXX=
11747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11748 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }
11752 then
11753 archive_cmds_need_lc_CXX=no
11754 else
11755 archive_cmds_need_lc_CXX=yes
11757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11758 else
11759 cat conftest.err 1>&5
11761 $rm conftest*
11762 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11763 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11765 esac
11768 esac
11770 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11771 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11772 library_names_spec=
11773 libname_spec='lib$name'
11774 soname_spec=
11775 shrext_cmds=".so"
11776 postinstall_cmds=
11777 postuninstall_cmds=
11778 finish_cmds=
11779 finish_eval=
11780 shlibpath_var=
11781 shlibpath_overrides_runpath=unknown
11782 version_type=none
11783 dynamic_linker="$host_os ld.so"
11784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11785 if test "$GCC" = yes; then
11786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11787 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11788 # if the path contains ";" then we assume it to be the separator
11789 # otherwise default to the standard path separator (i.e. ":") - it is
11790 # assumed that no part of a normal pathname contains ";" but that should
11791 # okay in the real world where ";" in dirpaths is itself problematic.
11792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11793 else
11794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11796 else
11797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11799 need_lib_prefix=unknown
11800 hardcode_into_libs=no
11802 # when you set need_version to no, make sure it does not cause -set_version
11803 # flags to be left without arguments
11804 need_version=unknown
11806 case $host_os in
11807 aix3*)
11808 version_type=linux
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11810 shlibpath_var=LIBPATH
11812 # AIX 3 has no versioning support, so we append a major version to the name.
11813 soname_spec='${libname}${release}${shared_ext}$major'
11816 aix4* | aix5*)
11817 version_type=linux
11818 need_lib_prefix=no
11819 need_version=no
11820 hardcode_into_libs=yes
11821 if test "$host_cpu" = ia64; then
11822 # AIX 5 supports IA64
11823 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 else
11826 # With GCC up to 2.95.x, collect2 would create an import file
11827 # for dependence libraries. The import file would start with
11828 # the line `#! .'. This would cause the generated library to
11829 # depend on `.', always an invalid library. This was fixed in
11830 # development snapshots of GCC prior to 3.0.
11831 case $host_os in
11832 aix4 | aix4.[01] | aix4.[01].*)
11833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11834 echo ' yes '
11835 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11837 else
11838 can_build_shared=no
11841 esac
11842 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11843 # soname into executable. Probably we can add versioning support to
11844 # collect2, so additional links can be useful in future.
11845 if test "$aix_use_runtimelinking" = yes; then
11846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11847 # instead of lib<name>.a to let people know that these are not
11848 # typical AIX shared libraries.
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 else
11851 # We preserve .a as extension for shared libraries through AIX4.2
11852 # and later when we are not doing run time linking.
11853 library_names_spec='${libname}${release}.a $libname.a'
11854 soname_spec='${libname}${release}${shared_ext}$major'
11856 shlibpath_var=LIBPATH
11860 amigaos*)
11861 library_names_spec='$libname.ixlibrary $libname.a'
11862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11863 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'
11866 beos*)
11867 library_names_spec='${libname}${shared_ext}'
11868 dynamic_linker="$host_os ld.so"
11869 shlibpath_var=LIBRARY_PATH
11872 bsdi[45]*)
11873 version_type=linux
11874 need_version=no
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11881 # the default ld.so.conf also contains /usr/contrib/lib and
11882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11883 # libtool to hard-code these into programs
11886 cygwin* | mingw* | pw32*)
11887 version_type=windows
11888 shrext_cmds=".dll"
11889 need_version=no
11890 need_lib_prefix=no
11892 case $GCC,$host_os in
11893 yes,cygwin* | yes,mingw* | yes,pw32*)
11894 library_names_spec='$libname.dll.a'
11895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11896 postinstall_cmds='base_file=`basename \${file}`~
11897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11898 dldir=$destdir/`dirname \$dlpath`~
11899 test -d \$dldir || mkdir -p \$dldir~
11900 $install_prog $dir/$dlname \$dldir/$dlname'
11901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11902 dlpath=$dir/\$dldll~
11903 $rm \$dlpath'
11904 shlibpath_overrides_runpath=yes
11906 case $host_os in
11907 cygwin*)
11908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11912 mingw*)
11913 # MinGW DLLs use traditional 'lib' prefix
11914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11916 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11917 # It is most probably a Windows format PATH printed by
11918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11919 # path with ; separators, and with drive letters. We can handle the
11920 # drive letters (cygwin fileutils understands them), so leave them,
11921 # especially as we might pass files found there to a mingw objdump,
11922 # which wouldn't understand a cygwinified path. Ahh.
11923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924 else
11925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11928 pw32*)
11929 # pw32 DLLs use 'pw' prefix rather than 'lib'
11930 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11932 esac
11936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11938 esac
11939 dynamic_linker='Win32 ld.exe'
11940 # FIXME: first we should search . and the directory the executable is in
11941 shlibpath_var=PATH
11944 darwin* | rhapsody*)
11945 dynamic_linker="$host_os dyld"
11946 version_type=darwin
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11950 soname_spec='${libname}${release}${major}$shared_ext'
11951 shlibpath_overrides_runpath=yes
11952 shlibpath_var=DYLD_LIBRARY_PATH
11953 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11955 if test "$GCC" = yes; then
11956 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"`
11957 else
11958 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11963 dgux*)
11964 version_type=linux
11965 need_lib_prefix=no
11966 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
11972 freebsd1*)
11973 dynamic_linker=no
11976 kfreebsd*-gnu)
11977 version_type=linux
11978 need_lib_prefix=no
11979 need_version=no
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11981 soname_spec='${libname}${release}${shared_ext}$major'
11982 shlibpath_var=LD_LIBRARY_PATH
11983 shlibpath_overrides_runpath=no
11984 hardcode_into_libs=yes
11985 dynamic_linker='GNU ld.so'
11988 freebsd*)
11989 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11990 version_type=freebsd-$objformat
11991 case $version_type in
11992 freebsd-elf*)
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11994 need_version=no
11995 need_lib_prefix=no
11997 freebsd-*)
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999 need_version=yes
12001 esac
12002 shlibpath_var=LD_LIBRARY_PATH
12003 case $host_os in
12004 freebsd2*)
12005 shlibpath_overrides_runpath=yes
12007 freebsd3.01* | freebsdelf3.01*)
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12011 *) # from 3.2 on
12012 shlibpath_overrides_runpath=no
12013 hardcode_into_libs=yes
12015 esac
12018 gnu*)
12019 version_type=linux
12020 need_lib_prefix=no
12021 need_version=no
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 hardcode_into_libs=yes
12028 hpux9* | hpux10* | hpux11*)
12029 # Give a soname corresponding to the major version so that dld.sl refuses to
12030 # link against other versions.
12031 version_type=sunos
12032 need_lib_prefix=no
12033 need_version=no
12034 case "$host_cpu" in
12035 ia64*)
12036 shrext_cmds='.so'
12037 hardcode_into_libs=yes
12038 dynamic_linker="$host_os dld.so"
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042 soname_spec='${libname}${release}${shared_ext}$major'
12043 if test "X$HPUX_IA64_MODE" = X32; then
12044 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12045 else
12046 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12050 hppa*64*)
12051 shrext_cmds='.sl'
12052 hardcode_into_libs=yes
12053 dynamic_linker="$host_os dld.sl"
12054 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062 shrext_cmds='.sl'
12063 dynamic_linker="$host_os dld.sl"
12064 shlibpath_var=SHLIB_PATH
12065 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12069 esac
12070 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12071 postinstall_cmds='chmod 555 $lib'
12074 irix5* | irix6* | nonstopux*)
12075 case $host_os in
12076 nonstopux*) version_type=nonstopux ;;
12078 if test "$lt_cv_prog_gnu_ld" = yes; then
12079 version_type=linux
12080 else
12081 version_type=irix
12082 fi ;;
12083 esac
12084 need_lib_prefix=no
12085 need_version=no
12086 soname_spec='${libname}${release}${shared_ext}$major'
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12088 case $host_os in
12089 irix5* | nonstopux*)
12090 libsuff= shlibsuff=
12093 case $LD in # libtool.m4 will add one of these switches to LD
12094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12095 libsuff= shlibsuff= libmagic=32-bit;;
12096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12097 libsuff=32 shlibsuff=N32 libmagic=N32;;
12098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12100 *) libsuff= shlibsuff= libmagic=never-match;;
12101 esac
12103 esac
12104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12105 shlibpath_overrides_runpath=no
12106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12108 hardcode_into_libs=yes
12111 # No shared lib support for Linux oldld, aout, or coff.
12112 linux*oldld* | linux*aout* | linux*coff*)
12113 dynamic_linker=no
12116 # This must be Linux ELF.
12117 linux*)
12118 version_type=linux
12119 need_lib_prefix=no
12120 need_version=no
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122 soname_spec='${libname}${release}${shared_ext}$major'
12123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 shlibpath_overrides_runpath=no
12126 # This implies no fast_install, which is unacceptable.
12127 # Some rework will be needed to allow for fast_install
12128 # before this can be enabled.
12129 hardcode_into_libs=yes
12131 # Append ld.so.conf contents to the search path
12132 if test -f /etc/ld.so.conf; then
12133 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12137 # We used to test for /lib/ld.so.1 and disable shared libraries on
12138 # powerpc, because MkLinux only supported shared libraries with the
12139 # GNU dynamic linker. Since this was broken with cross compilers,
12140 # most powerpc-linux boxes support dynamic linking these days and
12141 # people can always --disable-shared, the test was removed, and we
12142 # assume the GNU/Linux dynamic linker is in use.
12143 dynamic_linker='GNU/Linux ld.so'
12146 knetbsd*-gnu)
12147 version_type=linux
12148 need_lib_prefix=no
12149 need_version=no
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=no
12154 hardcode_into_libs=yes
12155 dynamic_linker='GNU ld.so'
12158 netbsd*)
12159 version_type=sunos
12160 need_lib_prefix=no
12161 need_version=no
12162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12165 dynamic_linker='NetBSD (a.out) ld.so'
12166 else
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 dynamic_linker='NetBSD ld.elf_so'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12176 newsos6)
12177 version_type=linux
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 shlibpath_var=LD_LIBRARY_PATH
12180 shlibpath_overrides_runpath=yes
12183 nto-qnx*)
12184 version_type=linux
12185 need_lib_prefix=no
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=yes
12193 openbsd*)
12194 version_type=sunos
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12201 case $host_os in
12202 openbsd2.[89] | openbsd2.[89].*)
12203 shlibpath_overrides_runpath=no
12206 shlibpath_overrides_runpath=yes
12208 esac
12209 else
12210 shlibpath_overrides_runpath=yes
12214 os2*)
12215 libname_spec='$name'
12216 shrext_cmds=".dll"
12217 need_lib_prefix=no
12218 library_names_spec='$libname${shared_ext} $libname.a'
12219 dynamic_linker='OS/2 ld.exe'
12220 shlibpath_var=LIBPATH
12223 osf3* | osf4* | osf5*)
12224 version_type=osf
12225 need_lib_prefix=no
12226 need_version=no
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12234 sco3.2v5*)
12235 version_type=osf
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12238 shlibpath_var=LD_LIBRARY_PATH
12241 solaris*)
12242 version_type=linux
12243 need_lib_prefix=no
12244 need_version=no
12245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12246 soname_spec='${libname}${release}${shared_ext}$major'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=yes
12249 hardcode_into_libs=yes
12250 # ldd complains unless libraries are executable
12251 postinstall_cmds='chmod +x $lib'
12254 sunos4*)
12255 version_type=sunos
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12260 if test "$with_gnu_ld" = yes; then
12261 need_lib_prefix=no
12263 need_version=yes
12266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12267 version_type=linux
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269 soname_spec='${libname}${release}${shared_ext}$major'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 case $host_vendor in
12272 sni)
12273 shlibpath_overrides_runpath=no
12274 need_lib_prefix=no
12275 export_dynamic_flag_spec='${wl}-Blargedynsym'
12276 runpath_var=LD_RUN_PATH
12278 siemens)
12279 need_lib_prefix=no
12281 motorola)
12282 need_lib_prefix=no
12283 need_version=no
12284 shlibpath_overrides_runpath=no
12285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12287 esac
12290 sysv4*MP*)
12291 if test -d /usr/nec ;then
12292 version_type=linux
12293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12294 soname_spec='$libname${shared_ext}.$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12299 uts4*)
12300 version_type=linux
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 soname_spec='${libname}${release}${shared_ext}$major'
12303 shlibpath_var=LD_LIBRARY_PATH
12307 dynamic_linker=no
12309 esac
12310 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12311 echo "${ECHO_T}$dynamic_linker" >&6
12312 test "$dynamic_linker" = no && can_build_shared=no
12314 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12315 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12316 hardcode_action_CXX=
12317 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12318 test -n "$runpath_var_CXX" || \
12319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12321 # We can hardcode non-existant directories.
12322 if test "$hardcode_direct_CXX" != no &&
12323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12324 # have to relink, otherwise we might link with an installed library
12325 # when we should be linking with a yet-to-be-installed one
12326 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12327 test "$hardcode_minus_L_CXX" != no; then
12328 # Linking always hardcodes the temporary library directory.
12329 hardcode_action_CXX=relink
12330 else
12331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12332 hardcode_action_CXX=immediate
12334 else
12335 # We cannot hardcode anything, or else we can only hardcode existing
12336 # directories.
12337 hardcode_action_CXX=unsupported
12339 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12340 echo "${ECHO_T}$hardcode_action_CXX" >&6
12342 if test "$hardcode_action_CXX" = relink; then
12343 # Fast installation is not supported
12344 enable_fast_install=no
12345 elif test "$shlibpath_overrides_runpath" = yes ||
12346 test "$enable_shared" = no; then
12347 # Fast installation is not necessary
12348 enable_fast_install=needless
12351 striplib=
12352 old_striplib=
12353 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12354 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12355 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12357 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12358 echo "$as_me:$LINENO: result: yes" >&5
12359 echo "${ECHO_T}yes" >&6
12360 else
12361 # FIXME - insert some real tests, host_os isn't really good enough
12362 case $host_os in
12363 darwin*)
12364 if test -n "$STRIP" ; then
12365 striplib="$STRIP -x"
12366 echo "$as_me:$LINENO: result: yes" >&5
12367 echo "${ECHO_T}yes" >&6
12368 else
12369 echo "$as_me:$LINENO: result: no" >&5
12370 echo "${ECHO_T}no" >&6
12374 echo "$as_me:$LINENO: result: no" >&5
12375 echo "${ECHO_T}no" >&6
12377 esac
12380 if test "x$enable_dlopen" != xyes; then
12381 enable_dlopen=unknown
12382 enable_dlopen_self=unknown
12383 enable_dlopen_self_static=unknown
12384 else
12385 lt_cv_dlopen=no
12386 lt_cv_dlopen_libs=
12388 case $host_os in
12389 beos*)
12390 lt_cv_dlopen="load_add_on"
12391 lt_cv_dlopen_libs=
12392 lt_cv_dlopen_self=yes
12395 mingw* | pw32*)
12396 lt_cv_dlopen="LoadLibrary"
12397 lt_cv_dlopen_libs=
12400 cygwin*)
12401 lt_cv_dlopen="dlopen"
12402 lt_cv_dlopen_libs=
12405 darwin*)
12406 # if libdl is installed we need to link against it
12407 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-ldl $LIBS"
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12421 /* Override any gcc2 internal prototype to avoid an error. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427 char dlopen ();
12429 main ()
12431 dlopen ();
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12438 (eval $ac_link) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -z "$ac_cxx_werror_flag"
12446 || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_lib_dl_dlopen=yes
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_cv_lib_dl_dlopen=no
12465 rm -f conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12469 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12470 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12471 if test $ac_cv_lib_dl_dlopen = yes; then
12472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12473 else
12475 lt_cv_dlopen="dyld"
12476 lt_cv_dlopen_libs=
12477 lt_cv_dlopen_self=yes
12484 echo "$as_me:$LINENO: checking for shl_load" >&5
12485 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12486 if test "${ac_cv_func_shl_load+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497 #define shl_load innocuous_shl_load
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char shl_load (); below.
12501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502 <limits.h> exists even on freestanding compilers. */
12504 #ifdef __STDC__
12505 # include <limits.h>
12506 #else
12507 # include <assert.h>
12508 #endif
12510 #undef shl_load
12512 /* Override any gcc2 internal prototype to avoid an error. */
12513 #ifdef __cplusplus
12514 extern "C"
12516 #endif
12517 /* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12519 char shl_load ();
12520 /* The GNU C library defines this for functions which it implements
12521 to always fail with ENOSYS. Some functions are actually named
12522 something starting with __ and the normal name is an alias. */
12523 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12524 choke me
12525 #else
12526 char (*f) () = shl_load;
12527 #endif
12528 #ifdef __cplusplus
12530 #endif
12533 main ()
12535 return f != shl_load;
12537 return 0;
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_cxx_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_func_shl_load=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_cv_func_shl_load=no
12569 rm -f conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12572 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12573 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12574 if test $ac_cv_func_shl_load = yes; then
12575 lt_cv_dlopen="shl_load"
12576 else
12577 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12578 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12579 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582 ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldld $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 /* Override any gcc2 internal prototype to avoid an error. */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12597 char shl_load ();
12599 main ()
12601 shl_load ();
12603 return 0;
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12608 (eval $ac_link) 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -z "$ac_cxx_werror_flag"
12616 || test ! -s conftest.err'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_cv_lib_dld_shl_load=yes
12629 else
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12633 ac_cv_lib_dld_shl_load=no
12635 rm -f conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12640 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12641 if test $ac_cv_lib_dld_shl_load = yes; then
12642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12643 else
12644 echo "$as_me:$LINENO: checking for dlopen" >&5
12645 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12646 if test "${ac_cv_func_dlopen+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12657 #define dlopen innocuous_dlopen
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char dlopen (); below.
12661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12662 <limits.h> exists even on freestanding compilers. */
12664 #ifdef __STDC__
12665 # include <limits.h>
12666 #else
12667 # include <assert.h>
12668 #endif
12670 #undef dlopen
12672 /* Override any gcc2 internal prototype to avoid an error. */
12673 #ifdef __cplusplus
12674 extern "C"
12676 #endif
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12679 char dlopen ();
12680 /* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12684 choke me
12685 #else
12686 char (*f) () = dlopen;
12687 #endif
12688 #ifdef __cplusplus
12690 #endif
12693 main ()
12695 return f != dlopen;
12697 return 0;
12699 _ACEOF
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702 (eval $ac_link) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_cxx_werror_flag"
12710 || test ! -s conftest.err'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest$ac_exeext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 ac_cv_func_dlopen=yes
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 ac_cv_func_dlopen=no
12729 rm -f conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12732 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12733 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12734 if test $ac_cv_func_dlopen = yes; then
12735 lt_cv_dlopen="dlopen"
12736 else
12737 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742 ac_check_lib_save_LIBS=$LIBS
12743 LIBS="-ldl $LIBS"
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12751 /* Override any gcc2 internal prototype to avoid an error. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757 char dlopen ();
12759 main ()
12761 dlopen ();
12763 return 0;
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_cxx_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 ac_cv_lib_dl_dlopen=yes
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 ac_cv_lib_dl_dlopen=no
12795 rm -f conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12801 if test $ac_cv_lib_dl_dlopen = yes; then
12802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12803 else
12804 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12805 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12806 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lsvld $LIBS"
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h. */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12818 /* Override any gcc2 internal prototype to avoid an error. */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 /* We use char because int might match the return type of a gcc2
12823 builtin and then its argument prototype would still apply. */
12824 char dlopen ();
12826 main ()
12828 dlopen ();
12830 return 0;
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_cxx_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_svld_dlopen=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_cv_lib_svld_dlopen=no
12862 rm -f conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12868 if test $ac_cv_lib_svld_dlopen = yes; then
12869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12870 else
12871 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12872 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12873 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876 ac_check_lib_save_LIBS=$LIBS
12877 LIBS="-ldld $LIBS"
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12885 /* Override any gcc2 internal prototype to avoid an error. */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 /* We use char because int might match the return type of a gcc2
12890 builtin and then its argument prototype would still apply. */
12891 char dld_link ();
12893 main ()
12895 dld_link ();
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_cxx_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest$ac_exeext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_cv_lib_dld_dld_link=yes
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ac_cv_lib_dld_dld_link=no
12929 rm -f conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12933 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12934 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12935 if test $ac_cv_lib_dld_dld_link = yes; then
12936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12955 esac
12957 if test "x$lt_cv_dlopen" != xno; then
12958 enable_dlopen=yes
12959 else
12960 enable_dlopen=no
12963 case $lt_cv_dlopen in
12964 dlopen)
12965 save_CPPFLAGS="$CPPFLAGS"
12966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12968 save_LDFLAGS="$LDFLAGS"
12969 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12971 save_LIBS="$LIBS"
12972 LIBS="$lt_cv_dlopen_libs $LIBS"
12974 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12975 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12976 if test "${lt_cv_dlopen_self+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 if test "$cross_compiling" = yes; then :
12980 lt_cv_dlopen_self=cross
12981 else
12982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12983 lt_status=$lt_dlunknown
12984 cat > conftest.$ac_ext <<EOF
12985 #line 12985 "configure"
12986 #include "confdefs.h"
12988 #if HAVE_DLFCN_H
12989 #include <dlfcn.h>
12990 #endif
12992 #include <stdio.h>
12994 #ifdef RTLD_GLOBAL
12995 # define LT_DLGLOBAL RTLD_GLOBAL
12996 #else
12997 # ifdef DL_GLOBAL
12998 # define LT_DLGLOBAL DL_GLOBAL
12999 # else
13000 # define LT_DLGLOBAL 0
13001 # endif
13002 #endif
13004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13005 find out it does not work in some platform. */
13006 #ifndef LT_DLLAZY_OR_NOW
13007 # ifdef RTLD_LAZY
13008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13009 # else
13010 # ifdef DL_LAZY
13011 # define LT_DLLAZY_OR_NOW DL_LAZY
13012 # else
13013 # ifdef RTLD_NOW
13014 # define LT_DLLAZY_OR_NOW RTLD_NOW
13015 # else
13016 # ifdef DL_NOW
13017 # define LT_DLLAZY_OR_NOW DL_NOW
13018 # else
13019 # define LT_DLLAZY_OR_NOW 0
13020 # endif
13021 # endif
13022 # endif
13023 # endif
13024 #endif
13026 #ifdef __cplusplus
13027 extern "C" void exit (int);
13028 #endif
13030 void fnord() { int i=42;}
13031 int main ()
13033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13034 int status = $lt_dlunknown;
13036 if (self)
13038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13040 /* dlclose (self); */
13043 exit (status);
13046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13047 (eval $ac_link) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13051 (./conftest; exit; ) 2>/dev/null
13052 lt_status=$?
13053 case x$lt_status in
13054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13056 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13057 esac
13058 else :
13059 # compilation failed
13060 lt_cv_dlopen_self=no
13063 rm -fr conftest*
13067 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13068 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13070 if test "x$lt_cv_dlopen_self" = xyes; then
13071 LDFLAGS="$LDFLAGS $link_static_flag"
13072 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13073 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13074 if test "${lt_cv_dlopen_self_static+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 if test "$cross_compiling" = yes; then :
13078 lt_cv_dlopen_self_static=cross
13079 else
13080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13081 lt_status=$lt_dlunknown
13082 cat > conftest.$ac_ext <<EOF
13083 #line 13083 "configure"
13084 #include "confdefs.h"
13086 #if HAVE_DLFCN_H
13087 #include <dlfcn.h>
13088 #endif
13090 #include <stdio.h>
13092 #ifdef RTLD_GLOBAL
13093 # define LT_DLGLOBAL RTLD_GLOBAL
13094 #else
13095 # ifdef DL_GLOBAL
13096 # define LT_DLGLOBAL DL_GLOBAL
13097 # else
13098 # define LT_DLGLOBAL 0
13099 # endif
13100 #endif
13102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13103 find out it does not work in some platform. */
13104 #ifndef LT_DLLAZY_OR_NOW
13105 # ifdef RTLD_LAZY
13106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13107 # else
13108 # ifdef DL_LAZY
13109 # define LT_DLLAZY_OR_NOW DL_LAZY
13110 # else
13111 # ifdef RTLD_NOW
13112 # define LT_DLLAZY_OR_NOW RTLD_NOW
13113 # else
13114 # ifdef DL_NOW
13115 # define LT_DLLAZY_OR_NOW DL_NOW
13116 # else
13117 # define LT_DLLAZY_OR_NOW 0
13118 # endif
13119 # endif
13120 # endif
13121 # endif
13122 #endif
13124 #ifdef __cplusplus
13125 extern "C" void exit (int);
13126 #endif
13128 void fnord() { int i=42;}
13129 int main ()
13131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13132 int status = $lt_dlunknown;
13134 if (self)
13136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13138 /* dlclose (self); */
13141 exit (status);
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13149 (./conftest; exit; ) 2>/dev/null
13150 lt_status=$?
13151 case x$lt_status in
13152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13154 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13155 esac
13156 else :
13157 # compilation failed
13158 lt_cv_dlopen_self_static=no
13161 rm -fr conftest*
13165 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13166 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13169 CPPFLAGS="$save_CPPFLAGS"
13170 LDFLAGS="$save_LDFLAGS"
13171 LIBS="$save_LIBS"
13173 esac
13175 case $lt_cv_dlopen_self in
13176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13177 *) enable_dlopen_self=unknown ;;
13178 esac
13180 case $lt_cv_dlopen_self_static in
13181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13182 *) enable_dlopen_self_static=unknown ;;
13183 esac
13187 # The else clause should only fire when bootstrapping the
13188 # libtool distribution, otherwise you forgot to ship ltmain.sh
13189 # with your package, and you will get complaints that there are
13190 # no rules to generate ltmain.sh.
13191 if test -f "$ltmain"; then
13192 # See if we are running on zsh, and set the options which allow our commands through
13193 # without removal of \ escapes.
13194 if test -n "${ZSH_VERSION+set}" ; then
13195 setopt NO_GLOB_SUBST
13197 # Now quote all the things that may contain metacharacters while being
13198 # careful not to overquote the AC_SUBSTed values. We take copies of the
13199 # variables and quote the copies for generation of the libtool script.
13200 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13201 SED SHELL STRIP \
13202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13204 deplibs_check_method reload_flag reload_cmds need_locks \
13205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13206 lt_cv_sys_global_symbol_to_c_name_address \
13207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13208 old_postinstall_cmds old_postuninstall_cmds \
13209 compiler_CXX \
13210 CC_CXX \
13211 LD_CXX \
13212 lt_prog_compiler_wl_CXX \
13213 lt_prog_compiler_pic_CXX \
13214 lt_prog_compiler_static_CXX \
13215 lt_prog_compiler_no_builtin_flag_CXX \
13216 export_dynamic_flag_spec_CXX \
13217 thread_safe_flag_spec_CXX \
13218 whole_archive_flag_spec_CXX \
13219 enable_shared_with_static_runtimes_CXX \
13220 old_archive_cmds_CXX \
13221 old_archive_from_new_cmds_CXX \
13222 predep_objects_CXX \
13223 postdep_objects_CXX \
13224 predeps_CXX \
13225 postdeps_CXX \
13226 compiler_lib_search_path_CXX \
13227 archive_cmds_CXX \
13228 archive_expsym_cmds_CXX \
13229 postinstall_cmds_CXX \
13230 postuninstall_cmds_CXX \
13231 old_archive_from_expsyms_cmds_CXX \
13232 allow_undefined_flag_CXX \
13233 no_undefined_flag_CXX \
13234 export_symbols_cmds_CXX \
13235 hardcode_libdir_flag_spec_CXX \
13236 hardcode_libdir_flag_spec_ld_CXX \
13237 hardcode_libdir_separator_CXX \
13238 hardcode_automatic_CXX \
13239 module_cmds_CXX \
13240 module_expsym_cmds_CXX \
13241 lt_cv_prog_compiler_c_o_CXX \
13242 exclude_expsyms_CXX \
13243 include_expsyms_CXX; do
13245 case $var in
13246 old_archive_cmds_CXX | \
13247 old_archive_from_new_cmds_CXX | \
13248 archive_cmds_CXX | \
13249 archive_expsym_cmds_CXX | \
13250 module_cmds_CXX | \
13251 module_expsym_cmds_CXX | \
13252 old_archive_from_expsyms_cmds_CXX | \
13253 export_symbols_cmds_CXX | \
13254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13255 postinstall_cmds | postuninstall_cmds | \
13256 old_postinstall_cmds | old_postuninstall_cmds | \
13257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13258 # Double-quote double-evaled strings.
13259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13264 esac
13265 done
13267 case $lt_echo in
13268 *'\$0 --fallback-echo"')
13269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13271 esac
13273 cfgfile="$ofile"
13275 cat <<__EOF__ >> "$cfgfile"
13276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13280 # Shell to use when invoking shell scripts.
13281 SHELL=$lt_SHELL
13283 # Whether or not to build shared libraries.
13284 build_libtool_libs=$enable_shared
13286 # Whether or not to build static libraries.
13287 build_old_libs=$enable_static
13289 # Whether or not to add -lc for building shared libraries.
13290 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13292 # Whether or not to disallow shared libs when runtime libs are static
13293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13295 # Whether or not to optimize for fast installation.
13296 fast_install=$enable_fast_install
13298 # The host system.
13299 host_alias=$host_alias
13300 host=$host
13302 # An echo program that does not interpret backslashes.
13303 echo=$lt_echo
13305 # The archiver.
13306 AR=$lt_AR
13307 AR_FLAGS=$lt_AR_FLAGS
13309 # A C compiler.
13310 LTCC=$lt_LTCC
13312 # A language-specific compiler.
13313 CC=$lt_compiler_CXX
13315 # Is the compiler the GNU C compiler?
13316 with_gcc=$GCC_CXX
13318 # An ERE matcher.
13319 EGREP=$lt_EGREP
13321 # The linker used to build libraries.
13322 LD=$lt_LD_CXX
13324 # Whether we need hard or soft links.
13325 LN_S=$lt_LN_S
13327 # A BSD-compatible nm program.
13328 NM=$lt_NM
13330 # A symbol stripping program
13331 STRIP=$lt_STRIP
13333 # Used to examine libraries when file_magic_cmd begins "file"
13334 MAGIC_CMD=$MAGIC_CMD
13336 # Used on cygwin: DLL creation program.
13337 DLLTOOL="$DLLTOOL"
13339 # Used on cygwin: object dumper.
13340 OBJDUMP="$OBJDUMP"
13342 # Used on cygwin: assembler.
13343 AS="$AS"
13345 # The name of the directory that contains temporary libtool files.
13346 objdir=$objdir
13348 # How to create reloadable object files.
13349 reload_flag=$lt_reload_flag
13350 reload_cmds=$lt_reload_cmds
13352 # How to pass a linker flag through the compiler.
13353 wl=$lt_lt_prog_compiler_wl_CXX
13355 # Object file suffix (normally "o").
13356 objext="$ac_objext"
13358 # Old archive suffix (normally "a").
13359 libext="$libext"
13361 # Shared library suffix (normally ".so").
13362 shrext_cmds='$shrext_cmds'
13364 # Executable file suffix (normally "").
13365 exeext="$exeext"
13367 # Additional compiler flags for building library objects.
13368 pic_flag=$lt_lt_prog_compiler_pic_CXX
13369 pic_mode=$pic_mode
13371 # What is the maximum length of a command?
13372 max_cmd_len=$lt_cv_sys_max_cmd_len
13374 # Does compiler simultaneously support -c and -o options?
13375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13377 # Must we lock files when doing compilation ?
13378 need_locks=$lt_need_locks
13380 # Do we need the lib prefix for modules?
13381 need_lib_prefix=$need_lib_prefix
13383 # Do we need a version for libraries?
13384 need_version=$need_version
13386 # Whether dlopen is supported.
13387 dlopen_support=$enable_dlopen
13389 # Whether dlopen of programs is supported.
13390 dlopen_self=$enable_dlopen_self
13392 # Whether dlopen of statically linked programs is supported.
13393 dlopen_self_static=$enable_dlopen_self_static
13395 # Compiler flag to prevent dynamic linking.
13396 link_static_flag=$lt_lt_prog_compiler_static_CXX
13398 # Compiler flag to turn off builtin functions.
13399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13401 # Compiler flag to allow reflexive dlopens.
13402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13404 # Compiler flag to generate shared objects directly from archives.
13405 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13407 # Compiler flag to generate thread-safe objects.
13408 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13410 # Library versioning type.
13411 version_type=$version_type
13413 # Format of library name prefix.
13414 libname_spec=$lt_libname_spec
13416 # List of archive names. First name is the real one, the rest are links.
13417 # The last name is the one that the linker finds with -lNAME.
13418 library_names_spec=$lt_library_names_spec
13420 # The coded name of the library, if different from the real name.
13421 soname_spec=$lt_soname_spec
13423 # Commands used to build and install an old-style archive.
13424 RANLIB=$lt_RANLIB
13425 old_archive_cmds=$lt_old_archive_cmds_CXX
13426 old_postinstall_cmds=$lt_old_postinstall_cmds
13427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13429 # Create an old-style archive from a shared archive.
13430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13432 # Create a temporary old-style archive to link instead of a shared archive.
13433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13435 # Commands used to build and install a shared archive.
13436 archive_cmds=$lt_archive_cmds_CXX
13437 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13438 postinstall_cmds=$lt_postinstall_cmds
13439 postuninstall_cmds=$lt_postuninstall_cmds
13441 # Commands used to build a loadable module (assumed same as above if empty)
13442 module_cmds=$lt_module_cmds_CXX
13443 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13445 # Commands to strip libraries.
13446 old_striplib=$lt_old_striplib
13447 striplib=$lt_striplib
13449 # Dependencies to place before the objects being linked to create a
13450 # shared library.
13451 predep_objects=$lt_predep_objects_CXX
13453 # Dependencies to place after the objects being linked to create a
13454 # shared library.
13455 postdep_objects=$lt_postdep_objects_CXX
13457 # Dependencies to place before the objects being linked to create a
13458 # shared library.
13459 predeps=$lt_predeps_CXX
13461 # Dependencies to place after the objects being linked to create a
13462 # shared library.
13463 postdeps=$lt_postdeps_CXX
13465 # The library search path used internally by the compiler when linking
13466 # a shared library.
13467 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13469 # Method to check whether dependent libraries are shared objects.
13470 deplibs_check_method=$lt_deplibs_check_method
13472 # Command to use when deplibs_check_method == file_magic.
13473 file_magic_cmd=$lt_file_magic_cmd
13475 # Flag that allows shared libraries with undefined symbols to be built.
13476 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13478 # Flag that forces no undefined symbols.
13479 no_undefined_flag=$lt_no_undefined_flag_CXX
13481 # Commands used to finish a libtool library installation in a directory.
13482 finish_cmds=$lt_finish_cmds
13484 # Same as above, but a single script fragment to be evaled but not shown.
13485 finish_eval=$lt_finish_eval
13487 # Take the output of nm and produce a listing of raw symbols and C names.
13488 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13490 # Transform the output of nm in a proper C declaration
13491 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13493 # Transform the output of nm in a C name address pair
13494 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13496 # This is the shared library runtime path variable.
13497 runpath_var=$runpath_var
13499 # This is the shared library path variable.
13500 shlibpath_var=$shlibpath_var
13502 # Is shlibpath searched before the hard-coded library search path?
13503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13505 # How to hardcode a shared library path into an executable.
13506 hardcode_action=$hardcode_action_CXX
13508 # Whether we should hardcode library paths into libraries.
13509 hardcode_into_libs=$hardcode_into_libs
13511 # Flag to hardcode \$libdir into a binary during linking.
13512 # This must work even if \$libdir does not exist.
13513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13515 # If ld is used when linking, flag to hardcode \$libdir into
13516 # a binary during linking. This must work even if \$libdir does
13517 # not exist.
13518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13520 # Whether we need a single -rpath flag with a separated argument.
13521 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13523 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13524 # resulting binary.
13525 hardcode_direct=$hardcode_direct_CXX
13527 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13528 # resulting binary.
13529 hardcode_minus_L=$hardcode_minus_L_CXX
13531 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13532 # the resulting binary.
13533 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13535 # Set to yes if building a shared library automatically hardcodes DIR into the library
13536 # and all subsequent libraries and executables linked against it.
13537 hardcode_automatic=$hardcode_automatic_CXX
13539 # Variables whose values should be saved in libtool wrapper scripts and
13540 # restored at relink time.
13541 variables_saved_for_relink="$variables_saved_for_relink"
13543 # Whether libtool must link a program against all its dependency libraries.
13544 link_all_deplibs=$link_all_deplibs_CXX
13546 # Compile-time system search path for libraries
13547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13549 # Run-time system search path for libraries
13550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13552 # Fix the shell variable \$srcfile for the compiler.
13553 fix_srcfile_path="$fix_srcfile_path_CXX"
13555 # Set to yes if exported symbols are required.
13556 always_export_symbols=$always_export_symbols_CXX
13558 # The commands to list exported symbols.
13559 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13561 # The commands to extract the exported symbol list from a shared archive.
13562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13564 # Symbols that should not be listed in the preloaded symbols.
13565 exclude_expsyms=$lt_exclude_expsyms_CXX
13567 # Symbols that must always be exported.
13568 include_expsyms=$lt_include_expsyms_CXX
13570 # ### END LIBTOOL TAG CONFIG: $tagname
13572 __EOF__
13575 else
13576 # If there is no Makefile yet, we rely on a make rule to execute
13577 # `config.status --recheck' to rerun these tests and create the
13578 # libtool script then.
13579 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13580 if test -f "$ltmain_in"; then
13581 test -f Makefile && make "$ltmain"
13586 ac_ext=c
13587 ac_cpp='$CPP $CPPFLAGS'
13588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13592 CC=$lt_save_CC
13593 LDCXX=$LD
13594 LD=$lt_save_LD
13595 GCC=$lt_save_GCC
13596 with_gnu_ldcxx=$with_gnu_ld
13597 with_gnu_ld=$lt_save_with_gnu_ld
13598 lt_cv_path_LDCXX=$lt_cv_path_LD
13599 lt_cv_path_LD=$lt_save_path_LD
13600 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13601 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13603 else
13604 tagname=""
13608 F77)
13609 if test -n "$F77" && test "X$F77" != "Xno"; then
13611 ac_ext=f
13612 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13613 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13617 archive_cmds_need_lc_F77=no
13618 allow_undefined_flag_F77=
13619 always_export_symbols_F77=no
13620 archive_expsym_cmds_F77=
13621 export_dynamic_flag_spec_F77=
13622 hardcode_direct_F77=no
13623 hardcode_libdir_flag_spec_F77=
13624 hardcode_libdir_flag_spec_ld_F77=
13625 hardcode_libdir_separator_F77=
13626 hardcode_minus_L_F77=no
13627 hardcode_automatic_F77=no
13628 module_cmds_F77=
13629 module_expsym_cmds_F77=
13630 link_all_deplibs_F77=unknown
13631 old_archive_cmds_F77=$old_archive_cmds
13632 no_undefined_flag_F77=
13633 whole_archive_flag_spec_F77=
13634 enable_shared_with_static_runtimes_F77=no
13636 # Source file extension for f77 test sources.
13637 ac_ext=f
13639 # Object file extension for compiled f77 test sources.
13640 objext=o
13641 objext_F77=$objext
13643 # Code to be used in simple compile tests
13644 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13646 # Code to be used in simple link tests
13647 lt_simple_link_test_code=" program t\n end\n"
13649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13651 # If no C compiler was specified, use CC.
13652 LTCC=${LTCC-"$CC"}
13654 # Allow CC to be a program name with arguments.
13655 compiler=$CC
13658 # Allow CC to be a program name with arguments.
13659 lt_save_CC="$CC"
13660 CC=${F77-"f77"}
13661 compiler=$CC
13662 compiler_F77=$CC
13663 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13665 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13666 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13667 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13668 echo "${ECHO_T}$can_build_shared" >&6
13670 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13671 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13672 test "$can_build_shared" = "no" && enable_shared=no
13674 # On AIX, shared libraries and static libraries use the same namespace, and
13675 # are all built from PIC.
13676 case "$host_os" in
13677 aix3*)
13678 test "$enable_shared" = yes && enable_static=no
13679 if test -n "$RANLIB"; then
13680 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13681 postinstall_cmds='$RANLIB $lib'
13684 aix4* | aix5*)
13685 test "$enable_shared" = yes && enable_static=no
13687 esac
13688 echo "$as_me:$LINENO: result: $enable_shared" >&5
13689 echo "${ECHO_T}$enable_shared" >&6
13691 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13692 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13693 # Make sure either enable_shared or enable_static is yes.
13694 test "$enable_shared" = yes || enable_static=yes
13695 echo "$as_me:$LINENO: result: $enable_static" >&5
13696 echo "${ECHO_T}$enable_static" >&6
13698 test "$ld_shlibs_F77" = no && can_build_shared=no
13700 GCC_F77="$G77"
13701 LD_F77="$LD"
13703 lt_prog_compiler_wl_F77=
13704 lt_prog_compiler_pic_F77=
13705 lt_prog_compiler_static_F77=
13707 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13708 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13710 if test "$GCC" = yes; then
13711 lt_prog_compiler_wl_F77='-Wl,'
13712 lt_prog_compiler_static_F77='-static'
13714 case $host_os in
13715 aix*)
13716 # All AIX code is PIC.
13717 if test "$host_cpu" = ia64; then
13718 # AIX 5 now supports IA64 processor
13719 lt_prog_compiler_static_F77='-Bstatic'
13723 amigaos*)
13724 # FIXME: we need at least 68020 code to build shared libraries, but
13725 # adding the `-m68020' flag to GCC prevents building anything better,
13726 # like `-m68040'.
13727 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13730 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13731 # PIC is the default for these OSes.
13734 mingw* | pw32* | os2*)
13735 # This hack is so that the source file can tell whether it is being
13736 # built for inclusion in a dll (and should export symbols for example).
13737 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13740 darwin* | rhapsody*)
13741 # PIC is the default on this platform
13742 # Common symbols not allowed in MH_DYLIB files
13743 lt_prog_compiler_pic_F77='-fno-common'
13746 msdosdjgpp*)
13747 # Just because we use GCC doesn't mean we suddenly get shared libraries
13748 # on systems that don't support them.
13749 lt_prog_compiler_can_build_shared_F77=no
13750 enable_shared=no
13753 sysv4*MP*)
13754 if test -d /usr/nec; then
13755 lt_prog_compiler_pic_F77=-Kconform_pic
13759 hpux*)
13760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13761 # not for PA HP-UX.
13762 case "$host_cpu" in
13763 hppa*64*|ia64*)
13764 # +Z the default
13767 lt_prog_compiler_pic_F77='-fPIC'
13769 esac
13773 lt_prog_compiler_pic_F77='-fPIC'
13775 esac
13776 else
13777 # PORTME Check for flag to pass linker flags through the system compiler.
13778 case $host_os in
13779 aix*)
13780 lt_prog_compiler_wl_F77='-Wl,'
13781 if test "$host_cpu" = ia64; then
13782 # AIX 5 now supports IA64 processor
13783 lt_prog_compiler_static_F77='-Bstatic'
13784 else
13785 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13788 darwin*)
13789 # PIC is the default on this platform
13790 # Common symbols not allowed in MH_DYLIB files
13791 case "$cc_basename" in
13792 xlc*)
13793 lt_prog_compiler_pic_F77='-qnocommon'
13794 lt_prog_compiler_wl_F77='-Wl,'
13796 esac
13799 mingw* | pw32* | os2*)
13800 # This hack is so that the source file can tell whether it is being
13801 # built for inclusion in a dll (and should export symbols for example).
13802 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13805 hpux9* | hpux10* | hpux11*)
13806 lt_prog_compiler_wl_F77='-Wl,'
13807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13808 # not for PA HP-UX.
13809 case "$host_cpu" in
13810 hppa*64*|ia64*)
13811 # +Z the default
13814 lt_prog_compiler_pic_F77='+Z'
13816 esac
13817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13818 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13821 irix5* | irix6* | nonstopux*)
13822 lt_prog_compiler_wl_F77='-Wl,'
13823 # PIC (with -KPIC) is the default.
13824 lt_prog_compiler_static_F77='-non_shared'
13827 newsos6)
13828 lt_prog_compiler_pic_F77='-KPIC'
13829 lt_prog_compiler_static_F77='-Bstatic'
13832 linux*)
13833 case $CC in
13834 icc* | ecc*)
13835 lt_prog_compiler_wl_F77='-Wl,'
13836 lt_prog_compiler_pic_F77='-KPIC'
13837 lt_prog_compiler_static_F77='-static'
13839 ccc*)
13840 lt_prog_compiler_wl_F77='-Wl,'
13841 # All Alpha code is PIC.
13842 lt_prog_compiler_static_F77='-non_shared'
13844 esac
13847 osf3* | osf4* | osf5*)
13848 lt_prog_compiler_wl_F77='-Wl,'
13849 # All OSF/1 code is PIC.
13850 lt_prog_compiler_static_F77='-non_shared'
13853 sco3.2v5*)
13854 lt_prog_compiler_pic_F77='-Kpic'
13855 lt_prog_compiler_static_F77='-dn'
13858 solaris*)
13859 lt_prog_compiler_wl_F77='-Wl,'
13860 lt_prog_compiler_pic_F77='-KPIC'
13861 lt_prog_compiler_static_F77='-Bstatic'
13864 sunos4*)
13865 lt_prog_compiler_wl_F77='-Qoption ld '
13866 lt_prog_compiler_pic_F77='-PIC'
13867 lt_prog_compiler_static_F77='-Bstatic'
13870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13871 lt_prog_compiler_wl_F77='-Wl,'
13872 lt_prog_compiler_pic_F77='-KPIC'
13873 lt_prog_compiler_static_F77='-Bstatic'
13876 sysv4*MP*)
13877 if test -d /usr/nec ;then
13878 lt_prog_compiler_pic_F77='-Kconform_pic'
13879 lt_prog_compiler_static_F77='-Bstatic'
13883 uts4*)
13884 lt_prog_compiler_pic_F77='-pic'
13885 lt_prog_compiler_static_F77='-Bstatic'
13889 lt_prog_compiler_can_build_shared_F77=no
13891 esac
13894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13895 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13898 # Check to make sure the PIC flag actually works.
13900 if test -n "$lt_prog_compiler_pic_F77"; then
13902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13903 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13904 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907 lt_prog_compiler_pic_works_F77=no
13908 ac_outfile=conftest.$ac_objext
13909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13910 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13911 # Insert the option either (1) after the last *FLAGS variable, or
13912 # (2) before a word containing "conftest.", or (3) at the end.
13913 # Note that $ac_compile itself does not contain backslashes and begins
13914 # with a dollar sign (not a hyphen), so the echo should work correctly.
13915 # The option is referenced via a variable to avoid confusing sed.
13916 lt_compile=`echo "$ac_compile" | $SED \
13917 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13919 -e 's:$: $lt_compiler_flag:'`
13920 (eval echo "\"\$as_me:13920: $lt_compile\"" >&5)
13921 (eval "$lt_compile" 2>conftest.err)
13922 ac_status=$?
13923 cat conftest.err >&5
13924 echo "$as_me:13924: \$? = $ac_status" >&5
13925 if (exit $ac_status) && test -s "$ac_outfile"; then
13926 # The compiler can only warn and ignore the option if not recognized
13927 # So say no if there are warnings
13928 if test ! -s conftest.err; then
13929 lt_prog_compiler_pic_works_F77=yes
13932 $rm conftest*
13935 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13936 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13938 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13939 case $lt_prog_compiler_pic_F77 in
13940 "" | " "*) ;;
13941 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13942 esac
13943 else
13944 lt_prog_compiler_pic_F77=
13945 lt_prog_compiler_can_build_shared_F77=no
13949 case "$host_os" in
13950 # For platforms which do not support PIC, -DPIC is meaningless:
13951 *djgpp*)
13952 lt_prog_compiler_pic_F77=
13955 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13957 esac
13959 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13960 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13961 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 lt_cv_prog_compiler_c_o_F77=no
13965 $rm -r conftest 2>/dev/null
13966 mkdir conftest
13967 cd conftest
13968 mkdir out
13969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13971 lt_compiler_flag="-o out/conftest2.$ac_objext"
13972 # Insert the option either (1) after the last *FLAGS variable, or
13973 # (2) before a word containing "conftest.", or (3) at the end.
13974 # Note that $ac_compile itself does not contain backslashes and begins
13975 # with a dollar sign (not a hyphen), so the echo should work correctly.
13976 lt_compile=`echo "$ac_compile" | $SED \
13977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979 -e 's:$: $lt_compiler_flag:'`
13980 (eval echo "\"\$as_me:13980: $lt_compile\"" >&5)
13981 (eval "$lt_compile" 2>out/conftest.err)
13982 ac_status=$?
13983 cat out/conftest.err >&5
13984 echo "$as_me:13984: \$? = $ac_status" >&5
13985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13986 then
13987 # The compiler can only warn and ignore the option if not recognized
13988 # So say no if there are warnings
13989 if test ! -s out/conftest.err; then
13990 lt_cv_prog_compiler_c_o_F77=yes
13993 chmod u+w .
13994 $rm conftest*
13995 # SGI C++ compiler will create directory out/ii_files/ for
13996 # template instantiation
13997 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13998 $rm out/* && rmdir out
13999 cd ..
14000 rmdir conftest
14001 $rm conftest*
14004 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14005 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14008 hard_links="nottested"
14009 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14010 # do not overwrite the value of need_locks provided by the user
14011 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14012 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14013 hard_links=yes
14014 $rm conftest*
14015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14016 touch conftest.a
14017 ln conftest.a conftest.b 2>&5 || hard_links=no
14018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14019 echo "$as_me:$LINENO: result: $hard_links" >&5
14020 echo "${ECHO_T}$hard_links" >&6
14021 if test "$hard_links" = no; then
14022 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14023 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14024 need_locks=warn
14026 else
14027 need_locks=no
14030 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14031 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14033 runpath_var=
14034 allow_undefined_flag_F77=
14035 enable_shared_with_static_runtimes_F77=no
14036 archive_cmds_F77=
14037 archive_expsym_cmds_F77=
14038 old_archive_From_new_cmds_F77=
14039 old_archive_from_expsyms_cmds_F77=
14040 export_dynamic_flag_spec_F77=
14041 whole_archive_flag_spec_F77=
14042 thread_safe_flag_spec_F77=
14043 hardcode_libdir_flag_spec_F77=
14044 hardcode_libdir_flag_spec_ld_F77=
14045 hardcode_libdir_separator_F77=
14046 hardcode_direct_F77=no
14047 hardcode_minus_L_F77=no
14048 hardcode_shlibpath_var_F77=unsupported
14049 link_all_deplibs_F77=unknown
14050 hardcode_automatic_F77=no
14051 module_cmds_F77=
14052 module_expsym_cmds_F77=
14053 always_export_symbols_F77=no
14054 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14055 # include_expsyms should be a list of space-separated symbols to be *always*
14056 # included in the symbol list
14057 include_expsyms_F77=
14058 # exclude_expsyms can be an extended regexp of symbols to exclude
14059 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14061 # as well as any symbol that contains `d'.
14062 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14064 # platforms (ab)use it in PIC code, but their linkers get confused if
14065 # the symbol is explicitly referenced. Since portable code cannot
14066 # rely on this symbol name, it's probably fine to never include it in
14067 # preloaded symbol tables.
14068 extract_expsyms_cmds=
14070 case $host_os in
14071 cygwin* | mingw* | pw32*)
14072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14073 # When not using gcc, we currently assume that we are using
14074 # Microsoft Visual C++.
14075 if test "$GCC" != yes; then
14076 with_gnu_ld=no
14079 openbsd*)
14080 with_gnu_ld=no
14082 esac
14084 ld_shlibs_F77=yes
14085 if test "$with_gnu_ld" = yes; then
14086 # If archive_cmds runs LD, not CC, wlarc should be empty
14087 wlarc='${wl}'
14089 # See if GNU ld supports shared libraries.
14090 case $host_os in
14091 aix3* | aix4* | aix5*)
14092 # On AIX/PPC, the GNU linker is very broken
14093 if test "$host_cpu" != ia64; then
14094 ld_shlibs_F77=no
14095 cat <<EOF 1>&2
14097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14098 *** to be unable to reliably create shared libraries on AIX.
14099 *** Therefore, libtool is disabling shared libraries support. If you
14100 *** really care for shared libraries, you may want to modify your PATH
14101 *** so that a non-GNU linker is found, and then restart.
14107 amigaos*)
14108 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)'
14109 hardcode_libdir_flag_spec_F77='-L$libdir'
14110 hardcode_minus_L_F77=yes
14112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14113 # that the semantics of dynamic libraries on AmigaOS, at least up
14114 # to version 4, is to share data among multiple programs linked
14115 # with the same dynamic library. Since this doesn't match the
14116 # behavior of shared libraries on other platforms, we can't use
14117 # them.
14118 ld_shlibs_F77=no
14121 beos*)
14122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14123 allow_undefined_flag_F77=unsupported
14124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14125 # support --undefined. This deserves some investigation. FIXME
14126 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14127 else
14128 ld_shlibs_F77=no
14132 cygwin* | mingw* | pw32*)
14133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14134 # as there is no search path for DLLs.
14135 hardcode_libdir_flag_spec_F77='-L$libdir'
14136 allow_undefined_flag_F77=unsupported
14137 always_export_symbols_F77=no
14138 enable_shared_with_static_runtimes_F77=yes
14139 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14143 # If the export-symbols file already is a .def file (1st line
14144 # is EXPORTS), use it as is; otherwise, prepend...
14145 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14146 cp $export_symbols $output_objdir/$soname.def;
14147 else
14148 echo EXPORTS > $output_objdir/$soname.def;
14149 cat $export_symbols >> $output_objdir/$soname.def;
14151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14152 else
14153 ld_shlibs=no
14157 netbsd*)
14158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14159 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14160 wlarc=
14161 else
14162 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14163 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14167 solaris* | sysv5*)
14168 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14169 ld_shlibs_F77=no
14170 cat <<EOF 1>&2
14172 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14173 *** create shared libraries on Solaris systems. Therefore, libtool
14174 *** is disabling shared libraries support. We urge you to upgrade GNU
14175 *** binutils to release 2.9.1 or newer. Another option is to modify
14176 *** your PATH or compiler configuration so that the native linker is
14177 *** used, and then restart.
14180 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14181 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14183 else
14184 ld_shlibs_F77=no
14188 sunos4*)
14189 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14190 wlarc=
14191 hardcode_direct_F77=yes
14192 hardcode_shlibpath_var_F77=no
14195 linux*)
14196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14197 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14198 archive_cmds_F77="$tmp_archive_cmds"
14199 supports_anon_versioning=no
14200 case `$LD -v 2>/dev/null` in
14201 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14204 *\ 2.11.*) ;; # other 2.11 versions
14205 *) supports_anon_versioning=yes ;;
14206 esac
14207 if test $supports_anon_versioning = yes; then
14208 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14210 $echo "local: *; };" >> $output_objdir/$libname.ver~
14211 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14212 else
14213 archive_expsym_cmds_F77="$tmp_archive_cmds"
14215 else
14216 ld_shlibs_F77=no
14221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14222 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14224 else
14225 ld_shlibs_F77=no
14228 esac
14230 if test "$ld_shlibs_F77" = yes; then
14231 runpath_var=LD_RUN_PATH
14232 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14233 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14234 # ancient GNU ld didn't support --whole-archive et. al.
14235 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14236 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14237 else
14238 whole_archive_flag_spec_F77=
14241 else
14242 # PORTME fill in a description of your system's linker (not GNU ld)
14243 case $host_os in
14244 aix3*)
14245 allow_undefined_flag_F77=unsupported
14246 always_export_symbols_F77=yes
14247 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'
14248 # Note: this linker hardcodes the directories in LIBPATH if there
14249 # are no directories specified by -L.
14250 hardcode_minus_L_F77=yes
14251 if test "$GCC" = yes && test -z "$link_static_flag"; then
14252 # Neither direct hardcoding nor static linking is supported with a
14253 # broken collect2.
14254 hardcode_direct_F77=unsupported
14258 aix4* | aix5*)
14259 if test "$host_cpu" = ia64; then
14260 # On IA64, the linker does run time linking by default, so we don't
14261 # have to do anything special.
14262 aix_use_runtimelinking=no
14263 exp_sym_flag='-Bexport'
14264 no_entry_flag=""
14265 else
14266 # If we're using GNU nm, then we don't want the "-C" option.
14267 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14268 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14269 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'
14270 else
14271 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'
14273 aix_use_runtimelinking=no
14275 # Test if we are trying to use run time linking or normal
14276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14277 # need to do runtime linking.
14278 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14279 for ld_flag in $LDFLAGS; do
14280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14281 aix_use_runtimelinking=yes
14282 break
14284 done
14285 esac
14287 exp_sym_flag='-bexport'
14288 no_entry_flag='-bnoentry'
14291 # When large executables or shared objects are built, AIX ld can
14292 # have problems creating the table of contents. If linking a library
14293 # or program results in "error TOC overflow" add -mminimal-toc to
14294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14297 archive_cmds_F77=''
14298 hardcode_direct_F77=yes
14299 hardcode_libdir_separator_F77=':'
14300 link_all_deplibs_F77=yes
14302 if test "$GCC" = yes; then
14303 case $host_os in aix4.012|aix4.012.*)
14304 # We only want to do this on AIX 4.2 and lower, the check
14305 # below for broken collect2 doesn't work under 4.3+
14306 collect2name=`${CC} -print-prog-name=collect2`
14307 if test -f "$collect2name" && \
14308 strings "$collect2name" | grep resolve_lib_name >/dev/null
14309 then
14310 # We have reworked collect2
14311 hardcode_direct_F77=yes
14312 else
14313 # We have old collect2
14314 hardcode_direct_F77=unsupported
14315 # It fails to find uninstalled libraries when the uninstalled
14316 # path is not listed in the libpath. Setting hardcode_minus_L
14317 # to unsupported forces relinking
14318 hardcode_minus_L_F77=yes
14319 hardcode_libdir_flag_spec_F77='-L$libdir'
14320 hardcode_libdir_separator_F77=
14322 esac
14323 shared_flag='-shared'
14324 else
14325 # not using gcc
14326 if test "$host_cpu" = ia64; then
14327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14328 # chokes on -Wl,-G. The following line is correct:
14329 shared_flag='-G'
14330 else
14331 if test "$aix_use_runtimelinking" = yes; then
14332 shared_flag='${wl}-G'
14333 else
14334 shared_flag='${wl}-bM:SRE'
14339 # It seems that -bexpall does not export symbols beginning with
14340 # underscore (_), so it is better to generate a list of symbols to export.
14341 always_export_symbols_F77=yes
14342 if test "$aix_use_runtimelinking" = yes; then
14343 # Warning - without using the other runtime loading flags (-brtl),
14344 # -berok will link without error, but may produce a broken library.
14345 allow_undefined_flag_F77='-berok'
14346 # Determine the default libpath from the value encoded in an empty executable.
14347 cat >conftest.$ac_ext <<_ACEOF
14348 program main
14351 _ACEOF
14352 rm -f conftest.$ac_objext conftest$ac_exeext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354 (eval $ac_link) 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_f77_werror_flag"
14362 || test ! -s conftest.err'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest$ac_exeext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14377 # Check for a 64-bit object if we didn't find anything.
14378 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; }
14379 }'`; fi
14380 else
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14385 rm -f conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext conftest.$ac_ext
14387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14389 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14390 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"
14391 else
14392 if test "$host_cpu" = ia64; then
14393 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14394 allow_undefined_flag_F77="-z nodefs"
14395 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"
14396 else
14397 # Determine the default libpath from the value encoded in an empty executable.
14398 cat >conftest.$ac_ext <<_ACEOF
14399 program main
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405 (eval $ac_link) 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_f77_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest$ac_exeext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14428 # Check for a 64-bit object if we didn't find anything.
14429 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; }
14430 }'`; fi
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14436 rm -f conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14440 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14441 # Warning - without using the other run time loading flags,
14442 # -berok will link without error, but may produce a broken library.
14443 no_undefined_flag_F77=' ${wl}-bernotok'
14444 allow_undefined_flag_F77=' ${wl}-berok'
14445 # -bexpall does not export symbols beginning with underscore (_)
14446 always_export_symbols_F77=yes
14447 # Exported symbols can be pulled into shared objects from archives
14448 whole_archive_flag_spec_F77=' '
14449 archive_cmds_need_lc_F77=yes
14450 # This is similar to how AIX traditionally builds it's shared libraries.
14451 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'
14456 amigaos*)
14457 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)'
14458 hardcode_libdir_flag_spec_F77='-L$libdir'
14459 hardcode_minus_L_F77=yes
14460 # see comment about different semantics on the GNU ld section
14461 ld_shlibs_F77=no
14464 bsdi[45]*)
14465 export_dynamic_flag_spec_F77=-rdynamic
14468 cygwin* | mingw* | pw32*)
14469 # When not using gcc, we currently assume that we are using
14470 # Microsoft Visual C++.
14471 # hardcode_libdir_flag_spec is actually meaningless, as there is
14472 # no search path for DLLs.
14473 hardcode_libdir_flag_spec_F77=' '
14474 allow_undefined_flag_F77=unsupported
14475 # Tell ltmain to make .lib files, not .a files.
14476 libext=lib
14477 # Tell ltmain to make .dll files, not .so files.
14478 shrext_cmds=".dll"
14479 # FIXME: Setting linknames here is a bad hack.
14480 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14481 # The linker will automatically build a .lib file if we build a DLL.
14482 old_archive_From_new_cmds_F77='true'
14483 # FIXME: Should let the user specify the lib program.
14484 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14485 fix_srcfile_path='`cygpath -w "$srcfile"`'
14486 enable_shared_with_static_runtimes_F77=yes
14489 darwin* | rhapsody*)
14490 case "$host_os" in
14491 rhapsody* | darwin1.[012])
14492 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14494 *) # Darwin 1.3 on
14495 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14496 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14497 else
14498 case ${MACOSX_DEPLOYMENT_TARGET} in
14499 10.[012])
14500 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14502 10.*)
14503 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14505 esac
14508 esac
14509 archive_cmds_need_lc_F77=no
14510 hardcode_direct_F77=no
14511 hardcode_automatic_F77=yes
14512 hardcode_shlibpath_var_F77=unsupported
14513 whole_archive_flag_spec_F77=''
14514 link_all_deplibs_F77=yes
14515 if test "$GCC" = yes ; then
14516 output_verbose_link_cmd='echo'
14517 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14518 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14520 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}'
14521 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}'
14522 else
14523 case "$cc_basename" in
14524 xlc*)
14525 output_verbose_link_cmd='echo'
14526 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14527 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14529 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}'
14530 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}'
14533 ld_shlibs_F77=no
14535 esac
14539 dgux*)
14540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14541 hardcode_libdir_flag_spec_F77='-L$libdir'
14542 hardcode_shlibpath_var_F77=no
14545 freebsd1*)
14546 ld_shlibs_F77=no
14549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14550 # support. Future versions do this automatically, but an explicit c++rt0.o
14551 # does not break anything, and helps significantly (at the cost of a little
14552 # extra space).
14553 freebsd2.2*)
14554 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14555 hardcode_libdir_flag_spec_F77='-R$libdir'
14556 hardcode_direct_F77=yes
14557 hardcode_shlibpath_var_F77=no
14560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14561 freebsd2*)
14562 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14563 hardcode_direct_F77=yes
14564 hardcode_minus_L_F77=yes
14565 hardcode_shlibpath_var_F77=no
14568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14569 freebsd* | kfreebsd*-gnu)
14570 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14571 hardcode_libdir_flag_spec_F77='-R$libdir'
14572 hardcode_direct_F77=yes
14573 hardcode_shlibpath_var_F77=no
14576 hpux9*)
14577 if test "$GCC" = yes; then
14578 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'
14579 else
14580 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'
14582 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583 hardcode_libdir_separator_F77=:
14584 hardcode_direct_F77=yes
14586 # hardcode_minus_L: Not really in the search PATH,
14587 # but as the default location of the library.
14588 hardcode_minus_L_F77=yes
14589 export_dynamic_flag_spec_F77='${wl}-E'
14592 hpux10* | hpux11*)
14593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14594 case "$host_cpu" in
14595 hppa*64*|ia64*)
14596 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14601 esac
14602 else
14603 case "$host_cpu" in
14604 hppa*64*|ia64*)
14605 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14608 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14610 esac
14612 if test "$with_gnu_ld" = no; then
14613 case "$host_cpu" in
14614 hppa*64*)
14615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14616 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14617 hardcode_libdir_separator_F77=:
14618 hardcode_direct_F77=no
14619 hardcode_shlibpath_var_F77=no
14621 ia64*)
14622 hardcode_libdir_flag_spec_F77='-L$libdir'
14623 hardcode_direct_F77=no
14624 hardcode_shlibpath_var_F77=no
14626 # hardcode_minus_L: Not really in the search PATH,
14627 # but as the default location of the library.
14628 hardcode_minus_L_F77=yes
14631 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14632 hardcode_libdir_separator_F77=:
14633 hardcode_direct_F77=yes
14634 export_dynamic_flag_spec_F77='${wl}-E'
14636 # hardcode_minus_L: Not really in the search PATH,
14637 # but as the default location of the library.
14638 hardcode_minus_L_F77=yes
14640 esac
14644 irix5* | irix6* | nonstopux*)
14645 if test "$GCC" = yes; then
14646 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'
14647 else
14648 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'
14649 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14652 hardcode_libdir_separator_F77=:
14653 link_all_deplibs_F77=yes
14656 netbsd*)
14657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14659 else
14660 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14662 hardcode_libdir_flag_spec_F77='-R$libdir'
14663 hardcode_direct_F77=yes
14664 hardcode_shlibpath_var_F77=no
14667 newsos6)
14668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_direct_F77=yes
14670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14671 hardcode_libdir_separator_F77=:
14672 hardcode_shlibpath_var_F77=no
14675 openbsd*)
14676 hardcode_direct_F77=yes
14677 hardcode_shlibpath_var_F77=no
14678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14679 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14680 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14681 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14682 export_dynamic_flag_spec_F77='${wl}-E'
14683 else
14684 case $host_os in
14685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14687 hardcode_libdir_flag_spec_F77='-R$libdir'
14690 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14691 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14693 esac
14697 os2*)
14698 hardcode_libdir_flag_spec_F77='-L$libdir'
14699 hardcode_minus_L_F77=yes
14700 allow_undefined_flag_F77=unsupported
14701 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'
14702 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14705 osf3*)
14706 if test "$GCC" = yes; then
14707 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14708 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'
14709 else
14710 allow_undefined_flag_F77=' -expect_unresolved \*'
14711 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'
14713 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14714 hardcode_libdir_separator_F77=:
14717 osf4* | osf5*) # as osf3* with the addition of -msym flag
14718 if test "$GCC" = yes; then
14719 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14720 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'
14721 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14722 else
14723 allow_undefined_flag_F77=' -expect_unresolved \*'
14724 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'
14725 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~
14726 $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'
14728 # Both c and cxx compiler support -rpath directly
14729 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14731 hardcode_libdir_separator_F77=:
14734 sco3.2v5*)
14735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14736 hardcode_shlibpath_var_F77=no
14737 export_dynamic_flag_spec_F77='${wl}-Bexport'
14738 runpath_var=LD_RUN_PATH
14739 hardcode_runpath_var=yes
14742 solaris*)
14743 no_undefined_flag_F77=' -z text'
14744 if test "$GCC" = yes; then
14745 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14747 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14748 else
14749 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14750 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14751 $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='-R$libdir'
14754 hardcode_shlibpath_var_F77=no
14755 case $host_os in
14756 solaris2.[0-5] | solaris2.[0-5].*) ;;
14757 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14758 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14759 esac
14760 link_all_deplibs_F77=yes
14763 sunos4*)
14764 if test "x$host_vendor" = xsequent; then
14765 # Use $CC to link under sequent, because it throws in some extra .o
14766 # files that make .init and .fini sections work.
14767 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14768 else
14769 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14771 hardcode_libdir_flag_spec_F77='-L$libdir'
14772 hardcode_direct_F77=yes
14773 hardcode_minus_L_F77=yes
14774 hardcode_shlibpath_var_F77=no
14777 sysv4)
14778 case $host_vendor in
14779 sni)
14780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14781 hardcode_direct_F77=yes # is this really true???
14783 siemens)
14784 ## LD is ld it makes a PLAMLIB
14785 ## CC just makes a GrossModule.
14786 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14787 reload_cmds_F77='$CC -r -o $output$reload_objs'
14788 hardcode_direct_F77=no
14790 motorola)
14791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14794 esac
14795 runpath_var='LD_RUN_PATH'
14796 hardcode_shlibpath_var_F77=no
14799 sysv4.3*)
14800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14801 hardcode_shlibpath_var_F77=no
14802 export_dynamic_flag_spec_F77='-Bexport'
14805 sysv4*MP*)
14806 if test -d /usr/nec; then
14807 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14808 hardcode_shlibpath_var_F77=no
14809 runpath_var=LD_RUN_PATH
14810 hardcode_runpath_var=yes
14811 ld_shlibs_F77=yes
14815 sysv4.2uw2*)
14816 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14817 hardcode_direct_F77=yes
14818 hardcode_minus_L_F77=no
14819 hardcode_shlibpath_var_F77=no
14820 hardcode_runpath_var=yes
14821 runpath_var=LD_RUN_PATH
14824 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14825 no_undefined_flag_F77='${wl}-z ${wl}text'
14826 if test "$GCC" = yes; then
14827 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 else
14829 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14831 runpath_var='LD_RUN_PATH'
14832 hardcode_shlibpath_var_F77=no
14835 sysv5*)
14836 no_undefined_flag_F77=' -z text'
14837 # $CC -shared without GNU ld will not create a library from C++
14838 # object files and a static libstdc++, better avoid it by now
14839 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14840 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14842 hardcode_libdir_flag_spec_F77=
14843 hardcode_shlibpath_var_F77=no
14844 runpath_var='LD_RUN_PATH'
14847 uts4*)
14848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14849 hardcode_libdir_flag_spec_F77='-L$libdir'
14850 hardcode_shlibpath_var_F77=no
14854 ld_shlibs_F77=no
14856 esac
14859 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14860 echo "${ECHO_T}$ld_shlibs_F77" >&6
14861 test "$ld_shlibs_F77" = no && can_build_shared=no
14863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14864 if test "$GCC" = yes; then
14865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14869 # Do we need to explicitly link libc?
14871 case "x$archive_cmds_need_lc_F77" in
14872 x|xyes)
14873 # Assume -lc should be added
14874 archive_cmds_need_lc_F77=yes
14876 if test "$enable_shared" = yes && test "$GCC" = yes; then
14877 case $archive_cmds_F77 in
14878 *'~'*)
14879 # FIXME: we may have to deal with multi-command sequences.
14881 '$CC '*)
14882 # Test whether the compiler implicitly links with -lc since on some
14883 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14884 # to ld, don't add -lc before -lgcc.
14885 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14886 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14887 $rm conftest*
14888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } 2>conftest.err; then
14895 soname=conftest
14896 lib=conftest
14897 libobjs=conftest.$ac_objext
14898 deplibs=
14899 wl=$lt_prog_compiler_wl_F77
14900 compiler_flags=-v
14901 linker_flags=-v
14902 verstring=
14903 output_objdir=.
14904 libname=conftest
14905 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14906 allow_undefined_flag_F77=
14907 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14908 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }
14912 then
14913 archive_cmds_need_lc_F77=no
14914 else
14915 archive_cmds_need_lc_F77=yes
14917 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14918 else
14919 cat conftest.err 1>&5
14921 $rm conftest*
14922 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14923 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14925 esac
14928 esac
14930 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14931 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14932 library_names_spec=
14933 libname_spec='lib$name'
14934 soname_spec=
14935 shrext_cmds=".so"
14936 postinstall_cmds=
14937 postuninstall_cmds=
14938 finish_cmds=
14939 finish_eval=
14940 shlibpath_var=
14941 shlibpath_overrides_runpath=unknown
14942 version_type=none
14943 dynamic_linker="$host_os ld.so"
14944 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14945 if test "$GCC" = yes; then
14946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14947 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14948 # if the path contains ";" then we assume it to be the separator
14949 # otherwise default to the standard path separator (i.e. ":") - it is
14950 # assumed that no part of a normal pathname contains ";" but that should
14951 # okay in the real world where ";" in dirpaths is itself problematic.
14952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14953 else
14954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14956 else
14957 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14959 need_lib_prefix=unknown
14960 hardcode_into_libs=no
14962 # when you set need_version to no, make sure it does not cause -set_version
14963 # flags to be left without arguments
14964 need_version=unknown
14966 case $host_os in
14967 aix3*)
14968 version_type=linux
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14970 shlibpath_var=LIBPATH
14972 # AIX 3 has no versioning support, so we append a major version to the name.
14973 soname_spec='${libname}${release}${shared_ext}$major'
14976 aix4* | aix5*)
14977 version_type=linux
14978 need_lib_prefix=no
14979 need_version=no
14980 hardcode_into_libs=yes
14981 if test "$host_cpu" = ia64; then
14982 # AIX 5 supports IA64
14983 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 else
14986 # With GCC up to 2.95.x, collect2 would create an import file
14987 # for dependence libraries. The import file would start with
14988 # the line `#! .'. This would cause the generated library to
14989 # depend on `.', always an invalid library. This was fixed in
14990 # development snapshots of GCC prior to 3.0.
14991 case $host_os in
14992 aix4 | aix4.[01] | aix4.[01].*)
14993 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14994 echo ' yes '
14995 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14997 else
14998 can_build_shared=no
15001 esac
15002 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15003 # soname into executable. Probably we can add versioning support to
15004 # collect2, so additional links can be useful in future.
15005 if test "$aix_use_runtimelinking" = yes; then
15006 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15007 # instead of lib<name>.a to let people know that these are not
15008 # typical AIX shared libraries.
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 else
15011 # We preserve .a as extension for shared libraries through AIX4.2
15012 # and later when we are not doing run time linking.
15013 library_names_spec='${libname}${release}.a $libname.a'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15016 shlibpath_var=LIBPATH
15020 amigaos*)
15021 library_names_spec='$libname.ixlibrary $libname.a'
15022 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15023 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'
15026 beos*)
15027 library_names_spec='${libname}${shared_ext}'
15028 dynamic_linker="$host_os ld.so"
15029 shlibpath_var=LIBRARY_PATH
15032 bsdi[45]*)
15033 version_type=linux
15034 need_version=no
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15040 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15041 # the default ld.so.conf also contains /usr/contrib/lib and
15042 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15043 # libtool to hard-code these into programs
15046 cygwin* | mingw* | pw32*)
15047 version_type=windows
15048 shrext_cmds=".dll"
15049 need_version=no
15050 need_lib_prefix=no
15052 case $GCC,$host_os in
15053 yes,cygwin* | yes,mingw* | yes,pw32*)
15054 library_names_spec='$libname.dll.a'
15055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15056 postinstall_cmds='base_file=`basename \${file}`~
15057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15058 dldir=$destdir/`dirname \$dlpath`~
15059 test -d \$dldir || mkdir -p \$dldir~
15060 $install_prog $dir/$dlname \$dldir/$dlname'
15061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15062 dlpath=$dir/\$dldll~
15063 $rm \$dlpath'
15064 shlibpath_overrides_runpath=yes
15066 case $host_os in
15067 cygwin*)
15068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15072 mingw*)
15073 # MinGW DLLs use traditional 'lib' prefix
15074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15075 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15076 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15077 # It is most probably a Windows format PATH printed by
15078 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15079 # path with ; separators, and with drive letters. We can handle the
15080 # drive letters (cygwin fileutils understands them), so leave them,
15081 # especially as we might pass files found there to a mingw objdump,
15082 # which wouldn't understand a cygwinified path. Ahh.
15083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15084 else
15085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15088 pw32*)
15089 # pw32 DLLs use 'pw' prefix rather than 'lib'
15090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15092 esac
15096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15098 esac
15099 dynamic_linker='Win32 ld.exe'
15100 # FIXME: first we should search . and the directory the executable is in
15101 shlibpath_var=PATH
15104 darwin* | rhapsody*)
15105 dynamic_linker="$host_os dyld"
15106 version_type=darwin
15107 need_lib_prefix=no
15108 need_version=no
15109 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15110 soname_spec='${libname}${release}${major}$shared_ext'
15111 shlibpath_overrides_runpath=yes
15112 shlibpath_var=DYLD_LIBRARY_PATH
15113 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15114 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15115 if test "$GCC" = yes; then
15116 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"`
15117 else
15118 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15123 dgux*)
15124 version_type=linux
15125 need_lib_prefix=no
15126 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
15132 freebsd1*)
15133 dynamic_linker=no
15136 kfreebsd*-gnu)
15137 version_type=linux
15138 need_lib_prefix=no
15139 need_version=no
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=no
15144 hardcode_into_libs=yes
15145 dynamic_linker='GNU ld.so'
15148 freebsd*)
15149 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15150 version_type=freebsd-$objformat
15151 case $version_type in
15152 freebsd-elf*)
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15154 need_version=no
15155 need_lib_prefix=no
15157 freebsd-*)
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15159 need_version=yes
15161 esac
15162 shlibpath_var=LD_LIBRARY_PATH
15163 case $host_os in
15164 freebsd2*)
15165 shlibpath_overrides_runpath=yes
15167 freebsd3.01* | freebsdelf3.01*)
15168 shlibpath_overrides_runpath=yes
15169 hardcode_into_libs=yes
15171 *) # from 3.2 on
15172 shlibpath_overrides_runpath=no
15173 hardcode_into_libs=yes
15175 esac
15178 gnu*)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 hardcode_into_libs=yes
15188 hpux9* | hpux10* | hpux11*)
15189 # Give a soname corresponding to the major version so that dld.sl refuses to
15190 # link against other versions.
15191 version_type=sunos
15192 need_lib_prefix=no
15193 need_version=no
15194 case "$host_cpu" in
15195 ia64*)
15196 shrext_cmds='.so'
15197 hardcode_into_libs=yes
15198 dynamic_linker="$host_os dld.so"
15199 shlibpath_var=LD_LIBRARY_PATH
15200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 if test "X$HPUX_IA64_MODE" = X32; then
15204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15205 else
15206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15210 hppa*64*)
15211 shrext_cmds='.sl'
15212 hardcode_into_libs=yes
15213 dynamic_linker="$host_os dld.sl"
15214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15222 shrext_cmds='.sl'
15223 dynamic_linker="$host_os dld.sl"
15224 shlibpath_var=SHLIB_PATH
15225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15229 esac
15230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15231 postinstall_cmds='chmod 555 $lib'
15234 irix5* | irix6* | nonstopux*)
15235 case $host_os in
15236 nonstopux*) version_type=nonstopux ;;
15238 if test "$lt_cv_prog_gnu_ld" = yes; then
15239 version_type=linux
15240 else
15241 version_type=irix
15242 fi ;;
15243 esac
15244 need_lib_prefix=no
15245 need_version=no
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15248 case $host_os in
15249 irix5* | nonstopux*)
15250 libsuff= shlibsuff=
15253 case $LD in # libtool.m4 will add one of these switches to LD
15254 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15255 libsuff= shlibsuff= libmagic=32-bit;;
15256 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15257 libsuff=32 shlibsuff=N32 libmagic=N32;;
15258 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15259 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15260 *) libsuff= shlibsuff= libmagic=never-match;;
15261 esac
15263 esac
15264 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15265 shlibpath_overrides_runpath=no
15266 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15267 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15268 hardcode_into_libs=yes
15271 # No shared lib support for Linux oldld, aout, or coff.
15272 linux*oldld* | linux*aout* | linux*coff*)
15273 dynamic_linker=no
15276 # This must be Linux ELF.
15277 linux*)
15278 version_type=linux
15279 need_lib_prefix=no
15280 need_version=no
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=no
15286 # This implies no fast_install, which is unacceptable.
15287 # Some rework will be needed to allow for fast_install
15288 # before this can be enabled.
15289 hardcode_into_libs=yes
15291 # Append ld.so.conf contents to the search path
15292 if test -f /etc/ld.so.conf; then
15293 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15294 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15297 # We used to test for /lib/ld.so.1 and disable shared libraries on
15298 # powerpc, because MkLinux only supported shared libraries with the
15299 # GNU dynamic linker. Since this was broken with cross compilers,
15300 # most powerpc-linux boxes support dynamic linking these days and
15301 # people can always --disable-shared, the test was removed, and we
15302 # assume the GNU/Linux dynamic linker is in use.
15303 dynamic_linker='GNU/Linux ld.so'
15306 knetbsd*-gnu)
15307 version_type=linux
15308 need_lib_prefix=no
15309 need_version=no
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 shlibpath_overrides_runpath=no
15314 hardcode_into_libs=yes
15315 dynamic_linker='GNU ld.so'
15318 netbsd*)
15319 version_type=sunos
15320 need_lib_prefix=no
15321 need_version=no
15322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15325 dynamic_linker='NetBSD (a.out) ld.so'
15326 else
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 dynamic_linker='NetBSD ld.elf_so'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=yes
15333 hardcode_into_libs=yes
15336 newsos6)
15337 version_type=linux
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 shlibpath_overrides_runpath=yes
15343 nto-qnx*)
15344 version_type=linux
15345 need_lib_prefix=no
15346 need_version=no
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes
15353 openbsd*)
15354 version_type=sunos
15355 need_lib_prefix=no
15356 need_version=no
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15361 case $host_os in
15362 openbsd2.[89] | openbsd2.[89].*)
15363 shlibpath_overrides_runpath=no
15366 shlibpath_overrides_runpath=yes
15368 esac
15369 else
15370 shlibpath_overrides_runpath=yes
15374 os2*)
15375 libname_spec='$name'
15376 shrext_cmds=".dll"
15377 need_lib_prefix=no
15378 library_names_spec='$libname${shared_ext} $libname.a'
15379 dynamic_linker='OS/2 ld.exe'
15380 shlibpath_var=LIBPATH
15383 osf3* | osf4* | osf5*)
15384 version_type=osf
15385 need_lib_prefix=no
15386 need_version=no
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15391 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15394 sco3.2v5*)
15395 version_type=osf
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 shlibpath_var=LD_LIBRARY_PATH
15401 solaris*)
15402 version_type=linux
15403 need_lib_prefix=no
15404 need_version=no
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=yes
15409 hardcode_into_libs=yes
15410 # ldd complains unless libraries are executable
15411 postinstall_cmds='chmod +x $lib'
15414 sunos4*)
15415 version_type=sunos
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 if test "$with_gnu_ld" = yes; then
15421 need_lib_prefix=no
15423 need_version=yes
15426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15427 version_type=linux
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 case $host_vendor in
15432 sni)
15433 shlibpath_overrides_runpath=no
15434 need_lib_prefix=no
15435 export_dynamic_flag_spec='${wl}-Blargedynsym'
15436 runpath_var=LD_RUN_PATH
15438 siemens)
15439 need_lib_prefix=no
15441 motorola)
15442 need_lib_prefix=no
15443 need_version=no
15444 shlibpath_overrides_runpath=no
15445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15447 esac
15450 sysv4*MP*)
15451 if test -d /usr/nec ;then
15452 version_type=linux
15453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15454 soname_spec='$libname${shared_ext}.$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15459 uts4*)
15460 version_type=linux
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 shlibpath_var=LD_LIBRARY_PATH
15467 dynamic_linker=no
15469 esac
15470 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15471 echo "${ECHO_T}$dynamic_linker" >&6
15472 test "$dynamic_linker" = no && can_build_shared=no
15474 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15476 hardcode_action_F77=
15477 if test -n "$hardcode_libdir_flag_spec_F77" || \
15478 test -n "$runpath_var_F77" || \
15479 test "X$hardcode_automatic_F77" = "Xyes" ; then
15481 # We can hardcode non-existant directories.
15482 if test "$hardcode_direct_F77" != no &&
15483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15484 # have to relink, otherwise we might link with an installed library
15485 # when we should be linking with a yet-to-be-installed one
15486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15487 test "$hardcode_minus_L_F77" != no; then
15488 # Linking always hardcodes the temporary library directory.
15489 hardcode_action_F77=relink
15490 else
15491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15492 hardcode_action_F77=immediate
15494 else
15495 # We cannot hardcode anything, or else we can only hardcode existing
15496 # directories.
15497 hardcode_action_F77=unsupported
15499 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15500 echo "${ECHO_T}$hardcode_action_F77" >&6
15502 if test "$hardcode_action_F77" = relink; then
15503 # Fast installation is not supported
15504 enable_fast_install=no
15505 elif test "$shlibpath_overrides_runpath" = yes ||
15506 test "$enable_shared" = no; then
15507 # Fast installation is not necessary
15508 enable_fast_install=needless
15511 striplib=
15512 old_striplib=
15513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15515 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15518 echo "$as_me:$LINENO: result: yes" >&5
15519 echo "${ECHO_T}yes" >&6
15520 else
15521 # FIXME - insert some real tests, host_os isn't really good enough
15522 case $host_os in
15523 darwin*)
15524 if test -n "$STRIP" ; then
15525 striplib="$STRIP -x"
15526 echo "$as_me:$LINENO: result: yes" >&5
15527 echo "${ECHO_T}yes" >&6
15528 else
15529 echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6
15534 echo "$as_me:$LINENO: result: no" >&5
15535 echo "${ECHO_T}no" >&6
15537 esac
15542 # The else clause should only fire when bootstrapping the
15543 # libtool distribution, otherwise you forgot to ship ltmain.sh
15544 # with your package, and you will get complaints that there are
15545 # no rules to generate ltmain.sh.
15546 if test -f "$ltmain"; then
15547 # See if we are running on zsh, and set the options which allow our commands through
15548 # without removal of \ escapes.
15549 if test -n "${ZSH_VERSION+set}" ; then
15550 setopt NO_GLOB_SUBST
15552 # Now quote all the things that may contain metacharacters while being
15553 # careful not to overquote the AC_SUBSTed values. We take copies of the
15554 # variables and quote the copies for generation of the libtool script.
15555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15556 SED SHELL STRIP \
15557 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15558 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15559 deplibs_check_method reload_flag reload_cmds need_locks \
15560 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15561 lt_cv_sys_global_symbol_to_c_name_address \
15562 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15563 old_postinstall_cmds old_postuninstall_cmds \
15564 compiler_F77 \
15565 CC_F77 \
15566 LD_F77 \
15567 lt_prog_compiler_wl_F77 \
15568 lt_prog_compiler_pic_F77 \
15569 lt_prog_compiler_static_F77 \
15570 lt_prog_compiler_no_builtin_flag_F77 \
15571 export_dynamic_flag_spec_F77 \
15572 thread_safe_flag_spec_F77 \
15573 whole_archive_flag_spec_F77 \
15574 enable_shared_with_static_runtimes_F77 \
15575 old_archive_cmds_F77 \
15576 old_archive_from_new_cmds_F77 \
15577 predep_objects_F77 \
15578 postdep_objects_F77 \
15579 predeps_F77 \
15580 postdeps_F77 \
15581 compiler_lib_search_path_F77 \
15582 archive_cmds_F77 \
15583 archive_expsym_cmds_F77 \
15584 postinstall_cmds_F77 \
15585 postuninstall_cmds_F77 \
15586 old_archive_from_expsyms_cmds_F77 \
15587 allow_undefined_flag_F77 \
15588 no_undefined_flag_F77 \
15589 export_symbols_cmds_F77 \
15590 hardcode_libdir_flag_spec_F77 \
15591 hardcode_libdir_flag_spec_ld_F77 \
15592 hardcode_libdir_separator_F77 \
15593 hardcode_automatic_F77 \
15594 module_cmds_F77 \
15595 module_expsym_cmds_F77 \
15596 lt_cv_prog_compiler_c_o_F77 \
15597 exclude_expsyms_F77 \
15598 include_expsyms_F77; do
15600 case $var in
15601 old_archive_cmds_F77 | \
15602 old_archive_from_new_cmds_F77 | \
15603 archive_cmds_F77 | \
15604 archive_expsym_cmds_F77 | \
15605 module_cmds_F77 | \
15606 module_expsym_cmds_F77 | \
15607 old_archive_from_expsyms_cmds_F77 | \
15608 export_symbols_cmds_F77 | \
15609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15610 postinstall_cmds | postuninstall_cmds | \
15611 old_postinstall_cmds | old_postuninstall_cmds | \
15612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15613 # Double-quote double-evaled strings.
15614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15619 esac
15620 done
15622 case $lt_echo in
15623 *'\$0 --fallback-echo"')
15624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15626 esac
15628 cfgfile="$ofile"
15630 cat <<__EOF__ >> "$cfgfile"
15631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15635 # Shell to use when invoking shell scripts.
15636 SHELL=$lt_SHELL
15638 # Whether or not to build shared libraries.
15639 build_libtool_libs=$enable_shared
15641 # Whether or not to build static libraries.
15642 build_old_libs=$enable_static
15644 # Whether or not to add -lc for building shared libraries.
15645 build_libtool_need_lc=$archive_cmds_need_lc_F77
15647 # Whether or not to disallow shared libs when runtime libs are static
15648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15650 # Whether or not to optimize for fast installation.
15651 fast_install=$enable_fast_install
15653 # The host system.
15654 host_alias=$host_alias
15655 host=$host
15657 # An echo program that does not interpret backslashes.
15658 echo=$lt_echo
15660 # The archiver.
15661 AR=$lt_AR
15662 AR_FLAGS=$lt_AR_FLAGS
15664 # A C compiler.
15665 LTCC=$lt_LTCC
15667 # A language-specific compiler.
15668 CC=$lt_compiler_F77
15670 # Is the compiler the GNU C compiler?
15671 with_gcc=$GCC_F77
15673 # An ERE matcher.
15674 EGREP=$lt_EGREP
15676 # The linker used to build libraries.
15677 LD=$lt_LD_F77
15679 # Whether we need hard or soft links.
15680 LN_S=$lt_LN_S
15682 # A BSD-compatible nm program.
15683 NM=$lt_NM
15685 # A symbol stripping program
15686 STRIP=$lt_STRIP
15688 # Used to examine libraries when file_magic_cmd begins "file"
15689 MAGIC_CMD=$MAGIC_CMD
15691 # Used on cygwin: DLL creation program.
15692 DLLTOOL="$DLLTOOL"
15694 # Used on cygwin: object dumper.
15695 OBJDUMP="$OBJDUMP"
15697 # Used on cygwin: assembler.
15698 AS="$AS"
15700 # The name of the directory that contains temporary libtool files.
15701 objdir=$objdir
15703 # How to create reloadable object files.
15704 reload_flag=$lt_reload_flag
15705 reload_cmds=$lt_reload_cmds
15707 # How to pass a linker flag through the compiler.
15708 wl=$lt_lt_prog_compiler_wl_F77
15710 # Object file suffix (normally "o").
15711 objext="$ac_objext"
15713 # Old archive suffix (normally "a").
15714 libext="$libext"
15716 # Shared library suffix (normally ".so").
15717 shrext_cmds='$shrext_cmds'
15719 # Executable file suffix (normally "").
15720 exeext="$exeext"
15722 # Additional compiler flags for building library objects.
15723 pic_flag=$lt_lt_prog_compiler_pic_F77
15724 pic_mode=$pic_mode
15726 # What is the maximum length of a command?
15727 max_cmd_len=$lt_cv_sys_max_cmd_len
15729 # Does compiler simultaneously support -c and -o options?
15730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15732 # Must we lock files when doing compilation ?
15733 need_locks=$lt_need_locks
15735 # Do we need the lib prefix for modules?
15736 need_lib_prefix=$need_lib_prefix
15738 # Do we need a version for libraries?
15739 need_version=$need_version
15741 # Whether dlopen is supported.
15742 dlopen_support=$enable_dlopen
15744 # Whether dlopen of programs is supported.
15745 dlopen_self=$enable_dlopen_self
15747 # Whether dlopen of statically linked programs is supported.
15748 dlopen_self_static=$enable_dlopen_self_static
15750 # Compiler flag to prevent dynamic linking.
15751 link_static_flag=$lt_lt_prog_compiler_static_F77
15753 # Compiler flag to turn off builtin functions.
15754 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15756 # Compiler flag to allow reflexive dlopens.
15757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15759 # Compiler flag to generate shared objects directly from archives.
15760 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15762 # Compiler flag to generate thread-safe objects.
15763 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15765 # Library versioning type.
15766 version_type=$version_type
15768 # Format of library name prefix.
15769 libname_spec=$lt_libname_spec
15771 # List of archive names. First name is the real one, the rest are links.
15772 # The last name is the one that the linker finds with -lNAME.
15773 library_names_spec=$lt_library_names_spec
15775 # The coded name of the library, if different from the real name.
15776 soname_spec=$lt_soname_spec
15778 # Commands used to build and install an old-style archive.
15779 RANLIB=$lt_RANLIB
15780 old_archive_cmds=$lt_old_archive_cmds_F77
15781 old_postinstall_cmds=$lt_old_postinstall_cmds
15782 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15784 # Create an old-style archive from a shared archive.
15785 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15787 # Create a temporary old-style archive to link instead of a shared archive.
15788 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15790 # Commands used to build and install a shared archive.
15791 archive_cmds=$lt_archive_cmds_F77
15792 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15793 postinstall_cmds=$lt_postinstall_cmds
15794 postuninstall_cmds=$lt_postuninstall_cmds
15796 # Commands used to build a loadable module (assumed same as above if empty)
15797 module_cmds=$lt_module_cmds_F77
15798 module_expsym_cmds=$lt_module_expsym_cmds_F77
15800 # Commands to strip libraries.
15801 old_striplib=$lt_old_striplib
15802 striplib=$lt_striplib
15804 # Dependencies to place before the objects being linked to create a
15805 # shared library.
15806 predep_objects=$lt_predep_objects_F77
15808 # Dependencies to place after the objects being linked to create a
15809 # shared library.
15810 postdep_objects=$lt_postdep_objects_F77
15812 # Dependencies to place before the objects being linked to create a
15813 # shared library.
15814 predeps=$lt_predeps_F77
15816 # Dependencies to place after the objects being linked to create a
15817 # shared library.
15818 postdeps=$lt_postdeps_F77
15820 # The library search path used internally by the compiler when linking
15821 # a shared library.
15822 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15824 # Method to check whether dependent libraries are shared objects.
15825 deplibs_check_method=$lt_deplibs_check_method
15827 # Command to use when deplibs_check_method == file_magic.
15828 file_magic_cmd=$lt_file_magic_cmd
15830 # Flag that allows shared libraries with undefined symbols to be built.
15831 allow_undefined_flag=$lt_allow_undefined_flag_F77
15833 # Flag that forces no undefined symbols.
15834 no_undefined_flag=$lt_no_undefined_flag_F77
15836 # Commands used to finish a libtool library installation in a directory.
15837 finish_cmds=$lt_finish_cmds
15839 # Same as above, but a single script fragment to be evaled but not shown.
15840 finish_eval=$lt_finish_eval
15842 # Take the output of nm and produce a listing of raw symbols and C names.
15843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15845 # Transform the output of nm in a proper C declaration
15846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15848 # Transform the output of nm in a C name address pair
15849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15851 # This is the shared library runtime path variable.
15852 runpath_var=$runpath_var
15854 # This is the shared library path variable.
15855 shlibpath_var=$shlibpath_var
15857 # Is shlibpath searched before the hard-coded library search path?
15858 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15860 # How to hardcode a shared library path into an executable.
15861 hardcode_action=$hardcode_action_F77
15863 # Whether we should hardcode library paths into libraries.
15864 hardcode_into_libs=$hardcode_into_libs
15866 # Flag to hardcode \$libdir into a binary during linking.
15867 # This must work even if \$libdir does not exist.
15868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15870 # If ld is used when linking, flag to hardcode \$libdir into
15871 # a binary during linking. This must work even if \$libdir does
15872 # not exist.
15873 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15875 # Whether we need a single -rpath flag with a separated argument.
15876 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15878 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15879 # resulting binary.
15880 hardcode_direct=$hardcode_direct_F77
15882 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15883 # resulting binary.
15884 hardcode_minus_L=$hardcode_minus_L_F77
15886 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15887 # the resulting binary.
15888 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15890 # Set to yes if building a shared library automatically hardcodes DIR into the library
15891 # and all subsequent libraries and executables linked against it.
15892 hardcode_automatic=$hardcode_automatic_F77
15894 # Variables whose values should be saved in libtool wrapper scripts and
15895 # restored at relink time.
15896 variables_saved_for_relink="$variables_saved_for_relink"
15898 # Whether libtool must link a program against all its dependency libraries.
15899 link_all_deplibs=$link_all_deplibs_F77
15901 # Compile-time system search path for libraries
15902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15904 # Run-time system search path for libraries
15905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15907 # Fix the shell variable \$srcfile for the compiler.
15908 fix_srcfile_path="$fix_srcfile_path_F77"
15910 # Set to yes if exported symbols are required.
15911 always_export_symbols=$always_export_symbols_F77
15913 # The commands to list exported symbols.
15914 export_symbols_cmds=$lt_export_symbols_cmds_F77
15916 # The commands to extract the exported symbol list from a shared archive.
15917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15919 # Symbols that should not be listed in the preloaded symbols.
15920 exclude_expsyms=$lt_exclude_expsyms_F77
15922 # Symbols that must always be exported.
15923 include_expsyms=$lt_include_expsyms_F77
15925 # ### END LIBTOOL TAG CONFIG: $tagname
15927 __EOF__
15930 else
15931 # If there is no Makefile yet, we rely on a make rule to execute
15932 # `config.status --recheck' to rerun these tests and create the
15933 # libtool script then.
15934 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15935 if test -f "$ltmain_in"; then
15936 test -f Makefile && make "$ltmain"
15941 ac_ext=c
15942 ac_cpp='$CPP $CPPFLAGS'
15943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15947 CC="$lt_save_CC"
15949 else
15950 tagname=""
15954 GCJ)
15955 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15959 # Source file extension for Java test sources.
15960 ac_ext=java
15962 # Object file extension for compiled Java test sources.
15963 objext=o
15964 objext_GCJ=$objext
15966 # Code to be used in simple compile tests
15967 lt_simple_compile_test_code="class foo {}\n"
15969 # Code to be used in simple link tests
15970 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15972 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15974 # If no C compiler was specified, use CC.
15975 LTCC=${LTCC-"$CC"}
15977 # Allow CC to be a program name with arguments.
15978 compiler=$CC
15981 # Allow CC to be a program name with arguments.
15982 lt_save_CC="$CC"
15983 CC=${GCJ-"gcj"}
15984 compiler=$CC
15985 compiler_GCJ=$CC
15987 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15988 archive_cmds_need_lc_GCJ=no
15991 lt_prog_compiler_no_builtin_flag_GCJ=
15993 if test "$GCC" = yes; then
15994 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15997 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15998 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15999 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 lt_cv_prog_compiler_rtti_exceptions=no
16003 ac_outfile=conftest.$ac_objext
16004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16005 lt_compiler_flag="-fno-rtti -fno-exceptions"
16006 # Insert the option either (1) after the last *FLAGS variable, or
16007 # (2) before a word containing "conftest.", or (3) at the end.
16008 # Note that $ac_compile itself does not contain backslashes and begins
16009 # with a dollar sign (not a hyphen), so the echo should work correctly.
16010 # The option is referenced via a variable to avoid confusing sed.
16011 lt_compile=`echo "$ac_compile" | $SED \
16012 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16014 -e 's:$: $lt_compiler_flag:'`
16015 (eval echo "\"\$as_me:16015: $lt_compile\"" >&5)
16016 (eval "$lt_compile" 2>conftest.err)
16017 ac_status=$?
16018 cat conftest.err >&5
16019 echo "$as_me:16019: \$? = $ac_status" >&5
16020 if (exit $ac_status) && test -s "$ac_outfile"; then
16021 # The compiler can only warn and ignore the option if not recognized
16022 # So say no if there are warnings
16023 if test ! -s conftest.err; then
16024 lt_cv_prog_compiler_rtti_exceptions=yes
16027 $rm conftest*
16030 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16031 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16034 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16035 else
16041 lt_prog_compiler_wl_GCJ=
16042 lt_prog_compiler_pic_GCJ=
16043 lt_prog_compiler_static_GCJ=
16045 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16046 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16048 if test "$GCC" = yes; then
16049 lt_prog_compiler_wl_GCJ='-Wl,'
16050 lt_prog_compiler_static_GCJ='-static'
16052 case $host_os in
16053 aix*)
16054 # All AIX code is PIC.
16055 if test "$host_cpu" = ia64; then
16056 # AIX 5 now supports IA64 processor
16057 lt_prog_compiler_static_GCJ='-Bstatic'
16061 amigaos*)
16062 # FIXME: we need at least 68020 code to build shared libraries, but
16063 # adding the `-m68020' flag to GCC prevents building anything better,
16064 # like `-m68040'.
16065 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16068 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16069 # PIC is the default for these OSes.
16072 mingw* | pw32* | os2*)
16073 # This hack is so that the source file can tell whether it is being
16074 # built for inclusion in a dll (and should export symbols for example).
16075 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16078 darwin* | rhapsody*)
16079 # PIC is the default on this platform
16080 # Common symbols not allowed in MH_DYLIB files
16081 lt_prog_compiler_pic_GCJ='-fno-common'
16084 msdosdjgpp*)
16085 # Just because we use GCC doesn't mean we suddenly get shared libraries
16086 # on systems that don't support them.
16087 lt_prog_compiler_can_build_shared_GCJ=no
16088 enable_shared=no
16091 sysv4*MP*)
16092 if test -d /usr/nec; then
16093 lt_prog_compiler_pic_GCJ=-Kconform_pic
16097 hpux*)
16098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16099 # not for PA HP-UX.
16100 case "$host_cpu" in
16101 hppa*64*|ia64*)
16102 # +Z the default
16105 lt_prog_compiler_pic_GCJ='-fPIC'
16107 esac
16111 lt_prog_compiler_pic_GCJ='-fPIC'
16113 esac
16114 else
16115 # PORTME Check for flag to pass linker flags through the system compiler.
16116 case $host_os in
16117 aix*)
16118 lt_prog_compiler_wl_GCJ='-Wl,'
16119 if test "$host_cpu" = ia64; then
16120 # AIX 5 now supports IA64 processor
16121 lt_prog_compiler_static_GCJ='-Bstatic'
16122 else
16123 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16126 darwin*)
16127 # PIC is the default on this platform
16128 # Common symbols not allowed in MH_DYLIB files
16129 case "$cc_basename" in
16130 xlc*)
16131 lt_prog_compiler_pic_GCJ='-qnocommon'
16132 lt_prog_compiler_wl_GCJ='-Wl,'
16134 esac
16137 mingw* | pw32* | os2*)
16138 # This hack is so that the source file can tell whether it is being
16139 # built for inclusion in a dll (and should export symbols for example).
16140 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16143 hpux9* | hpux10* | hpux11*)
16144 lt_prog_compiler_wl_GCJ='-Wl,'
16145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16146 # not for PA HP-UX.
16147 case "$host_cpu" in
16148 hppa*64*|ia64*)
16149 # +Z the default
16152 lt_prog_compiler_pic_GCJ='+Z'
16154 esac
16155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16156 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16159 irix5* | irix6* | nonstopux*)
16160 lt_prog_compiler_wl_GCJ='-Wl,'
16161 # PIC (with -KPIC) is the default.
16162 lt_prog_compiler_static_GCJ='-non_shared'
16165 newsos6)
16166 lt_prog_compiler_pic_GCJ='-KPIC'
16167 lt_prog_compiler_static_GCJ='-Bstatic'
16170 linux*)
16171 case $CC in
16172 icc* | ecc*)
16173 lt_prog_compiler_wl_GCJ='-Wl,'
16174 lt_prog_compiler_pic_GCJ='-KPIC'
16175 lt_prog_compiler_static_GCJ='-static'
16177 ccc*)
16178 lt_prog_compiler_wl_GCJ='-Wl,'
16179 # All Alpha code is PIC.
16180 lt_prog_compiler_static_GCJ='-non_shared'
16182 esac
16185 osf3* | osf4* | osf5*)
16186 lt_prog_compiler_wl_GCJ='-Wl,'
16187 # All OSF/1 code is PIC.
16188 lt_prog_compiler_static_GCJ='-non_shared'
16191 sco3.2v5*)
16192 lt_prog_compiler_pic_GCJ='-Kpic'
16193 lt_prog_compiler_static_GCJ='-dn'
16196 solaris*)
16197 lt_prog_compiler_wl_GCJ='-Wl,'
16198 lt_prog_compiler_pic_GCJ='-KPIC'
16199 lt_prog_compiler_static_GCJ='-Bstatic'
16202 sunos4*)
16203 lt_prog_compiler_wl_GCJ='-Qoption ld '
16204 lt_prog_compiler_pic_GCJ='-PIC'
16205 lt_prog_compiler_static_GCJ='-Bstatic'
16208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16210 lt_prog_compiler_pic_GCJ='-KPIC'
16211 lt_prog_compiler_static_GCJ='-Bstatic'
16214 sysv4*MP*)
16215 if test -d /usr/nec ;then
16216 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16217 lt_prog_compiler_static_GCJ='-Bstatic'
16221 uts4*)
16222 lt_prog_compiler_pic_GCJ='-pic'
16223 lt_prog_compiler_static_GCJ='-Bstatic'
16227 lt_prog_compiler_can_build_shared_GCJ=no
16229 esac
16232 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16233 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16236 # Check to make sure the PIC flag actually works.
16238 if test -n "$lt_prog_compiler_pic_GCJ"; then
16240 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16241 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16242 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 else
16245 lt_prog_compiler_pic_works_GCJ=no
16246 ac_outfile=conftest.$ac_objext
16247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16248 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16249 # Insert the option either (1) after the last *FLAGS variable, or
16250 # (2) before a word containing "conftest.", or (3) at the end.
16251 # Note that $ac_compile itself does not contain backslashes and begins
16252 # with a dollar sign (not a hyphen), so the echo should work correctly.
16253 # The option is referenced via a variable to avoid confusing sed.
16254 lt_compile=`echo "$ac_compile" | $SED \
16255 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16257 -e 's:$: $lt_compiler_flag:'`
16258 (eval echo "\"\$as_me:16258: $lt_compile\"" >&5)
16259 (eval "$lt_compile" 2>conftest.err)
16260 ac_status=$?
16261 cat conftest.err >&5
16262 echo "$as_me:16262: \$? = $ac_status" >&5
16263 if (exit $ac_status) && test -s "$ac_outfile"; then
16264 # The compiler can only warn and ignore the option if not recognized
16265 # So say no if there are warnings
16266 if test ! -s conftest.err; then
16267 lt_prog_compiler_pic_works_GCJ=yes
16270 $rm conftest*
16273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16274 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16276 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16277 case $lt_prog_compiler_pic_GCJ in
16278 "" | " "*) ;;
16279 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16280 esac
16281 else
16282 lt_prog_compiler_pic_GCJ=
16283 lt_prog_compiler_can_build_shared_GCJ=no
16287 case "$host_os" in
16288 # For platforms which do not support PIC, -DPIC is meaningless:
16289 *djgpp*)
16290 lt_prog_compiler_pic_GCJ=
16293 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16295 esac
16297 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16298 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16299 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302 lt_cv_prog_compiler_c_o_GCJ=no
16303 $rm -r conftest 2>/dev/null
16304 mkdir conftest
16305 cd conftest
16306 mkdir out
16307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16309 lt_compiler_flag="-o out/conftest2.$ac_objext"
16310 # Insert the option either (1) after the last *FLAGS variable, or
16311 # (2) before a word containing "conftest.", or (3) at the end.
16312 # Note that $ac_compile itself does not contain backslashes and begins
16313 # with a dollar sign (not a hyphen), so the echo should work correctly.
16314 lt_compile=`echo "$ac_compile" | $SED \
16315 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16317 -e 's:$: $lt_compiler_flag:'`
16318 (eval echo "\"\$as_me:16318: $lt_compile\"" >&5)
16319 (eval "$lt_compile" 2>out/conftest.err)
16320 ac_status=$?
16321 cat out/conftest.err >&5
16322 echo "$as_me:16322: \$? = $ac_status" >&5
16323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16324 then
16325 # The compiler can only warn and ignore the option if not recognized
16326 # So say no if there are warnings
16327 if test ! -s out/conftest.err; then
16328 lt_cv_prog_compiler_c_o_GCJ=yes
16331 chmod u+w .
16332 $rm conftest*
16333 # SGI C++ compiler will create directory out/ii_files/ for
16334 # template instantiation
16335 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16336 $rm out/* && rmdir out
16337 cd ..
16338 rmdir conftest
16339 $rm conftest*
16342 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16343 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16346 hard_links="nottested"
16347 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16348 # do not overwrite the value of need_locks provided by the user
16349 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16350 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16351 hard_links=yes
16352 $rm conftest*
16353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16354 touch conftest.a
16355 ln conftest.a conftest.b 2>&5 || hard_links=no
16356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16357 echo "$as_me:$LINENO: result: $hard_links" >&5
16358 echo "${ECHO_T}$hard_links" >&6
16359 if test "$hard_links" = no; then
16360 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16361 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16362 need_locks=warn
16364 else
16365 need_locks=no
16368 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16369 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16371 runpath_var=
16372 allow_undefined_flag_GCJ=
16373 enable_shared_with_static_runtimes_GCJ=no
16374 archive_cmds_GCJ=
16375 archive_expsym_cmds_GCJ=
16376 old_archive_From_new_cmds_GCJ=
16377 old_archive_from_expsyms_cmds_GCJ=
16378 export_dynamic_flag_spec_GCJ=
16379 whole_archive_flag_spec_GCJ=
16380 thread_safe_flag_spec_GCJ=
16381 hardcode_libdir_flag_spec_GCJ=
16382 hardcode_libdir_flag_spec_ld_GCJ=
16383 hardcode_libdir_separator_GCJ=
16384 hardcode_direct_GCJ=no
16385 hardcode_minus_L_GCJ=no
16386 hardcode_shlibpath_var_GCJ=unsupported
16387 link_all_deplibs_GCJ=unknown
16388 hardcode_automatic_GCJ=no
16389 module_cmds_GCJ=
16390 module_expsym_cmds_GCJ=
16391 always_export_symbols_GCJ=no
16392 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16393 # include_expsyms should be a list of space-separated symbols to be *always*
16394 # included in the symbol list
16395 include_expsyms_GCJ=
16396 # exclude_expsyms can be an extended regexp of symbols to exclude
16397 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16399 # as well as any symbol that contains `d'.
16400 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16402 # platforms (ab)use it in PIC code, but their linkers get confused if
16403 # the symbol is explicitly referenced. Since portable code cannot
16404 # rely on this symbol name, it's probably fine to never include it in
16405 # preloaded symbol tables.
16406 extract_expsyms_cmds=
16408 case $host_os in
16409 cygwin* | mingw* | pw32*)
16410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16411 # When not using gcc, we currently assume that we are using
16412 # Microsoft Visual C++.
16413 if test "$GCC" != yes; then
16414 with_gnu_ld=no
16417 openbsd*)
16418 with_gnu_ld=no
16420 esac
16422 ld_shlibs_GCJ=yes
16423 if test "$with_gnu_ld" = yes; then
16424 # If archive_cmds runs LD, not CC, wlarc should be empty
16425 wlarc='${wl}'
16427 # See if GNU ld supports shared libraries.
16428 case $host_os in
16429 aix3* | aix4* | aix5*)
16430 # On AIX/PPC, the GNU linker is very broken
16431 if test "$host_cpu" != ia64; then
16432 ld_shlibs_GCJ=no
16433 cat <<EOF 1>&2
16435 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16436 *** to be unable to reliably create shared libraries on AIX.
16437 *** Therefore, libtool is disabling shared libraries support. If you
16438 *** really care for shared libraries, you may want to modify your PATH
16439 *** so that a non-GNU linker is found, and then restart.
16445 amigaos*)
16446 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)'
16447 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16448 hardcode_minus_L_GCJ=yes
16450 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16451 # that the semantics of dynamic libraries on AmigaOS, at least up
16452 # to version 4, is to share data among multiple programs linked
16453 # with the same dynamic library. Since this doesn't match the
16454 # behavior of shared libraries on other platforms, we can't use
16455 # them.
16456 ld_shlibs_GCJ=no
16459 beos*)
16460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16461 allow_undefined_flag_GCJ=unsupported
16462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16463 # support --undefined. This deserves some investigation. FIXME
16464 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16465 else
16466 ld_shlibs_GCJ=no
16470 cygwin* | mingw* | pw32*)
16471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16472 # as there is no search path for DLLs.
16473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474 allow_undefined_flag_GCJ=unsupported
16475 always_export_symbols_GCJ=no
16476 enable_shared_with_static_runtimes_GCJ=yes
16477 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16481 # If the export-symbols file already is a .def file (1st line
16482 # is EXPORTS), use it as is; otherwise, prepend...
16483 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16484 cp $export_symbols $output_objdir/$soname.def;
16485 else
16486 echo EXPORTS > $output_objdir/$soname.def;
16487 cat $export_symbols >> $output_objdir/$soname.def;
16489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16490 else
16491 ld_shlibs=no
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16498 wlarc=
16499 else
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16505 solaris* | sysv5*)
16506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16507 ld_shlibs_GCJ=no
16508 cat <<EOF 1>&2
16510 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16511 *** create shared libraries on Solaris systems. Therefore, libtool
16512 *** is disabling shared libraries support. We urge you to upgrade GNU
16513 *** binutils to release 2.9.1 or newer. Another option is to modify
16514 *** your PATH or compiler configuration so that the native linker is
16515 *** used, and then restart.
16518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16521 else
16522 ld_shlibs_GCJ=no
16526 sunos4*)
16527 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16528 wlarc=
16529 hardcode_direct_GCJ=yes
16530 hardcode_shlibpath_var_GCJ=no
16533 linux*)
16534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536 archive_cmds_GCJ="$tmp_archive_cmds"
16537 supports_anon_versioning=no
16538 case `$LD -v 2>/dev/null` in
16539 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16542 *\ 2.11.*) ;; # other 2.11 versions
16543 *) supports_anon_versioning=yes ;;
16544 esac
16545 if test $supports_anon_versioning = yes; then
16546 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16547 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16548 $echo "local: *; };" >> $output_objdir/$libname.ver~
16549 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16550 else
16551 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16553 else
16554 ld_shlibs_GCJ=no
16559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16562 else
16563 ld_shlibs_GCJ=no
16566 esac
16568 if test "$ld_shlibs_GCJ" = yes; then
16569 runpath_var=LD_RUN_PATH
16570 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16571 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16572 # ancient GNU ld didn't support --whole-archive et. al.
16573 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16574 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16575 else
16576 whole_archive_flag_spec_GCJ=
16579 else
16580 # PORTME fill in a description of your system's linker (not GNU ld)
16581 case $host_os in
16582 aix3*)
16583 allow_undefined_flag_GCJ=unsupported
16584 always_export_symbols_GCJ=yes
16585 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'
16586 # Note: this linker hardcodes the directories in LIBPATH if there
16587 # are no directories specified by -L.
16588 hardcode_minus_L_GCJ=yes
16589 if test "$GCC" = yes && test -z "$link_static_flag"; then
16590 # Neither direct hardcoding nor static linking is supported with a
16591 # broken collect2.
16592 hardcode_direct_GCJ=unsupported
16596 aix4* | aix5*)
16597 if test "$host_cpu" = ia64; then
16598 # On IA64, the linker does run time linking by default, so we don't
16599 # have to do anything special.
16600 aix_use_runtimelinking=no
16601 exp_sym_flag='-Bexport'
16602 no_entry_flag=""
16603 else
16604 # If we're using GNU nm, then we don't want the "-C" option.
16605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16607 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'
16608 else
16609 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'
16611 aix_use_runtimelinking=no
16613 # Test if we are trying to use run time linking or normal
16614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16615 # need to do runtime linking.
16616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16617 for ld_flag in $LDFLAGS; do
16618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16619 aix_use_runtimelinking=yes
16620 break
16622 done
16623 esac
16625 exp_sym_flag='-bexport'
16626 no_entry_flag='-bnoentry'
16629 # When large executables or shared objects are built, AIX ld can
16630 # have problems creating the table of contents. If linking a library
16631 # or program results in "error TOC overflow" add -mminimal-toc to
16632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16635 archive_cmds_GCJ=''
16636 hardcode_direct_GCJ=yes
16637 hardcode_libdir_separator_GCJ=':'
16638 link_all_deplibs_GCJ=yes
16640 if test "$GCC" = yes; then
16641 case $host_os in aix4.012|aix4.012.*)
16642 # We only want to do this on AIX 4.2 and lower, the check
16643 # below for broken collect2 doesn't work under 4.3+
16644 collect2name=`${CC} -print-prog-name=collect2`
16645 if test -f "$collect2name" && \
16646 strings "$collect2name" | grep resolve_lib_name >/dev/null
16647 then
16648 # We have reworked collect2
16649 hardcode_direct_GCJ=yes
16650 else
16651 # We have old collect2
16652 hardcode_direct_GCJ=unsupported
16653 # It fails to find uninstalled libraries when the uninstalled
16654 # path is not listed in the libpath. Setting hardcode_minus_L
16655 # to unsupported forces relinking
16656 hardcode_minus_L_GCJ=yes
16657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16658 hardcode_libdir_separator_GCJ=
16660 esac
16661 shared_flag='-shared'
16662 else
16663 # not using gcc
16664 if test "$host_cpu" = ia64; then
16665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16666 # chokes on -Wl,-G. The following line is correct:
16667 shared_flag='-G'
16668 else
16669 if test "$aix_use_runtimelinking" = yes; then
16670 shared_flag='${wl}-G'
16671 else
16672 shared_flag='${wl}-bM:SRE'
16677 # It seems that -bexpall does not export symbols beginning with
16678 # underscore (_), so it is better to generate a list of symbols to export.
16679 always_export_symbols_GCJ=yes
16680 if test "$aix_use_runtimelinking" = yes; then
16681 # Warning - without using the other runtime loading flags (-brtl),
16682 # -berok will link without error, but may produce a broken library.
16683 allow_undefined_flag_GCJ='-berok'
16684 # Determine the default libpath from the value encoded in an empty executable.
16685 cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h. */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16693 main ()
16697 return 0;
16699 _ACEOF
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702 (eval $ac_link) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16725 # Check for a 64-bit object if we didn't find anything.
16726 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; }
16727 }'`; fi
16728 else
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16733 rm -f conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16738 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"
16739 else
16740 if test "$host_cpu" = ia64; then
16741 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16742 allow_undefined_flag_GCJ="-z nodefs"
16743 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"
16744 else
16745 # Determine the default libpath from the value encoded in an empty executable.
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h. */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16754 main ()
16758 return 0;
16760 _ACEOF
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763 (eval $ac_link) 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16786 # Check for a 64-bit object if we didn't find anything.
16787 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; }
16788 }'`; fi
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16794 rm -f conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16798 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16799 # Warning - without using the other run time loading flags,
16800 # -berok will link without error, but may produce a broken library.
16801 no_undefined_flag_GCJ=' ${wl}-bernotok'
16802 allow_undefined_flag_GCJ=' ${wl}-berok'
16803 # -bexpall does not export symbols beginning with underscore (_)
16804 always_export_symbols_GCJ=yes
16805 # Exported symbols can be pulled into shared objects from archives
16806 whole_archive_flag_spec_GCJ=' '
16807 archive_cmds_need_lc_GCJ=yes
16808 # This is similar to how AIX traditionally builds it's shared libraries.
16809 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'
16814 amigaos*)
16815 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)'
16816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817 hardcode_minus_L_GCJ=yes
16818 # see comment about different semantics on the GNU ld section
16819 ld_shlibs_GCJ=no
16822 bsdi[45]*)
16823 export_dynamic_flag_spec_GCJ=-rdynamic
16826 cygwin* | mingw* | pw32*)
16827 # When not using gcc, we currently assume that we are using
16828 # Microsoft Visual C++.
16829 # hardcode_libdir_flag_spec is actually meaningless, as there is
16830 # no search path for DLLs.
16831 hardcode_libdir_flag_spec_GCJ=' '
16832 allow_undefined_flag_GCJ=unsupported
16833 # Tell ltmain to make .lib files, not .a files.
16834 libext=lib
16835 # Tell ltmain to make .dll files, not .so files.
16836 shrext_cmds=".dll"
16837 # FIXME: Setting linknames here is a bad hack.
16838 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16839 # The linker will automatically build a .lib file if we build a DLL.
16840 old_archive_From_new_cmds_GCJ='true'
16841 # FIXME: Should let the user specify the lib program.
16842 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16843 fix_srcfile_path='`cygpath -w "$srcfile"`'
16844 enable_shared_with_static_runtimes_GCJ=yes
16847 darwin* | rhapsody*)
16848 case "$host_os" in
16849 rhapsody* | darwin1.[012])
16850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16852 *) # Darwin 1.3 on
16853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16855 else
16856 case ${MACOSX_DEPLOYMENT_TARGET} in
16857 10.[012])
16858 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16860 10.*)
16861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16863 esac
16866 esac
16867 archive_cmds_need_lc_GCJ=no
16868 hardcode_direct_GCJ=no
16869 hardcode_automatic_GCJ=yes
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 whole_archive_flag_spec_GCJ=''
16872 link_all_deplibs_GCJ=yes
16873 if test "$GCC" = yes ; then
16874 output_verbose_link_cmd='echo'
16875 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16876 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16877 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16878 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}'
16879 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}'
16880 else
16881 case "$cc_basename" in
16882 xlc*)
16883 output_verbose_link_cmd='echo'
16884 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16885 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16887 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}'
16888 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}'
16891 ld_shlibs_GCJ=no
16893 esac
16897 dgux*)
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16900 hardcode_shlibpath_var_GCJ=no
16903 freebsd1*)
16904 ld_shlibs_GCJ=no
16907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16908 # support. Future versions do this automatically, but an explicit c++rt0.o
16909 # does not break anything, and helps significantly (at the cost of a little
16910 # extra space).
16911 freebsd2.2*)
16912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16919 freebsd2*)
16920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_direct_GCJ=yes
16922 hardcode_minus_L_GCJ=yes
16923 hardcode_shlibpath_var_GCJ=no
16926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16927 freebsd* | kfreebsd*-gnu)
16928 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16934 hpux9*)
16935 if test "$GCC" = yes; then
16936 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'
16937 else
16938 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'
16940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16941 hardcode_libdir_separator_GCJ=:
16942 hardcode_direct_GCJ=yes
16944 # hardcode_minus_L: Not really in the search PATH,
16945 # but as the default location of the library.
16946 hardcode_minus_L_GCJ=yes
16947 export_dynamic_flag_spec_GCJ='${wl}-E'
16950 hpux10* | hpux11*)
16951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16952 case "$host_cpu" in
16953 hppa*64*|ia64*)
16954 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16957 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16959 esac
16960 else
16961 case "$host_cpu" in
16962 hppa*64*|ia64*)
16963 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16966 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16968 esac
16970 if test "$with_gnu_ld" = no; then
16971 case "$host_cpu" in
16972 hppa*64*)
16973 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16974 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16975 hardcode_libdir_separator_GCJ=:
16976 hardcode_direct_GCJ=no
16977 hardcode_shlibpath_var_GCJ=no
16979 ia64*)
16980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981 hardcode_direct_GCJ=no
16982 hardcode_shlibpath_var_GCJ=no
16984 # hardcode_minus_L: Not really in the search PATH,
16985 # but as the default location of the library.
16986 hardcode_minus_L_GCJ=yes
16989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16990 hardcode_libdir_separator_GCJ=:
16991 hardcode_direct_GCJ=yes
16992 export_dynamic_flag_spec_GCJ='${wl}-E'
16994 # hardcode_minus_L: Not really in the search PATH,
16995 # but as the default location of the library.
16996 hardcode_minus_L_GCJ=yes
16998 esac
17002 irix5* | irix6* | nonstopux*)
17003 if test "$GCC" = yes; then
17004 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'
17005 else
17006 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'
17007 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17010 hardcode_libdir_separator_GCJ=:
17011 link_all_deplibs_GCJ=yes
17014 netbsd*)
17015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17016 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17017 else
17018 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17021 hardcode_direct_GCJ=yes
17022 hardcode_shlibpath_var_GCJ=no
17025 newsos6)
17026 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17027 hardcode_direct_GCJ=yes
17028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17029 hardcode_libdir_separator_GCJ=:
17030 hardcode_shlibpath_var_GCJ=no
17033 openbsd*)
17034 hardcode_direct_GCJ=yes
17035 hardcode_shlibpath_var_GCJ=no
17036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17040 export_dynamic_flag_spec_GCJ='${wl}-E'
17041 else
17042 case $host_os in
17043 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17048 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17051 esac
17055 os2*)
17056 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17057 hardcode_minus_L_GCJ=yes
17058 allow_undefined_flag_GCJ=unsupported
17059 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'
17060 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17063 osf3*)
17064 if test "$GCC" = yes; then
17065 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17066 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'
17067 else
17068 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17069 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'
17071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17072 hardcode_libdir_separator_GCJ=:
17075 osf4* | osf5*) # as osf3* with the addition of -msym flag
17076 if test "$GCC" = yes; then
17077 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17078 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'
17079 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17080 else
17081 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17082 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'
17083 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~
17084 $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'
17086 # Both c and cxx compiler support -rpath directly
17087 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17089 hardcode_libdir_separator_GCJ=:
17092 sco3.2v5*)
17093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094 hardcode_shlibpath_var_GCJ=no
17095 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17096 runpath_var=LD_RUN_PATH
17097 hardcode_runpath_var=yes
17100 solaris*)
17101 no_undefined_flag_GCJ=' -z text'
17102 if test "$GCC" = yes; then
17103 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17104 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17105 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17106 else
17107 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17108 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17109 $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='-R$libdir'
17112 hardcode_shlibpath_var_GCJ=no
17113 case $host_os in
17114 solaris2.[0-5] | solaris2.[0-5].*) ;;
17115 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17116 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17117 esac
17118 link_all_deplibs_GCJ=yes
17121 sunos4*)
17122 if test "x$host_vendor" = xsequent; then
17123 # Use $CC to link under sequent, because it throws in some extra .o
17124 # files that make .init and .fini sections work.
17125 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17126 else
17127 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17130 hardcode_direct_GCJ=yes
17131 hardcode_minus_L_GCJ=yes
17132 hardcode_shlibpath_var_GCJ=no
17135 sysv4)
17136 case $host_vendor in
17137 sni)
17138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17139 hardcode_direct_GCJ=yes # is this really true???
17141 siemens)
17142 ## LD is ld it makes a PLAMLIB
17143 ## CC just makes a GrossModule.
17144 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17145 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17146 hardcode_direct_GCJ=no
17148 motorola)
17149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17150 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17152 esac
17153 runpath_var='LD_RUN_PATH'
17154 hardcode_shlibpath_var_GCJ=no
17157 sysv4.3*)
17158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_shlibpath_var_GCJ=no
17160 export_dynamic_flag_spec_GCJ='-Bexport'
17163 sysv4*MP*)
17164 if test -d /usr/nec; then
17165 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17166 hardcode_shlibpath_var_GCJ=no
17167 runpath_var=LD_RUN_PATH
17168 hardcode_runpath_var=yes
17169 ld_shlibs_GCJ=yes
17173 sysv4.2uw2*)
17174 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17175 hardcode_direct_GCJ=yes
17176 hardcode_minus_L_GCJ=no
17177 hardcode_shlibpath_var_GCJ=no
17178 hardcode_runpath_var=yes
17179 runpath_var=LD_RUN_PATH
17182 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17183 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17184 if test "$GCC" = yes; then
17185 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17186 else
17187 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17189 runpath_var='LD_RUN_PATH'
17190 hardcode_shlibpath_var_GCJ=no
17193 sysv5*)
17194 no_undefined_flag_GCJ=' -z text'
17195 # $CC -shared without GNU ld will not create a library from C++
17196 # object files and a static libstdc++, better avoid it by now
17197 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17198 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17200 hardcode_libdir_flag_spec_GCJ=
17201 hardcode_shlibpath_var_GCJ=no
17202 runpath_var='LD_RUN_PATH'
17205 uts4*)
17206 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208 hardcode_shlibpath_var_GCJ=no
17212 ld_shlibs_GCJ=no
17214 esac
17217 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17218 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17219 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17222 if test "$GCC" = yes; then
17223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17227 # Do we need to explicitly link libc?
17229 case "x$archive_cmds_need_lc_GCJ" in
17230 x|xyes)
17231 # Assume -lc should be added
17232 archive_cmds_need_lc_GCJ=yes
17234 if test "$enable_shared" = yes && test "$GCC" = yes; then
17235 case $archive_cmds_GCJ in
17236 *'~'*)
17237 # FIXME: we may have to deal with multi-command sequences.
17239 '$CC '*)
17240 # Test whether the compiler implicitly links with -lc since on some
17241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17242 # to ld, don't add -lc before -lgcc.
17243 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17244 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17245 $rm conftest*
17246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } 2>conftest.err; then
17253 soname=conftest
17254 lib=conftest
17255 libobjs=conftest.$ac_objext
17256 deplibs=
17257 wl=$lt_prog_compiler_wl_GCJ
17258 compiler_flags=-v
17259 linker_flags=-v
17260 verstring=
17261 output_objdir=.
17262 libname=conftest
17263 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17264 allow_undefined_flag_GCJ=
17265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17266 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }
17270 then
17271 archive_cmds_need_lc_GCJ=no
17272 else
17273 archive_cmds_need_lc_GCJ=yes
17275 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17276 else
17277 cat conftest.err 1>&5
17279 $rm conftest*
17280 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17281 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17283 esac
17286 esac
17288 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17290 library_names_spec=
17291 libname_spec='lib$name'
17292 soname_spec=
17293 shrext_cmds=".so"
17294 postinstall_cmds=
17295 postuninstall_cmds=
17296 finish_cmds=
17297 finish_eval=
17298 shlibpath_var=
17299 shlibpath_overrides_runpath=unknown
17300 version_type=none
17301 dynamic_linker="$host_os ld.so"
17302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17303 if test "$GCC" = yes; then
17304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17306 # if the path contains ";" then we assume it to be the separator
17307 # otherwise default to the standard path separator (i.e. ":") - it is
17308 # assumed that no part of a normal pathname contains ";" but that should
17309 # okay in the real world where ";" in dirpaths is itself problematic.
17310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17311 else
17312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17314 else
17315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17317 need_lib_prefix=unknown
17318 hardcode_into_libs=no
17320 # when you set need_version to no, make sure it does not cause -set_version
17321 # flags to be left without arguments
17322 need_version=unknown
17324 case $host_os in
17325 aix3*)
17326 version_type=linux
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17328 shlibpath_var=LIBPATH
17330 # AIX 3 has no versioning support, so we append a major version to the name.
17331 soname_spec='${libname}${release}${shared_ext}$major'
17334 aix4* | aix5*)
17335 version_type=linux
17336 need_lib_prefix=no
17337 need_version=no
17338 hardcode_into_libs=yes
17339 if test "$host_cpu" = ia64; then
17340 # AIX 5 supports IA64
17341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 else
17344 # With GCC up to 2.95.x, collect2 would create an import file
17345 # for dependence libraries. The import file would start with
17346 # the line `#! .'. This would cause the generated library to
17347 # depend on `.', always an invalid library. This was fixed in
17348 # development snapshots of GCC prior to 3.0.
17349 case $host_os in
17350 aix4 | aix4.[01] | aix4.[01].*)
17351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17352 echo ' yes '
17353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17355 else
17356 can_build_shared=no
17359 esac
17360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17361 # soname into executable. Probably we can add versioning support to
17362 # collect2, so additional links can be useful in future.
17363 if test "$aix_use_runtimelinking" = yes; then
17364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17365 # instead of lib<name>.a to let people know that these are not
17366 # typical AIX shared libraries.
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 else
17369 # We preserve .a as extension for shared libraries through AIX4.2
17370 # and later when we are not doing run time linking.
17371 library_names_spec='${libname}${release}.a $libname.a'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17374 shlibpath_var=LIBPATH
17378 amigaos*)
17379 library_names_spec='$libname.ixlibrary $libname.a'
17380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17381 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'
17384 beos*)
17385 library_names_spec='${libname}${shared_ext}'
17386 dynamic_linker="$host_os ld.so"
17387 shlibpath_var=LIBRARY_PATH
17390 bsdi[45]*)
17391 version_type=linux
17392 need_version=no
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17396 shlibpath_var=LD_LIBRARY_PATH
17397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17399 # the default ld.so.conf also contains /usr/contrib/lib and
17400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17401 # libtool to hard-code these into programs
17404 cygwin* | mingw* | pw32*)
17405 version_type=windows
17406 shrext_cmds=".dll"
17407 need_version=no
17408 need_lib_prefix=no
17410 case $GCC,$host_os in
17411 yes,cygwin* | yes,mingw* | yes,pw32*)
17412 library_names_spec='$libname.dll.a'
17413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17414 postinstall_cmds='base_file=`basename \${file}`~
17415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17416 dldir=$destdir/`dirname \$dlpath`~
17417 test -d \$dldir || mkdir -p \$dldir~
17418 $install_prog $dir/$dlname \$dldir/$dlname'
17419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17420 dlpath=$dir/\$dldll~
17421 $rm \$dlpath'
17422 shlibpath_overrides_runpath=yes
17424 case $host_os in
17425 cygwin*)
17426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17430 mingw*)
17431 # MinGW DLLs use traditional 'lib' prefix
17432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17434 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17435 # It is most probably a Windows format PATH printed by
17436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17437 # path with ; separators, and with drive letters. We can handle the
17438 # drive letters (cygwin fileutils understands them), so leave them,
17439 # especially as we might pass files found there to a mingw objdump,
17440 # which wouldn't understand a cygwinified path. Ahh.
17441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17442 else
17443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17446 pw32*)
17447 # pw32 DLLs use 'pw' prefix rather than 'lib'
17448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17450 esac
17454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17456 esac
17457 dynamic_linker='Win32 ld.exe'
17458 # FIXME: first we should search . and the directory the executable is in
17459 shlibpath_var=PATH
17462 darwin* | rhapsody*)
17463 dynamic_linker="$host_os dyld"
17464 version_type=darwin
17465 need_lib_prefix=no
17466 need_version=no
17467 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17468 soname_spec='${libname}${release}${major}$shared_ext'
17469 shlibpath_overrides_runpath=yes
17470 shlibpath_var=DYLD_LIBRARY_PATH
17471 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17472 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17473 if test "$GCC" = yes; then
17474 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"`
17475 else
17476 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17478 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17481 dgux*)
17482 version_type=linux
17483 need_lib_prefix=no
17484 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17490 freebsd1*)
17491 dynamic_linker=no
17494 kfreebsd*-gnu)
17495 version_type=linux
17496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=no
17502 hardcode_into_libs=yes
17503 dynamic_linker='GNU ld.so'
17506 freebsd*)
17507 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17508 version_type=freebsd-$objformat
17509 case $version_type in
17510 freebsd-elf*)
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17512 need_version=no
17513 need_lib_prefix=no
17515 freebsd-*)
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17517 need_version=yes
17519 esac
17520 shlibpath_var=LD_LIBRARY_PATH
17521 case $host_os in
17522 freebsd2*)
17523 shlibpath_overrides_runpath=yes
17525 freebsd3.01* | freebsdelf3.01*)
17526 shlibpath_overrides_runpath=yes
17527 hardcode_into_libs=yes
17529 *) # from 3.2 on
17530 shlibpath_overrides_runpath=no
17531 hardcode_into_libs=yes
17533 esac
17536 gnu*)
17537 version_type=linux
17538 need_lib_prefix=no
17539 need_version=no
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 shlibpath_var=LD_LIBRARY_PATH
17543 hardcode_into_libs=yes
17546 hpux9* | hpux10* | hpux11*)
17547 # Give a soname corresponding to the major version so that dld.sl refuses to
17548 # link against other versions.
17549 version_type=sunos
17550 need_lib_prefix=no
17551 need_version=no
17552 case "$host_cpu" in
17553 ia64*)
17554 shrext_cmds='.so'
17555 hardcode_into_libs=yes
17556 dynamic_linker="$host_os dld.so"
17557 shlibpath_var=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 if test "X$HPUX_IA64_MODE" = X32; then
17562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17563 else
17564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17568 hppa*64*)
17569 shrext_cmds='.sl'
17570 hardcode_into_libs=yes
17571 dynamic_linker="$host_os dld.sl"
17572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575 soname_spec='${libname}${release}${shared_ext}$major'
17576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17580 shrext_cmds='.sl'
17581 dynamic_linker="$host_os dld.sl"
17582 shlibpath_var=SHLIB_PATH
17583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585 soname_spec='${libname}${release}${shared_ext}$major'
17587 esac
17588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17589 postinstall_cmds='chmod 555 $lib'
17592 irix5* | irix6* | nonstopux*)
17593 case $host_os in
17594 nonstopux*) version_type=nonstopux ;;
17596 if test "$lt_cv_prog_gnu_ld" = yes; then
17597 version_type=linux
17598 else
17599 version_type=irix
17600 fi ;;
17601 esac
17602 need_lib_prefix=no
17603 need_version=no
17604 soname_spec='${libname}${release}${shared_ext}$major'
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17606 case $host_os in
17607 irix5* | nonstopux*)
17608 libsuff= shlibsuff=
17611 case $LD in # libtool.m4 will add one of these switches to LD
17612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17613 libsuff= shlibsuff= libmagic=32-bit;;
17614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17615 libsuff=32 shlibsuff=N32 libmagic=N32;;
17616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17618 *) libsuff= shlibsuff= libmagic=never-match;;
17619 esac
17621 esac
17622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17623 shlibpath_overrides_runpath=no
17624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17626 hardcode_into_libs=yes
17629 # No shared lib support for Linux oldld, aout, or coff.
17630 linux*oldld* | linux*aout* | linux*coff*)
17631 dynamic_linker=no
17634 # This must be Linux ELF.
17635 linux*)
17636 version_type=linux
17637 need_lib_prefix=no
17638 need_version=no
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 soname_spec='${libname}${release}${shared_ext}$major'
17641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 shlibpath_overrides_runpath=no
17644 # This implies no fast_install, which is unacceptable.
17645 # Some rework will be needed to allow for fast_install
17646 # before this can be enabled.
17647 hardcode_into_libs=yes
17649 # Append ld.so.conf contents to the search path
17650 if test -f /etc/ld.so.conf; then
17651 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17655 # We used to test for /lib/ld.so.1 and disable shared libraries on
17656 # powerpc, because MkLinux only supported shared libraries with the
17657 # GNU dynamic linker. Since this was broken with cross compilers,
17658 # most powerpc-linux boxes support dynamic linking these days and
17659 # people can always --disable-shared, the test was removed, and we
17660 # assume the GNU/Linux dynamic linker is in use.
17661 dynamic_linker='GNU/Linux ld.so'
17664 knetbsd*-gnu)
17665 version_type=linux
17666 need_lib_prefix=no
17667 need_version=no
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17670 shlibpath_var=LD_LIBRARY_PATH
17671 shlibpath_overrides_runpath=no
17672 hardcode_into_libs=yes
17673 dynamic_linker='GNU ld.so'
17676 netbsd*)
17677 version_type=sunos
17678 need_lib_prefix=no
17679 need_version=no
17680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17683 dynamic_linker='NetBSD (a.out) ld.so'
17684 else
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 dynamic_linker='NetBSD ld.elf_so'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=yes
17691 hardcode_into_libs=yes
17694 newsos6)
17695 version_type=linux
17696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 shlibpath_overrides_runpath=yes
17701 nto-qnx*)
17702 version_type=linux
17703 need_lib_prefix=no
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath=yes
17711 openbsd*)
17712 version_type=sunos
17713 need_lib_prefix=no
17714 need_version=no
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17717 shlibpath_var=LD_LIBRARY_PATH
17718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17719 case $host_os in
17720 openbsd2.[89] | openbsd2.[89].*)
17721 shlibpath_overrides_runpath=no
17724 shlibpath_overrides_runpath=yes
17726 esac
17727 else
17728 shlibpath_overrides_runpath=yes
17732 os2*)
17733 libname_spec='$name'
17734 shrext_cmds=".dll"
17735 need_lib_prefix=no
17736 library_names_spec='$libname${shared_ext} $libname.a'
17737 dynamic_linker='OS/2 ld.exe'
17738 shlibpath_var=LIBPATH
17741 osf3* | osf4* | osf5*)
17742 version_type=osf
17743 need_lib_prefix=no
17744 need_version=no
17745 soname_spec='${libname}${release}${shared_ext}$major'
17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17752 sco3.2v5*)
17753 version_type=osf
17754 soname_spec='${libname}${release}${shared_ext}$major'
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756 shlibpath_var=LD_LIBRARY_PATH
17759 solaris*)
17760 version_type=linux
17761 need_lib_prefix=no
17762 need_version=no
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 shlibpath_var=LD_LIBRARY_PATH
17766 shlibpath_overrides_runpath=yes
17767 hardcode_into_libs=yes
17768 # ldd complains unless libraries are executable
17769 postinstall_cmds='chmod +x $lib'
17772 sunos4*)
17773 version_type=sunos
17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath=yes
17778 if test "$with_gnu_ld" = yes; then
17779 need_lib_prefix=no
17781 need_version=yes
17784 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17785 version_type=linux
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 case $host_vendor in
17790 sni)
17791 shlibpath_overrides_runpath=no
17792 need_lib_prefix=no
17793 export_dynamic_flag_spec='${wl}-Blargedynsym'
17794 runpath_var=LD_RUN_PATH
17796 siemens)
17797 need_lib_prefix=no
17799 motorola)
17800 need_lib_prefix=no
17801 need_version=no
17802 shlibpath_overrides_runpath=no
17803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17805 esac
17808 sysv4*MP*)
17809 if test -d /usr/nec ;then
17810 version_type=linux
17811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17812 soname_spec='$libname${shared_ext}.$major'
17813 shlibpath_var=LD_LIBRARY_PATH
17817 uts4*)
17818 version_type=linux
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 shlibpath_var=LD_LIBRARY_PATH
17825 dynamic_linker=no
17827 esac
17828 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17829 echo "${ECHO_T}$dynamic_linker" >&6
17830 test "$dynamic_linker" = no && can_build_shared=no
17832 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17833 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17834 hardcode_action_GCJ=
17835 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17836 test -n "$runpath_var_GCJ" || \
17837 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17839 # We can hardcode non-existant directories.
17840 if test "$hardcode_direct_GCJ" != no &&
17841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17842 # have to relink, otherwise we might link with an installed library
17843 # when we should be linking with a yet-to-be-installed one
17844 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17845 test "$hardcode_minus_L_GCJ" != no; then
17846 # Linking always hardcodes the temporary library directory.
17847 hardcode_action_GCJ=relink
17848 else
17849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17850 hardcode_action_GCJ=immediate
17852 else
17853 # We cannot hardcode anything, or else we can only hardcode existing
17854 # directories.
17855 hardcode_action_GCJ=unsupported
17857 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17858 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17860 if test "$hardcode_action_GCJ" = relink; then
17861 # Fast installation is not supported
17862 enable_fast_install=no
17863 elif test "$shlibpath_overrides_runpath" = yes ||
17864 test "$enable_shared" = no; then
17865 # Fast installation is not necessary
17866 enable_fast_install=needless
17869 striplib=
17870 old_striplib=
17871 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17872 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17873 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17874 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17875 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17876 echo "$as_me:$LINENO: result: yes" >&5
17877 echo "${ECHO_T}yes" >&6
17878 else
17879 # FIXME - insert some real tests, host_os isn't really good enough
17880 case $host_os in
17881 darwin*)
17882 if test -n "$STRIP" ; then
17883 striplib="$STRIP -x"
17884 echo "$as_me:$LINENO: result: yes" >&5
17885 echo "${ECHO_T}yes" >&6
17886 else
17887 echo "$as_me:$LINENO: result: no" >&5
17888 echo "${ECHO_T}no" >&6
17892 echo "$as_me:$LINENO: result: no" >&5
17893 echo "${ECHO_T}no" >&6
17895 esac
17898 if test "x$enable_dlopen" != xyes; then
17899 enable_dlopen=unknown
17900 enable_dlopen_self=unknown
17901 enable_dlopen_self_static=unknown
17902 else
17903 lt_cv_dlopen=no
17904 lt_cv_dlopen_libs=
17906 case $host_os in
17907 beos*)
17908 lt_cv_dlopen="load_add_on"
17909 lt_cv_dlopen_libs=
17910 lt_cv_dlopen_self=yes
17913 mingw* | pw32*)
17914 lt_cv_dlopen="LoadLibrary"
17915 lt_cv_dlopen_libs=
17918 cygwin*)
17919 lt_cv_dlopen="dlopen"
17920 lt_cv_dlopen_libs=
17923 darwin*)
17924 # if libdl is installed we need to link against it
17925 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17926 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17927 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930 ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-ldl $LIBS"
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17939 /* Override any gcc2 internal prototype to avoid an error. */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 /* We use char because int might match the return type of a gcc2
17944 builtin and then its argument prototype would still apply. */
17945 char dlopen ();
17947 main ()
17949 dlopen ();
17951 return 0;
17953 _ACEOF
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17956 (eval $ac_link) 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_lib_dl_dlopen=yes
17977 else
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17981 ac_cv_lib_dl_dlopen=no
17983 rm -f conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17987 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17988 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17989 if test $ac_cv_lib_dl_dlopen = yes; then
17990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17991 else
17993 lt_cv_dlopen="dyld"
17994 lt_cv_dlopen_libs=
17995 lt_cv_dlopen_self=yes
18002 echo "$as_me:$LINENO: checking for shl_load" >&5
18003 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18004 if test "${ac_cv_func_shl_load+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 else
18007 cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h. */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18015 #define shl_load innocuous_shl_load
18017 /* System header to define __stub macros and hopefully few prototypes,
18018 which can conflict with char shl_load (); below.
18019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18020 <limits.h> exists even on freestanding compilers. */
18022 #ifdef __STDC__
18023 # include <limits.h>
18024 #else
18025 # include <assert.h>
18026 #endif
18028 #undef shl_load
18030 /* Override any gcc2 internal prototype to avoid an error. */
18031 #ifdef __cplusplus
18032 extern "C"
18034 #endif
18035 /* We use char because int might match the return type of a gcc2
18036 builtin and then its argument prototype would still apply. */
18037 char shl_load ();
18038 /* The GNU C library defines this for functions which it implements
18039 to always fail with ENOSYS. Some functions are actually named
18040 something starting with __ and the normal name is an alias. */
18041 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18042 choke me
18043 #else
18044 char (*f) () = shl_load;
18045 #endif
18046 #ifdef __cplusplus
18048 #endif
18051 main ()
18053 return f != shl_load;
18055 return 0;
18057 _ACEOF
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060 (eval $ac_link) 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest$ac_exeext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_func_shl_load=yes
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_func_shl_load=no
18087 rm -f conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18090 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18091 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18092 if test $ac_cv_func_shl_load = yes; then
18093 lt_cv_dlopen="shl_load"
18094 else
18095 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18096 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18097 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100 ac_check_lib_save_LIBS=$LIBS
18101 LIBS="-ldld $LIBS"
18102 cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h. */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18109 /* Override any gcc2 internal prototype to avoid an error. */
18110 #ifdef __cplusplus
18111 extern "C"
18112 #endif
18113 /* We use char because int might match the return type of a gcc2
18114 builtin and then its argument prototype would still apply. */
18115 char shl_load ();
18117 main ()
18119 shl_load ();
18121 return 0;
18123 _ACEOF
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>conftest.er1
18127 ac_status=$?
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try='test -z "$ac_c_werror_flag"
18134 || test ! -s conftest.err'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; } &&
18140 { ac_try='test -s conftest$ac_exeext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_lib_dld_shl_load=yes
18147 else
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 ac_cv_lib_dld_shl_load=no
18153 rm -f conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
18155 LIBS=$ac_check_lib_save_LIBS
18157 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18158 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18159 if test $ac_cv_lib_dld_shl_load = yes; then
18160 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18161 else
18162 echo "$as_me:$LINENO: checking for dlopen" >&5
18163 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18164 if test "${ac_cv_func_dlopen+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h. */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define dlopen innocuous_dlopen
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char dlopen (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18188 #undef dlopen
18190 /* Override any gcc2 internal prototype to avoid an error. */
18191 #ifdef __cplusplus
18192 extern "C"
18194 #endif
18195 /* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18197 char dlopen ();
18198 /* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18202 choke me
18203 #else
18204 char (*f) () = dlopen;
18205 #endif
18206 #ifdef __cplusplus
18208 #endif
18211 main ()
18213 return f != dlopen;
18215 return 0;
18217 _ACEOF
18218 rm -f conftest.$ac_objext conftest$ac_exeext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18220 (eval $ac_link) 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag"
18228 || test ! -s conftest.err'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_cv_func_dlopen=yes
18241 else
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 ac_cv_func_dlopen=no
18247 rm -f conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18250 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18251 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18252 if test $ac_cv_func_dlopen = yes; then
18253 lt_cv_dlopen="dlopen"
18254 else
18255 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18256 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260 ac_check_lib_save_LIBS=$LIBS
18261 LIBS="-ldl $LIBS"
18262 cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h. */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18269 /* Override any gcc2 internal prototype to avoid an error. */
18270 #ifdef __cplusplus
18271 extern "C"
18272 #endif
18273 /* We use char because int might match the return type of a gcc2
18274 builtin and then its argument prototype would still apply. */
18275 char dlopen ();
18277 main ()
18279 dlopen ();
18281 return 0;
18283 _ACEOF
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18286 (eval $ac_link) 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_dl_dlopen=yes
18307 else
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_lib_dl_dlopen=no
18313 rm -f conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_lib_save_LIBS
18317 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18319 if test $ac_cv_lib_dl_dlopen = yes; then
18320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18321 else
18322 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18323 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18324 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327 ac_check_lib_save_LIBS=$LIBS
18328 LIBS="-lsvld $LIBS"
18329 cat >conftest.$ac_ext <<_ACEOF
18330 /* confdefs.h. */
18331 _ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18336 /* Override any gcc2 internal prototype to avoid an error. */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 /* We use char because int might match the return type of a gcc2
18341 builtin and then its argument prototype would still apply. */
18342 char dlopen ();
18344 main ()
18346 dlopen ();
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest$ac_exeext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_lib_svld_dlopen=yes
18374 else
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 ac_cv_lib_svld_dlopen=no
18380 rm -f conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18384 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18385 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18386 if test $ac_cv_lib_svld_dlopen = yes; then
18387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18388 else
18389 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18390 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18391 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394 ac_check_lib_save_LIBS=$LIBS
18395 LIBS="-ldld $LIBS"
18396 cat >conftest.$ac_ext <<_ACEOF
18397 /* confdefs.h. */
18398 _ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18403 /* Override any gcc2 internal prototype to avoid an error. */
18404 #ifdef __cplusplus
18405 extern "C"
18406 #endif
18407 /* We use char because int might match the return type of a gcc2
18408 builtin and then its argument prototype would still apply. */
18409 char dld_link ();
18411 main ()
18413 dld_link ();
18415 return 0;
18417 _ACEOF
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>conftest.er1
18421 ac_status=$?
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag"
18428 || test ! -s conftest.err'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest$ac_exeext'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_cv_lib_dld_dld_link=yes
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 ac_cv_lib_dld_dld_link=no
18447 rm -f conftest.err conftest.$ac_objext \
18448 conftest$ac_exeext conftest.$ac_ext
18449 LIBS=$ac_check_lib_save_LIBS
18451 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18452 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18453 if test $ac_cv_lib_dld_dld_link = yes; then
18454 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18473 esac
18475 if test "x$lt_cv_dlopen" != xno; then
18476 enable_dlopen=yes
18477 else
18478 enable_dlopen=no
18481 case $lt_cv_dlopen in
18482 dlopen)
18483 save_CPPFLAGS="$CPPFLAGS"
18484 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18486 save_LDFLAGS="$LDFLAGS"
18487 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18489 save_LIBS="$LIBS"
18490 LIBS="$lt_cv_dlopen_libs $LIBS"
18492 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18493 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18494 if test "${lt_cv_dlopen_self+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497 if test "$cross_compiling" = yes; then :
18498 lt_cv_dlopen_self=cross
18499 else
18500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18501 lt_status=$lt_dlunknown
18502 cat > conftest.$ac_ext <<EOF
18503 #line 18503 "configure"
18504 #include "confdefs.h"
18506 #if HAVE_DLFCN_H
18507 #include <dlfcn.h>
18508 #endif
18510 #include <stdio.h>
18512 #ifdef RTLD_GLOBAL
18513 # define LT_DLGLOBAL RTLD_GLOBAL
18514 #else
18515 # ifdef DL_GLOBAL
18516 # define LT_DLGLOBAL DL_GLOBAL
18517 # else
18518 # define LT_DLGLOBAL 0
18519 # endif
18520 #endif
18522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18523 find out it does not work in some platform. */
18524 #ifndef LT_DLLAZY_OR_NOW
18525 # ifdef RTLD_LAZY
18526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18527 # else
18528 # ifdef DL_LAZY
18529 # define LT_DLLAZY_OR_NOW DL_LAZY
18530 # else
18531 # ifdef RTLD_NOW
18532 # define LT_DLLAZY_OR_NOW RTLD_NOW
18533 # else
18534 # ifdef DL_NOW
18535 # define LT_DLLAZY_OR_NOW DL_NOW
18536 # else
18537 # define LT_DLLAZY_OR_NOW 0
18538 # endif
18539 # endif
18540 # endif
18541 # endif
18542 #endif
18544 #ifdef __cplusplus
18545 extern "C" void exit (int);
18546 #endif
18548 void fnord() { int i=42;}
18549 int main ()
18551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18552 int status = $lt_dlunknown;
18554 if (self)
18556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18557 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18558 /* dlclose (self); */
18561 exit (status);
18564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18565 (eval $ac_link) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18569 (./conftest; exit; ) 2>/dev/null
18570 lt_status=$?
18571 case x$lt_status in
18572 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18573 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18574 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18575 esac
18576 else :
18577 # compilation failed
18578 lt_cv_dlopen_self=no
18581 rm -fr conftest*
18585 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18586 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18588 if test "x$lt_cv_dlopen_self" = xyes; then
18589 LDFLAGS="$LDFLAGS $link_static_flag"
18590 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18591 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18592 if test "${lt_cv_dlopen_self_static+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595 if test "$cross_compiling" = yes; then :
18596 lt_cv_dlopen_self_static=cross
18597 else
18598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18599 lt_status=$lt_dlunknown
18600 cat > conftest.$ac_ext <<EOF
18601 #line 18601 "configure"
18602 #include "confdefs.h"
18604 #if HAVE_DLFCN_H
18605 #include <dlfcn.h>
18606 #endif
18608 #include <stdio.h>
18610 #ifdef RTLD_GLOBAL
18611 # define LT_DLGLOBAL RTLD_GLOBAL
18612 #else
18613 # ifdef DL_GLOBAL
18614 # define LT_DLGLOBAL DL_GLOBAL
18615 # else
18616 # define LT_DLGLOBAL 0
18617 # endif
18618 #endif
18620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18621 find out it does not work in some platform. */
18622 #ifndef LT_DLLAZY_OR_NOW
18623 # ifdef RTLD_LAZY
18624 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18625 # else
18626 # ifdef DL_LAZY
18627 # define LT_DLLAZY_OR_NOW DL_LAZY
18628 # else
18629 # ifdef RTLD_NOW
18630 # define LT_DLLAZY_OR_NOW RTLD_NOW
18631 # else
18632 # ifdef DL_NOW
18633 # define LT_DLLAZY_OR_NOW DL_NOW
18634 # else
18635 # define LT_DLLAZY_OR_NOW 0
18636 # endif
18637 # endif
18638 # endif
18639 # endif
18640 #endif
18642 #ifdef __cplusplus
18643 extern "C" void exit (int);
18644 #endif
18646 void fnord() { int i=42;}
18647 int main ()
18649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18650 int status = $lt_dlunknown;
18652 if (self)
18654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18655 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18656 /* dlclose (self); */
18659 exit (status);
18662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18663 (eval $ac_link) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18667 (./conftest; exit; ) 2>/dev/null
18668 lt_status=$?
18669 case x$lt_status in
18670 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18671 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18672 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18673 esac
18674 else :
18675 # compilation failed
18676 lt_cv_dlopen_self_static=no
18679 rm -fr conftest*
18683 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18684 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18687 CPPFLAGS="$save_CPPFLAGS"
18688 LDFLAGS="$save_LDFLAGS"
18689 LIBS="$save_LIBS"
18691 esac
18693 case $lt_cv_dlopen_self in
18694 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18695 *) enable_dlopen_self=unknown ;;
18696 esac
18698 case $lt_cv_dlopen_self_static in
18699 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18700 *) enable_dlopen_self_static=unknown ;;
18701 esac
18705 # The else clause should only fire when bootstrapping the
18706 # libtool distribution, otherwise you forgot to ship ltmain.sh
18707 # with your package, and you will get complaints that there are
18708 # no rules to generate ltmain.sh.
18709 if test -f "$ltmain"; then
18710 # See if we are running on zsh, and set the options which allow our commands through
18711 # without removal of \ escapes.
18712 if test -n "${ZSH_VERSION+set}" ; then
18713 setopt NO_GLOB_SUBST
18715 # Now quote all the things that may contain metacharacters while being
18716 # careful not to overquote the AC_SUBSTed values. We take copies of the
18717 # variables and quote the copies for generation of the libtool script.
18718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18719 SED SHELL STRIP \
18720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18722 deplibs_check_method reload_flag reload_cmds need_locks \
18723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18724 lt_cv_sys_global_symbol_to_c_name_address \
18725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18726 old_postinstall_cmds old_postuninstall_cmds \
18727 compiler_GCJ \
18728 CC_GCJ \
18729 LD_GCJ \
18730 lt_prog_compiler_wl_GCJ \
18731 lt_prog_compiler_pic_GCJ \
18732 lt_prog_compiler_static_GCJ \
18733 lt_prog_compiler_no_builtin_flag_GCJ \
18734 export_dynamic_flag_spec_GCJ \
18735 thread_safe_flag_spec_GCJ \
18736 whole_archive_flag_spec_GCJ \
18737 enable_shared_with_static_runtimes_GCJ \
18738 old_archive_cmds_GCJ \
18739 old_archive_from_new_cmds_GCJ \
18740 predep_objects_GCJ \
18741 postdep_objects_GCJ \
18742 predeps_GCJ \
18743 postdeps_GCJ \
18744 compiler_lib_search_path_GCJ \
18745 archive_cmds_GCJ \
18746 archive_expsym_cmds_GCJ \
18747 postinstall_cmds_GCJ \
18748 postuninstall_cmds_GCJ \
18749 old_archive_from_expsyms_cmds_GCJ \
18750 allow_undefined_flag_GCJ \
18751 no_undefined_flag_GCJ \
18752 export_symbols_cmds_GCJ \
18753 hardcode_libdir_flag_spec_GCJ \
18754 hardcode_libdir_flag_spec_ld_GCJ \
18755 hardcode_libdir_separator_GCJ \
18756 hardcode_automatic_GCJ \
18757 module_cmds_GCJ \
18758 module_expsym_cmds_GCJ \
18759 lt_cv_prog_compiler_c_o_GCJ \
18760 exclude_expsyms_GCJ \
18761 include_expsyms_GCJ; do
18763 case $var in
18764 old_archive_cmds_GCJ | \
18765 old_archive_from_new_cmds_GCJ | \
18766 archive_cmds_GCJ | \
18767 archive_expsym_cmds_GCJ | \
18768 module_cmds_GCJ | \
18769 module_expsym_cmds_GCJ | \
18770 old_archive_from_expsyms_cmds_GCJ | \
18771 export_symbols_cmds_GCJ | \
18772 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18773 postinstall_cmds | postuninstall_cmds | \
18774 old_postinstall_cmds | old_postuninstall_cmds | \
18775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18776 # Double-quote double-evaled strings.
18777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18782 esac
18783 done
18785 case $lt_echo in
18786 *'\$0 --fallback-echo"')
18787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18789 esac
18791 cfgfile="$ofile"
18793 cat <<__EOF__ >> "$cfgfile"
18794 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18798 # Shell to use when invoking shell scripts.
18799 SHELL=$lt_SHELL
18801 # Whether or not to build shared libraries.
18802 build_libtool_libs=$enable_shared
18804 # Whether or not to build static libraries.
18805 build_old_libs=$enable_static
18807 # Whether or not to add -lc for building shared libraries.
18808 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18810 # Whether or not to disallow shared libs when runtime libs are static
18811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18813 # Whether or not to optimize for fast installation.
18814 fast_install=$enable_fast_install
18816 # The host system.
18817 host_alias=$host_alias
18818 host=$host
18820 # An echo program that does not interpret backslashes.
18821 echo=$lt_echo
18823 # The archiver.
18824 AR=$lt_AR
18825 AR_FLAGS=$lt_AR_FLAGS
18827 # A C compiler.
18828 LTCC=$lt_LTCC
18830 # A language-specific compiler.
18831 CC=$lt_compiler_GCJ
18833 # Is the compiler the GNU C compiler?
18834 with_gcc=$GCC_GCJ
18836 # An ERE matcher.
18837 EGREP=$lt_EGREP
18839 # The linker used to build libraries.
18840 LD=$lt_LD_GCJ
18842 # Whether we need hard or soft links.
18843 LN_S=$lt_LN_S
18845 # A BSD-compatible nm program.
18846 NM=$lt_NM
18848 # A symbol stripping program
18849 STRIP=$lt_STRIP
18851 # Used to examine libraries when file_magic_cmd begins "file"
18852 MAGIC_CMD=$MAGIC_CMD
18854 # Used on cygwin: DLL creation program.
18855 DLLTOOL="$DLLTOOL"
18857 # Used on cygwin: object dumper.
18858 OBJDUMP="$OBJDUMP"
18860 # Used on cygwin: assembler.
18861 AS="$AS"
18863 # The name of the directory that contains temporary libtool files.
18864 objdir=$objdir
18866 # How to create reloadable object files.
18867 reload_flag=$lt_reload_flag
18868 reload_cmds=$lt_reload_cmds
18870 # How to pass a linker flag through the compiler.
18871 wl=$lt_lt_prog_compiler_wl_GCJ
18873 # Object file suffix (normally "o").
18874 objext="$ac_objext"
18876 # Old archive suffix (normally "a").
18877 libext="$libext"
18879 # Shared library suffix (normally ".so").
18880 shrext_cmds='$shrext_cmds'
18882 # Executable file suffix (normally "").
18883 exeext="$exeext"
18885 # Additional compiler flags for building library objects.
18886 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18887 pic_mode=$pic_mode
18889 # What is the maximum length of a command?
18890 max_cmd_len=$lt_cv_sys_max_cmd_len
18892 # Does compiler simultaneously support -c and -o options?
18893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18895 # Must we lock files when doing compilation ?
18896 need_locks=$lt_need_locks
18898 # Do we need the lib prefix for modules?
18899 need_lib_prefix=$need_lib_prefix
18901 # Do we need a version for libraries?
18902 need_version=$need_version
18904 # Whether dlopen is supported.
18905 dlopen_support=$enable_dlopen
18907 # Whether dlopen of programs is supported.
18908 dlopen_self=$enable_dlopen_self
18910 # Whether dlopen of statically linked programs is supported.
18911 dlopen_self_static=$enable_dlopen_self_static
18913 # Compiler flag to prevent dynamic linking.
18914 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18916 # Compiler flag to turn off builtin functions.
18917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18919 # Compiler flag to allow reflexive dlopens.
18920 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18922 # Compiler flag to generate shared objects directly from archives.
18923 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18925 # Compiler flag to generate thread-safe objects.
18926 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18928 # Library versioning type.
18929 version_type=$version_type
18931 # Format of library name prefix.
18932 libname_spec=$lt_libname_spec
18934 # List of archive names. First name is the real one, the rest are links.
18935 # The last name is the one that the linker finds with -lNAME.
18936 library_names_spec=$lt_library_names_spec
18938 # The coded name of the library, if different from the real name.
18939 soname_spec=$lt_soname_spec
18941 # Commands used to build and install an old-style archive.
18942 RANLIB=$lt_RANLIB
18943 old_archive_cmds=$lt_old_archive_cmds_GCJ
18944 old_postinstall_cmds=$lt_old_postinstall_cmds
18945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18947 # Create an old-style archive from a shared archive.
18948 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18950 # Create a temporary old-style archive to link instead of a shared archive.
18951 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18953 # Commands used to build and install a shared archive.
18954 archive_cmds=$lt_archive_cmds_GCJ
18955 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18956 postinstall_cmds=$lt_postinstall_cmds
18957 postuninstall_cmds=$lt_postuninstall_cmds
18959 # Commands used to build a loadable module (assumed same as above if empty)
18960 module_cmds=$lt_module_cmds_GCJ
18961 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18963 # Commands to strip libraries.
18964 old_striplib=$lt_old_striplib
18965 striplib=$lt_striplib
18967 # Dependencies to place before the objects being linked to create a
18968 # shared library.
18969 predep_objects=$lt_predep_objects_GCJ
18971 # Dependencies to place after the objects being linked to create a
18972 # shared library.
18973 postdep_objects=$lt_postdep_objects_GCJ
18975 # Dependencies to place before the objects being linked to create a
18976 # shared library.
18977 predeps=$lt_predeps_GCJ
18979 # Dependencies to place after the objects being linked to create a
18980 # shared library.
18981 postdeps=$lt_postdeps_GCJ
18983 # The library search path used internally by the compiler when linking
18984 # a shared library.
18985 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18987 # Method to check whether dependent libraries are shared objects.
18988 deplibs_check_method=$lt_deplibs_check_method
18990 # Command to use when deplibs_check_method == file_magic.
18991 file_magic_cmd=$lt_file_magic_cmd
18993 # Flag that allows shared libraries with undefined symbols to be built.
18994 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18996 # Flag that forces no undefined symbols.
18997 no_undefined_flag=$lt_no_undefined_flag_GCJ
18999 # Commands used to finish a libtool library installation in a directory.
19000 finish_cmds=$lt_finish_cmds
19002 # Same as above, but a single script fragment to be evaled but not shown.
19003 finish_eval=$lt_finish_eval
19005 # Take the output of nm and produce a listing of raw symbols and C names.
19006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19008 # Transform the output of nm in a proper C declaration
19009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19011 # Transform the output of nm in a C name address pair
19012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19014 # This is the shared library runtime path variable.
19015 runpath_var=$runpath_var
19017 # This is the shared library path variable.
19018 shlibpath_var=$shlibpath_var
19020 # Is shlibpath searched before the hard-coded library search path?
19021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19023 # How to hardcode a shared library path into an executable.
19024 hardcode_action=$hardcode_action_GCJ
19026 # Whether we should hardcode library paths into libraries.
19027 hardcode_into_libs=$hardcode_into_libs
19029 # Flag to hardcode \$libdir into a binary during linking.
19030 # This must work even if \$libdir does not exist.
19031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19033 # If ld is used when linking, flag to hardcode \$libdir into
19034 # a binary during linking. This must work even if \$libdir does
19035 # not exist.
19036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19038 # Whether we need a single -rpath flag with a separated argument.
19039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19041 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19042 # resulting binary.
19043 hardcode_direct=$hardcode_direct_GCJ
19045 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19046 # resulting binary.
19047 hardcode_minus_L=$hardcode_minus_L_GCJ
19049 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19050 # the resulting binary.
19051 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19053 # Set to yes if building a shared library automatically hardcodes DIR into the library
19054 # and all subsequent libraries and executables linked against it.
19055 hardcode_automatic=$hardcode_automatic_GCJ
19057 # Variables whose values should be saved in libtool wrapper scripts and
19058 # restored at relink time.
19059 variables_saved_for_relink="$variables_saved_for_relink"
19061 # Whether libtool must link a program against all its dependency libraries.
19062 link_all_deplibs=$link_all_deplibs_GCJ
19064 # Compile-time system search path for libraries
19065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19067 # Run-time system search path for libraries
19068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19070 # Fix the shell variable \$srcfile for the compiler.
19071 fix_srcfile_path="$fix_srcfile_path_GCJ"
19073 # Set to yes if exported symbols are required.
19074 always_export_symbols=$always_export_symbols_GCJ
19076 # The commands to list exported symbols.
19077 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19079 # The commands to extract the exported symbol list from a shared archive.
19080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19082 # Symbols that should not be listed in the preloaded symbols.
19083 exclude_expsyms=$lt_exclude_expsyms_GCJ
19085 # Symbols that must always be exported.
19086 include_expsyms=$lt_include_expsyms_GCJ
19088 # ### END LIBTOOL TAG CONFIG: $tagname
19090 __EOF__
19093 else
19094 # If there is no Makefile yet, we rely on a make rule to execute
19095 # `config.status --recheck' to rerun these tests and create the
19096 # libtool script then.
19097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19098 if test -f "$ltmain_in"; then
19099 test -f Makefile && make "$ltmain"
19104 ac_ext=c
19105 ac_cpp='$CPP $CPPFLAGS'
19106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19110 CC="$lt_save_CC"
19112 else
19113 tagname=""
19121 # Source file extension for RC test sources.
19122 ac_ext=rc
19124 # Object file extension for compiled RC test sources.
19125 objext=o
19126 objext_RC=$objext
19128 # Code to be used in simple compile tests
19129 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19131 # Code to be used in simple link tests
19132 lt_simple_link_test_code="$lt_simple_compile_test_code"
19134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19136 # If no C compiler was specified, use CC.
19137 LTCC=${LTCC-"$CC"}
19139 # Allow CC to be a program name with arguments.
19140 compiler=$CC
19143 # Allow CC to be a program name with arguments.
19144 lt_save_CC="$CC"
19145 CC=${RC-"windres"}
19146 compiler=$CC
19147 compiler_RC=$CC
19148 lt_cv_prog_compiler_c_o_RC=yes
19150 # The else clause should only fire when bootstrapping the
19151 # libtool distribution, otherwise you forgot to ship ltmain.sh
19152 # with your package, and you will get complaints that there are
19153 # no rules to generate ltmain.sh.
19154 if test -f "$ltmain"; then
19155 # See if we are running on zsh, and set the options which allow our commands through
19156 # without removal of \ escapes.
19157 if test -n "${ZSH_VERSION+set}" ; then
19158 setopt NO_GLOB_SUBST
19160 # Now quote all the things that may contain metacharacters while being
19161 # careful not to overquote the AC_SUBSTed values. We take copies of the
19162 # variables and quote the copies for generation of the libtool script.
19163 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19164 SED SHELL STRIP \
19165 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19166 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19167 deplibs_check_method reload_flag reload_cmds need_locks \
19168 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19169 lt_cv_sys_global_symbol_to_c_name_address \
19170 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19171 old_postinstall_cmds old_postuninstall_cmds \
19172 compiler_RC \
19173 CC_RC \
19174 LD_RC \
19175 lt_prog_compiler_wl_RC \
19176 lt_prog_compiler_pic_RC \
19177 lt_prog_compiler_static_RC \
19178 lt_prog_compiler_no_builtin_flag_RC \
19179 export_dynamic_flag_spec_RC \
19180 thread_safe_flag_spec_RC \
19181 whole_archive_flag_spec_RC \
19182 enable_shared_with_static_runtimes_RC \
19183 old_archive_cmds_RC \
19184 old_archive_from_new_cmds_RC \
19185 predep_objects_RC \
19186 postdep_objects_RC \
19187 predeps_RC \
19188 postdeps_RC \
19189 compiler_lib_search_path_RC \
19190 archive_cmds_RC \
19191 archive_expsym_cmds_RC \
19192 postinstall_cmds_RC \
19193 postuninstall_cmds_RC \
19194 old_archive_from_expsyms_cmds_RC \
19195 allow_undefined_flag_RC \
19196 no_undefined_flag_RC \
19197 export_symbols_cmds_RC \
19198 hardcode_libdir_flag_spec_RC \
19199 hardcode_libdir_flag_spec_ld_RC \
19200 hardcode_libdir_separator_RC \
19201 hardcode_automatic_RC \
19202 module_cmds_RC \
19203 module_expsym_cmds_RC \
19204 lt_cv_prog_compiler_c_o_RC \
19205 exclude_expsyms_RC \
19206 include_expsyms_RC; do
19208 case $var in
19209 old_archive_cmds_RC | \
19210 old_archive_from_new_cmds_RC | \
19211 archive_cmds_RC | \
19212 archive_expsym_cmds_RC | \
19213 module_cmds_RC | \
19214 module_expsym_cmds_RC | \
19215 old_archive_from_expsyms_cmds_RC | \
19216 export_symbols_cmds_RC | \
19217 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19218 postinstall_cmds | postuninstall_cmds | \
19219 old_postinstall_cmds | old_postuninstall_cmds | \
19220 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19221 # Double-quote double-evaled strings.
19222 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19227 esac
19228 done
19230 case $lt_echo in
19231 *'\$0 --fallback-echo"')
19232 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19234 esac
19236 cfgfile="$ofile"
19238 cat <<__EOF__ >> "$cfgfile"
19239 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19241 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19243 # Shell to use when invoking shell scripts.
19244 SHELL=$lt_SHELL
19246 # Whether or not to build shared libraries.
19247 build_libtool_libs=$enable_shared
19249 # Whether or not to build static libraries.
19250 build_old_libs=$enable_static
19252 # Whether or not to add -lc for building shared libraries.
19253 build_libtool_need_lc=$archive_cmds_need_lc_RC
19255 # Whether or not to disallow shared libs when runtime libs are static
19256 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19258 # Whether or not to optimize for fast installation.
19259 fast_install=$enable_fast_install
19261 # The host system.
19262 host_alias=$host_alias
19263 host=$host
19265 # An echo program that does not interpret backslashes.
19266 echo=$lt_echo
19268 # The archiver.
19269 AR=$lt_AR
19270 AR_FLAGS=$lt_AR_FLAGS
19272 # A C compiler.
19273 LTCC=$lt_LTCC
19275 # A language-specific compiler.
19276 CC=$lt_compiler_RC
19278 # Is the compiler the GNU C compiler?
19279 with_gcc=$GCC_RC
19281 # An ERE matcher.
19282 EGREP=$lt_EGREP
19284 # The linker used to build libraries.
19285 LD=$lt_LD_RC
19287 # Whether we need hard or soft links.
19288 LN_S=$lt_LN_S
19290 # A BSD-compatible nm program.
19291 NM=$lt_NM
19293 # A symbol stripping program
19294 STRIP=$lt_STRIP
19296 # Used to examine libraries when file_magic_cmd begins "file"
19297 MAGIC_CMD=$MAGIC_CMD
19299 # Used on cygwin: DLL creation program.
19300 DLLTOOL="$DLLTOOL"
19302 # Used on cygwin: object dumper.
19303 OBJDUMP="$OBJDUMP"
19305 # Used on cygwin: assembler.
19306 AS="$AS"
19308 # The name of the directory that contains temporary libtool files.
19309 objdir=$objdir
19311 # How to create reloadable object files.
19312 reload_flag=$lt_reload_flag
19313 reload_cmds=$lt_reload_cmds
19315 # How to pass a linker flag through the compiler.
19316 wl=$lt_lt_prog_compiler_wl_RC
19318 # Object file suffix (normally "o").
19319 objext="$ac_objext"
19321 # Old archive suffix (normally "a").
19322 libext="$libext"
19324 # Shared library suffix (normally ".so").
19325 shrext_cmds='$shrext_cmds'
19327 # Executable file suffix (normally "").
19328 exeext="$exeext"
19330 # Additional compiler flags for building library objects.
19331 pic_flag=$lt_lt_prog_compiler_pic_RC
19332 pic_mode=$pic_mode
19334 # What is the maximum length of a command?
19335 max_cmd_len=$lt_cv_sys_max_cmd_len
19337 # Does compiler simultaneously support -c and -o options?
19338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19340 # Must we lock files when doing compilation ?
19341 need_locks=$lt_need_locks
19343 # Do we need the lib prefix for modules?
19344 need_lib_prefix=$need_lib_prefix
19346 # Do we need a version for libraries?
19347 need_version=$need_version
19349 # Whether dlopen is supported.
19350 dlopen_support=$enable_dlopen
19352 # Whether dlopen of programs is supported.
19353 dlopen_self=$enable_dlopen_self
19355 # Whether dlopen of statically linked programs is supported.
19356 dlopen_self_static=$enable_dlopen_self_static
19358 # Compiler flag to prevent dynamic linking.
19359 link_static_flag=$lt_lt_prog_compiler_static_RC
19361 # Compiler flag to turn off builtin functions.
19362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19364 # Compiler flag to allow reflexive dlopens.
19365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19367 # Compiler flag to generate shared objects directly from archives.
19368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19370 # Compiler flag to generate thread-safe objects.
19371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19373 # Library versioning type.
19374 version_type=$version_type
19376 # Format of library name prefix.
19377 libname_spec=$lt_libname_spec
19379 # List of archive names. First name is the real one, the rest are links.
19380 # The last name is the one that the linker finds with -lNAME.
19381 library_names_spec=$lt_library_names_spec
19383 # The coded name of the library, if different from the real name.
19384 soname_spec=$lt_soname_spec
19386 # Commands used to build and install an old-style archive.
19387 RANLIB=$lt_RANLIB
19388 old_archive_cmds=$lt_old_archive_cmds_RC
19389 old_postinstall_cmds=$lt_old_postinstall_cmds
19390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19392 # Create an old-style archive from a shared archive.
19393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19395 # Create a temporary old-style archive to link instead of a shared archive.
19396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19398 # Commands used to build and install a shared archive.
19399 archive_cmds=$lt_archive_cmds_RC
19400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19401 postinstall_cmds=$lt_postinstall_cmds
19402 postuninstall_cmds=$lt_postuninstall_cmds
19404 # Commands used to build a loadable module (assumed same as above if empty)
19405 module_cmds=$lt_module_cmds_RC
19406 module_expsym_cmds=$lt_module_expsym_cmds_RC
19408 # Commands to strip libraries.
19409 old_striplib=$lt_old_striplib
19410 striplib=$lt_striplib
19412 # Dependencies to place before the objects being linked to create a
19413 # shared library.
19414 predep_objects=$lt_predep_objects_RC
19416 # Dependencies to place after the objects being linked to create a
19417 # shared library.
19418 postdep_objects=$lt_postdep_objects_RC
19420 # Dependencies to place before the objects being linked to create a
19421 # shared library.
19422 predeps=$lt_predeps_RC
19424 # Dependencies to place after the objects being linked to create a
19425 # shared library.
19426 postdeps=$lt_postdeps_RC
19428 # The library search path used internally by the compiler when linking
19429 # a shared library.
19430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19432 # Method to check whether dependent libraries are shared objects.
19433 deplibs_check_method=$lt_deplibs_check_method
19435 # Command to use when deplibs_check_method == file_magic.
19436 file_magic_cmd=$lt_file_magic_cmd
19438 # Flag that allows shared libraries with undefined symbols to be built.
19439 allow_undefined_flag=$lt_allow_undefined_flag_RC
19441 # Flag that forces no undefined symbols.
19442 no_undefined_flag=$lt_no_undefined_flag_RC
19444 # Commands used to finish a libtool library installation in a directory.
19445 finish_cmds=$lt_finish_cmds
19447 # Same as above, but a single script fragment to be evaled but not shown.
19448 finish_eval=$lt_finish_eval
19450 # Take the output of nm and produce a listing of raw symbols and C names.
19451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19453 # Transform the output of nm in a proper C declaration
19454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19456 # Transform the output of nm in a C name address pair
19457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19459 # This is the shared library runtime path variable.
19460 runpath_var=$runpath_var
19462 # This is the shared library path variable.
19463 shlibpath_var=$shlibpath_var
19465 # Is shlibpath searched before the hard-coded library search path?
19466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19468 # How to hardcode a shared library path into an executable.
19469 hardcode_action=$hardcode_action_RC
19471 # Whether we should hardcode library paths into libraries.
19472 hardcode_into_libs=$hardcode_into_libs
19474 # Flag to hardcode \$libdir into a binary during linking.
19475 # This must work even if \$libdir does not exist.
19476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19478 # If ld is used when linking, flag to hardcode \$libdir into
19479 # a binary during linking. This must work even if \$libdir does
19480 # not exist.
19481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19483 # Whether we need a single -rpath flag with a separated argument.
19484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19487 # resulting binary.
19488 hardcode_direct=$hardcode_direct_RC
19490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19491 # resulting binary.
19492 hardcode_minus_L=$hardcode_minus_L_RC
19494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19495 # the resulting binary.
19496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19498 # Set to yes if building a shared library automatically hardcodes DIR into the library
19499 # and all subsequent libraries and executables linked against it.
19500 hardcode_automatic=$hardcode_automatic_RC
19502 # Variables whose values should be saved in libtool wrapper scripts and
19503 # restored at relink time.
19504 variables_saved_for_relink="$variables_saved_for_relink"
19506 # Whether libtool must link a program against all its dependency libraries.
19507 link_all_deplibs=$link_all_deplibs_RC
19509 # Compile-time system search path for libraries
19510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19512 # Run-time system search path for libraries
19513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19515 # Fix the shell variable \$srcfile for the compiler.
19516 fix_srcfile_path="$fix_srcfile_path_RC"
19518 # Set to yes if exported symbols are required.
19519 always_export_symbols=$always_export_symbols_RC
19521 # The commands to list exported symbols.
19522 export_symbols_cmds=$lt_export_symbols_cmds_RC
19524 # The commands to extract the exported symbol list from a shared archive.
19525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19527 # Symbols that should not be listed in the preloaded symbols.
19528 exclude_expsyms=$lt_exclude_expsyms_RC
19530 # Symbols that must always be exported.
19531 include_expsyms=$lt_include_expsyms_RC
19533 # ### END LIBTOOL TAG CONFIG: $tagname
19535 __EOF__
19538 else
19539 # If there is no Makefile yet, we rely on a make rule to execute
19540 # `config.status --recheck' to rerun these tests and create the
19541 # libtool script then.
19542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19543 if test -f "$ltmain_in"; then
19544 test -f Makefile && make "$ltmain"
19549 ac_ext=c
19550 ac_cpp='$CPP $CPPFLAGS'
19551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19555 CC="$lt_save_CC"
19560 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19562 { (exit 1); exit 1; }; }
19564 esac
19566 # Append the new tag name to the list of available tags.
19567 if test -n "$tagname" ; then
19568 available_tags="$available_tags $tagname"
19571 done
19572 IFS="$lt_save_ifs"
19574 # Now substitute the updated list of available tags.
19575 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19576 mv "${ofile}T" "$ofile"
19577 chmod +x "$ofile"
19578 else
19579 rm -f "${ofile}T"
19580 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19582 { (exit 1); exit 1; }; }
19588 # This can be used to rebuild libtool when needed
19589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19591 # Always use our own libtool.
19592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19594 # Prevent multiple expansion
19617 # set the flags
19618 CFLAGS="$CFLAGS -std=iso9899:1990 -Wall -pedantic -I\$(top_srcdir)/src"
19619 NEUROFLAGS="-D__USE_GNU -I\${top_srcdir}/include -I\${top_srcdir}/include/neuro"
19620 NEUROLDFLAGS="-export-symbols \$(top_srcdir)/include/libneuro.sym"
19621 SDLFLAGS="`sdl-config --libs`"
19624 # Check whether --enable-Debug or --disable-Debug was given.
19625 if test "${enable_Debug+set}" = set; then
19626 enableval="$enable_Debug"
19628 else
19629 enable_Debug=no
19633 # Check whether --with-lowlib or --without-lowlib was given.
19634 if test "${with_lowlib+set}" = set; then
19635 withval="$with_lowlib"
19636 lowlib="$withval"
19637 else
19638 lowlib="sdl"
19641 # Check whether --enable-video or --disable-video was given.
19642 if test "${enable_video+set}" = set; then
19643 enableval="$enable_video"
19644 enable_Video=no
19645 else
19646 enable_Video=yes
19649 # Check whether --enable-neuronet or --disable-neuronet was given.
19650 if test "${enable_neuronet+set}" = set; then
19651 enableval="$enable_neuronet"
19652 enable_Neuronet=no
19653 else
19654 enable_Neuronet=yes
19657 freetype_enable=no
19659 # host related checkings
19661 echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
19662 echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
19663 case $host in
19664 *-*-cygwin | *-*-mingw* | *-*-pw32*)
19665 NEUROFLAGS="$NEUROFLAGS -DWIN32"
19666 NEUROLDFLAGS="$NEUROLIBFLAGS -no-undefined"
19667 need_no_undefined=yes
19668 targ=w32
19669 #LIBS="$LIBS -lc -lgcc_s -ldl"
19672 #by default we now compile against X11 on POSIX machines
19673 lowlib=X11
19674 targ=unix
19675 need_no_undefined=no
19677 esac
19678 echo "$as_me:$LINENO: result: $need_no_undefined" >&5
19679 echo "${ECHO_T}$need_no_undefined" >&6
19682 if test x$need_no_undefined = xyes; then
19683 NO_UNDEFINED_TRUE=
19684 NO_UNDEFINED_FALSE='#'
19685 else
19686 NO_UNDEFINED_TRUE='#'
19687 NO_UNDEFINED_FALSE=
19691 case $targ in
19692 w32)
19694 for ac_header in windows.h
19696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19698 echo "$as_me:$LINENO: checking for $ac_header" >&5
19699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19705 else
19706 # Is the header compilable?
19707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 $ac_includes_default
19716 #include <$ac_header>
19717 _ACEOF
19718 rm -f conftest.$ac_objext
19719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19720 (eval $ac_compile) 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } &&
19727 { ac_try='test -z "$ac_c_werror_flag"
19728 || test ! -s conftest.err'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest.$ac_objext'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_header_compiler=yes
19741 else
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_header_compiler=no
19747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19749 echo "${ECHO_T}$ac_header_compiler" >&6
19751 # Is the header present?
19752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760 #include <$ac_header>
19761 _ACEOF
19762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } >/dev/null; then
19770 if test -s conftest.err; then
19771 ac_cpp_err=$ac_c_preproc_warn_flag
19772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19773 else
19774 ac_cpp_err=
19776 else
19777 ac_cpp_err=yes
19779 if test -z "$ac_cpp_err"; then
19780 ac_header_preproc=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_header_preproc=no
19787 rm -f conftest.err conftest.$ac_ext
19788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19789 echo "${ECHO_T}$ac_header_preproc" >&6
19791 # So? What about this header?
19792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19793 yes:no: )
19794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19798 ac_header_preproc=yes
19800 no:yes:* )
19801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19814 cat <<\_ASBOX
19815 ## ------------------------------------------ ##
19816 ## Report this to the AC_PACKAGE_NAME lists. ##
19817 ## ------------------------------------------ ##
19818 _ASBOX
19820 sed "s/^/$as_me: WARNING: /" >&2
19822 esac
19823 echo "$as_me:$LINENO: checking for $ac_header" >&5
19824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828 eval "$as_ac_Header=\$ac_header_preproc"
19830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19837 _ACEOF
19839 else
19840 { { echo "$as_me:$LINENO: error: the required header windows is missing." >&5
19841 echo "$as_me: error: the required header windows is missing." >&2;}
19842 { (exit 1); exit 1; }; }
19845 done
19847 #AC_CHECK_FUNCS([GetTickCount], , [AC_MSG_ERROR([a required function is missing.])])
19852 unix)
19854 for ac_header in stdlib.h
19856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19865 else
19866 # Is the header compilable?
19867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 $ac_includes_default
19876 #include <$ac_header>
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880 (eval $ac_compile) 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag"
19888 || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_header_compiler=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_header_compiler=no
19907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19909 echo "${ECHO_T}$ac_header_compiler" >&6
19911 # Is the header present?
19912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <$ac_header>
19921 _ACEOF
19922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } >/dev/null; then
19930 if test -s conftest.err; then
19931 ac_cpp_err=$ac_c_preproc_warn_flag
19932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19933 else
19934 ac_cpp_err=
19936 else
19937 ac_cpp_err=yes
19939 if test -z "$ac_cpp_err"; then
19940 ac_header_preproc=yes
19941 else
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_header_preproc=no
19947 rm -f conftest.err conftest.$ac_ext
19948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19949 echo "${ECHO_T}$ac_header_preproc" >&6
19951 # So? What about this header?
19952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19953 yes:no: )
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19958 ac_header_preproc=yes
19960 no:yes:* )
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19974 cat <<\_ASBOX
19975 ## ------------------------------------------ ##
19976 ## Report this to the AC_PACKAGE_NAME lists. ##
19977 ## ------------------------------------------ ##
19978 _ASBOX
19980 sed "s/^/$as_me: WARNING: /" >&2
19982 esac
19983 echo "$as_me:$LINENO: checking for $ac_header" >&5
19984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988 eval "$as_ac_Header=\$ac_header_preproc"
19990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19997 _ACEOF
20001 done
20003 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20004 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20005 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008 if test "$cross_compiling" = yes; then
20009 ac_cv_func_malloc_0_nonnull=no
20010 else
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 #if STDC_HEADERS || HAVE_STDLIB_H
20018 # include <stdlib.h>
20019 #else
20020 char *malloc ();
20021 #endif
20024 main ()
20026 exit (malloc (0) ? 0 : 1);
20028 return 0;
20030 _ACEOF
20031 rm -f conftest$ac_exeext
20032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20033 (eval $ac_link) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_cv_func_malloc_0_nonnull=yes
20043 else
20044 echo "$as_me: program exited with status $ac_status" >&5
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ( exit $ac_status )
20049 ac_cv_func_malloc_0_nonnull=no
20051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20054 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20055 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20056 if test $ac_cv_func_malloc_0_nonnull = yes; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define HAVE_MALLOC 1
20060 _ACEOF
20062 else
20063 cat >>confdefs.h <<\_ACEOF
20064 #define HAVE_MALLOC 0
20065 _ACEOF
20067 case $LIBOBJS in
20068 "malloc.$ac_objext" | \
20069 *" malloc.$ac_objext" | \
20070 "malloc.$ac_objext "* | \
20071 *" malloc.$ac_objext "* ) ;;
20072 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20073 esac
20076 cat >>confdefs.h <<\_ACEOF
20077 #define malloc rpl_malloc
20078 _ACEOF
20085 for ac_header in stdlib.h
20087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20089 echo "$as_me:$LINENO: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20096 else
20097 # Is the header compilable?
20098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h. */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 $ac_includes_default
20107 #include <$ac_header>
20108 _ACEOF
20109 rm -f conftest.$ac_objext
20110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111 (eval $ac_compile) 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
20118 { ac_try='test -z "$ac_c_werror_flag"
20119 || test ! -s conftest.err'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; } &&
20125 { ac_try='test -s conftest.$ac_objext'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 ac_header_compiler=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_header_compiler=no
20138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20140 echo "${ECHO_T}$ac_header_compiler" >&6
20142 # Is the header present?
20143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 #include <$ac_header>
20152 _ACEOF
20153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } >/dev/null; then
20161 if test -s conftest.err; then
20162 ac_cpp_err=$ac_c_preproc_warn_flag
20163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20164 else
20165 ac_cpp_err=
20167 else
20168 ac_cpp_err=yes
20170 if test -z "$ac_cpp_err"; then
20171 ac_header_preproc=yes
20172 else
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_header_preproc=no
20178 rm -f conftest.err conftest.$ac_ext
20179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20180 echo "${ECHO_T}$ac_header_preproc" >&6
20182 # So? What about this header?
20183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20184 yes:no: )
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20189 ac_header_preproc=yes
20191 no:yes:* )
20192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20205 cat <<\_ASBOX
20206 ## ------------------------------------------ ##
20207 ## Report this to the AC_PACKAGE_NAME lists. ##
20208 ## ------------------------------------------ ##
20209 _ASBOX
20211 sed "s/^/$as_me: WARNING: /" >&2
20213 esac
20214 echo "$as_me:$LINENO: checking for $ac_header" >&5
20215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 eval "$as_ac_Header=\$ac_header_preproc"
20221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20228 _ACEOF
20232 done
20234 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20235 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
20236 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239 if test "$cross_compiling" = yes; then
20240 ac_cv_func_realloc_0_nonnull=no
20241 else
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h. */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 #if STDC_HEADERS || HAVE_STDLIB_H
20249 # include <stdlib.h>
20250 #else
20251 char *realloc ();
20252 #endif
20255 main ()
20257 exit (realloc (0, 0) ? 0 : 1);
20259 return 0;
20261 _ACEOF
20262 rm -f conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264 (eval $ac_link) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_cv_func_realloc_0_nonnull=yes
20274 else
20275 echo "$as_me: program exited with status $ac_status" >&5
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ( exit $ac_status )
20280 ac_cv_func_realloc_0_nonnull=no
20282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20286 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
20287 if test $ac_cv_func_realloc_0_nonnull = yes; then
20289 cat >>confdefs.h <<\_ACEOF
20290 #define HAVE_REALLOC 1
20291 _ACEOF
20293 else
20294 cat >>confdefs.h <<\_ACEOF
20295 #define HAVE_REALLOC 0
20296 _ACEOF
20298 case $LIBOBJS in
20299 "realloc.$ac_objext" | \
20300 *" realloc.$ac_objext" | \
20301 "realloc.$ac_objext "* | \
20302 *" realloc.$ac_objext "* ) ;;
20303 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
20304 esac
20307 cat >>confdefs.h <<\_ACEOF
20308 #define realloc rpl_realloc
20309 _ACEOF
20316 for ac_func in vprintf
20318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20319 echo "$as_me:$LINENO: checking for $ac_func" >&5
20320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20321 if eval "test \"\${$as_ac_var+set}\" = set"; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h. */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20332 #define $ac_func innocuous_$ac_func
20334 /* System header to define __stub macros and hopefully few prototypes,
20335 which can conflict with char $ac_func (); below.
20336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20337 <limits.h> exists even on freestanding compilers. */
20339 #ifdef __STDC__
20340 # include <limits.h>
20341 #else
20342 # include <assert.h>
20343 #endif
20345 #undef $ac_func
20347 /* Override any gcc2 internal prototype to avoid an error. */
20348 #ifdef __cplusplus
20349 extern "C"
20351 #endif
20352 /* We use char because int might match the return type of a gcc2
20353 builtin and then its argument prototype would still apply. */
20354 char $ac_func ();
20355 /* The GNU C library defines this for functions which it implements
20356 to always fail with ENOSYS. Some functions are actually named
20357 something starting with __ and the normal name is an alias. */
20358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20359 choke me
20360 #else
20361 char (*f) () = $ac_func;
20362 #endif
20363 #ifdef __cplusplus
20365 #endif
20368 main ()
20370 return f != $ac_func;
20372 return 0;
20374 _ACEOF
20375 rm -f conftest.$ac_objext conftest$ac_exeext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20377 (eval $ac_link) 2>conftest.er1
20378 ac_status=$?
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -z "$ac_c_werror_flag"
20385 || test ! -s conftest.err'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; } &&
20391 { ac_try='test -s conftest$ac_exeext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 eval "$as_ac_var=yes"
20398 else
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 eval "$as_ac_var=no"
20404 rm -f conftest.err conftest.$ac_objext \
20405 conftest$ac_exeext conftest.$ac_ext
20407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20409 if test `eval echo '${'$as_ac_var'}'` = yes; then
20410 cat >>confdefs.h <<_ACEOF
20411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20412 _ACEOF
20414 echo "$as_me:$LINENO: checking for _doprnt" >&5
20415 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20416 if test "${ac_cv_func__doprnt+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h. */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20427 #define _doprnt innocuous__doprnt
20429 /* System header to define __stub macros and hopefully few prototypes,
20430 which can conflict with char _doprnt (); below.
20431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20432 <limits.h> exists even on freestanding compilers. */
20434 #ifdef __STDC__
20435 # include <limits.h>
20436 #else
20437 # include <assert.h>
20438 #endif
20440 #undef _doprnt
20442 /* Override any gcc2 internal prototype to avoid an error. */
20443 #ifdef __cplusplus
20444 extern "C"
20446 #endif
20447 /* We use char because int might match the return type of a gcc2
20448 builtin and then its argument prototype would still apply. */
20449 char _doprnt ();
20450 /* The GNU C library defines this for functions which it implements
20451 to always fail with ENOSYS. Some functions are actually named
20452 something starting with __ and the normal name is an alias. */
20453 #if defined (__stub__doprnt) || defined (__stub____doprnt)
20454 choke me
20455 #else
20456 char (*f) () = _doprnt;
20457 #endif
20458 #ifdef __cplusplus
20460 #endif
20463 main ()
20465 return f != _doprnt;
20467 return 0;
20469 _ACEOF
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest$ac_exeext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_cv_func__doprnt=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_func__doprnt=no
20499 rm -f conftest.err conftest.$ac_objext \
20500 conftest$ac_exeext conftest.$ac_ext
20502 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20503 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
20504 if test $ac_cv_func__doprnt = yes; then
20506 cat >>confdefs.h <<\_ACEOF
20507 #define HAVE_DOPRNT 1
20508 _ACEOF
20513 done
20517 for ac_header in unistd.h
20519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20521 echo "$as_me:$LINENO: checking for $ac_header" >&5
20522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20528 else
20529 # Is the header compilable?
20530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 $ac_includes_default
20539 #include <$ac_header>
20540 _ACEOF
20541 rm -f conftest.$ac_objext
20542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20543 (eval $ac_compile) 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_c_werror_flag"
20551 || test ! -s conftest.err'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest.$ac_objext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_header_compiler=yes
20564 else
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 ac_header_compiler=no
20570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20572 echo "${ECHO_T}$ac_header_compiler" >&6
20574 # Is the header present?
20575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <$ac_header>
20584 _ACEOF
20585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } >/dev/null; then
20593 if test -s conftest.err; then
20594 ac_cpp_err=$ac_c_preproc_warn_flag
20595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20596 else
20597 ac_cpp_err=
20599 else
20600 ac_cpp_err=yes
20602 if test -z "$ac_cpp_err"; then
20603 ac_header_preproc=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_header_preproc=no
20610 rm -f conftest.err conftest.$ac_ext
20611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20612 echo "${ECHO_T}$ac_header_preproc" >&6
20614 # So? What about this header?
20615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20616 yes:no: )
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20621 ac_header_preproc=yes
20623 no:yes:* )
20624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20637 cat <<\_ASBOX
20638 ## ------------------------------------------ ##
20639 ## Report this to the AC_PACKAGE_NAME lists. ##
20640 ## ------------------------------------------ ##
20641 _ASBOX
20643 sed "s/^/$as_me: WARNING: /" >&2
20645 esac
20646 echo "$as_me:$LINENO: checking for $ac_header" >&5
20647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651 eval "$as_ac_Header=\$ac_header_preproc"
20653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20660 _ACEOF
20662 else
20663 { { echo "$as_me:$LINENO: error: the required header unistd is missing." >&5
20664 echo "$as_me: error: the required header unistd is missing." >&2;}
20665 { (exit 1); exit 1; }; }
20668 done
20671 for ac_func in gettimeofday
20673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20674 echo "$as_me:$LINENO: checking for $ac_func" >&5
20675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20676 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20687 #define $ac_func innocuous_$ac_func
20689 /* System header to define __stub macros and hopefully few prototypes,
20690 which can conflict with char $ac_func (); below.
20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20692 <limits.h> exists even on freestanding compilers. */
20694 #ifdef __STDC__
20695 # include <limits.h>
20696 #else
20697 # include <assert.h>
20698 #endif
20700 #undef $ac_func
20702 /* Override any gcc2 internal prototype to avoid an error. */
20703 #ifdef __cplusplus
20704 extern "C"
20706 #endif
20707 /* We use char because int might match the return type of a gcc2
20708 builtin and then its argument prototype would still apply. */
20709 char $ac_func ();
20710 /* The GNU C library defines this for functions which it implements
20711 to always fail with ENOSYS. Some functions are actually named
20712 something starting with __ and the normal name is an alias. */
20713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20714 choke me
20715 #else
20716 char (*f) () = $ac_func;
20717 #endif
20718 #ifdef __cplusplus
20720 #endif
20723 main ()
20725 return f != $ac_func;
20727 return 0;
20729 _ACEOF
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20732 (eval $ac_link) 2>conftest.er1
20733 ac_status=$?
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest$ac_exeext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 eval "$as_ac_var=yes"
20753 else
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 eval "$as_ac_var=no"
20759 rm -f conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20764 if test `eval echo '${'$as_ac_var'}'` = yes; then
20765 cat >>confdefs.h <<_ACEOF
20766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20767 _ACEOF
20769 else
20770 { { echo "$as_me:$LINENO: error: a required function is missing." >&5
20771 echo "$as_me: error: a required function is missing." >&2;}
20772 { (exit 1); exit 1; }; }
20774 done
20777 esac
20780 echo "$as_me:$LINENO: checking for X" >&5
20781 echo $ECHO_N "checking for X... $ECHO_C" >&6
20784 # Check whether --with-x or --without-x was given.
20785 if test "${with_x+set}" = set; then
20786 withval="$with_x"
20789 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20790 if test "x$with_x" = xno; then
20791 # The user explicitly disabled X.
20792 have_x=disabled
20793 else
20794 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20795 # Both variables are already set.
20796 have_x=yes
20797 else
20798 if test "${ac_cv_have_x+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801 # One or both of the vars are not set, and there is no cached value.
20802 ac_x_includes=no ac_x_libraries=no
20803 rm -fr conftest.dir
20804 if mkdir conftest.dir; then
20805 cd conftest.dir
20806 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20807 cat >Imakefile <<'_ACEOF'
20808 acfindx:
20809 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20810 _ACEOF
20811 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20813 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20814 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20815 for ac_extension in a so sl; do
20816 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20817 test -f $ac_im_libdir/libX11.$ac_extension; then
20818 ac_im_usrlibdir=$ac_im_libdir; break
20820 done
20821 # Screen out bogus values from the imake configuration. They are
20822 # bogus both because they are the default anyway, and because
20823 # using them would break gcc on systems where it needs fixed includes.
20824 case $ac_im_incroot in
20825 /usr/include) ;;
20826 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20827 esac
20828 case $ac_im_usrlibdir in
20829 /usr/lib | /lib) ;;
20830 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20831 esac
20833 cd ..
20834 rm -fr conftest.dir
20837 # Standard set of common directories for X headers.
20838 # Check X11 before X11Rn because it is often a symlink to the current release.
20839 ac_x_header_dirs='
20840 /usr/X11/include
20841 /usr/X11R6/include
20842 /usr/X11R5/include
20843 /usr/X11R4/include
20845 /usr/include/X11
20846 /usr/include/X11R6
20847 /usr/include/X11R5
20848 /usr/include/X11R4
20850 /usr/local/X11/include
20851 /usr/local/X11R6/include
20852 /usr/local/X11R5/include
20853 /usr/local/X11R4/include
20855 /usr/local/include/X11
20856 /usr/local/include/X11R6
20857 /usr/local/include/X11R5
20858 /usr/local/include/X11R4
20860 /usr/X386/include
20861 /usr/x386/include
20862 /usr/XFree86/include/X11
20864 /usr/include
20865 /usr/local/include
20866 /usr/unsupported/include
20867 /usr/athena/include
20868 /usr/local/x11r5/include
20869 /usr/lpp/Xamples/include
20871 /usr/openwin/include
20872 /usr/openwin/share/include'
20874 if test "$ac_x_includes" = no; then
20875 # Guess where to find include files, by looking for Intrinsic.h.
20876 # First, try using that file with no special directory specified.
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 #include <X11/Intrinsic.h>
20884 _ACEOF
20885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } >/dev/null; then
20893 if test -s conftest.err; then
20894 ac_cpp_err=$ac_c_preproc_warn_flag
20895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20896 else
20897 ac_cpp_err=
20899 else
20900 ac_cpp_err=yes
20902 if test -z "$ac_cpp_err"; then
20903 # We can compile using X headers with no special include directory.
20904 ac_x_includes=
20905 else
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 for ac_dir in $ac_x_header_dirs; do
20910 if test -r "$ac_dir/X11/Intrinsic.h"; then
20911 ac_x_includes=$ac_dir
20912 break
20914 done
20916 rm -f conftest.err conftest.$ac_ext
20917 fi # $ac_x_includes = no
20919 if test "$ac_x_libraries" = no; then
20920 # Check for the libraries.
20921 # See if we find them without any special options.
20922 # Don't add to $LIBS permanently.
20923 ac_save_LIBS=$LIBS
20924 LIBS="-lXt $LIBS"
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 #include <X11/Intrinsic.h>
20933 main ()
20935 XtMalloc (0)
20937 return 0;
20939 _ACEOF
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -z "$ac_c_werror_flag"
20950 || test ! -s conftest.err'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest$ac_exeext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 LIBS=$ac_save_LIBS
20963 # We can link X programs with no special library path.
20964 ac_x_libraries=
20965 else
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20969 LIBS=$ac_save_LIBS
20970 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20972 # Don't even attempt the hair of trying to link an X program!
20973 for ac_extension in a so sl; do
20974 if test -r $ac_dir/libXt.$ac_extension; then
20975 ac_x_libraries=$ac_dir
20976 break 2
20978 done
20979 done
20981 rm -f conftest.err conftest.$ac_objext \
20982 conftest$ac_exeext conftest.$ac_ext
20983 fi # $ac_x_libraries = no
20985 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20986 # Didn't find X anywhere. Cache the known absence of X.
20987 ac_cv_have_x="have_x=no"
20988 else
20989 # Record where we found X for the cache.
20990 ac_cv_have_x="have_x=yes \
20991 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20996 eval "$ac_cv_have_x"
20997 fi # $with_x != no
20999 if test "$have_x" != yes; then
21000 echo "$as_me:$LINENO: result: $have_x" >&5
21001 echo "${ECHO_T}$have_x" >&6
21002 no_x=yes
21003 else
21004 # If each of the values was on the command line, it overrides each guess.
21005 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21006 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21007 # Update the cache value to reflect the command line values.
21008 ac_cv_have_x="have_x=yes \
21009 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21010 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21011 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21014 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21016 if test "${ac_cv_header_stdc+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 #include <stdlib.h>
21026 #include <stdarg.h>
21027 #include <string.h>
21028 #include <float.h>
21031 main ()
21035 return 0;
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>conftest.er1
21041 ac_status=$?
21042 grep -v '^ *+' conftest.er1 >conftest.err
21043 rm -f conftest.er1
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_header_stdc=yes
21061 else
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_cv_header_stdc=no
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21069 if test $ac_cv_header_stdc = yes; then
21070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <string.h>
21079 _ACEOF
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081 $EGREP "memchr" >/dev/null 2>&1; then
21083 else
21084 ac_cv_header_stdc=no
21086 rm -f conftest*
21090 if test $ac_cv_header_stdc = yes; then
21091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <stdlib.h>
21100 _ACEOF
21101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21102 $EGREP "free" >/dev/null 2>&1; then
21104 else
21105 ac_cv_header_stdc=no
21107 rm -f conftest*
21111 if test $ac_cv_header_stdc = yes; then
21112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21113 if test "$cross_compiling" = yes; then
21115 else
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h. */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 #include <ctype.h>
21123 #if ((' ' & 0x0FF) == 0x020)
21124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21126 #else
21127 # define ISLOWER(c) \
21128 (('a' <= (c) && (c) <= 'i') \
21129 || ('j' <= (c) && (c) <= 'r') \
21130 || ('s' <= (c) && (c) <= 'z'))
21131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21132 #endif
21134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21136 main ()
21138 int i;
21139 for (i = 0; i < 256; i++)
21140 if (XOR (islower (i), ISLOWER (i))
21141 || toupper (i) != TOUPPER (i))
21142 exit(2);
21143 exit (0);
21145 _ACEOF
21146 rm -f conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148 (eval $ac_link) 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21158 else
21159 echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ( exit $ac_status )
21164 ac_cv_header_stdc=no
21166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21170 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21172 if test $ac_cv_header_stdc = yes; then
21174 cat >>confdefs.h <<\_ACEOF
21175 #define STDC_HEADERS 1
21176 _ACEOF
21184 for ac_header in fcntl.h stdlib.h string.h sys/time.h
21186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21188 echo "$as_me:$LINENO: checking for $ac_header" >&5
21189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21195 else
21196 # Is the header compilable?
21197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21199 cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h. */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 $ac_includes_default
21206 #include <$ac_header>
21207 _ACEOF
21208 rm -f conftest.$ac_objext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210 (eval $ac_compile) 2>conftest.er1
21211 ac_status=$?
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -z "$ac_c_werror_flag"
21218 || test ! -s conftest.err'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; } &&
21224 { ac_try='test -s conftest.$ac_objext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_header_compiler=yes
21231 else
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ac_header_compiler=no
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21239 echo "${ECHO_T}$ac_header_compiler" >&6
21241 # Is the header present?
21242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 #include <$ac_header>
21251 _ACEOF
21252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21254 ac_status=$?
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } >/dev/null; then
21260 if test -s conftest.err; then
21261 ac_cpp_err=$ac_c_preproc_warn_flag
21262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21263 else
21264 ac_cpp_err=
21266 else
21267 ac_cpp_err=yes
21269 if test -z "$ac_cpp_err"; then
21270 ac_header_preproc=yes
21271 else
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 ac_header_preproc=no
21277 rm -f conftest.err conftest.$ac_ext
21278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21279 echo "${ECHO_T}$ac_header_preproc" >&6
21281 # So? What about this header?
21282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21283 yes:no: )
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21288 ac_header_preproc=yes
21290 no:yes:* )
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21304 cat <<\_ASBOX
21305 ## ------------------------------------------ ##
21306 ## Report this to the AC_PACKAGE_NAME lists. ##
21307 ## ------------------------------------------ ##
21308 _ASBOX
21310 sed "s/^/$as_me: WARNING: /" >&2
21312 esac
21313 echo "$as_me:$LINENO: checking for $ac_header" >&5
21314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318 eval "$as_ac_Header=\$ac_header_preproc"
21320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21325 cat >>confdefs.h <<_ACEOF
21326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21327 _ACEOF
21329 else
21330 { { echo "$as_me:$LINENO: error: a required header is missing." >&5
21331 echo "$as_me: error: a required header is missing." >&2;}
21332 { (exit 1); exit 1; }; }
21335 done
21338 # Checks for typedefs, structures, and compiler characteristics.
21340 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21341 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21342 if test "${ac_cv_c_const+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345 cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h. */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21353 main ()
21355 /* FIXME: Include the comments suggested by Paul. */
21356 #ifndef __cplusplus
21357 /* Ultrix mips cc rejects this. */
21358 typedef int charset[2];
21359 const charset x;
21360 /* SunOS 4.1.1 cc rejects this. */
21361 char const *const *ccp;
21362 char **p;
21363 /* NEC SVR4.0.2 mips cc rejects this. */
21364 struct point {int x, y;};
21365 static struct point const zero = {0,0};
21366 /* AIX XL C 1.02.0.0 rejects this.
21367 It does not let you subtract one const X* pointer from another in
21368 an arm of an if-expression whose if-part is not a constant
21369 expression */
21370 const char *g = "string";
21371 ccp = &g + (g ? g-g : 0);
21372 /* HPUX 7.0 cc rejects these. */
21373 ++ccp;
21374 p = (char**) ccp;
21375 ccp = (char const *const *) p;
21376 { /* SCO 3.2v4 cc rejects this. */
21377 char *t;
21378 char const *s = 0 ? (char *) 0 : (char const *) 0;
21380 *t++ = 0;
21382 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21383 int x[] = {25, 17};
21384 const int *foo = &x[0];
21385 ++foo;
21387 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21388 typedef const int *iptr;
21389 iptr p = 0;
21390 ++p;
21392 { /* AIX XL C 1.02.0.0 rejects this saying
21393 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21394 struct s { int j; const int *ap[3]; };
21395 struct s *b; b->j = 5;
21397 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21398 const int foo = 10;
21400 #endif
21403 return 0;
21405 _ACEOF
21406 rm -f conftest.$ac_objext
21407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21408 (eval $ac_compile) 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
21415 { ac_try='test -z "$ac_c_werror_flag"
21416 || test ! -s conftest.err'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest.$ac_objext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ac_cv_c_const=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_cv_c_const=no
21435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21437 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21438 echo "${ECHO_T}$ac_cv_c_const" >&6
21439 if test $ac_cv_c_const = no; then
21441 cat >>confdefs.h <<\_ACEOF
21442 #define const
21443 _ACEOF
21447 echo "$as_me:$LINENO: checking for size_t" >&5
21448 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21449 if test "${ac_cv_type_size_t+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 $ac_includes_default
21460 main ()
21462 if ((size_t *) 0)
21463 return 0;
21464 if (sizeof (size_t))
21465 return 0;
21467 return 0;
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>conftest.er1
21473 ac_status=$?
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag"
21480 || test ! -s conftest.err'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; } &&
21486 { ac_try='test -s conftest.$ac_objext'
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 ac_cv_type_size_t=yes
21493 else
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ac_cv_type_size_t=no
21499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21501 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21502 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21503 if test $ac_cv_type_size_t = yes; then
21505 else
21507 cat >>confdefs.h <<_ACEOF
21508 #define size_t unsigned
21509 _ACEOF
21513 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21514 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21515 if test "${ac_cv_header_time+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h. */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 #include <sys/types.h>
21525 #include <sys/time.h>
21526 #include <time.h>
21529 main ()
21531 if ((struct tm *) 0)
21532 return 0;
21534 return 0;
21536 _ACEOF
21537 rm -f conftest.$ac_objext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21539 (eval $ac_compile) 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } &&
21546 { ac_try='test -z "$ac_c_werror_flag"
21547 || test ! -s conftest.err'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; } &&
21553 { ac_try='test -s conftest.$ac_objext'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ac_cv_header_time=yes
21560 else
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_cv_header_time=no
21566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21568 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21569 echo "${ECHO_T}$ac_cv_header_time" >&6
21570 if test $ac_cv_header_time = yes; then
21572 cat >>confdefs.h <<\_ACEOF
21573 #define TIME_WITH_SYS_TIME 1
21574 _ACEOF
21579 # Checks for library functions.
21581 for ac_func in vprintf
21583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21584 echo "$as_me:$LINENO: checking for $ac_func" >&5
21585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21586 if eval "test \"\${$as_ac_var+set}\" = set"; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589 cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h. */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21597 #define $ac_func innocuous_$ac_func
21599 /* System header to define __stub macros and hopefully few prototypes,
21600 which can conflict with char $ac_func (); below.
21601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21602 <limits.h> exists even on freestanding compilers. */
21604 #ifdef __STDC__
21605 # include <limits.h>
21606 #else
21607 # include <assert.h>
21608 #endif
21610 #undef $ac_func
21612 /* Override any gcc2 internal prototype to avoid an error. */
21613 #ifdef __cplusplus
21614 extern "C"
21616 #endif
21617 /* We use char because int might match the return type of a gcc2
21618 builtin and then its argument prototype would still apply. */
21619 char $ac_func ();
21620 /* The GNU C library defines this for functions which it implements
21621 to always fail with ENOSYS. Some functions are actually named
21622 something starting with __ and the normal name is an alias. */
21623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21624 choke me
21625 #else
21626 char (*f) () = $ac_func;
21627 #endif
21628 #ifdef __cplusplus
21630 #endif
21633 main ()
21635 return f != $ac_func;
21637 return 0;
21639 _ACEOF
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21642 (eval $ac_link) 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
21649 { ac_try='test -z "$ac_c_werror_flag"
21650 || test ! -s conftest.err'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest$ac_exeext'
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; }; then
21662 eval "$as_ac_var=yes"
21663 else
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 eval "$as_ac_var=no"
21669 rm -f conftest.err conftest.$ac_objext \
21670 conftest$ac_exeext conftest.$ac_ext
21672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21674 if test `eval echo '${'$as_ac_var'}'` = yes; then
21675 cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21677 _ACEOF
21679 echo "$as_me:$LINENO: checking for _doprnt" >&5
21680 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21681 if test "${ac_cv_func__doprnt+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 else
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h. */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21692 #define _doprnt innocuous__doprnt
21694 /* System header to define __stub macros and hopefully few prototypes,
21695 which can conflict with char _doprnt (); below.
21696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21697 <limits.h> exists even on freestanding compilers. */
21699 #ifdef __STDC__
21700 # include <limits.h>
21701 #else
21702 # include <assert.h>
21703 #endif
21705 #undef _doprnt
21707 /* Override any gcc2 internal prototype to avoid an error. */
21708 #ifdef __cplusplus
21709 extern "C"
21711 #endif
21712 /* We use char because int might match the return type of a gcc2
21713 builtin and then its argument prototype would still apply. */
21714 char _doprnt ();
21715 /* The GNU C library defines this for functions which it implements
21716 to always fail with ENOSYS. Some functions are actually named
21717 something starting with __ and the normal name is an alias. */
21718 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21719 choke me
21720 #else
21721 char (*f) () = _doprnt;
21722 #endif
21723 #ifdef __cplusplus
21725 #endif
21728 main ()
21730 return f != _doprnt;
21732 return 0;
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737 (eval $ac_link) 2>conftest.er1
21738 ac_status=$?
21739 grep -v '^ *+' conftest.er1 >conftest.err
21740 rm -f conftest.er1
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } &&
21744 { ac_try='test -z "$ac_c_werror_flag"
21745 || test ! -s conftest.err'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest$ac_exeext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_func__doprnt=yes
21758 else
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 ac_cv_func__doprnt=no
21764 rm -f conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
21767 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21768 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21769 if test $ac_cv_func__doprnt = yes; then
21771 cat >>confdefs.h <<\_ACEOF
21772 #define HAVE_DOPRNT 1
21773 _ACEOF
21778 done
21784 for ac_func in memchr memset strchr
21786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21787 echo "$as_me:$LINENO: checking for $ac_func" >&5
21788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21789 if eval "test \"\${$as_ac_var+set}\" = set"; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21800 #define $ac_func innocuous_$ac_func
21802 /* System header to define __stub macros and hopefully few prototypes,
21803 which can conflict with char $ac_func (); below.
21804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21805 <limits.h> exists even on freestanding compilers. */
21807 #ifdef __STDC__
21808 # include <limits.h>
21809 #else
21810 # include <assert.h>
21811 #endif
21813 #undef $ac_func
21815 /* Override any gcc2 internal prototype to avoid an error. */
21816 #ifdef __cplusplus
21817 extern "C"
21819 #endif
21820 /* We use char because int might match the return type of a gcc2
21821 builtin and then its argument prototype would still apply. */
21822 char $ac_func ();
21823 /* The GNU C library defines this for functions which it implements
21824 to always fail with ENOSYS. Some functions are actually named
21825 something starting with __ and the normal name is an alias. */
21826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21827 choke me
21828 #else
21829 char (*f) () = $ac_func;
21830 #endif
21831 #ifdef __cplusplus
21833 #endif
21836 main ()
21838 return f != $ac_func;
21840 return 0;
21842 _ACEOF
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21845 (eval $ac_link) 2>conftest.er1
21846 ac_status=$?
21847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
21852 { ac_try='test -z "$ac_c_werror_flag"
21853 || test ! -s conftest.err'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; } &&
21859 { ac_try='test -s conftest$ac_exeext'
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865 eval "$as_ac_var=yes"
21866 else
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 eval "$as_ac_var=no"
21872 rm -f conftest.err conftest.$ac_objext \
21873 conftest$ac_exeext conftest.$ac_ext
21875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21877 if test `eval echo '${'$as_ac_var'}'` = yes; then
21878 cat >>confdefs.h <<_ACEOF
21879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21880 _ACEOF
21882 else
21883 { { echo "$as_me:$LINENO: error: a required function is missing." >&5
21884 echo "$as_me: error: a required function is missing." >&2;}
21885 { (exit 1); exit 1; }; }
21887 done
21890 SELECTED_LOWLIB=`echo $lowlib`
21894 if test x$enable_Video = xyes; then
21895 USE_VIDEO_TRUE=
21896 USE_VIDEO_FALSE='#'
21897 else
21898 USE_VIDEO_TRUE='#'
21899 USE_VIDEO_FALSE=
21902 if test $enable_Video = no; then
21903 # we disable the low library by putting it to the dummy driver
21904 SELECTED_LOWLIB=dummy
21909 if test x$SELECTED_LOWLIB = xsdl; then
21910 USE_SDL_TRUE=
21911 USE_SDL_FALSE='#'
21912 else
21913 USE_SDL_TRUE='#'
21914 USE_SDL_FALSE=
21917 if test $SELECTED_LOWLIB = sdl; then
21918 if test $targ = unix; then
21919 echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
21920 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6
21921 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 ac_check_lib_save_LIBS=$LIBS
21925 LIBS="-lSDL $LIBS"
21926 cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h. */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21933 /* Override any gcc2 internal prototype to avoid an error. */
21934 #ifdef __cplusplus
21935 extern "C"
21936 #endif
21937 /* We use char because int might match the return type of a gcc2
21938 builtin and then its argument prototype would still apply. */
21939 char SDL_Init ();
21941 main ()
21943 SDL_Init ();
21945 return 0;
21947 _ACEOF
21948 rm -f conftest.$ac_objext conftest$ac_exeext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21950 (eval $ac_link) 2>conftest.er1
21951 ac_status=$?
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -z "$ac_c_werror_flag"
21958 || test ! -s conftest.err'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ac_cv_lib_SDL_SDL_Init=yes
21971 else
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ac_cv_lib_SDL_SDL_Init=no
21977 rm -f conftest.err conftest.$ac_objext \
21978 conftest$ac_exeext conftest.$ac_ext
21979 LIBS=$ac_check_lib_save_LIBS
21981 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
21982 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6
21983 if test $ac_cv_lib_SDL_SDL_Init = yes; then
21985 cat >>confdefs.h <<\_ACEOF
21986 #define USE_SDL 1
21987 _ACEOF
21988 LIBS="$LIBS $SDLFLAGS"
21989 NEUROFLAGS="$NEUROFLAGS `sdl-config --cflags`"
21990 else
21991 { { echo "$as_me:$LINENO: error: You don't have libSDL you can get it from http://www.libsdl.org" >&5
21992 echo "$as_me: error: You don't have libSDL you can get it from http://www.libsdl.org" >&2;}
21993 { (exit 1); exit 1; }; }
21999 else
22000 echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
22001 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6
22002 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005 ac_check_lib_save_LIBS=$LIBS
22006 LIBS="-lSDL $LIBS"
22007 cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h. */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22014 /* Override any gcc2 internal prototype to avoid an error. */
22015 #ifdef __cplusplus
22016 extern "C"
22017 #endif
22018 /* We use char because int might match the return type of a gcc2
22019 builtin and then its argument prototype would still apply. */
22020 char SDL_Init ();
22022 main ()
22024 SDL_Init ();
22026 return 0;
22028 _ACEOF
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031 (eval $ac_link) 2>conftest.er1
22032 ac_status=$?
22033 grep -v '^ *+' conftest.er1 >conftest.err
22034 rm -f conftest.er1
22035 cat conftest.err >&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); } &&
22038 { ac_try='test -z "$ac_c_werror_flag"
22039 || test ! -s conftest.err'
22040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041 (eval $ac_try) 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest$ac_exeext'
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; }; then
22051 ac_cv_lib_SDL_SDL_Init=yes
22052 else
22053 echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22056 ac_cv_lib_SDL_SDL_Init=no
22058 rm -f conftest.err conftest.$ac_objext \
22059 conftest$ac_exeext conftest.$ac_ext
22060 LIBS=$ac_check_lib_save_LIBS
22062 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
22063 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6
22064 if test $ac_cv_lib_SDL_SDL_Init = yes; then
22066 cat >>confdefs.h <<\_ACEOF
22067 #define USE_SDL 1
22068 _ACEOF
22069 LIBS="$LIBS -lSDL"
22070 else
22071 { { echo "$as_me:$LINENO: error: You don't have libSDL you can get it from http://www.libsdl.org" >&5
22072 echo "$as_me: error: You don't have libSDL you can get it from http://www.libsdl.org" >&2;}
22073 { (exit 1); exit 1; }; }
22081 freetype_enable=yes
22083 echo "$as_me:$LINENO: checking for gzgetc in -lz" >&5
22084 echo $ECHO_N "checking for gzgetc in -lz... $ECHO_C" >&6
22085 if test "${ac_cv_lib_z_gzgetc+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 ac_check_lib_save_LIBS=$LIBS
22089 LIBS="-lz $LIBS"
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22097 /* Override any gcc2 internal prototype to avoid an error. */
22098 #ifdef __cplusplus
22099 extern "C"
22100 #endif
22101 /* We use char because int might match the return type of a gcc2
22102 builtin and then its argument prototype would still apply. */
22103 char gzgetc ();
22105 main ()
22107 gzgetc ();
22109 return 0;
22111 _ACEOF
22112 rm -f conftest.$ac_objext conftest$ac_exeext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22114 (eval $ac_link) 2>conftest.er1
22115 ac_status=$?
22116 grep -v '^ *+' conftest.er1 >conftest.err
22117 rm -f conftest.er1
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } &&
22121 { ac_try='test -z "$ac_c_werror_flag"
22122 || test ! -s conftest.err'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; } &&
22128 { ac_try='test -s conftest$ac_exeext'
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 ac_cv_lib_z_gzgetc=yes
22135 else
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 ac_cv_lib_z_gzgetc=no
22141 rm -f conftest.err conftest.$ac_objext \
22142 conftest$ac_exeext conftest.$ac_ext
22143 LIBS=$ac_check_lib_save_LIBS
22145 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzgetc" >&5
22146 echo "${ECHO_T}$ac_cv_lib_z_gzgetc" >&6
22147 if test $ac_cv_lib_z_gzgetc = yes; then
22149 cat >>confdefs.h <<\_ACEOF
22150 #define USE_ZLIB
22151 _ACEOF
22152 LIBS="$LIBS -lz"
22153 else
22154 { { echo "$as_me:$LINENO: error: You don't have the Z library" >&5
22155 echo "$as_me: error: You don't have the Z library" >&2;}
22156 { (exit 1); exit 1; }; }
22163 if test x$SELECTED_LOWLIB = xX11; then
22164 USE_X11_TRUE=
22165 USE_X11_FALSE='#'
22166 else
22167 USE_X11_TRUE='#'
22168 USE_X11_FALSE=
22171 if test $SELECTED_LOWLIB = X11; then
22172 echo "$as_me:$LINENO: checking for X" >&5
22173 echo $ECHO_N "checking for X... $ECHO_C" >&6
22176 # Check whether --with-x or --without-x was given.
22177 if test "${with_x+set}" = set; then
22178 withval="$with_x"
22181 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22182 if test "x$with_x" = xno; then
22183 # The user explicitly disabled X.
22184 have_x=disabled
22185 else
22186 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22187 # Both variables are already set.
22188 have_x=yes
22189 else
22190 if test "${ac_cv_have_x+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193 # One or both of the vars are not set, and there is no cached value.
22194 ac_x_includes=no ac_x_libraries=no
22195 rm -fr conftest.dir
22196 if mkdir conftest.dir; then
22197 cd conftest.dir
22198 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22199 cat >Imakefile <<'_ACEOF'
22200 acfindx:
22201 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22202 _ACEOF
22203 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22205 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22206 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22207 for ac_extension in a so sl; do
22208 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22209 test -f $ac_im_libdir/libX11.$ac_extension; then
22210 ac_im_usrlibdir=$ac_im_libdir; break
22212 done
22213 # Screen out bogus values from the imake configuration. They are
22214 # bogus both because they are the default anyway, and because
22215 # using them would break gcc on systems where it needs fixed includes.
22216 case $ac_im_incroot in
22217 /usr/include) ;;
22218 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22219 esac
22220 case $ac_im_usrlibdir in
22221 /usr/lib | /lib) ;;
22222 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22223 esac
22225 cd ..
22226 rm -fr conftest.dir
22229 # Standard set of common directories for X headers.
22230 # Check X11 before X11Rn because it is often a symlink to the current release.
22231 ac_x_header_dirs='
22232 /usr/X11/include
22233 /usr/X11R6/include
22234 /usr/X11R5/include
22235 /usr/X11R4/include
22237 /usr/include/X11
22238 /usr/include/X11R6
22239 /usr/include/X11R5
22240 /usr/include/X11R4
22242 /usr/local/X11/include
22243 /usr/local/X11R6/include
22244 /usr/local/X11R5/include
22245 /usr/local/X11R4/include
22247 /usr/local/include/X11
22248 /usr/local/include/X11R6
22249 /usr/local/include/X11R5
22250 /usr/local/include/X11R4
22252 /usr/X386/include
22253 /usr/x386/include
22254 /usr/XFree86/include/X11
22256 /usr/include
22257 /usr/local/include
22258 /usr/unsupported/include
22259 /usr/athena/include
22260 /usr/local/x11r5/include
22261 /usr/lpp/Xamples/include
22263 /usr/openwin/include
22264 /usr/openwin/share/include'
22266 if test "$ac_x_includes" = no; then
22267 # Guess where to find include files, by looking for Intrinsic.h.
22268 # First, try using that file with no special directory specified.
22269 cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h. */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275 #include <X11/Intrinsic.h>
22276 _ACEOF
22277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22279 ac_status=$?
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } >/dev/null; then
22285 if test -s conftest.err; then
22286 ac_cpp_err=$ac_c_preproc_warn_flag
22287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22288 else
22289 ac_cpp_err=
22291 else
22292 ac_cpp_err=yes
22294 if test -z "$ac_cpp_err"; then
22295 # We can compile using X headers with no special include directory.
22296 ac_x_includes=
22297 else
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 for ac_dir in $ac_x_header_dirs; do
22302 if test -r "$ac_dir/X11/Intrinsic.h"; then
22303 ac_x_includes=$ac_dir
22304 break
22306 done
22308 rm -f conftest.err conftest.$ac_ext
22309 fi # $ac_x_includes = no
22311 if test "$ac_x_libraries" = no; then
22312 # Check for the libraries.
22313 # See if we find them without any special options.
22314 # Don't add to $LIBS permanently.
22315 ac_save_LIBS=$LIBS
22316 LIBS="-lXt $LIBS"
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h. */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 #include <X11/Intrinsic.h>
22325 main ()
22327 XtMalloc (0)
22329 return 0;
22331 _ACEOF
22332 rm -f conftest.$ac_objext conftest$ac_exeext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22334 (eval $ac_link) 2>conftest.er1
22335 ac_status=$?
22336 grep -v '^ *+' conftest.er1 >conftest.err
22337 rm -f conftest.er1
22338 cat conftest.err >&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
22341 { ac_try='test -z "$ac_c_werror_flag"
22342 || test ! -s conftest.err'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22345 ac_status=$?
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; } &&
22348 { ac_try='test -s conftest$ac_exeext'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22354 LIBS=$ac_save_LIBS
22355 # We can link X programs with no special library path.
22356 ac_x_libraries=
22357 else
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 LIBS=$ac_save_LIBS
22362 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22364 # Don't even attempt the hair of trying to link an X program!
22365 for ac_extension in a so sl; do
22366 if test -r $ac_dir/libXt.$ac_extension; then
22367 ac_x_libraries=$ac_dir
22368 break 2
22370 done
22371 done
22373 rm -f conftest.err conftest.$ac_objext \
22374 conftest$ac_exeext conftest.$ac_ext
22375 fi # $ac_x_libraries = no
22377 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22378 # Didn't find X anywhere. Cache the known absence of X.
22379 ac_cv_have_x="have_x=no"
22380 else
22381 # Record where we found X for the cache.
22382 ac_cv_have_x="have_x=yes \
22383 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22388 eval "$ac_cv_have_x"
22389 fi # $with_x != no
22391 if test "$have_x" != yes; then
22392 echo "$as_me:$LINENO: result: $have_x" >&5
22393 echo "${ECHO_T}$have_x" >&6
22394 no_x=yes
22395 else
22396 # If each of the values was on the command line, it overrides each guess.
22397 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22398 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22399 # Update the cache value to reflect the command line values.
22400 ac_cv_have_x="have_x=yes \
22401 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22402 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22403 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22406 if test "$no_x" = yes; then
22407 # Not all programs may use this symbol, but it does not hurt to define it.
22409 cat >>confdefs.h <<\_ACEOF
22410 #define X_DISPLAY_MISSING 1
22411 _ACEOF
22413 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22414 else
22415 if test -n "$x_includes"; then
22416 X_CFLAGS="$X_CFLAGS -I$x_includes"
22419 # It would also be nice to do this for all -L options, not just this one.
22420 if test -n "$x_libraries"; then
22421 X_LIBS="$X_LIBS -L$x_libraries"
22422 # For Solaris; some versions of Sun CC require a space after -R and
22423 # others require no space. Words are not sufficient . . . .
22424 case `(uname -sr) 2>/dev/null` in
22425 "SunOS 5"*)
22426 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22427 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22428 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22429 cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h. */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22437 main ()
22441 return 0;
22443 _ACEOF
22444 rm -f conftest.$ac_objext conftest$ac_exeext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22446 (eval $ac_link) 2>conftest.er1
22447 ac_status=$?
22448 grep -v '^ *+' conftest.er1 >conftest.err
22449 rm -f conftest.er1
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } &&
22453 { ac_try='test -z "$ac_c_werror_flag"
22454 || test ! -s conftest.err'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; } &&
22460 { ac_try='test -s conftest$ac_exeext'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; }; then
22466 ac_R_nospace=yes
22467 else
22468 echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ac_R_nospace=no
22473 rm -f conftest.err conftest.$ac_objext \
22474 conftest$ac_exeext conftest.$ac_ext
22475 if test $ac_R_nospace = yes; then
22476 echo "$as_me:$LINENO: result: no" >&5
22477 echo "${ECHO_T}no" >&6
22478 X_LIBS="$X_LIBS -R$x_libraries"
22479 else
22480 LIBS="$ac_xsave_LIBS -R $x_libraries"
22481 cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h. */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22489 main ()
22493 return 0;
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
22505 { ac_try='test -z "$ac_c_werror_flag"
22506 || test ! -s conftest.err'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; } &&
22512 { ac_try='test -s conftest$ac_exeext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ac_R_space=yes
22519 else
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 ac_R_space=no
22525 rm -f conftest.err conftest.$ac_objext \
22526 conftest$ac_exeext conftest.$ac_ext
22527 if test $ac_R_space = yes; then
22528 echo "$as_me:$LINENO: result: yes" >&5
22529 echo "${ECHO_T}yes" >&6
22530 X_LIBS="$X_LIBS -R $x_libraries"
22531 else
22532 echo "$as_me:$LINENO: result: neither works" >&5
22533 echo "${ECHO_T}neither works" >&6
22536 LIBS=$ac_xsave_LIBS
22537 esac
22540 # Check for system-dependent libraries X programs must link with.
22541 # Do this before checking for the system-independent R6 libraries
22542 # (-lICE), since we may need -lsocket or whatever for X linking.
22544 if test "$ISC" = yes; then
22545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22546 else
22547 # Martyn Johnson says this is needed for Ultrix, if the X
22548 # libraries were built with DECnet support. And Karl Berry says
22549 # the Alpha needs dnet_stub (dnet does not exist).
22550 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22551 cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h. */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22558 /* Override any gcc2 internal prototype to avoid an error. */
22559 #ifdef __cplusplus
22560 extern "C"
22561 #endif
22562 /* We use char because int might match the return type of a gcc2
22563 builtin and then its argument prototype would still apply. */
22564 char XOpenDisplay ();
22566 main ()
22568 XOpenDisplay ();
22570 return 0;
22572 _ACEOF
22573 rm -f conftest.$ac_objext conftest$ac_exeext
22574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22575 (eval $ac_link) 2>conftest.er1
22576 ac_status=$?
22577 grep -v '^ *+' conftest.er1 >conftest.err
22578 rm -f conftest.er1
22579 cat conftest.err >&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); } &&
22582 { ac_try='test -z "$ac_c_werror_flag"
22583 || test ! -s conftest.err'
22584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585 (eval $ac_try) 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; } &&
22589 { ac_try='test -s conftest$ac_exeext'
22590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22591 (eval $ac_try) 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; }; then
22596 else
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22601 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22602 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605 ac_check_lib_save_LIBS=$LIBS
22606 LIBS="-ldnet $LIBS"
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h. */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22614 /* Override any gcc2 internal prototype to avoid an error. */
22615 #ifdef __cplusplus
22616 extern "C"
22617 #endif
22618 /* We use char because int might match the return type of a gcc2
22619 builtin and then its argument prototype would still apply. */
22620 char dnet_ntoa ();
22622 main ()
22624 dnet_ntoa ();
22626 return 0;
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631 (eval $ac_link) 2>conftest.er1
22632 ac_status=$?
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
22638 { ac_try='test -z "$ac_c_werror_flag"
22639 || test ! -s conftest.err'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; } &&
22645 { ac_try='test -s conftest$ac_exeext'
22646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; }; then
22651 ac_cv_lib_dnet_dnet_ntoa=yes
22652 else
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ac_cv_lib_dnet_dnet_ntoa=no
22658 rm -f conftest.err conftest.$ac_objext \
22659 conftest$ac_exeext conftest.$ac_ext
22660 LIBS=$ac_check_lib_save_LIBS
22662 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22663 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22664 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22665 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22668 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22669 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22670 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22671 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674 ac_check_lib_save_LIBS=$LIBS
22675 LIBS="-ldnet_stub $LIBS"
22676 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22683 /* Override any gcc2 internal prototype to avoid an error. */
22684 #ifdef __cplusplus
22685 extern "C"
22686 #endif
22687 /* We use char because int might match the return type of a gcc2
22688 builtin and then its argument prototype would still apply. */
22689 char dnet_ntoa ();
22691 main ()
22693 dnet_ntoa ();
22695 return 0;
22697 _ACEOF
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700 (eval $ac_link) 2>conftest.er1
22701 ac_status=$?
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22721 else
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 ac_cv_lib_dnet_stub_dnet_ntoa=no
22727 rm -f conftest.err conftest.$ac_objext \
22728 conftest$ac_exeext conftest.$ac_ext
22729 LIBS=$ac_check_lib_save_LIBS
22731 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22732 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22733 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22734 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22739 rm -f conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
22741 LIBS="$ac_xsave_LIBS"
22743 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22744 # to get the SysV transport functions.
22745 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22746 # needs -lnsl.
22747 # The nsl library prevents programs from opening the X display
22748 # on Irix 5.2, according to T.E. Dickey.
22749 # The functions gethostbyname, getservbyname, and inet_addr are
22750 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22751 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22752 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22753 if test "${ac_cv_func_gethostbyname+set}" = set; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 else
22756 cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h. */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22764 #define gethostbyname innocuous_gethostbyname
22766 /* System header to define __stub macros and hopefully few prototypes,
22767 which can conflict with char gethostbyname (); below.
22768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22769 <limits.h> exists even on freestanding compilers. */
22771 #ifdef __STDC__
22772 # include <limits.h>
22773 #else
22774 # include <assert.h>
22775 #endif
22777 #undef gethostbyname
22779 /* Override any gcc2 internal prototype to avoid an error. */
22780 #ifdef __cplusplus
22781 extern "C"
22783 #endif
22784 /* We use char because int might match the return type of a gcc2
22785 builtin and then its argument prototype would still apply. */
22786 char gethostbyname ();
22787 /* The GNU C library defines this for functions which it implements
22788 to always fail with ENOSYS. Some functions are actually named
22789 something starting with __ and the normal name is an alias. */
22790 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22791 choke me
22792 #else
22793 char (*f) () = gethostbyname;
22794 #endif
22795 #ifdef __cplusplus
22797 #endif
22800 main ()
22802 return f != gethostbyname;
22804 return 0;
22806 _ACEOF
22807 rm -f conftest.$ac_objext conftest$ac_exeext
22808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22809 (eval $ac_link) 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } &&
22816 { ac_try='test -z "$ac_c_werror_flag"
22817 || test ! -s conftest.err'
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); }; } &&
22823 { ac_try='test -s conftest$ac_exeext'
22824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22825 (eval $ac_try) 2>&5
22826 ac_status=$?
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); }; }; then
22829 ac_cv_func_gethostbyname=yes
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_cv_func_gethostbyname=no
22836 rm -f conftest.err conftest.$ac_objext \
22837 conftest$ac_exeext conftest.$ac_ext
22839 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22840 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22842 if test $ac_cv_func_gethostbyname = no; then
22843 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22844 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22845 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22846 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 else
22848 ac_check_lib_save_LIBS=$LIBS
22849 LIBS="-lnsl $LIBS"
22850 cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h. */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 /* Override any gcc2 internal prototype to avoid an error. */
22858 #ifdef __cplusplus
22859 extern "C"
22860 #endif
22861 /* We use char because int might match the return type of a gcc2
22862 builtin and then its argument prototype would still apply. */
22863 char gethostbyname ();
22865 main ()
22867 gethostbyname ();
22869 return 0;
22871 _ACEOF
22872 rm -f conftest.$ac_objext conftest$ac_exeext
22873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22874 (eval $ac_link) 2>conftest.er1
22875 ac_status=$?
22876 grep -v '^ *+' conftest.er1 >conftest.err
22877 rm -f conftest.er1
22878 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } &&
22881 { ac_try='test -z "$ac_c_werror_flag"
22882 || test ! -s conftest.err'
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; } &&
22888 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22894 ac_cv_lib_nsl_gethostbyname=yes
22895 else
22896 echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_cv_lib_nsl_gethostbyname=no
22901 rm -f conftest.err conftest.$ac_objext \
22902 conftest$ac_exeext conftest.$ac_ext
22903 LIBS=$ac_check_lib_save_LIBS
22905 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22906 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22907 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22911 if test $ac_cv_lib_nsl_gethostbyname = no; then
22912 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22913 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22914 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 else
22917 ac_check_lib_save_LIBS=$LIBS
22918 LIBS="-lbsd $LIBS"
22919 cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h. */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22926 /* Override any gcc2 internal prototype to avoid an error. */
22927 #ifdef __cplusplus
22928 extern "C"
22929 #endif
22930 /* We use char because int might match the return type of a gcc2
22931 builtin and then its argument prototype would still apply. */
22932 char gethostbyname ();
22934 main ()
22936 gethostbyname ();
22938 return 0;
22940 _ACEOF
22941 rm -f conftest.$ac_objext conftest$ac_exeext
22942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>conftest.er1
22944 ac_status=$?
22945 grep -v '^ *+' conftest.er1 >conftest.err
22946 rm -f conftest.er1
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } &&
22950 { ac_try='test -z "$ac_c_werror_flag"
22951 || test ! -s conftest.err'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; } &&
22957 { ac_try='test -s conftest$ac_exeext'
22958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959 (eval $ac_try) 2>&5
22960 ac_status=$?
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; }; then
22963 ac_cv_lib_bsd_gethostbyname=yes
22964 else
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ac_cv_lib_bsd_gethostbyname=no
22970 rm -f conftest.err conftest.$ac_objext \
22971 conftest$ac_exeext conftest.$ac_ext
22972 LIBS=$ac_check_lib_save_LIBS
22974 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22975 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22976 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22983 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22984 # socket/setsockopt and other routines are undefined under SCO ODT
22985 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22986 # on later versions), says Simon Leinen: it contains gethostby*
22987 # variants that don't use the name server (or something). -lsocket
22988 # must be given before -lnsl if both are needed. We assume that
22989 # if connect needs -lnsl, so does gethostbyname.
22990 echo "$as_me:$LINENO: checking for connect" >&5
22991 echo $ECHO_N "checking for connect... $ECHO_C" >&6
22992 if test "${ac_cv_func_connect+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995 cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h. */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23003 #define connect innocuous_connect
23005 /* System header to define __stub macros and hopefully few prototypes,
23006 which can conflict with char connect (); below.
23007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23008 <limits.h> exists even on freestanding compilers. */
23010 #ifdef __STDC__
23011 # include <limits.h>
23012 #else
23013 # include <assert.h>
23014 #endif
23016 #undef connect
23018 /* Override any gcc2 internal prototype to avoid an error. */
23019 #ifdef __cplusplus
23020 extern "C"
23022 #endif
23023 /* We use char because int might match the return type of a gcc2
23024 builtin and then its argument prototype would still apply. */
23025 char connect ();
23026 /* The GNU C library defines this for functions which it implements
23027 to always fail with ENOSYS. Some functions are actually named
23028 something starting with __ and the normal name is an alias. */
23029 #if defined (__stub_connect) || defined (__stub___connect)
23030 choke me
23031 #else
23032 char (*f) () = connect;
23033 #endif
23034 #ifdef __cplusplus
23036 #endif
23039 main ()
23041 return f != connect;
23043 return 0;
23045 _ACEOF
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048 (eval $ac_link) 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } &&
23055 { ac_try='test -z "$ac_c_werror_flag"
23056 || test ! -s conftest.err'
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058 (eval $ac_try) 2>&5
23059 ac_status=$?
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); }; } &&
23062 { ac_try='test -s conftest$ac_exeext'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23065 ac_status=$?
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; }; then
23068 ac_cv_func_connect=yes
23069 else
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_cv_func_connect=no
23075 rm -f conftest.err conftest.$ac_objext \
23076 conftest$ac_exeext conftest.$ac_ext
23078 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23079 echo "${ECHO_T}$ac_cv_func_connect" >&6
23081 if test $ac_cv_func_connect = no; then
23082 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23083 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23084 if test "${ac_cv_lib_socket_connect+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087 ac_check_lib_save_LIBS=$LIBS
23088 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23096 /* Override any gcc2 internal prototype to avoid an error. */
23097 #ifdef __cplusplus
23098 extern "C"
23099 #endif
23100 /* We use char because int might match the return type of a gcc2
23101 builtin and then its argument prototype would still apply. */
23102 char connect ();
23104 main ()
23106 connect ();
23108 return 0;
23110 _ACEOF
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113 (eval $ac_link) 2>conftest.er1
23114 ac_status=$?
23115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } &&
23120 { ac_try='test -z "$ac_c_werror_flag"
23121 || test ! -s conftest.err'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest$ac_exeext'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_lib_socket_connect=yes
23134 else
23135 echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23138 ac_cv_lib_socket_connect=no
23140 rm -f conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
23142 LIBS=$ac_check_lib_save_LIBS
23144 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23145 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23146 if test $ac_cv_lib_socket_connect = yes; then
23147 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23152 # Guillermo Gomez says -lposix is necessary on A/UX.
23153 echo "$as_me:$LINENO: checking for remove" >&5
23154 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23155 if test "${ac_cv_func_remove+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23157 else
23158 cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h. */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23166 #define remove innocuous_remove
23168 /* System header to define __stub macros and hopefully few prototypes,
23169 which can conflict with char remove (); below.
23170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23171 <limits.h> exists even on freestanding compilers. */
23173 #ifdef __STDC__
23174 # include <limits.h>
23175 #else
23176 # include <assert.h>
23177 #endif
23179 #undef remove
23181 /* Override any gcc2 internal prototype to avoid an error. */
23182 #ifdef __cplusplus
23183 extern "C"
23185 #endif
23186 /* We use char because int might match the return type of a gcc2
23187 builtin and then its argument prototype would still apply. */
23188 char remove ();
23189 /* The GNU C library defines this for functions which it implements
23190 to always fail with ENOSYS. Some functions are actually named
23191 something starting with __ and the normal name is an alias. */
23192 #if defined (__stub_remove) || defined (__stub___remove)
23193 choke me
23194 #else
23195 char (*f) () = remove;
23196 #endif
23197 #ifdef __cplusplus
23199 #endif
23202 main ()
23204 return f != remove;
23206 return 0;
23208 _ACEOF
23209 rm -f conftest.$ac_objext conftest$ac_exeext
23210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23211 (eval $ac_link) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } &&
23218 { ac_try='test -z "$ac_c_werror_flag"
23219 || test ! -s conftest.err'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; } &&
23225 { ac_try='test -s conftest$ac_exeext'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; }; then
23231 ac_cv_func_remove=yes
23232 else
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_cv_func_remove=no
23238 rm -f conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23241 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23242 echo "${ECHO_T}$ac_cv_func_remove" >&6
23244 if test $ac_cv_func_remove = no; then
23245 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23246 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23247 if test "${ac_cv_lib_posix_remove+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250 ac_check_lib_save_LIBS=$LIBS
23251 LIBS="-lposix $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h. */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23259 /* Override any gcc2 internal prototype to avoid an error. */
23260 #ifdef __cplusplus
23261 extern "C"
23262 #endif
23263 /* We use char because int might match the return type of a gcc2
23264 builtin and then its argument prototype would still apply. */
23265 char remove ();
23267 main ()
23269 remove ();
23271 return 0;
23273 _ACEOF
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23276 (eval $ac_link) 2>conftest.er1
23277 ac_status=$?
23278 grep -v '^ *+' conftest.er1 >conftest.err
23279 rm -f conftest.er1
23280 cat conftest.err >&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } &&
23283 { ac_try='test -z "$ac_c_werror_flag"
23284 || test ! -s conftest.err'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; } &&
23290 { ac_try='test -s conftest$ac_exeext'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ac_cv_lib_posix_remove=yes
23297 else
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ac_cv_lib_posix_remove=no
23303 rm -f conftest.err conftest.$ac_objext \
23304 conftest$ac_exeext conftest.$ac_ext
23305 LIBS=$ac_check_lib_save_LIBS
23307 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23308 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23309 if test $ac_cv_lib_posix_remove = yes; then
23310 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23315 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23316 echo "$as_me:$LINENO: checking for shmat" >&5
23317 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23318 if test "${ac_cv_func_shmat+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321 cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h. */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23327 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23329 #define shmat innocuous_shmat
23331 /* System header to define __stub macros and hopefully few prototypes,
23332 which can conflict with char shmat (); below.
23333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23334 <limits.h> exists even on freestanding compilers. */
23336 #ifdef __STDC__
23337 # include <limits.h>
23338 #else
23339 # include <assert.h>
23340 #endif
23342 #undef shmat
23344 /* Override any gcc2 internal prototype to avoid an error. */
23345 #ifdef __cplusplus
23346 extern "C"
23348 #endif
23349 /* We use char because int might match the return type of a gcc2
23350 builtin and then its argument prototype would still apply. */
23351 char shmat ();
23352 /* The GNU C library defines this for functions which it implements
23353 to always fail with ENOSYS. Some functions are actually named
23354 something starting with __ and the normal name is an alias. */
23355 #if defined (__stub_shmat) || defined (__stub___shmat)
23356 choke me
23357 #else
23358 char (*f) () = shmat;
23359 #endif
23360 #ifdef __cplusplus
23362 #endif
23365 main ()
23367 return f != shmat;
23369 return 0;
23371 _ACEOF
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374 (eval $ac_link) 2>conftest.er1
23375 ac_status=$?
23376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
23381 { ac_try='test -z "$ac_c_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest$ac_exeext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_func_shmat=yes
23395 else
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_cv_func_shmat=no
23401 rm -f conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23404 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23405 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23407 if test $ac_cv_func_shmat = no; then
23408 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23409 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23410 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413 ac_check_lib_save_LIBS=$LIBS
23414 LIBS="-lipc $LIBS"
23415 cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h. */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23422 /* Override any gcc2 internal prototype to avoid an error. */
23423 #ifdef __cplusplus
23424 extern "C"
23425 #endif
23426 /* We use char because int might match the return type of a gcc2
23427 builtin and then its argument prototype would still apply. */
23428 char shmat ();
23430 main ()
23432 shmat ();
23434 return 0;
23436 _ACEOF
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439 (eval $ac_link) 2>conftest.er1
23440 ac_status=$?
23441 grep -v '^ *+' conftest.er1 >conftest.err
23442 rm -f conftest.er1
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } &&
23446 { ac_try='test -z "$ac_c_werror_flag"
23447 || test ! -s conftest.err'
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; } &&
23453 { ac_try='test -s conftest$ac_exeext'
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; }; then
23459 ac_cv_lib_ipc_shmat=yes
23460 else
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_cv_lib_ipc_shmat=no
23466 rm -f conftest.err conftest.$ac_objext \
23467 conftest$ac_exeext conftest.$ac_ext
23468 LIBS=$ac_check_lib_save_LIBS
23470 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23471 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23472 if test $ac_cv_lib_ipc_shmat = yes; then
23473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23479 # Check for libraries that X11R6 Xt/Xaw programs need.
23480 ac_save_LDFLAGS=$LDFLAGS
23481 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23482 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23483 # check for ICE first), but we must link in the order -lSM -lICE or
23484 # we get undefined symbols. So assume we have SM if we have ICE.
23485 # These have to be linked with before -lX11, unlike the other
23486 # libraries we check for below, so use a different variable.
23487 # John Interrante, Karl Berry
23488 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23489 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23490 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493 ac_check_lib_save_LIBS=$LIBS
23494 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23495 cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h. */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23502 /* Override any gcc2 internal prototype to avoid an error. */
23503 #ifdef __cplusplus
23504 extern "C"
23505 #endif
23506 /* We use char because int might match the return type of a gcc2
23507 builtin and then its argument prototype would still apply. */
23508 char IceConnectionNumber ();
23510 main ()
23512 IceConnectionNumber ();
23514 return 0;
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23519 (eval $ac_link) 2>conftest.er1
23520 ac_status=$?
23521 grep -v '^ *+' conftest.er1 >conftest.err
23522 rm -f conftest.er1
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } &&
23526 { ac_try='test -z "$ac_c_werror_flag"
23527 || test ! -s conftest.err'
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; } &&
23533 { ac_try='test -s conftest$ac_exeext'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_cv_lib_ICE_IceConnectionNumber=yes
23540 else
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_lib_ICE_IceConnectionNumber=no
23546 rm -f conftest.err conftest.$ac_objext \
23547 conftest$ac_exeext conftest.$ac_ext
23548 LIBS=$ac_check_lib_save_LIBS
23550 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23551 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23552 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23553 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23556 LDFLAGS=$ac_save_LDFLAGS
23560 LDFLAGS="$CFLAGS $X_LIBS"
23561 CFLAGS="$CFLAGS $X_CFLAGS"
23562 echo "$as_me:$LINENO: checking for XCreateGC in -lX11" >&5
23563 echo $ECHO_N "checking for XCreateGC in -lX11... $ECHO_C" >&6
23564 if test "${ac_cv_lib_X11_XCreateGC+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 else
23567 ac_check_lib_save_LIBS=$LIBS
23568 LIBS="-lX11 $LIBS"
23569 cat >conftest.$ac_ext <<_ACEOF
23570 /* confdefs.h. */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23576 /* Override any gcc2 internal prototype to avoid an error. */
23577 #ifdef __cplusplus
23578 extern "C"
23579 #endif
23580 /* We use char because int might match the return type of a gcc2
23581 builtin and then its argument prototype would still apply. */
23582 char XCreateGC ();
23584 main ()
23586 XCreateGC ();
23588 return 0;
23590 _ACEOF
23591 rm -f conftest.$ac_objext conftest$ac_exeext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23593 (eval $ac_link) 2>conftest.er1
23594 ac_status=$?
23595 grep -v '^ *+' conftest.er1 >conftest.err
23596 rm -f conftest.er1
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
23600 { ac_try='test -z "$ac_c_werror_flag"
23601 || test ! -s conftest.err'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest$ac_exeext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 ac_cv_lib_X11_XCreateGC=yes
23614 else
23615 echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23618 ac_cv_lib_X11_XCreateGC=no
23620 rm -f conftest.err conftest.$ac_objext \
23621 conftest$ac_exeext conftest.$ac_ext
23622 LIBS=$ac_check_lib_save_LIBS
23624 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCreateGC" >&5
23625 echo "${ECHO_T}$ac_cv_lib_X11_XCreateGC" >&6
23626 if test $ac_cv_lib_X11_XCreateGC = yes; then
23628 cat >>confdefs.h <<\_ACEOF
23629 #define USE_X11 1
23630 _ACEOF
23631 LIBS="$LIBS -lX11 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
23632 else
23633 { { echo "$as_me:$LINENO: error: You don't have libX11" >&5
23634 echo "$as_me: error: You don't have libX11" >&2;}
23635 { (exit 1); exit 1; }; }
23638 # LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
23639 # NEUROFLAGS="$NEUROFLAGS $X_CFLAGS"
23641 freetype_enable=yes
23645 echo "$as_me:$LINENO: checking for log10 in -lm" >&5
23646 echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
23647 if test "${ac_cv_lib_m_log10+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23649 else
23650 ac_check_lib_save_LIBS=$LIBS
23651 LIBS="-lm $LIBS"
23652 cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h. */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23659 /* Override any gcc2 internal prototype to avoid an error. */
23660 #ifdef __cplusplus
23661 extern "C"
23662 #endif
23663 /* We use char because int might match the return type of a gcc2
23664 builtin and then its argument prototype would still apply. */
23665 char log10 ();
23667 main ()
23669 log10 ();
23671 return 0;
23673 _ACEOF
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676 (eval $ac_link) 2>conftest.er1
23677 ac_status=$?
23678 grep -v '^ *+' conftest.er1 >conftest.err
23679 rm -f conftest.er1
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } &&
23683 { ac_try='test -z "$ac_c_werror_flag"
23684 || test ! -s conftest.err'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23687 ac_status=$?
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; } &&
23690 { ac_try='test -s conftest$ac_exeext'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23693 ac_status=$?
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 ac_cv_lib_m_log10=yes
23697 else
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 ac_cv_lib_m_log10=no
23703 rm -f conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23707 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
23708 echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
23709 if test $ac_cv_lib_m_log10 = yes; then
23710 cat >>confdefs.h <<_ACEOF
23711 #define HAVE_LIBM 1
23712 _ACEOF
23714 LIBS="-lm $LIBS"
23716 else
23717 { { echo "$as_me:$LINENO: error: You don't have libm -- math" >&5
23718 echo "$as_me: error: You don't have libm -- math" >&2;}
23719 { (exit 1); exit 1; }; }
23724 if test x$freetype_enable = xyes; then
23725 echo "$as_me:$LINENO: checking for FT_New_Face in -lfreetype" >&5
23726 echo $ECHO_N "checking for FT_New_Face in -lfreetype... $ECHO_C" >&6
23727 if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 else
23730 ac_check_lib_save_LIBS=$LIBS
23731 LIBS="-lfreetype $LIBS"
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h. */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23739 /* Override any gcc2 internal prototype to avoid an error. */
23740 #ifdef __cplusplus
23741 extern "C"
23742 #endif
23743 /* We use char because int might match the return type of a gcc2
23744 builtin and then its argument prototype would still apply. */
23745 char FT_New_Face ();
23747 main ()
23749 FT_New_Face ();
23751 return 0;
23753 _ACEOF
23754 rm -f conftest.$ac_objext conftest$ac_exeext
23755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23756 (eval $ac_link) 2>conftest.er1
23757 ac_status=$?
23758 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } &&
23763 { ac_try='test -z "$ac_c_werror_flag"
23764 || test ! -s conftest.err'
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5
23767 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; } &&
23770 { ac_try='test -s conftest$ac_exeext'
23771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 ac_cv_lib_freetype_FT_New_Face=yes
23777 else
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 ac_cv_lib_freetype_FT_New_Face=no
23783 rm -f conftest.err conftest.$ac_objext \
23784 conftest$ac_exeext conftest.$ac_ext
23785 LIBS=$ac_check_lib_save_LIBS
23787 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_New_Face" >&5
23788 echo "${ECHO_T}$ac_cv_lib_freetype_FT_New_Face" >&6
23789 if test $ac_cv_lib_freetype_FT_New_Face = yes; then
23790 LIBS="$LIBS `freetype-config --libs`" CFLAGS="$CFLAGS `freetype-config --cflags`"
23791 else
23792 { { echo "$as_me:$LINENO: error: You don't have the libfreetype2 library you can get it from freetype.sourceforge.net" >&5
23793 echo "$as_me: error: You don't have the libfreetype2 library you can get it from freetype.sourceforge.net" >&2;}
23794 { (exit 1); exit 1; }; }
23800 if test x$enable_Debug = xyes; then
23801 #NEUROFLAGS="$NEUROFLAGS -g"
23802 CFLAGS="$CFLAGS -g"
23803 else
23804 #NEUROFLAGS="$NEUROFLAGS -O2 -s"
23805 CFLAGS="$CFLAGS -Os -s"
23811 # set the installation path for the headers
23812 includedir=$includedir/neuro
23814 echo
23816 # enumerate the Makefiles to be created
23817 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 src/misc/bitmap/Makefile docs/Makefile"
23820 # if the neuronet project is in the house, we handle it
23823 if test x$enable_Neuronet = xyes; then
23824 USE_NEURONET_TRUE=
23825 USE_NEURONET_FALSE='#'
23826 else
23827 USE_NEURONET_TRUE='#'
23828 USE_NEURONET_FALSE=
23831 if test x$enable_Neuronet = xyes; then
23832 if test -d src/neuronet/src; then
23833 ac_config_links="$ac_config_links src/neuronet/include/ebuf.h:include/neuro/ebuf.h"
23837 subdirs="$subdirs src/neuronet"
23842 #AC_MSG_NOTICE([This is the low library Neuro will use : $SELECTED_LOWLIB])
23844 cat >confcache <<\_ACEOF
23845 # This file is a shell script that caches the results of configure
23846 # tests run on this system so they can be shared between configure
23847 # scripts and configure runs, see configure's option --config-cache.
23848 # It is not useful on other systems. If it contains results you don't
23849 # want to keep, you may remove or edit it.
23851 # config.status only pays attention to the cache file if you give it
23852 # the --recheck option to rerun configure.
23854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23856 # following values.
23858 _ACEOF
23860 # The following way of writing the cache mishandles newlines in values,
23861 # but we know of no workaround that is simple, portable, and efficient.
23862 # So, don't put newlines in cache variables' values.
23863 # Ultrix sh set writes to stderr and can't be redirected directly,
23864 # and sets the high bit in the cache file unless we assign to the vars.
23866 (set) 2>&1 |
23867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23868 *ac_space=\ *)
23869 # `set' does not quote correctly, so add quotes (double-quote
23870 # substitution turns \\\\ into \\, and sed turns \\ into \).
23871 sed -n \
23872 "s/'/'\\\\''/g;
23873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23876 # `set' quotes correctly as required by POSIX, so do not add quotes.
23877 sed -n \
23878 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23880 esac;
23882 sed '
23883 t clear
23884 : clear
23885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23886 t end
23887 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23888 : end' >>confcache
23889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23890 if test -w $cache_file; then
23891 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23892 cat confcache >$cache_file
23893 else
23894 echo "not updating unwritable cache $cache_file"
23897 rm -f confcache
23899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23900 # Let make expand exec_prefix.
23901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23905 # trailing colons and then remove the whole line if VPATH becomes empty
23906 # (actually we leave an empty line to preserve line numbers).
23907 if test "x$srcdir" = x.; then
23908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23909 s/:*\$(srcdir):*/:/;
23910 s/:*\${srcdir}:*/:/;
23911 s/:*@srcdir@:*/:/;
23912 s/^\([^=]*=[ ]*\):*/\1/;
23913 s/:*$//;
23914 s/^[^=]*=[ ]*$//;
23918 DEFS=-DHAVE_CONFIG_H
23920 ac_libobjs=
23921 ac_ltlibobjs=
23922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23923 # 1. Remove the extension, and $U if already installed.
23924 ac_i=`echo "$ac_i" |
23925 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23926 # 2. Add them.
23927 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23928 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23929 done
23930 LIBOBJS=$ac_libobjs
23932 LTLIBOBJS=$ac_ltlibobjs
23935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23936 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23937 Usually this means the macro was only invoked conditionally." >&5
23938 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23939 Usually this means the macro was only invoked conditionally." >&2;}
23940 { (exit 1); exit 1; }; }
23942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23943 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23944 Usually this means the macro was only invoked conditionally." >&5
23945 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23946 Usually this means the macro was only invoked conditionally." >&2;}
23947 { (exit 1); exit 1; }; }
23949 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23950 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23951 Usually this means the macro was only invoked conditionally." >&5
23952 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23953 Usually this means the macro was only invoked conditionally." >&2;}
23954 { (exit 1); exit 1; }; }
23956 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
23957 { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
23958 Usually this means the macro was only invoked conditionally." >&5
23959 echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
23960 Usually this means the macro was only invoked conditionally." >&2;}
23961 { (exit 1); exit 1; }; }
23963 if test -z "${USE_VIDEO_TRUE}" && test -z "${USE_VIDEO_FALSE}"; then
23964 { { echo "$as_me:$LINENO: error: conditional \"USE_VIDEO\" was never defined.
23965 Usually this means the macro was only invoked conditionally." >&5
23966 echo "$as_me: error: conditional \"USE_VIDEO\" was never defined.
23967 Usually this means the macro was only invoked conditionally." >&2;}
23968 { (exit 1); exit 1; }; }
23970 if test -z "${USE_SDL_TRUE}" && test -z "${USE_SDL_FALSE}"; then
23971 { { echo "$as_me:$LINENO: error: conditional \"USE_SDL\" was never defined.
23972 Usually this means the macro was only invoked conditionally." >&5
23973 echo "$as_me: error: conditional \"USE_SDL\" was never defined.
23974 Usually this means the macro was only invoked conditionally." >&2;}
23975 { (exit 1); exit 1; }; }
23977 if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
23978 { { echo "$as_me:$LINENO: error: conditional \"USE_X11\" was never defined.
23979 Usually this means the macro was only invoked conditionally." >&5
23980 echo "$as_me: error: conditional \"USE_X11\" was never defined.
23981 Usually this means the macro was only invoked conditionally." >&2;}
23982 { (exit 1); exit 1; }; }
23984 if test -z "${USE_NEURONET_TRUE}" && test -z "${USE_NEURONET_FALSE}"; then
23985 { { echo "$as_me:$LINENO: error: conditional \"USE_NEURONET\" was never defined.
23986 Usually this means the macro was only invoked conditionally." >&5
23987 echo "$as_me: error: conditional \"USE_NEURONET\" was never defined.
23988 Usually this means the macro was only invoked conditionally." >&2;}
23989 { (exit 1); exit 1; }; }
23992 : ${CONFIG_STATUS=./config.status}
23993 ac_clean_files_save=$ac_clean_files
23994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23995 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23996 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23997 cat >$CONFIG_STATUS <<_ACEOF
23998 #! $SHELL
23999 # Generated by $as_me.
24000 # Run this file to recreate the current configuration.
24001 # Compiler output produced by configure, useful for debugging
24002 # configure, is in config.log if it exists.
24004 debug=false
24005 ac_cs_recheck=false
24006 ac_cs_silent=false
24007 SHELL=\${CONFIG_SHELL-$SHELL}
24008 _ACEOF
24010 cat >>$CONFIG_STATUS <<\_ACEOF
24011 ## --------------------- ##
24012 ## M4sh Initialization. ##
24013 ## --------------------- ##
24015 # Be Bourne compatible
24016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24017 emulate sh
24018 NULLCMD=:
24019 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24020 # is contrary to our usage. Disable this feature.
24021 alias -g '${1+"$@"}'='"$@"'
24022 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24023 set -o posix
24025 DUALCASE=1; export DUALCASE # for MKS sh
24027 # Support unset when possible.
24028 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24029 as_unset=unset
24030 else
24031 as_unset=false
24035 # Work around bugs in pre-3.0 UWIN ksh.
24036 $as_unset ENV MAIL MAILPATH
24037 PS1='$ '
24038 PS2='> '
24039 PS4='+ '
24041 # NLS nuisances.
24042 for as_var in \
24043 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24044 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24045 LC_TELEPHONE LC_TIME
24047 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24048 eval $as_var=C; export $as_var
24049 else
24050 $as_unset $as_var
24052 done
24054 # Required to use basename.
24055 if expr a : '\(a\)' >/dev/null 2>&1; then
24056 as_expr=expr
24057 else
24058 as_expr=false
24061 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24062 as_basename=basename
24063 else
24064 as_basename=false
24068 # Name of the executable.
24069 as_me=`$as_basename "$0" ||
24070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24071 X"$0" : 'X\(//\)$' \| \
24072 X"$0" : 'X\(/\)$' \| \
24073 . : '\(.\)' 2>/dev/null ||
24074 echo X/"$0" |
24075 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24076 /^X\/\(\/\/\)$/{ s//\1/; q; }
24077 /^X\/\(\/\).*/{ s//\1/; q; }
24078 s/.*/./; q'`
24081 # PATH needs CR, and LINENO needs CR and PATH.
24082 # Avoid depending upon Character Ranges.
24083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24086 as_cr_digits='0123456789'
24087 as_cr_alnum=$as_cr_Letters$as_cr_digits
24089 # The user is always right.
24090 if test "${PATH_SEPARATOR+set}" != set; then
24091 echo "#! /bin/sh" >conf$$.sh
24092 echo "exit 0" >>conf$$.sh
24093 chmod +x conf$$.sh
24094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24095 PATH_SEPARATOR=';'
24096 else
24097 PATH_SEPARATOR=:
24099 rm -f conf$$.sh
24103 as_lineno_1=$LINENO
24104 as_lineno_2=$LINENO
24105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24106 test "x$as_lineno_1" != "x$as_lineno_2" &&
24107 test "x$as_lineno_3" = "x$as_lineno_2" || {
24108 # Find who we are. Look in the path if we contain no path at all
24109 # relative or not.
24110 case $0 in
24111 *[\\/]* ) as_myself=$0 ;;
24112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24113 for as_dir in $PATH
24115 IFS=$as_save_IFS
24116 test -z "$as_dir" && as_dir=.
24117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24118 done
24121 esac
24122 # We did not find ourselves, most probably we were run as `sh COMMAND'
24123 # in which case we are not to be found in the path.
24124 if test "x$as_myself" = x; then
24125 as_myself=$0
24127 if test ! -f "$as_myself"; then
24128 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24129 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24130 { (exit 1); exit 1; }; }
24132 case $CONFIG_SHELL in
24134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24137 IFS=$as_save_IFS
24138 test -z "$as_dir" && as_dir=.
24139 for as_base in sh bash ksh sh5; do
24140 case $as_dir in
24142 if ("$as_dir/$as_base" -c '
24143 as_lineno_1=$LINENO
24144 as_lineno_2=$LINENO
24145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24146 test "x$as_lineno_1" != "x$as_lineno_2" &&
24147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24150 CONFIG_SHELL=$as_dir/$as_base
24151 export CONFIG_SHELL
24152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24153 fi;;
24154 esac
24155 done
24156 done
24158 esac
24160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24161 # uniformly replaced by the line number. The first 'sed' inserts a
24162 # line-number line before each line; the second 'sed' does the real
24163 # work. The second script uses 'N' to pair each line-number line
24164 # with the numbered line, and appends trailing '-' during
24165 # substitution so that $LINENO is not a special case at line end.
24166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24168 sed '=' <$as_myself |
24169 sed '
24171 s,$,-,
24172 : loop
24173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24174 t loop
24175 s,-$,,
24176 s,^['$as_cr_digits']*\n,,
24177 ' >$as_me.lineno &&
24178 chmod +x $as_me.lineno ||
24179 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24180 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24181 { (exit 1); exit 1; }; }
24183 # Don't try to exec as it changes $[0], causing all sort of problems
24184 # (the dirname of $[0] is not the place where we might find the
24185 # original and so on. Autoconf is especially sensible to this).
24186 . ./$as_me.lineno
24187 # Exit status is that of the last command.
24188 exit
24192 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24193 *c*,-n*) ECHO_N= ECHO_C='
24194 ' ECHO_T=' ' ;;
24195 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24196 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24197 esac
24199 if expr a : '\(a\)' >/dev/null 2>&1; then
24200 as_expr=expr
24201 else
24202 as_expr=false
24205 rm -f conf$$ conf$$.exe conf$$.file
24206 echo >conf$$.file
24207 if ln -s conf$$.file conf$$ 2>/dev/null; then
24208 # We could just check for DJGPP; but this test a) works b) is more generic
24209 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24210 if test -f conf$$.exe; then
24211 # Don't use ln at all; we don't have any links
24212 as_ln_s='cp -p'
24213 else
24214 as_ln_s='ln -s'
24216 elif ln conf$$.file conf$$ 2>/dev/null; then
24217 as_ln_s=ln
24218 else
24219 as_ln_s='cp -p'
24221 rm -f conf$$ conf$$.exe conf$$.file
24223 if mkdir -p . 2>/dev/null; then
24224 as_mkdir_p=:
24225 else
24226 test -d ./-p && rmdir ./-p
24227 as_mkdir_p=false
24230 as_executable_p="test -f"
24232 # Sed expression to map a string onto a valid CPP name.
24233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24235 # Sed expression to map a string onto a valid variable name.
24236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24239 # IFS
24240 # We need space, tab and new line, in precisely that order.
24241 as_nl='
24243 IFS=" $as_nl"
24245 # CDPATH.
24246 $as_unset CDPATH
24248 exec 6>&1
24250 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24251 # report actual input values of CONFIG_FILES etc. instead of their
24252 # values after options handling. Logging --version etc. is OK.
24253 exec 5>>config.log
24255 echo
24256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24257 ## Running $as_me. ##
24258 _ASBOX
24259 } >&5
24260 cat >&5 <<_CSEOF
24262 This file was extended by $as_me, which was
24263 generated by GNU Autoconf 2.59. Invocation command line was
24265 CONFIG_FILES = $CONFIG_FILES
24266 CONFIG_HEADERS = $CONFIG_HEADERS
24267 CONFIG_LINKS = $CONFIG_LINKS
24268 CONFIG_COMMANDS = $CONFIG_COMMANDS
24269 $ $0 $@
24271 _CSEOF
24272 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24273 echo >&5
24274 _ACEOF
24276 # Files that config.status was made for.
24277 if test -n "$ac_config_files"; then
24278 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24281 if test -n "$ac_config_headers"; then
24282 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24285 if test -n "$ac_config_links"; then
24286 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24289 if test -n "$ac_config_commands"; then
24290 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24293 cat >>$CONFIG_STATUS <<\_ACEOF
24295 ac_cs_usage="\
24296 \`$as_me' instantiates files from templates according to the
24297 current configuration.
24299 Usage: $0 [OPTIONS] [FILE]...
24301 -h, --help print this help, then exit
24302 -V, --version print version number, then exit
24303 -q, --quiet do not print progress messages
24304 -d, --debug don't remove temporary files
24305 --recheck update $as_me by reconfiguring in the same conditions
24306 --file=FILE[:TEMPLATE]
24307 instantiate the configuration file FILE
24308 --header=FILE[:TEMPLATE]
24309 instantiate the configuration header FILE
24311 Configuration files:
24312 $config_files
24314 Configuration headers:
24315 $config_headers
24317 Configuration links:
24318 $config_links
24320 Configuration commands:
24321 $config_commands
24323 Report bugs to <bug-autoconf@gnu.org>."
24324 _ACEOF
24326 cat >>$CONFIG_STATUS <<_ACEOF
24327 ac_cs_version="\\
24328 config.status
24329 configured by $0, generated by GNU Autoconf 2.59,
24330 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24332 Copyright (C) 2003 Free Software Foundation, Inc.
24333 This config.status script is free software; the Free Software Foundation
24334 gives unlimited permission to copy, distribute and modify it."
24335 srcdir=$srcdir
24336 INSTALL="$INSTALL"
24337 _ACEOF
24339 cat >>$CONFIG_STATUS <<\_ACEOF
24340 # If no file are specified by the user, then we need to provide default
24341 # value. By we need to know if files were specified by the user.
24342 ac_need_defaults=:
24343 while test $# != 0
24345 case $1 in
24346 --*=*)
24347 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24348 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24349 ac_shift=:
24352 ac_option=$1
24353 ac_optarg=$2
24354 ac_shift=shift
24356 *) # This is not an option, so the user has probably given explicit
24357 # arguments.
24358 ac_option=$1
24359 ac_need_defaults=false;;
24360 esac
24362 case $ac_option in
24363 # Handling of the options.
24364 _ACEOF
24365 cat >>$CONFIG_STATUS <<\_ACEOF
24366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24367 ac_cs_recheck=: ;;
24368 --version | --vers* | -V )
24369 echo "$ac_cs_version"; exit 0 ;;
24370 --he | --h)
24371 # Conflict between --help and --header
24372 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24373 Try \`$0 --help' for more information." >&5
24374 echo "$as_me: error: ambiguous option: $1
24375 Try \`$0 --help' for more information." >&2;}
24376 { (exit 1); exit 1; }; };;
24377 --help | --hel | -h )
24378 echo "$ac_cs_usage"; exit 0 ;;
24379 --debug | --d* | -d )
24380 debug=: ;;
24381 --file | --fil | --fi | --f )
24382 $ac_shift
24383 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24384 ac_need_defaults=false;;
24385 --header | --heade | --head | --hea )
24386 $ac_shift
24387 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24388 ac_need_defaults=false;;
24389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24391 ac_cs_silent=: ;;
24393 # This is an error.
24394 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24395 Try \`$0 --help' for more information." >&5
24396 echo "$as_me: error: unrecognized option: $1
24397 Try \`$0 --help' for more information." >&2;}
24398 { (exit 1); exit 1; }; } ;;
24400 *) ac_config_targets="$ac_config_targets $1" ;;
24402 esac
24403 shift
24404 done
24406 ac_configure_extra_args=
24408 if $ac_cs_silent; then
24409 exec 6>/dev/null
24410 ac_configure_extra_args="$ac_configure_extra_args --silent"
24413 _ACEOF
24414 cat >>$CONFIG_STATUS <<_ACEOF
24415 if \$ac_cs_recheck; then
24416 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24417 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24420 _ACEOF
24422 cat >>$CONFIG_STATUS <<_ACEOF
24424 # INIT-COMMANDS section.
24427 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24429 _ACEOF
24433 cat >>$CONFIG_STATUS <<\_ACEOF
24434 for ac_config_target in $ac_config_targets
24436 case "$ac_config_target" in
24437 # Handling of arguments.
24438 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24439 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24440 "include/neuro/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/neuro/Makefile" ;;
24441 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24442 "src/memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/memory/Makefile" ;;
24443 "src/video/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/video/Makefile" ;;
24444 "src/events/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/events/Makefile" ;;
24445 "src/extlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extlib/Makefile" ;;
24446 "src/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;;
24447 "src/misc/bitmap/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/misc/bitmap/Makefile" ;;
24448 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
24449 "src/neuronet/include/ebuf.h" ) CONFIG_LINKS="$CONFIG_LINKS src/neuronet/include/ebuf.h:include/neuro/ebuf.h" ;;
24450 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24451 "include/neuro/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/neuro/config.h" ;;
24452 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24453 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24454 { (exit 1); exit 1; }; };;
24455 esac
24456 done
24458 # If the user did not use the arguments to specify the items to instantiate,
24459 # then the envvar interface is used. Set only those that are not.
24460 # We use the long form for the default assignment because of an extremely
24461 # bizarre bug on SunOS 4.1.3.
24462 if $ac_need_defaults; then
24463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24465 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24469 # Have a temporary directory for convenience. Make it in the build tree
24470 # simply because there is no reason to put it here, and in addition,
24471 # creating and moving files from /tmp can sometimes cause problems.
24472 # Create a temporary directory, and hook for its removal unless debugging.
24473 $debug ||
24475 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24476 trap '{ (exit 1); exit 1; }' 1 2 13 15
24479 # Create a (secure) tmp directory for tmp files.
24482 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24483 test -n "$tmp" && test -d "$tmp"
24484 } ||
24486 tmp=./confstat$$-$RANDOM
24487 (umask 077 && mkdir $tmp)
24488 } ||
24490 echo "$me: cannot create a temporary directory in ." >&2
24491 { (exit 1); exit 1; }
24494 _ACEOF
24496 cat >>$CONFIG_STATUS <<_ACEOF
24499 # CONFIG_FILES section.
24502 # No need to generate the scripts if there are no CONFIG_FILES.
24503 # This happens for instance when ./config.status config.h
24504 if test -n "\$CONFIG_FILES"; then
24505 # Protect against being on the right side of a sed subst in config.status.
24506 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24507 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24508 s,@SHELL@,$SHELL,;t t
24509 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24510 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24511 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24512 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24513 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24514 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24515 s,@exec_prefix@,$exec_prefix,;t t
24516 s,@prefix@,$prefix,;t t
24517 s,@program_transform_name@,$program_transform_name,;t t
24518 s,@bindir@,$bindir,;t t
24519 s,@sbindir@,$sbindir,;t t
24520 s,@libexecdir@,$libexecdir,;t t
24521 s,@datadir@,$datadir,;t t
24522 s,@sysconfdir@,$sysconfdir,;t t
24523 s,@sharedstatedir@,$sharedstatedir,;t t
24524 s,@localstatedir@,$localstatedir,;t t
24525 s,@libdir@,$libdir,;t t
24526 s,@includedir@,$includedir,;t t
24527 s,@oldincludedir@,$oldincludedir,;t t
24528 s,@infodir@,$infodir,;t t
24529 s,@mandir@,$mandir,;t t
24530 s,@build_alias@,$build_alias,;t t
24531 s,@host_alias@,$host_alias,;t t
24532 s,@target_alias@,$target_alias,;t t
24533 s,@DEFS@,$DEFS,;t t
24534 s,@ECHO_C@,$ECHO_C,;t t
24535 s,@ECHO_N@,$ECHO_N,;t t
24536 s,@ECHO_T@,$ECHO_T,;t t
24537 s,@LIBS@,$LIBS,;t t
24538 s,@NEURO_MAJOR_VERSION@,$NEURO_MAJOR_VERSION,;t t
24539 s,@NEURO_MINOR_VERSION@,$NEURO_MINOR_VERSION,;t t
24540 s,@NEURO_MICRO_VERSION@,$NEURO_MICRO_VERSION,;t t
24541 s,@NEURO_INTERFACE_AGE@,$NEURO_INTERFACE_AGE,;t t
24542 s,@NEURO_BINARY_AGE@,$NEURO_BINARY_AGE,;t t
24543 s,@NEURO_VERSION@,$NEURO_VERSION,;t t
24544 s,@LT_CURRENT@,$LT_CURRENT,;t t
24545 s,@LT_REVISION@,$LT_REVISION,;t t
24546 s,@LT_AGE@,$LT_AGE,;t t
24547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24550 s,@CYGPATH_W@,$CYGPATH_W,;t t
24551 s,@PACKAGE@,$PACKAGE,;t t
24552 s,@VERSION@,$VERSION,;t t
24553 s,@ACLOCAL@,$ACLOCAL,;t t
24554 s,@AUTOCONF@,$AUTOCONF,;t t
24555 s,@AUTOMAKE@,$AUTOMAKE,;t t
24556 s,@AUTOHEADER@,$AUTOHEADER,;t t
24557 s,@MAKEINFO@,$MAKEINFO,;t t
24558 s,@install_sh@,$install_sh,;t t
24559 s,@STRIP@,$STRIP,;t t
24560 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24561 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24562 s,@mkdir_p@,$mkdir_p,;t t
24563 s,@AWK@,$AWK,;t t
24564 s,@SET_MAKE@,$SET_MAKE,;t t
24565 s,@am__leading_dot@,$am__leading_dot,;t t
24566 s,@AMTAR@,$AMTAR,;t t
24567 s,@am__tar@,$am__tar,;t t
24568 s,@am__untar@,$am__untar,;t t
24569 s,@build@,$build,;t t
24570 s,@build_cpu@,$build_cpu,;t t
24571 s,@build_vendor@,$build_vendor,;t t
24572 s,@build_os@,$build_os,;t t
24573 s,@host@,$host,;t t
24574 s,@host_cpu@,$host_cpu,;t t
24575 s,@host_vendor@,$host_vendor,;t t
24576 s,@host_os@,$host_os,;t t
24577 s,@CC@,$CC,;t t
24578 s,@CFLAGS@,$CFLAGS,;t t
24579 s,@LDFLAGS@,$LDFLAGS,;t t
24580 s,@CPPFLAGS@,$CPPFLAGS,;t t
24581 s,@ac_ct_CC@,$ac_ct_CC,;t t
24582 s,@EXEEXT@,$EXEEXT,;t t
24583 s,@OBJEXT@,$OBJEXT,;t t
24584 s,@DEPDIR@,$DEPDIR,;t t
24585 s,@am__include@,$am__include,;t t
24586 s,@am__quote@,$am__quote,;t t
24587 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24588 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24589 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24590 s,@CCDEPMODE@,$CCDEPMODE,;t t
24591 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24592 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24593 s,@CPP@,$CPP,;t t
24594 s,@LN_S@,$LN_S,;t t
24595 s,@RANLIB@,$RANLIB,;t t
24596 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24597 s,@EGREP@,$EGREP,;t t
24598 s,@ECHO@,$ECHO,;t t
24599 s,@AR@,$AR,;t t
24600 s,@ac_ct_AR@,$ac_ct_AR,;t t
24601 s,@DLLTOOL@,$DLLTOOL,;t t
24602 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24603 s,@AS@,$AS,;t t
24604 s,@ac_ct_AS@,$ac_ct_AS,;t t
24605 s,@OBJDUMP@,$OBJDUMP,;t t
24606 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
24607 s,@CXX@,$CXX,;t t
24608 s,@CXXFLAGS@,$CXXFLAGS,;t t
24609 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24610 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24611 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24612 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24613 s,@CXXCPP@,$CXXCPP,;t t
24614 s,@F77@,$F77,;t t
24615 s,@FFLAGS@,$FFLAGS,;t t
24616 s,@ac_ct_F77@,$ac_ct_F77,;t t
24617 s,@LIBTOOL@,$LIBTOOL,;t t
24618 s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
24619 s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
24620 s,@LIBOBJS@,$LIBOBJS,;t t
24621 s,@USE_VIDEO_TRUE@,$USE_VIDEO_TRUE,;t t
24622 s,@USE_VIDEO_FALSE@,$USE_VIDEO_FALSE,;t t
24623 s,@USE_SDL_TRUE@,$USE_SDL_TRUE,;t t
24624 s,@USE_SDL_FALSE@,$USE_SDL_FALSE,;t t
24625 s,@USE_X11_TRUE@,$USE_X11_TRUE,;t t
24626 s,@USE_X11_FALSE@,$USE_X11_FALSE,;t t
24627 s,@X_CFLAGS@,$X_CFLAGS,;t t
24628 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24629 s,@X_LIBS@,$X_LIBS,;t t
24630 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24631 s,@NEUROFLAGS@,$NEUROFLAGS,;t t
24632 s,@NEUROLDFLAGS@,$NEUROLDFLAGS,;t t
24633 s,@USE_NEURONET_TRUE@,$USE_NEURONET_TRUE,;t t
24634 s,@USE_NEURONET_FALSE@,$USE_NEURONET_FALSE,;t t
24635 s,@subdirs@,$subdirs,;t t
24636 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24637 CEOF
24639 _ACEOF
24641 cat >>$CONFIG_STATUS <<\_ACEOF
24642 # Split the substitutions into bite-sized pieces for seds with
24643 # small command number limits, like on Digital OSF/1 and HP-UX.
24644 ac_max_sed_lines=48
24645 ac_sed_frag=1 # Number of current file.
24646 ac_beg=1 # First line for current file.
24647 ac_end=$ac_max_sed_lines # Line after last line for current file.
24648 ac_more_lines=:
24649 ac_sed_cmds=
24650 while $ac_more_lines; do
24651 if test $ac_beg -gt 1; then
24652 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24653 else
24654 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24656 if test ! -s $tmp/subs.frag; then
24657 ac_more_lines=false
24658 else
24659 # The purpose of the label and of the branching condition is to
24660 # speed up the sed processing (if there are no `@' at all, there
24661 # is no need to browse any of the substitutions).
24662 # These are the two extra sed commands mentioned above.
24663 (echo ':t
24664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24665 if test -z "$ac_sed_cmds"; then
24666 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24667 else
24668 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24670 ac_sed_frag=`expr $ac_sed_frag + 1`
24671 ac_beg=$ac_end
24672 ac_end=`expr $ac_end + $ac_max_sed_lines`
24674 done
24675 if test -z "$ac_sed_cmds"; then
24676 ac_sed_cmds=cat
24678 fi # test -n "$CONFIG_FILES"
24680 _ACEOF
24681 cat >>$CONFIG_STATUS <<\_ACEOF
24682 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24684 case $ac_file in
24685 - | *:- | *:-:* ) # input from stdin
24686 cat >$tmp/stdin
24687 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24689 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24691 * ) ac_file_in=$ac_file.in ;;
24692 esac
24694 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24695 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24697 X"$ac_file" : 'X\(//\)[^/]' \| \
24698 X"$ac_file" : 'X\(//\)$' \| \
24699 X"$ac_file" : 'X\(/\)' \| \
24700 . : '\(.\)' 2>/dev/null ||
24701 echo X"$ac_file" |
24702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24704 /^X\(\/\/\)$/{ s//\1/; q; }
24705 /^X\(\/\).*/{ s//\1/; q; }
24706 s/.*/./; q'`
24707 { if $as_mkdir_p; then
24708 mkdir -p "$ac_dir"
24709 else
24710 as_dir="$ac_dir"
24711 as_dirs=
24712 while test ! -d "$as_dir"; do
24713 as_dirs="$as_dir $as_dirs"
24714 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716 X"$as_dir" : 'X\(//\)[^/]' \| \
24717 X"$as_dir" : 'X\(//\)$' \| \
24718 X"$as_dir" : 'X\(/\)' \| \
24719 . : '\(.\)' 2>/dev/null ||
24720 echo X"$as_dir" |
24721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24723 /^X\(\/\/\)$/{ s//\1/; q; }
24724 /^X\(\/\).*/{ s//\1/; q; }
24725 s/.*/./; q'`
24726 done
24727 test ! -n "$as_dirs" || mkdir $as_dirs
24728 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24729 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24730 { (exit 1); exit 1; }; }; }
24732 ac_builddir=.
24734 if test "$ac_dir" != .; then
24735 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24736 # A "../" for each directory in $ac_dir_suffix.
24737 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24738 else
24739 ac_dir_suffix= ac_top_builddir=
24742 case $srcdir in
24743 .) # No --srcdir option. We are building in place.
24744 ac_srcdir=.
24745 if test -z "$ac_top_builddir"; then
24746 ac_top_srcdir=.
24747 else
24748 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24749 fi ;;
24750 [\\/]* | ?:[\\/]* ) # Absolute path.
24751 ac_srcdir=$srcdir$ac_dir_suffix;
24752 ac_top_srcdir=$srcdir ;;
24753 *) # Relative path.
24754 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24755 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24756 esac
24758 # Do not use `cd foo && pwd` to compute absolute paths, because
24759 # the directories may not exist.
24760 case `pwd` in
24761 .) ac_abs_builddir="$ac_dir";;
24763 case "$ac_dir" in
24764 .) ac_abs_builddir=`pwd`;;
24765 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24766 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24767 esac;;
24768 esac
24769 case $ac_abs_builddir in
24770 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24772 case ${ac_top_builddir}. in
24773 .) ac_abs_top_builddir=$ac_abs_builddir;;
24774 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24775 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24776 esac;;
24777 esac
24778 case $ac_abs_builddir in
24779 .) ac_abs_srcdir=$ac_srcdir;;
24781 case $ac_srcdir in
24782 .) ac_abs_srcdir=$ac_abs_builddir;;
24783 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24784 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24785 esac;;
24786 esac
24787 case $ac_abs_builddir in
24788 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24790 case $ac_top_srcdir in
24791 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24792 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24793 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24794 esac;;
24795 esac
24798 case $INSTALL in
24799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24800 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24801 esac
24803 if test x"$ac_file" != x-; then
24804 { echo "$as_me:$LINENO: creating $ac_file" >&5
24805 echo "$as_me: creating $ac_file" >&6;}
24806 rm -f "$ac_file"
24808 # Let's still pretend it is `configure' which instantiates (i.e., don't
24809 # use $as_me), people would be surprised to read:
24810 # /* config.h. Generated by config.status. */
24811 if test x"$ac_file" = x-; then
24812 configure_input=
24813 else
24814 configure_input="$ac_file. "
24816 configure_input=$configure_input"Generated from `echo $ac_file_in |
24817 sed 's,.*/,,'` by configure."
24819 # First look for the input files in the build tree, otherwise in the
24820 # src tree.
24821 ac_file_inputs=`IFS=:
24822 for f in $ac_file_in; do
24823 case $f in
24824 -) echo $tmp/stdin ;;
24825 [\\/$]*)
24826 # Absolute (can't be DOS-style, as IFS=:)
24827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24828 echo "$as_me: error: cannot find input file: $f" >&2;}
24829 { (exit 1); exit 1; }; }
24830 echo "$f";;
24831 *) # Relative
24832 if test -f "$f"; then
24833 # Build tree
24834 echo "$f"
24835 elif test -f "$srcdir/$f"; then
24836 # Source tree
24837 echo "$srcdir/$f"
24838 else
24839 # /dev/null tree
24840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24841 echo "$as_me: error: cannot find input file: $f" >&2;}
24842 { (exit 1); exit 1; }; }
24843 fi;;
24844 esac
24845 done` || { (exit 1); exit 1; }
24846 _ACEOF
24847 cat >>$CONFIG_STATUS <<_ACEOF
24848 sed "$ac_vpsub
24849 $extrasub
24850 _ACEOF
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24854 s,@configure_input@,$configure_input,;t t
24855 s,@srcdir@,$ac_srcdir,;t t
24856 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24857 s,@top_srcdir@,$ac_top_srcdir,;t t
24858 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24859 s,@builddir@,$ac_builddir,;t t
24860 s,@abs_builddir@,$ac_abs_builddir,;t t
24861 s,@top_builddir@,$ac_top_builddir,;t t
24862 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24863 s,@INSTALL@,$ac_INSTALL,;t t
24864 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24865 rm -f $tmp/stdin
24866 if test x"$ac_file" != x-; then
24867 mv $tmp/out $ac_file
24868 else
24869 cat $tmp/out
24870 rm -f $tmp/out
24873 done
24874 _ACEOF
24875 cat >>$CONFIG_STATUS <<\_ACEOF
24878 # CONFIG_HEADER section.
24881 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24882 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24884 # ac_d sets the value in "#define NAME VALUE" lines.
24885 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24886 ac_dB='[ ].*$,\1#\2'
24887 ac_dC=' '
24888 ac_dD=',;t'
24889 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24890 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24891 ac_uB='$,\1#\2define\3'
24892 ac_uC=' '
24893 ac_uD=',;t'
24895 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24896 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24897 case $ac_file in
24898 - | *:- | *:-:* ) # input from stdin
24899 cat >$tmp/stdin
24900 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24902 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24904 * ) ac_file_in=$ac_file.in ;;
24905 esac
24907 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24908 echo "$as_me: creating $ac_file" >&6;}
24910 # First look for the input files in the build tree, otherwise in the
24911 # src tree.
24912 ac_file_inputs=`IFS=:
24913 for f in $ac_file_in; do
24914 case $f in
24915 -) echo $tmp/stdin ;;
24916 [\\/$]*)
24917 # Absolute (can't be DOS-style, as IFS=:)
24918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24919 echo "$as_me: error: cannot find input file: $f" >&2;}
24920 { (exit 1); exit 1; }; }
24921 # Do quote $f, to prevent DOS paths from being IFS'd.
24922 echo "$f";;
24923 *) # Relative
24924 if test -f "$f"; then
24925 # Build tree
24926 echo "$f"
24927 elif test -f "$srcdir/$f"; then
24928 # Source tree
24929 echo "$srcdir/$f"
24930 else
24931 # /dev/null tree
24932 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24933 echo "$as_me: error: cannot find input file: $f" >&2;}
24934 { (exit 1); exit 1; }; }
24935 fi;;
24936 esac
24937 done` || { (exit 1); exit 1; }
24938 # Remove the trailing spaces.
24939 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24941 _ACEOF
24943 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24944 # `conftest.undefs', that substitutes the proper values into
24945 # config.h.in to produce config.h. The first handles `#define'
24946 # templates, and the second `#undef' templates.
24947 # And first: Protect against being on the right side of a sed subst in
24948 # config.status. Protect against being in an unquoted here document
24949 # in config.status.
24950 rm -f conftest.defines conftest.undefs
24951 # Using a here document instead of a string reduces the quoting nightmare.
24952 # Putting comments in sed scripts is not portable.
24954 # `end' is used to avoid that the second main sed command (meant for
24955 # 0-ary CPP macros) applies to n-ary macro definitions.
24956 # See the Autoconf documentation for `clear'.
24957 cat >confdef2sed.sed <<\_ACEOF
24958 s/[\\&,]/\\&/g
24959 s,[\\$`],\\&,g
24960 t clear
24961 : clear
24962 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24963 t end
24964 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24965 : end
24966 _ACEOF
24967 # If some macros were called several times there might be several times
24968 # the same #defines, which is useless. Nevertheless, we may not want to
24969 # sort them, since we want the *last* AC-DEFINE to be honored.
24970 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24971 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24972 rm -f confdef2sed.sed
24974 # This sed command replaces #undef with comments. This is necessary, for
24975 # example, in the case of _POSIX_SOURCE, which is predefined and required
24976 # on some systems where configure will not decide to define it.
24977 cat >>conftest.undefs <<\_ACEOF
24978 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24979 _ACEOF
24981 # Break up conftest.defines because some shells have a limit on the size
24982 # of here documents, and old seds have small limits too (100 cmds).
24983 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24984 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24985 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24986 echo ' :' >>$CONFIG_STATUS
24987 rm -f conftest.tail
24988 while grep . conftest.defines >/dev/null
24990 # Write a limited-size here document to $tmp/defines.sed.
24991 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24992 # Speed up: don't consider the non `#define' lines.
24993 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24994 # Work around the forget-to-reset-the-flag bug.
24995 echo 't clr' >>$CONFIG_STATUS
24996 echo ': clr' >>$CONFIG_STATUS
24997 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24998 echo 'CEOF
24999 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25000 rm -f $tmp/in
25001 mv $tmp/out $tmp/in
25002 ' >>$CONFIG_STATUS
25003 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25004 rm -f conftest.defines
25005 mv conftest.tail conftest.defines
25006 done
25007 rm -f conftest.defines
25008 echo ' fi # grep' >>$CONFIG_STATUS
25009 echo >>$CONFIG_STATUS
25011 # Break up conftest.undefs because some shells have a limit on the size
25012 # of here documents, and old seds have small limits too (100 cmds).
25013 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25014 rm -f conftest.tail
25015 while grep . conftest.undefs >/dev/null
25017 # Write a limited-size here document to $tmp/undefs.sed.
25018 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25019 # Speed up: don't consider the non `#undef'
25020 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25021 # Work around the forget-to-reset-the-flag bug.
25022 echo 't clr' >>$CONFIG_STATUS
25023 echo ': clr' >>$CONFIG_STATUS
25024 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25025 echo 'CEOF
25026 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25027 rm -f $tmp/in
25028 mv $tmp/out $tmp/in
25029 ' >>$CONFIG_STATUS
25030 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25031 rm -f conftest.undefs
25032 mv conftest.tail conftest.undefs
25033 done
25034 rm -f conftest.undefs
25036 cat >>$CONFIG_STATUS <<\_ACEOF
25037 # Let's still pretend it is `configure' which instantiates (i.e., don't
25038 # use $as_me), people would be surprised to read:
25039 # /* config.h. Generated by config.status. */
25040 if test x"$ac_file" = x-; then
25041 echo "/* Generated by configure. */" >$tmp/config.h
25042 else
25043 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25045 cat $tmp/in >>$tmp/config.h
25046 rm -f $tmp/in
25047 if test x"$ac_file" != x-; then
25048 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25049 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25050 echo "$as_me: $ac_file is unchanged" >&6;}
25051 else
25052 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25054 X"$ac_file" : 'X\(//\)[^/]' \| \
25055 X"$ac_file" : 'X\(//\)$' \| \
25056 X"$ac_file" : 'X\(/\)' \| \
25057 . : '\(.\)' 2>/dev/null ||
25058 echo X"$ac_file" |
25059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25061 /^X\(\/\/\)$/{ s//\1/; q; }
25062 /^X\(\/\).*/{ s//\1/; q; }
25063 s/.*/./; q'`
25064 { if $as_mkdir_p; then
25065 mkdir -p "$ac_dir"
25066 else
25067 as_dir="$ac_dir"
25068 as_dirs=
25069 while test ! -d "$as_dir"; do
25070 as_dirs="$as_dir $as_dirs"
25071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25073 X"$as_dir" : 'X\(//\)[^/]' \| \
25074 X"$as_dir" : 'X\(//\)$' \| \
25075 X"$as_dir" : 'X\(/\)' \| \
25076 . : '\(.\)' 2>/dev/null ||
25077 echo X"$as_dir" |
25078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25080 /^X\(\/\/\)$/{ s//\1/; q; }
25081 /^X\(\/\).*/{ s//\1/; q; }
25082 s/.*/./; q'`
25083 done
25084 test ! -n "$as_dirs" || mkdir $as_dirs
25085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25087 { (exit 1); exit 1; }; }; }
25089 rm -f $ac_file
25090 mv $tmp/config.h $ac_file
25092 else
25093 cat $tmp/config.h
25094 rm -f $tmp/config.h
25096 # Compute $ac_file's index in $config_headers.
25097 _am_stamp_count=1
25098 for _am_header in $config_headers :; do
25099 case $_am_header in
25100 $ac_file | $ac_file:* )
25101 break ;;
25103 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25104 esac
25105 done
25106 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25107 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25108 X$ac_file : 'X\(//\)[^/]' \| \
25109 X$ac_file : 'X\(//\)$' \| \
25110 X$ac_file : 'X\(/\)' \| \
25111 . : '\(.\)' 2>/dev/null ||
25112 echo X$ac_file |
25113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25115 /^X\(\/\/\)$/{ s//\1/; q; }
25116 /^X\(\/\).*/{ s//\1/; q; }
25117 s/.*/./; q'`/stamp-h$_am_stamp_count
25118 done
25119 _ACEOF
25120 cat >>$CONFIG_STATUS <<\_ACEOF
25123 # CONFIG_LINKS section.
25126 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25127 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25128 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25130 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25131 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25133 if test ! -r $srcdir/$ac_source; then
25134 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25135 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25136 { (exit 1); exit 1; }; }
25138 rm -f $ac_dest
25140 # Make relative symlinks.
25141 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25142 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25143 X"$ac_dest" : 'X\(//\)[^/]' \| \
25144 X"$ac_dest" : 'X\(//\)$' \| \
25145 X"$ac_dest" : 'X\(/\)' \| \
25146 . : '\(.\)' 2>/dev/null ||
25147 echo X"$ac_dest" |
25148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25150 /^X\(\/\/\)$/{ s//\1/; q; }
25151 /^X\(\/\).*/{ s//\1/; q; }
25152 s/.*/./; q'`
25153 { if $as_mkdir_p; then
25154 mkdir -p "$ac_dest_dir"
25155 else
25156 as_dir="$ac_dest_dir"
25157 as_dirs=
25158 while test ! -d "$as_dir"; do
25159 as_dirs="$as_dir $as_dirs"
25160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25162 X"$as_dir" : 'X\(//\)[^/]' \| \
25163 X"$as_dir" : 'X\(//\)$' \| \
25164 X"$as_dir" : 'X\(/\)' \| \
25165 . : '\(.\)' 2>/dev/null ||
25166 echo X"$as_dir" |
25167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25169 /^X\(\/\/\)$/{ s//\1/; q; }
25170 /^X\(\/\).*/{ s//\1/; q; }
25171 s/.*/./; q'`
25172 done
25173 test ! -n "$as_dirs" || mkdir $as_dirs
25174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25175 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25176 { (exit 1); exit 1; }; }; }
25178 ac_builddir=.
25180 if test "$ac_dest_dir" != .; then
25181 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25182 # A "../" for each directory in $ac_dir_suffix.
25183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25184 else
25185 ac_dir_suffix= ac_top_builddir=
25188 case $srcdir in
25189 .) # No --srcdir option. We are building in place.
25190 ac_srcdir=.
25191 if test -z "$ac_top_builddir"; then
25192 ac_top_srcdir=.
25193 else
25194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25195 fi ;;
25196 [\\/]* | ?:[\\/]* ) # Absolute path.
25197 ac_srcdir=$srcdir$ac_dir_suffix;
25198 ac_top_srcdir=$srcdir ;;
25199 *) # Relative path.
25200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25202 esac
25204 # Do not use `cd foo && pwd` to compute absolute paths, because
25205 # the directories may not exist.
25206 case `pwd` in
25207 .) ac_abs_builddir="$ac_dest_dir";;
25209 case "$ac_dest_dir" in
25210 .) ac_abs_builddir=`pwd`;;
25211 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25212 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25213 esac;;
25214 esac
25215 case $ac_abs_builddir in
25216 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25218 case ${ac_top_builddir}. in
25219 .) ac_abs_top_builddir=$ac_abs_builddir;;
25220 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25221 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25222 esac;;
25223 esac
25224 case $ac_abs_builddir in
25225 .) ac_abs_srcdir=$ac_srcdir;;
25227 case $ac_srcdir in
25228 .) ac_abs_srcdir=$ac_abs_builddir;;
25229 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25230 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25231 esac;;
25232 esac
25233 case $ac_abs_builddir in
25234 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25236 case $ac_top_srcdir in
25237 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25238 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25239 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25240 esac;;
25241 esac
25244 case $srcdir in
25245 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25246 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25247 esac
25249 # Try a symlink, then a hard link, then a copy.
25250 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25251 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25252 cp -p $srcdir/$ac_source $ac_dest ||
25253 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25254 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25255 { (exit 1); exit 1; }; }
25256 done
25257 _ACEOF
25258 cat >>$CONFIG_STATUS <<\_ACEOF
25261 # CONFIG_COMMANDS section.
25263 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25264 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25265 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25266 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25267 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25268 X"$ac_dest" : 'X\(//\)[^/]' \| \
25269 X"$ac_dest" : 'X\(//\)$' \| \
25270 X"$ac_dest" : 'X\(/\)' \| \
25271 . : '\(.\)' 2>/dev/null ||
25272 echo X"$ac_dest" |
25273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25275 /^X\(\/\/\)$/{ s//\1/; q; }
25276 /^X\(\/\).*/{ s//\1/; q; }
25277 s/.*/./; q'`
25278 { if $as_mkdir_p; then
25279 mkdir -p "$ac_dir"
25280 else
25281 as_dir="$ac_dir"
25282 as_dirs=
25283 while test ! -d "$as_dir"; do
25284 as_dirs="$as_dir $as_dirs"
25285 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25287 X"$as_dir" : 'X\(//\)[^/]' \| \
25288 X"$as_dir" : 'X\(//\)$' \| \
25289 X"$as_dir" : 'X\(/\)' \| \
25290 . : '\(.\)' 2>/dev/null ||
25291 echo X"$as_dir" |
25292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25294 /^X\(\/\/\)$/{ s//\1/; q; }
25295 /^X\(\/\).*/{ s//\1/; q; }
25296 s/.*/./; q'`
25297 done
25298 test ! -n "$as_dirs" || mkdir $as_dirs
25299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25300 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25301 { (exit 1); exit 1; }; }; }
25303 ac_builddir=.
25305 if test "$ac_dir" != .; then
25306 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25307 # A "../" for each directory in $ac_dir_suffix.
25308 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25309 else
25310 ac_dir_suffix= ac_top_builddir=
25313 case $srcdir in
25314 .) # No --srcdir option. We are building in place.
25315 ac_srcdir=.
25316 if test -z "$ac_top_builddir"; then
25317 ac_top_srcdir=.
25318 else
25319 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25320 fi ;;
25321 [\\/]* | ?:[\\/]* ) # Absolute path.
25322 ac_srcdir=$srcdir$ac_dir_suffix;
25323 ac_top_srcdir=$srcdir ;;
25324 *) # Relative path.
25325 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25326 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25327 esac
25329 # Do not use `cd foo && pwd` to compute absolute paths, because
25330 # the directories may not exist.
25331 case `pwd` in
25332 .) ac_abs_builddir="$ac_dir";;
25334 case "$ac_dir" in
25335 .) ac_abs_builddir=`pwd`;;
25336 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25337 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25338 esac;;
25339 esac
25340 case $ac_abs_builddir in
25341 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25343 case ${ac_top_builddir}. in
25344 .) ac_abs_top_builddir=$ac_abs_builddir;;
25345 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25346 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25347 esac;;
25348 esac
25349 case $ac_abs_builddir in
25350 .) ac_abs_srcdir=$ac_srcdir;;
25352 case $ac_srcdir in
25353 .) ac_abs_srcdir=$ac_abs_builddir;;
25354 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25355 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25356 esac;;
25357 esac
25358 case $ac_abs_builddir in
25359 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25361 case $ac_top_srcdir in
25362 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25363 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25364 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25365 esac;;
25366 esac
25369 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25370 echo "$as_me: executing $ac_dest commands" >&6;}
25371 case $ac_dest in
25372 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25373 # Strip MF so we end up with the name of the file.
25374 mf=`echo "$mf" | sed -e 's/:.*$//'`
25375 # Check whether this is an Automake generated Makefile or not.
25376 # We used to match only the files named `Makefile.in', but
25377 # some people rename them; so instead we look at the file content.
25378 # Grep'ing the first line is not enough: some people post-process
25379 # each Makefile.in and add a new line on top of each file to say so.
25380 # So let's grep whole file.
25381 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25382 dirpart=`(dirname "$mf") 2>/dev/null ||
25383 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25384 X"$mf" : 'X\(//\)[^/]' \| \
25385 X"$mf" : 'X\(//\)$' \| \
25386 X"$mf" : 'X\(/\)' \| \
25387 . : '\(.\)' 2>/dev/null ||
25388 echo X"$mf" |
25389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25391 /^X\(\/\/\)$/{ s//\1/; q; }
25392 /^X\(\/\).*/{ s//\1/; q; }
25393 s/.*/./; q'`
25394 else
25395 continue
25397 # Extract the definition of DEPDIR, am__include, and am__quote
25398 # from the Makefile without running `make'.
25399 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25400 test -z "$DEPDIR" && continue
25401 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25402 test -z "am__include" && continue
25403 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25404 # When using ansi2knr, U may be empty or an underscore; expand it
25405 U=`sed -n 's/^U = //p' < "$mf"`
25406 # Find all dependency output files, they are included files with
25407 # $(DEPDIR) in their names. We invoke sed twice because it is the
25408 # simplest approach to changing $(DEPDIR) to its actual value in the
25409 # expansion.
25410 for file in `sed -n "
25411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25413 # Make sure the directory exists.
25414 test -f "$dirpart/$file" && continue
25415 fdir=`(dirname "$file") 2>/dev/null ||
25416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25417 X"$file" : 'X\(//\)[^/]' \| \
25418 X"$file" : 'X\(//\)$' \| \
25419 X"$file" : 'X\(/\)' \| \
25420 . : '\(.\)' 2>/dev/null ||
25421 echo X"$file" |
25422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25424 /^X\(\/\/\)$/{ s//\1/; q; }
25425 /^X\(\/\).*/{ s//\1/; q; }
25426 s/.*/./; q'`
25427 { if $as_mkdir_p; then
25428 mkdir -p $dirpart/$fdir
25429 else
25430 as_dir=$dirpart/$fdir
25431 as_dirs=
25432 while test ! -d "$as_dir"; do
25433 as_dirs="$as_dir $as_dirs"
25434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25436 X"$as_dir" : 'X\(//\)[^/]' \| \
25437 X"$as_dir" : 'X\(//\)$' \| \
25438 X"$as_dir" : 'X\(/\)' \| \
25439 . : '\(.\)' 2>/dev/null ||
25440 echo X"$as_dir" |
25441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25443 /^X\(\/\/\)$/{ s//\1/; q; }
25444 /^X\(\/\).*/{ s//\1/; q; }
25445 s/.*/./; q'`
25446 done
25447 test ! -n "$as_dirs" || mkdir $as_dirs
25448 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25449 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25450 { (exit 1); exit 1; }; }; }
25452 # echo "creating $dirpart/$file"
25453 echo '# dummy' > "$dirpart/$file"
25454 done
25455 done
25457 esac
25458 done
25459 _ACEOF
25461 cat >>$CONFIG_STATUS <<\_ACEOF
25463 { (exit 0); exit 0; }
25464 _ACEOF
25465 chmod +x $CONFIG_STATUS
25466 ac_clean_files=$ac_clean_files_save
25469 # configure is writing to config.log, and then calls config.status.
25470 # config.status does its own redirection, appending to config.log.
25471 # Unfortunately, on DOS this fails, as config.log is still kept open
25472 # by configure, so config.status won't be able to write to it; its
25473 # output is simply discarded. So we exec the FD to /dev/null,
25474 # effectively closing config.log, so it can be properly (re)opened and
25475 # appended to by config.status. When coming back to configure, we
25476 # need to make the FD available again.
25477 if test "$no_create" != yes; then
25478 ac_cs_success=:
25479 ac_config_status_args=
25480 test "$silent" = yes &&
25481 ac_config_status_args="$ac_config_status_args --quiet"
25482 exec 5>/dev/null
25483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25484 exec 5>>config.log
25485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25486 # would make configure fail if this is the last instruction.
25487 $ac_cs_success || { (exit 1); exit 1; }
25491 # CONFIG_SUBDIRS section.
25493 if test "$no_recursion" != yes; then
25495 # Remove --cache-file and --srcdir arguments so they do not pile up.
25496 ac_sub_configure_args=
25497 ac_prev=
25498 for ac_arg in $ac_configure_args; do
25499 if test -n "$ac_prev"; then
25500 ac_prev=
25501 continue
25503 case $ac_arg in
25504 -cache-file | --cache-file | --cache-fil | --cache-fi \
25505 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25506 ac_prev=cache_file ;;
25507 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25508 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25509 | --c=*)
25511 --config-cache | -C)
25513 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25514 ac_prev=srcdir ;;
25515 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25517 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25518 ac_prev=prefix ;;
25519 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25521 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25522 esac
25523 done
25525 # Always prepend --prefix to ensure using the same prefix
25526 # in subdir configurations.
25527 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25529 ac_popdir=`pwd`
25530 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25532 # Do not complain, so a configure script can configure whichever
25533 # parts of a large source tree are present.
25534 test -d $srcdir/$ac_dir || continue
25536 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25537 echo "$as_me: configuring in $ac_dir" >&6;}
25538 { if $as_mkdir_p; then
25539 mkdir -p "$ac_dir"
25540 else
25541 as_dir="$ac_dir"
25542 as_dirs=
25543 while test ! -d "$as_dir"; do
25544 as_dirs="$as_dir $as_dirs"
25545 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25547 X"$as_dir" : 'X\(//\)[^/]' \| \
25548 X"$as_dir" : 'X\(//\)$' \| \
25549 X"$as_dir" : 'X\(/\)' \| \
25550 . : '\(.\)' 2>/dev/null ||
25551 echo X"$as_dir" |
25552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25554 /^X\(\/\/\)$/{ s//\1/; q; }
25555 /^X\(\/\).*/{ s//\1/; q; }
25556 s/.*/./; q'`
25557 done
25558 test ! -n "$as_dirs" || mkdir $as_dirs
25559 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25560 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25561 { (exit 1); exit 1; }; }; }
25563 ac_builddir=.
25565 if test "$ac_dir" != .; then
25566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25567 # A "../" for each directory in $ac_dir_suffix.
25568 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25569 else
25570 ac_dir_suffix= ac_top_builddir=
25573 case $srcdir in
25574 .) # No --srcdir option. We are building in place.
25575 ac_srcdir=.
25576 if test -z "$ac_top_builddir"; then
25577 ac_top_srcdir=.
25578 else
25579 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25580 fi ;;
25581 [\\/]* | ?:[\\/]* ) # Absolute path.
25582 ac_srcdir=$srcdir$ac_dir_suffix;
25583 ac_top_srcdir=$srcdir ;;
25584 *) # Relative path.
25585 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25586 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25587 esac
25589 # Do not use `cd foo && pwd` to compute absolute paths, because
25590 # the directories may not exist.
25591 case `pwd` in
25592 .) ac_abs_builddir="$ac_dir";;
25594 case "$ac_dir" in
25595 .) ac_abs_builddir=`pwd`;;
25596 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25597 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25598 esac;;
25599 esac
25600 case $ac_abs_builddir in
25601 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25603 case ${ac_top_builddir}. in
25604 .) ac_abs_top_builddir=$ac_abs_builddir;;
25605 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25606 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25607 esac;;
25608 esac
25609 case $ac_abs_builddir in
25610 .) ac_abs_srcdir=$ac_srcdir;;
25612 case $ac_srcdir in
25613 .) ac_abs_srcdir=$ac_abs_builddir;;
25614 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25615 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25616 esac;;
25617 esac
25618 case $ac_abs_builddir in
25619 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25621 case $ac_top_srcdir in
25622 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25623 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25624 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25625 esac;;
25626 esac
25629 cd $ac_dir
25631 # Check for guested configure; otherwise get Cygnus style configure.
25632 if test -f $ac_srcdir/configure.gnu; then
25633 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25634 elif test -f $ac_srcdir/configure; then
25635 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25636 elif test -f $ac_srcdir/configure.in; then
25637 ac_sub_configure=$ac_configure
25638 else
25639 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25641 ac_sub_configure=
25644 # The recursion is here.
25645 if test -n "$ac_sub_configure"; then
25646 # Make the cache file name correct relative to the subdirectory.
25647 case $cache_file in
25648 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25649 *) # Relative path.
25650 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25651 esac
25653 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25654 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25655 # The eval makes quoting arguments work.
25656 eval $ac_sub_configure $ac_sub_configure_args \
25657 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25658 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25659 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25660 { (exit 1); exit 1; }; }
25663 cd $ac_popdir
25664 done
25668 echo " "
25669 echo "This is the low library Neuro will use : $SELECTED_LOWLIB"
25670 echo " "